text
stringlengths
1
1.05M
; A118137: Sum of decimal digits of two successive natural numbers. ; 1,3,5,7,9,11,13,15,17,10,3,5,7,9,11,13,15,17,19,12,5,7,9,11,13,15,17,19,21,14,7,9,11,13,15,17,19,21,23,16,9,11,13,15,17,19,21,23,25,18,11,13,15,17,19,21,23,25,27,20,13,15,17,19,21,23,25,27,29,22,15,17,19,21,23,25,27,29,31,24,17,19,21,23,25,27,29,31,3...
; A158765: a(n) = 76*n^2 - 1. ; Submitted by Christian Krause ; 75,303,683,1215,1899,2735,3723,4863,6155,7599,9195,10943,12843,14895,17099,19455,21963,24623,27435,30399,33515,36783,40203,43775,47499,51375,55403,59583,63915,68399,73035,77823,82763,87855,93099,98495,104043,109743,115595,121599,127755,134063,140523,147135...
; Level2Order.asm zeusemulate "128K" zoLogicOperatorsHighPri = false zoSupportStringEscapes = false Zeus_PC = Start BootParaBase equ $4000 ; Locate ParaSys full stave in the screen to save memory Stack equ $FFFF optionsize 12...
// Copyright (c) 2011-2014 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include "config/bitcoin-config.h" #endif #include "bitcoingui.h" #include "clientmodel.h" #inclu...
<% from pwnlib.shellcraft.mips.linux import syscall %> <%page args="file, length"/> <%docstring> Invokes the syscall truncate. See 'man 2 truncate' for more information. Arguments: file(char): file length(off_t): length </%docstring> ${syscall('SYS_truncate', file, length)}
; void *tshc_pxy2aaddr(uchar x, uchar y) SECTION code_clib SECTION code_arch PUBLIC tshc_pxy2aaddr_callee EXTERN asm_tshc_pxy2aaddr tshc_pxy2aaddr_callee: pop hl ex (sp),hl jp asm_tshc_pxy2aaddr
#define BOOST_TEST_MODULE #include <boost/test/unit_test.hpp> #include <core/util/test_macros.hpp> #include <string> #include <set> #include <core/storage/fileio/block_cache.hpp> #include <core/storage/fileio/temp_files.hpp> #include <core/random/random.hpp> using namespace turi; #ifndef TC_DISABLE_REMOTEFS struct ...
Label -mem-manager-initialize DLabel $heap-start-ptr DataZ 4 DLabel $heap-after-ptr DataZ 4 DLabel $heap-first-free DataZ 4 ...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r8 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0xa4eb, %rsi lea addresses_normal_ht+0x182eb, %rdi nop nop nop nop nop cmp $32554, %r11 mov $41, %rcx rep movsl nop add %rcx, %rcx lea addresses_UC_ht+0x1b06b, %r8 nop nop nop no...
; A070940: Number of digits that must be counted from left to right to reach the last 1 in the binary representation of n. ; 1,1,2,1,3,2,3,1,4,3,4,2,4,3,4,1,5,4,5,3,5,4,5,2,5,4,5,3,5,4,5,1,6,5,6,4,6,5,6,3,6,5,6,4,6,5,6,2,6,5,6,4,6,5,6,3,6,5,6,4,6,5,6,1,7,6,7,5,7,6,7,4,7,6,7,5,7,6,7,3,7,6,7,5,7,6,7,4,7,6,7,5,7,6,7,2,7,6...
.size 8000 .text@48 jp lstatint .text@100 jp lbegin .data@143 80 .text@150 lbegin: ld c, 41 ld b, 02 ld d, 03 lbegin_waitm2: ldff a, (c) and a, d cmp a, b jrnz lbegin_waitm2 ld a, 08 ldff(c), a xor a, a ldff(0f), a ld a, 02 ldff(ff), a ei ld c, 0f .text@1000 lstatint: ld a, 48 ldff(41), a ldff...
// Copyright 2010-2012 (c) Dean Michael Berris // Copyright 2010 (c) Sinefunc, Inc. // Copyright 2012 Google, Inc. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef NETWORK_PROTOCOL_HTTP_MESSAGE_WRAPPERS_V...
############################################################################### # Copyright 2019 Intel Corporation # All Rights Reserved. # # If this software was obtained under the Intel Simplified Software License, # the following terms apply: # # The source code, information and material ("Material") containe...
#ruledef test { ld {x} => 0x55 @ x`8 } #bankdef test { #bits 3, #addr 0, #outp 0 } #d3 $ ; = 0b000 #res 2 ; = 0b000_000 label: #res 3 ; = 0b000_000_000 #d3 $ ; = 0b110 #d3 label ; = 0b011
<% from pwnlib.shellcraft.aarch64.linux import syscall %> <%page args="when"/> <%docstring> Invokes the syscall stime. See 'man 2 stime' for more information. Arguments: when(time_t): when </%docstring> ${syscall('SYS_stime', when)}
.MODEL SMALL .STACK 100H .DATA LF EQU 0DH CR EQU 0AH PROMPT DB LF,CR,'Enter The Hour(0..23) :$' MSG_M DB LF,CR,'Enter The Minute(0..59): $' MSG_S DB LF,CR,'Enter The Second(0..59): $' MSGSUC DB LF,CR,'Your time is changed.$' MSGFAIL DB LF,CR,'Your Time Is Not Changed.' DB LF,CR,'Do You Want To Try Again Y/N? ...
#include <math.h> #include <string> #include "breakout_dotmatrix.hpp" #include "time.h" using namespace pimoroni; BreakoutDotMatrix display(BreakoutDotMatrix::DEFAULT_I2C_ADDRESS); bool led_toggle = false; int main() { gpio_init(PICO_DEFAULT_LED_PIN); gpio_set_dir(PICO_DEFAULT_LED_PIN, GPIO_OUT); display.ini...
# mp_limb_t mulredc1_3(mp_limb_t * z, const mp_limb_t x, const mp_limb_t * y, # const mp_limb_t *m, mp_limb_t inv_m); # # Linux: z: %rdi, x: %rsi, y: %rdx, m: %rcx, inv_m: %r8 # Needs %rbx, %rsp, %rbp, %r12-%r15 restored # Windows: z: %rcx, x: %rdx, y: %r8, m: %r9, inv_m: 28(%rsp) # ...
; Licensed to the .NET Foundation under one or more agreements. ; The .NET Foundation licenses this file to you under the MIT license. ; See the LICENSE file in the project root for more information. ; *********************************************************************** ; File: JIThelp.asm ; ; *********************...
SECTION code_clib SECTION code_fp_math48 PUBLIC _rint EXTERN cm48_sdccix_rint defc _rint = cm48_sdccix_rint
FuchsiaGym_Script: call .LoadNames call EnableAutoTextBoxDrawing ld hl, FuchsiaGymTrainerHeaders ld de, FuchsiaGym_ScriptPointers ld a, [wFuchsiaGymCurScript] call ExecuteCurMapScriptInTable ld [wFuchsiaGymCurScript], a ret .LoadNames: ld hl, wCurrentMapScriptFlags bit 6, [hl] res 6, [hl] ret z ld hl, .Ci...
main_menu_hacks: //============================================================================================= // This set of hacks makes the game load and display long strings on main menu stuff correctly. //============================================================================================= .write_item_t...
;********************************************************* ;* MODULE: EVALUATE ;* ;* DESCRIPTION: EVALUATION OF EXPRESSIONS: ;* ARITHMETIC, BINARY, RELATIONS, LOGICAL, ;* FUNCTIONS ;* .module evaluate .title Expression evaluation .include 'expreval.def' .include '..\common\common.def' .include '..\variables\va...
//кросплатформенный процесорный информатор // TODO: Оптимизировать #include "sysInfo.h" #include "pch.h" #ifdef __unix__ #include <sys/sysinfo.h> #include <sys/types.h> #endif #ifdef _MSC_VER typedef struct _PROCESS_MEMORY_COUNTERS_EX { unsigned long cb; unsigned long PageFaultCount; size_t Peak...
// push constant 0 @0 D=A @SP A=M M=D @SP M=M+1 // pop local 0 @LCL D=M @0 D=A+D @SP A=M M=D @SP AM=M-1 D=M @SP A=M+1 A=M M=D // label LOOP_START ($LOOP_START) // push argument 0 @ARG D=M @0 A=A+D D=M @SP A=M M=D @SP M=M+1 // push local 0 @LCL D=M @0 A=A+D D=M @SP A=M M=D @SP M=M+1 // add @SP AM=M-1 D=M A=A-1 M=M+D // ...
; ; Sprite Rendering Routine ; original code by Patrick Davidson (TI 85) ; modified by Stefano Bodrato - Jan 2001 ; ; Sept 2003 - Stefano: Fixed bug for sprites wider than 8. ; ; Much More Generic version ; Uses plotpixel, respixel and xorpixel ; ; ; $Id: w_putsprite2.asm,v 1.4 2017/01/02 21:51:24 aralbrec Exp $ ; P...
copyright zengfr site:http://github.com/zengfr/romhack 00042A move.l D1, (A0)+ 00042C dbra D0, $42a 016ECE move.b ($4,A3), ($e,A6) [base+6BAD, base+6BBD, base+6BCD] 016ED4 move.b ($5,A3), ($f,A6) 017246 move.b ($4,A3), ($e,A6) [base+6BAD, base+6BCD] 01724C move.b ($5,A3), ($f,A6) 0AAACA move.l (A0),...
#include "DAVAEngine.h" #include "UnitTests/UnitTests.h" #include "Network/Base/IPAddress.h" #include "Network/Base/Endpoint.h" #include "Network/NetConfig.h" #include "Network/NetService.h" #include "Network/NetCore.h" #if !defined(DAVA_NETWORK_DISABLE) using namespace DAVA; using namespace DAVA::Net; struct Parc...
/****************************************************************************** * * package: Log4Qt * file: datetime.cpp * created: September 2007 * author: Martin Heinrich * * * Copyright 2007 Martin Heinrich * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
; A002627: a(n) = n*a(n-1) + 1, a(0) = 0. ; 0,1,3,10,41,206,1237,8660,69281,623530,6235301,68588312,823059745,10699776686,149796873605,2246953104076,35951249665217,611171244308690,11001082397556421,209020565553572000,4180411311071440001,87788637532500240022,1931350025715005280485,44421050591445121451156,106610521419468...
; ; Windows x86/x64 Multi-Arch Kernel Ring 0 to Ring 3 via Queued APC Shellcode ; ; Author: Sean Dillon <sean.dillon@risksense.com> (@zerosum0x0) ; Copyright: (c) 2017 RiskSense, Inc. ; Release: 04 May 2017 ; License: Apache 2.0 ; Build: nasm ./kernel.asm ; Acknowledgements: Stephen Fewer, skape, Equation Group, Shadow...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r13 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0x475e, %rbp clflush (%rbp) nop nop nop nop add %r13, %r13 mov $0x6162636465666768, %r10 movq %r10, %xmm3 vmovups %ymm3, (%rbp) nop nop nop nop nop mfence lea addresses_WC_ht+...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r9 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_normal_ht+0xe80a, %r9 nop add %r11, %r11 mov $0x6162636465666768, %rdi movq %rdi, %xmm4 movups %xmm4, (%r9) cmp $41654, %r9 lea addresses_WT_ht+0x54e1, %rcx xor $29038, %r10 mov (%rc...
; A081105: 5th binomial transform of (1,1,0,0,0,0,.....). ; 1,6,35,200,1125,6250,34375,187500,1015625,5468750,29296875,156250000,830078125,4394531250,23193359375,122070312500,640869140625,3356933593750,17547607421875,91552734375000,476837158203125 mov $1,5 pow $1,$0 add $0,5 mul $1,$0 div $1,5 mov $0,$1
; A211004: Number of distinct regions in the set of partitions of n. ; 1,2,3,5,7,9,12,15,18,22,26,30,35,40,45,51 add $0,3 bin $0,2 div $0,3
; A040884: Continued fraction for sqrt(915). ; 30,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60 mov $1,$0 cmp $0,0 sub $1,$0 gcd $1,2 add $1,12 add $0,$1 mul $0,$1 sub $0,168 add $...
; A024482: a(n) = (1/2)*(binomial(2n, n) - binomial(2n-2, n-1)). ; 2,7,25,91,336,1254,4719,17875,68068,260338,999362,3848222,14858000,57500460,222981435,866262915,3370764540,13135064250,51250632510,200205672810,782920544640,3064665881940,12007086477750,47081501377326 mov $4,2 mov $5,$0 lpb $4,1 mov $0,$5 sub $4,1 ...
#import "common/lib/invoke.asm" #import "common/lib/mem.asm" #importonce .filenamespace c64lib /* * Stack parameters (order of pushing): * screenAddress PTR * textAddress PTR * textPtr WORD */ .macro scroll1x1(tempZero1) { .assert "tempZero1 must be a zero page address", tempZero1 <= 255, true .print "tempZer...
.target "6502" .format "nes" .setting "NESMapper", 0 .setting "NESVerticalMirroring", true .setting "ShowLabelsAfterCompiling", true .setting "ShowLocalLabelsAfterCompiling", true .setting "LaunchCommand", "c:\\emulation\\fceux.exe {0}" .setting "DebugCommand", "c:\\emulation\\fceux.exe {0}" ;;;;;;;...
/* GBA development library for AG0700 * * If you have additions or corrections to this code, please send * them to Adam Sampson <a.sampson@abertay.ac.uk>. */ #include "gba.h" volatile uint16_t *BackBuffer = REG_VIDEO_PAGE1; ObjAttr ObjBuffer[NUM_OBJECTS]; void WaitVSync() { while(REG_VCOUNT >= 160); // wait ...
push 5 next_number: jumpz stop print push 1 sub jump next_number stop: stack
// Copyright (c) 2012-2016 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "clientversion.h" #include "tinyformat.h" #include <string> /** * Name of client reported in the 'version' messa...
global _start section .text _start: jmp _push_filename _readfile: ; syscall open file pop rdi xor byte [rdi + 11], 0x41 xor rax, rax add al, 2 xor rsi, rsi syscall sub sp, 0xfff lea rsi, [rsp] mov rdi, rax xor rdx, rdx mov dx, 0xfff xor rax, rax syscall xor rdi, rdi add dil, 1 mov rdx, rax xor ...
#include "pch.h" #include "boulder.h" boulder::boulder() : m_timer(0.0f), m_speed(2.f) { } boulder::~boulder() { } void boulder::initialise(engine::ref<engine::game_object> object) { m_object = object; glm::vec3 position(0.f, 2.f, 20.f); m_object->set_forward(glm::vec3(0.f, 0.f, -1.f)); m_object->set_position(po...
/* Copyright 2016 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
#ifdef _WIN32 #define _WIN32_DCOM // required to initialize OLE #endif #include "../common/graycom.h" #include "../graysvr/graysvr.h" #include "threads.h" #ifndef _WIN32 #include <algorithm> #ifndef _BSD #include <sys/prctl.h> #endif #endif // number of exceptions after which we restart thread an...
; ; Z88dk Generic Floating Point Math Library ; ; TOS >= FA ; ; $Id: dne.asm,v 1.3 2016-06-21 21:16:49 dom Exp $: SECTION code_fp PUBLIC dne EXTERN dcompar EXTERN f_yes EXTERN f_no .dne call dcompar jp nz,f_yes jp f_no
// Generated by rstantools. Do not edit by hand. #include <Rcpp.h> using namespace Rcpp ; #include "stanExports_glm_bhm.h" RCPP_MODULE(stan_fit4glm_bhm_mod) { class_<rstan::stan_fit<stan_model, boost::random::ecuyer1988> >("model_glm_bhm") .constructor<SEXP,SEXP,SEXP>() .method("call_sampler", &rsta...
; A065165: Permutation t->t+2 of Z, folded to N. ; 4,6,2,8,1,10,3,12,5,14,7,16,9,18,11,20,13,22,15,24,17,26,19,28,21,30,23,32,25,34,27,36,29,38,31,40,33,42,35,44,37,46,39,48,41,50,43,52,45,54,47,56,49,58,51,60,53,62,55,64,57,66,59,68,61,70,63,72,65,74,67,76,69,78,71,80,73,82,75,84,77,86,79,88,81,90,83,92,85,94,87,96,89...
;***************************************************************************** ;* MMX/SSE2-optimized H.264 iDCT ;***************************************************************************** ;* Copyright (C) 2004-2005 Michael Niedermayer, Loren Merritt ;* Copyright (C) 2003-2008 x264 project ;* ;* Authors: Laurent Aima...
;; ;; This file is part of the "Coroutine" project and released under the MIT License. ;; ;; Created by Samuel Williams on 10/5/2018. ;; Copyright, 2018, by Samuel Williams. All rights reserved. ;; .code coroutine_transfer proc ; Save the thread information block: push qword ptr gs:[8] push qword ptr gs:[16] ...
#include "types.h" /* * --INFO-- * Address: ........ * Size: 00009C */ void _Error(char*, ...) { // UNUSED FUNCTION } /* * --INFO-- * Address: ........ * Size: 0000F4 */ void _Print(char*, ...) { // UNUSED FUNCTION } /* * --INFO-- * Address: 8009A02C * Size: 000400 */ void PelletStateMachine::init(Pell...
tilecoll WALL, WALL, WALL, WALL ; 00 tilecoll WALL, WALL, WALL, WALL ; 01 tilecoll WALL, WALL, WALL, WALL ; 02 tilecoll WALL, WALL, WALL, WALL ; 03 tilecoll WALL, WALL, WALL, WALL ; 04 tilecoll WALL, WALL, WALL, WALL ; 05 tilecoll WALL, WALL, WALL, WALL ; 06 tilecoll WALL, WALL, WALL, WALL ; 07 tilecoll FLOOR,...
; =============================================================== ; Jan 2014 ; =============================================================== ; ; int vfscanf_unlocked(FILE *stream, const char *format, void *arg) ; ; See C11 specification. ; ; =============================================================== IFNDEF CL...
bits 64 aesenc xmm0,xmm4 vaesenc zmm0,zmm0,zmm4 vpclmullqlqdq zmm1,zmm1,zmm5 vpclmulqdq zmm0, zmm1, zmm2, 0 vaesenclast zmm0, zmm1, zmm2 bits 32 aesenc xmm0,xmm4 vaesenc zmm0,zmm0,zmm4 vpclmullqlqdq zmm1,zmm1,zmm5 vpclmulqdq zmm0, zmm1, zmm2, 0 vaesenclast zmm0, zmm1, zmm2 bits 16 aesenc xmm0,xmm4 vaes...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r8 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0x1c2b2, %r9 nop nop nop and %rbx, %rbx mov (%r9), %r11 nop nop nop nop nop dec %r8 lea addresses_UC_ht+0x10872, %rsi lea addresses_normal_ht+0x131a2, %rdi nop nop and $57076, %...
.data msg1:.asciiz "The number read is:\n" msg2:.asciiz "\nThe string read is:\n" msg3:.asciiz "Please enter the number to be read:\n" msg4:.asciiz "Please enter the string to be read:\n" .text .globl main main: li $v0, 4 #to disp msg3 la $a0, msg3 syscall li $v0 ,5 #to read number syscall move $...
; A092263: a(1)=1, a(n+1)=ceiling(phi*a(n))+1 if a(n) is odd, a(n+1)=ceiling(phi*a(n)) if a(n) is even, where phi=(1+sqrt(5))/2. ; 1,3,6,10,17,29,48,78,127,207,336,544,881,1427,2310,3738,6049,9789,15840,25630,41471,67103,108576,175680,284257,459939,744198,1204138,1948337,3152477,5100816,8253294,13354111,21607407,349615...
// ------------------------------------------------------------------------ // // Copyright 2021 SPTK Working Group // // // // Licensed under the Apache License, Version 2.0 (the "License"); // // y...
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <stdint.h> #include "base/base_jni_headers/TimeUtils_jni.h" #include "base/time/time.h" namespace base { namespace android { static jlong JNI_...
global test_case extern sys.exit section .text test_case: call sys.exit
dc.w word_1E762-Map_Explosion dc.w word_1E76A-Map_Explosion dc.w word_1E772-Map_Explosion dc.w word_1E77A-Map_Explosion dc.w word_1E782-Map_Explosion word_1E762: dc.w 1 ; DATA XREF: ROM:0001E758o dc.b $F8, 5, 0, 0, $FF, $F8 word_1E76A: dc.w 1 ; DATA XREF: ROM:0001E758o dc.b $F0, $F, 0, ...
; A276283: Expansion of (1 + x + 3*x^2 + x^3)/((1 - x)^2*(1 + x^2)). ; 1,3,7,11,13,15,19,23,25,27,31,35,37,39,43,47,49,51,55,59,61,63,67,71,73,75,79,83,85,87,91,95,97,99,103,107,109,111,115,119,121,123,127,131,133,135,139,143,145,147,151,155,157,159,163,167,169,171,175,179,181,183,187,191,193,195,199,203,205,207,211,21...
; Core components of the battle engine. DoBattle: xor a ld [wBattleParticipantsNotFainted], a ld [wBattleParticipantsIncludingFainted], a ld [wBattlePlayerAction], a ld [wBattleEnded], a inc a ld [wBattleHasJustStarted], a ld hl, wOTPartyMon1HP ld bc, PARTYMON_STRUCT_LENGTH - 1 ld d, BATTLEACTION_SWITCH1 - 1...
.data w: .word 64 msg: .asciiz "bne" msg1: .asciiz "blez" msg2: .asciiz "bgtz" .text la $s0, w lui $t0, 6 bne $t0, $t1, wow wow: li $v0, 4 # Impressao da msg la $a0, msg syscall blez $t0, wow1 bgtz $t0, wow2 # Termino do programa addi $v0, $zero, 10 # Codigo para terminar o programa = 10 sy...
SECTION code_fp_am9511 PUBLIC _acosh_fastcall EXTERN _am9511_acosh defc _acosh_fastcall = _am9511_acosh
; A025791: Expansion of 1/((1-x)(1-x^9)(1-x^10)). ; 1,1,1,1,1,1,1,1,1,2,3,3,3,3,3,3,3,3,4,5,6,6,6,6,6,6,6,7,8,9,10,10,10,10,10,10,11,12,13,14,15,15,15,15,15,16,17,18,19,20,21,21,21,21,22,23,24,25,26,27,28,28,28,29 mov $11,$0 mov $13,$0 add $13,1 lpb $13,1 clr $0,11 mov $0,$11 sub $13,1 sub $0,$13 add $0,3 ...
; A008967: Coefficients of Gaussian polynomials q_binomial(n-2, 2). Also triangle of distribution of rank sums: Wilcoxon's statistic. Irregular triangle read by rows. ; 1,1,1,1,1,1,2,1,1,1,1,2,2,2,1,1,1,1,2,2,3,2,2,1,1,1,1,2,2,3,3,3,2,2,1,1,1,1,2,2,3,3,4,3,3,2,2,1,1,1,1,2,2,3,3,4,4,4,3,3,2,2,1,1,1,1,2,2,3,3,4,4,5,4,4,3...
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
; Initiates drop of the item currently being dragged, using a specified ; inventory area as source and using our fake dropArea as the destination. ; This allows dropping a dragged item into an arbitrary container, which might ; not be open as an on-screen inventory dialog, and for which there might ; theref...
#include <cstdio> #include <cstdlib> // cuda runtime #include <cuda_runtime_api.h> #include "cuda_helper_timer.h" #include "reduction_cg_kernel.h" void run_benchmark(void (*reduce)(float *, float *, int, int), float *d_outPtr, float *d_inPtr, int size); void init_input(float *data, int size); floa...
; test to verify the creation of safety labels org #4000 call ___MDL_SAFETY_LABEL_1 jp ___MDL_SAFETY_LABEL_2 nop loop: ___MDL_SAFETY_LABEL_2: jp loop ___MDL_SAFETY_LABEL_1: ret
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/speech/extension_api/tts_engine_extension_api.h" #include <string> #include "base/json/json_writer.h" #include "base/values...
/** * Copyright (C) 2019-2020 * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writin...
; A194140: Sum{floor(j*(1+sqrt(3)) : 1<=j<=n}; n-th partial sum of Beatty sequence for 1+sqrt(3). ; 2,7,15,25,38,54,73,94,118,145,175,207,242,280,320,363,409,458,509,563,620,680,742,807,875,946,1019,1095,1174,1255,1339,1426,1516,1608,1703,1801,1902,2005,2111,2220,2332,2446,2563,2683,2805,2930,3058 mov $18,$0 mov $20,$...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1991 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: tsSmallGetText.asm AUTHOR: John Wedgwood, Nov 25, 1991 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date...
;;;nahi samajh aaye to puch lena;;; read_string: pusha mov byte[len],0 mov dword[size],0 mov eax,0 mov ebx,string read_loop: pusha mov eax,3 mov ebx,0 mov ecx,temp mov edx,1 int 80h popa cmp byte[temp],10 je end_read mov cl,byte[temp] cmp cl,' ' je inc_eax mov cl,byte[temp] mov byte[ebx+eax],cl inc eax inc byte[len]...
;----------------------------------------------- ; a: byte ; hl: target address in the VDP writeByteToVDP: push af call SETWRT ld a,(VDP.DW) ld c,a pop af out (c),a ret ;----------------------------------------------- ; a: byte ; bc: amount to write ; hl: target address in ...
; Copyright © 2020, VideoLAN and dav1d authors ; Copyright © 2020, Two Orioles, LLC ; All rights reserved. ; ; Redistribution and use in source and binary forms, with or without ; modification, are permitted provided that the following conditions are met: ; ; 1. Redistributions of source code must retain the above copy...
/* * Copyright (c) David Connet. All Rights Reserved. * * License: See License.txt */ /** * @file * @brief implementation of the CMainFrame class * @author David Connet * * Revision History * 2018-12-16 Convert to fmt. * 2015-09-30 Dbl-click on Filter status area invokes Preferences. * 2015-09-12 Clean up ...
// seed 4 lbi r0, 252 // icount 0 slbi r0, 66 // icount 1 lbi r1, 166 // icount 2 slbi r1, 175 // icount 3 lbi r2, 10 // icount 4 slbi r2, 50 // icount 5 lbi r3, 111 // icount 6 slbi r3, 182 // icount 7 lbi r4, 108 // icount 8 slbi r4, 206 // icount 9 lbi r5, 212 // icount 10 slbi r5, 143 // icount 11 lbi r6, 34 // ico...
// Copyright (c) 2020 The PIVX developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or https://www.opensource.org/licenses/mit-license.php. #include "legacy/validation_zerocoin_legacy.h" #include "consensus/zerocoin_verify.h" #include "libzerocoin/CoinSpend.h" #include "wa...
; Internal library routine for openwindow, opentitled & openpopup ; 26/3/00 GWL PUBLIC opwin include "stdio.def" .opwin ld hl,windef call_oz(gn_sop) ld a,(ix+10) ; window ID add a,'0' call_oz(os_out) ld a,(ix+8) ; tlx add a,$20 call_oz(os_out) ld a,(ix+6) ; tly add a,$20 call_oz(os_out) ld a,(ix+4) ; wi...
/** * Marlin 3D Printer Firmware * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General...
; A172137: Number of ways to place 2 nonattacking zebras on an n X n board ; 0,6,36,112,276,582,1096,1896,3072,4726,6972,9936,13756,18582,24576,31912,40776,51366,63892,78576,95652,115366,137976,163752,192976,225942,262956,304336,350412,401526,458032,520296,588696,663622,745476,834672,931636,1036806,1150632,1273576,1406...
db FURRET ; 162 db 85, 76, 64, 90, 45, 55 ; hp atk def spd sat sdf db NORMAL, NORMAL ; type db 90 ; catch rate db 116 ; base exp db BERRY, GOLD_BERRY ; items db GENDER_F50 ; gender ratio db 100 ; unknown 1 db 15 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/furret/front.dimensio...
// Copyright Aleksey Gurtovoy 2002-2004 // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // // See http://www.boost.org/libs/mpl for documentation. // $Id: map.cpp 49268 2008-10-11 06:26:17Z agurto...
/* * EDDL Library - European Distributed Deep Learning Library. * Version: 1.0 * copyright (c) 2021, Universitat Politècnica de València (UPV), PRHLT Research Centre * Date: November 2021 * Author: PRHLT Research Centre, UPV, (rparedes@prhlt.upv.es), (jon@prhlt.upv.es) * All rights reserved */ #include <cstdio> #incl...
; A163192: a(n) = 20*a(n-1)-93*a(n-2) for n > 1; a(0) = 1, a(1) = 10. ; Submitted by Jon Maiga ; 1,10,107,1210,14249,172450,2123843,26439010,331262801,4166428090,52521121307,662944613770,8374427993849,105834710796370,1337872412499443,16914820145926450,213874268556080801,2704407097550456170,34197834975293608907,43244683...
; A109338: Triangle read by rows: T(n,k) = number of inequivalent binary sequences of length n and weight k, where two sequences are said to be equivalent if they have the same set of phrases in their Ziv-Lempel encodings (the phrases can appear in a different order in the two sequences). ; 1,1,1,1,1,1,1,2,2,1,1,2,2,2,...
; ; ZX Spectrum specific routines ; by Stefano Bodrato, 12/02/2008 ; ; int zx_floatingbus(); ; ; The result is: ; - 1 (true) if Spectrum has floating bus ; - 0 (false) otherwise ; ; $Id: zx_floatingbus.asm,v 1.3 2016/06/10 20:02:05 dom Exp $ ; SECTION code_clib PUBLIC zx_floatingbus PUBLIC _zx_floatingbus zx_floa...
; void *p_forward_list_remove_callee(p_forward_list_t *list, void *item) SECTION code_adt_p_forward_list PUBLIC _p_forward_list_remove_callee _p_forward_list_remove_callee: pop af pop hl pop bc push af INCLUDE "adt/p_forward_list/z80/asm_p_forward_list_remove.asm"
;; ;; Copyright (c) 2012-2022, Intel Corporation ;; ;; Redistribution and use in source and binary forms, with or without ;; modification, are permitted provided that the following conditions are met: ;; ;; * Redistributions of source code must retain the above copyright notice, ;; this list of conditions and...
SECTION code_fp_math32 PUBLIC cm32_sdcc___fs2sint_callee PUBLIC cm32_sdcc___fs2schar_callee EXTERN m32_f2sint EXTERN cm32_sdcc_fsread1_callee cm32_sdcc___fs2sint_callee: cm32_sdcc___fs2schar_callee: call cm32_sdcc_fsread1_callee jp m32_f2sint
/* * Copyright (c) 2020 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r13 push %r8 push %rbx push %rcx push %rdi push %rsi lea addresses_UC_ht+0x77dc, %r10 sub %r8, %r8 vmovups (%r10), %ymm6 vextracti128 $1, %ymm6, %xmm6 vpextrq $0, %xmm6, %r13 nop nop nop nop nop and $25520, %r11 lea addresses_WC_ht+0x1bebc, %rsi lea...
; A147537: Numbers whose binary representation is the concatenation of 2n-1 digits 1 and n digits 0. ; 2,28,248,2032,16352,131008,1048448,8388352,67108352,536869888,4294965248,34359734272,274877898752,2199023239168,17592186011648,140737488289792,1125899906711552,9007199254478848,72057594037403648,576460752302374912,461...
; r1 = r2 = r3 ; r3 >= r2 ; r3 <= r4 in r1 in r2 in r3 in r4 ceq r1, r2 cout .1 candeq r2, r3 cout .1 candlt r2, r3 cout .0 coreq r1, r2 cout .1 candgt r3, r4 cout .0 ; r1 < r2 ; r2 >= r3 ; r3 < r4 in r1 in r2 in r3 in r4 corne r1, r2 cout .1 candge r2, r3 cout .1 corlt r3, r4 cout .1 cflip corgt r1, r2 c...
_lotteryTest1: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "stat.h" #include "user.h" int main(int argc, char *argv[]) { 0: 8d 4c 24 04 lea 0x4(%esp),%ecx 4: 83 e4 f0 and $0xfffffff0,%esp 7: ff 71 fc pushl -0x4(%ecx) a: ...
ErrorHandler___global__error_initconsole: label ErrorHandler+$146 ErrorHandler___global__errorhandler_setupvdp: label ErrorHandler+$234 ErrorHandler___global__console_loadpalette: label ErrorHandler+$A1A ErrorHandler___global__console_setposasxy_stack: label ErrorHandler+$A56 ErrorHandler___global__console_setposasxy: ...