text
stringlengths
1
1.05M
; A129543: Gray code ordering of the prime numbers. ; 2,3,7,5,17,19,13,11,41,43,53,47,31,37,29,23,97,101,107,103,127,131,113,109,73,79,89,83,67,71,61,59,227,229,239,233,257,263,251,241,283,293,311,307,277,281,271,269,179,181,193,191,211,223,199,197,157,163,173 seq $0,48724 ; Write n and 2n in binary and add them mod 2...
[GLOBAL _GrInitialize] [GLOBAL _GrShutdown] [GLOBAL _GrRefresh] [GLOBAL _GrGetSlotMap] [GLOBAL _GrGetClassMap] [GLOBAL _GrGetOEMClassMap] [GLOBAL _GrGetMaxIndex] [GLOBAL _GrGetMaxValue] [GLOBAL _GrGetValue] [GLOBAL _GrGetPackedValues] [GLOBAL _GrSetValue] [GLOBAL _GrGetVendorName] [GLOBAL _GrGetProductName] [GLOBAL _Gr...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r8 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0x4484, %rbx xor $5060, %rax mov $0x6162636465666768, %r8 movq %r8, %xmm2 vmovups %ymm2, (%rbx) nop add $17440, %rcx lea addresses_A_ht+0x15284, %rsi lea addresses_WT_ht+0x...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The WIRE developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php...
; A047531: Numbers that are congruent to {2, 3, 7} mod 8. ; 2,3,7,10,11,15,18,19,23,26,27,31,34,35,39,42,43,47,50,51,55,58,59,63,66,67,71,74,75,79,82,83,87,90,91,95,98,99,103,106,107,111,114,115,119,122,123,127,130,131,135,138,139,143,146,147,151,154,155,159,162,163,167,170,171,175,178,179,183,186,187,191,194,195,199,2...
; ; Tape save routine ; ; Stefano 31/5/2010 ; ; int __CALLEE__ tape_save_block_callee(void *addr, size_t len, unsigned char type) PUBLIC tape_save_block_callee PUBLIC ASMDISP_TAPE_SAVE_BLOCK_CALLEE .tape_save_block_callee pop ix pop bc pop de pop hl push ix ; enter : hl = addr ; de = len...
proc imp.msvcrt.dll!__p__acmdln Label_0040290C attrs [[jumponly]] # call_from : 004014C0 Label_0040290C: 0040290C: FF 25 B0 61 40 00 : jmp dword [0x4061b0] end proc
; A195030: a(n) = (n-2)*(14*n-39) for n > 2, otherwise a(n) = n. ; 0,1,2,3,34,93,180,295,438,609,808,1035,1290,1573,1884,2223,2590,2985,3408,3859,4338,4845,5380,5943,6534,7153,7800,8475,9178,9909,10668,11455,12270,13113,13984,14883,15810,16765,17748,18759,19798,20865,21960,23083,24234,25413,26620,27855,29118,30409,3172...
LDC r1 10 -loop SUBI r1 1 BNEZ -loop r1 MOV r2 r1
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r15 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x1fab, %r12 nop nop cmp $35617, %rcx movups (%r12), %xmm7 vpextrq $1, %xmm7, %r15 nop sub $37700, %rdx lea addresses_WC_ht+0x2bab, %rbx nop nop nop nop nop xor %rdi, %rdi mov...
%define SYS_EXIT 60 BITS 64 segment .text global main extern printf print: mov rdi, format ; set 1st parameter (format) mov rsi, rax ; set 2nd parameter (current_number) xor rax, rax ; because printf is varargs ; Stack is already al...
; asm_isprint XLIB asm_isprint LIB asm_isgraph ; determine if the char is printable ; enter : a = char ; exit : carry = not printable ; uses : f .asm_isprint cp 32 ret z jp asm_isgraph
#include <Arduboy.h> #include <string.h> #include "BallManager.h" #include "GameManager.h" #include "Ball.h" #include "Block.h" BallManager::BallManager(Arduboy *_arduboy) { arduboy = _arduboy; for (int i = 0; i < GameManager::MAX_BALL_BUFFER; i++) { if (balls[i] == NULL) continue; balls[i] = NULL; } } ...
#pragma once #include <li/sql/mysql_database.hh>
; A157739: a(n) = 388962*n^2 - 1764*n + 1. ; 387199,1552321,3495367,6216337,9715231,13992049,19046791,24879457,31490047,38878561,47044999,55989361,65711647,76211857,87489991,99546049,112380031,125991937,140381767,155549521,171495199,188218801,205720327,223999777,243057151,262892449,283505671,304896817,327065887,3500128...
#pragma once #include "IConverter.hpp" #include <string> class Ts2Xlsx : public IConverter { public: void convert(std::string &&filename, std::string &&output) override; };
_test1: file format elf32-i386 Disassembly of section .text: 00000000 <main>: int n = 1; void test_func(void *arg_ptr); int main(int argc, char *argv[]){ 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 e4 f0 and $0xfffffff0,%esp 6: 83 ec 20 ...
; char *fgets(char *s, int n, FILE *stream) INCLUDE "clib_cfg.asm" SECTION code_stdio ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; IF __CLIB_OPT_MULTITHREAD & $02 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PUBLIC fgets_callee EXTERN asm_fgets fgets_callee: pop af pop ix pop bc pop de push af jp asm_fgets ;;;;;;;...
/* * Copyright (c) 2017, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publi...
; A188014: a(n) = [nr]-[nr-kr]-[kr], where r=(1+sqrt(5))/2, k=4, [ ]=floor. ; 0,1,0,0,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,...
;------------------------------------------------------------------------------ ; ; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR> ; SPDX-License-Identifier: BSD-2-Clause-Patent ; ; Module Name: ; ; SetMem.nasm ; ; Abstract: ; ; SetMem function ; ; Notes: ; ;-------------------------...
; ; Copyright (c) 2010 The WebM project authors. All Rights Reserved. ; ; Use of this source code is governed by a BSD-style license ; that can be found in the LICENSE file in the root of the source ; tree. An additional intellectual property rights grant can be found ; in the file PATENTS. All contributing proje...
#pragma once #include <dpay/plugins/follow/follow_plugin.hpp> #include <dpay/plugins/json_rpc/json_rpc_plugin.hpp> #include <appbase/application.hpp> #define DPAY_FOLLOW_API_PLUGIN_NAME "follow_api" namespace dpay { namespace plugins { namespace follow { using namespace appbase; class follow_api_plugin : public a...
SECTION code_clib SECTION code_fp_math48 PUBLIC nextafter EXTERN cm48_sccz80_nextafter defc nextafter = cm48_sccz80_nextafter
; A229026: Expansion of 1/((1-x)*((1-5x)^2)*(1-8x)). ; Submitted by Jamie Morken(s1) ; 1,19,238,2490,23631,211509,1823908,15348100,127057261,1040261799,8453319978,68343722910,550640774491,4426107030889,35521389816448,284771933350920,2281370275767321,18267889925254779,146232526369201318,1170331087647336130,9365122293936...
.data str: .ascii "El resultado es: " num1: .word 4 num2: .word 5 .text main: #1.Leer dos números del usuario lw $a1, num1($zero) lw $a2, num2($zero) #2. Realizar la suma add $a3, $a1, $a2 #2.5 Añadir texto la $a0, str #3.Imprimir el resultado li $v0, 4 syscall move $a0, $a3 li $v0, 1 syscall #4.Salir del programa li...
; ; Copyright (c) 2014-2018, Linaro Limited. All rights reserved. ; ; SPDX-License-Identifier: BSD-2-Clause-Patent ; ; MU_CHANGE START ; Moving AREA under EXPORT and indenting needed to compile with Visual Studio ; Need to check if this breaks RVCT before contributing EXPORT MmioRead8Internal EXPORT ...
; A152551: a(n) = (2*n+1)^floor((n-1)/2). ; 1,1,1,7,9,121,169,3375,4913,130321,194481,6436343,9765625,387420489,594823321,27512614111,42618442977,2251875390625,3512479453921,208728361158759,327381934393961,21611482313284249,34050628916015625,2472159215084012303,3909821048582988049,309629344375621415601,4912589042567261...
; A277463: E.g.f.: sinh(x)/(1+LambertW(-x)). ; Submitted by Christian Krause ; 0,1,2,13,112,1321,19296,335637,6764864,154946449,3973820800,112789880413,3509627281920,118790978349369,4344883388878592,170767066282574821,7177162988688031744,321206181612447781921,15250250261039350358016,765586309042945067185581,40518259645...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r15 push %r8 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0x1ac3b, %r12 nop cmp $51299, %r8 mov (%r12), %r15w inc %rcx lea addresses_D_ht+0xad37, %rsi lea addresses_WC_ht+0xee37, %rdi clflush (%rdi) nop cmp %r12, %r12 mov $10, %rcx...
section .bss Result: resd 16 ; reserve space for cpuid results Vendor: resd 4 ; reserve for vendor string Brand: resd 13 ; reserve for brand name section .data Caption: db "CPUID Result", 0 ; window header placeholder VendorCap: db "Vendor ID...
; A055949: n - reversal of base 4 digits of n (written in base 10). ; 0,0,0,0,3,0,-3,-6,6,3,0,-3,9,6,3,0,15,0,-15,-30,15,0,-15,-30,15,0,-15,-30,15,0,-15,-30,30,15,0,-15,30,15,0,-15,30,15,0,-15,30,15,0,-15,45,30,15,0,45,30,15,0,45,30,15,0,45,30,15,0,63,0,-63,-126,51,-12,-75,-138,39,-24,-87,-150,27,-36,-99,-162,75,12,-51...
; A350050: a(n) = (2*n^4 - 6*(-1)^n*n^2 - 2*n^2 + 3*(-1)^n - 3)/96. ; Submitted by Christian Krause ; 0,0,0,2,4,14,24,52,80,140,200,310,420,602,784,1064,1344,1752,2160,2730,3300,4070,4840,5852,6864,8164,9464,11102,12740,14770,16800,19280,21760,24752,27744,31314,34884,39102,43320,48260,53200,58940,64680,71302,77924,8551...
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). #include "db/db_test_util.h" #include "test_util/sync_poi...
; A273319: a(n) = ((2*n+1)^(n+1) + (-1)^n)/(n+1)^2. ; Submitted by Jamie Morken(s2) ; 2,2,14,150,2362,49210,1280582,40045166,1464047858,61310662578,2894855376382,152184891889030,8817255144288554,558260148630165098,38351949989325264182,2841496569324942436830 mov $1,$0 add $1,1 add $0,$1 pow $0,$1 add $0,1 div $0,$1 div...
; A037793: Base 4 digits are, in order, the first n terms of the periodic sequence with initial period 3,2,1,0. ; Submitted by Christian Krause ; 3,14,57,228,915,3662,14649,58596,234387,937550,3750201,15000804,60003219,240012878,960051513,3840206052,15360824211,61443296846,245773187385,983092749540,3932370998163,157294...
; A309687: Number of odd parts appearing among the second largest parts of the partitions of n into 3 parts. ; 0,0,0,1,1,1,1,2,3,4,4,5,6,7,8,10,11,12,13,15,17,19,20,22,24,26,28,31,33,35,37,40,43,46,48,51,54,57,60,64,67,70,73,77,81,85,88,92,96,100,104,109,113,117,121,126,131,136,140,145,150,155,160,166 mov $1,1 lpb $0 ...
; A135072: Minimal values of m associated with A135061. ; 1,3,4,6,9,13,15,19,23,28,36,37,44,50,52,57,63,73,78,87,90,96,104,109,115,123,133,139,147,157,162,169,178,189,195,202,212,224,230,251,248,260,278,284,294,310,309,316,325,337,351,371,376,385,399,401,419,427,437,451,469,472,480,490,503,519,540,545,554,567,582,603,6...
; A011546: Decimal expansion of Pi rounded to n places. ; Submitted by Jamie Morken(s3) ; 3,31,314,3142,31416,314159,3141593,31415927,314159265,3141592654,31415926536,314159265359,3141592653590,31415926535898,314159265358979,3141592653589793,31415926535897932,314159265358979324,3141592653589793238,31415926535897932385 ...
; Generate references to any portions of i2c2 ; code that must be part of every compile that ; uses the i2c2. PUBLIC asm_i2c2_need EXTERN __i2c2ControlEcho DEFC asm_i2c2_need = __i2c2ControlEcho
#ifndef STAN_MATH_PRIM_MAT_ERR_CHECK_RANGE_HPP #define STAN_MATH_PRIM_MAT_ERR_CHECK_RANGE_HPP #include <stan/math/prim/meta.hpp> #include <stan/math/prim/scal/err/out_of_range.hpp> #include <sstream> #include <string> namespace stan { namespace math { /** * Check if specified index is within range. * This check is...
; A266666: Triangle read by rows giving successive states of cellular automaton generated by "Rule 51" initiated with a single ON (black) cell. ; 1,1,0,1,0,0,1,0,0,1,1,1,0,1,1,1,0,0,0,0,1,0,0,0,0,1,1,1,1,1,0,1,1,1,1,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,...
; ; ANSI Video handling for the CCE-MC1000 ; By Stefano Bodrato - March 2013 ; ; Text Attributes ; m - Set Graphic Rendition ; ; The most difficult thing to port: ; Be careful here... ; ; ; $Id: f_ansi_attr.asm,v 1.3 2016-06-12 16:06:42 dom Exp $ ; SECTION code_clib PUBLIC ansi_attr EXTERN INVRS EXTERN ...
; A138587: The union of all entries of A024495, A131708 and A024493 sorted into natural order. ; Submitted by Simon Strandgaard ; 0,1,2,3,5,6,10,11,21,22,42,43,85,86,170,171,341,342,682,683,1365,1366,2730,2731,5461,5462,10922,10923,21845,21846,43690,43691,87381,87382,174762,174763,349525,349526,699050,699051,1398101,13...
// // Copyright (c) 2019 Tatsuya Kobayashi // All rights reserved. // // 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 co...
; A227053: a(n) = (n^3)! / (n^3-n)! = number of ways of placing n labeled balls into n^3 labeled boxes with at most one ball in each box. ; Submitted by Jon Maiga ; 1,1,56,17550,15249024,28143753000,94689953674560,525169893772283760,4469844204191484518400,55337211594165488805417600,955860613004397508326213120000,222825...
kp_song kp_reloc dc.w kp_song_registers dc.w kp_speed dc.w kp_grooveboxpos dc.w kp_grooveboxlen dc.w kp_groovebox dc.w kp_patternlen dc.w kp_patternmap_lo dc.w kp_patternmap_hi dc.w kp_insmap_lo dc.w kp_insmap_hi dc.w kp_volmap_lo dc.w kp_volmap_hi dc.w kp_sequence kp_song_registers kp_speed dc.b $02 kp_g...
; A192952: Coefficient of x in the reduction by x^2 -> x+1 of the polynomial p(n,x) defined at Comments. ; 0,1,2,7,16,33,62,111,192,325,542,895,1468,2397,3902,6339,10284,16669,27002,43723,70780,114561,185402,300027,485496,785593,1271162,2056831,3328072,5384985,8713142,14098215,22811448,36909757,59721302,96631159 lpb $...
db 0 ; species ID placeholder db 40, 29, 45, 36, 29, 45 ; hp atk def spd sat sdf db BUG, BUG ; type db 120 ; catch rate db 45 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F50 ; gender ratio db 100 ; unknown 1 db 15 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/burmy_s/front....
lui $1,34649 ori $1,$1,14131 lui $2,21595 ori $2,$2,57326 lui $3,53304 ori $3,$3,58400 lui $4,9519 ori $4,$4,60147 lui $5,39787 ori $5,$5,50632 lui $6,51149 ori $6,$6,26772 mthi $1 mtlo $2 sec0: nop nop nop slt $3,$6,$6 sec1: nop nop addu $6,$3,$6 slt $5,$6,$6 sec2: nop nop andi $6,$3,41869 slt $3,$6,$6 sec...
#include "Logger.hpp" namespace yaodaq { Logger::Logger(const std::string& name, const std::string& type) : Module(name,type,yaodaq::CLASS::Logger) { skipConfigFile(); } };
; A277450: a(1) = 1, a(n) = floor(n*Sum_{k=1..n-1} a(k)/2^k - Sum_{k=1..n-1} a(k)) for n > 1. ; 1,0,0,1,0,1,1,0,1,0,1,1,0,1,0,1,1,0,1,0,1,0,1,1,0,1,0,1,1,0,1,0,1,1,0,1,0,1,0,1,1,0,1,0,1,1,0,1,0,1,1,0,1,0,1,0,1,1,0,1,0,1,1,0,1,0,1,1,0,1,0,1,0,1,1,0,1,0,1,1,0,1,0,1,1,0,1 mov $7,2 mov $9,$0 lpb $7 mov $0,$9 sub $7,1 ...
; A010936: Binomial coefficient C(20,n). ; 1,20,190,1140,4845,15504,38760,77520,125970,167960,184756,167960,125970,77520,38760,15504,4845,1140,190,20,1 mov $1,20 bin $1,$0 mov $0,$1
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r14 push %r8 push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x1e057, %rsi lea addresses_normal_ht+0x18fd7, %rdi nop inc %r14 mov $67, %rcx rep movsb nop nop nop xor %rdx, %rdx lea addresses_D_ht+0x15697, %rsi lea addresses_A_ht+0x1e508, ...
; A092242: Numbers that are congruent to {5, 7} mod 12. ; 5,7,17,19,29,31,41,43,53,55,65,67,77,79,89,91,101,103,113,115,125,127,137,139,149,151,161,163,173,175,185,187,197,199,209,211,221,223,233,235,245,247,257,259,269,271,281,283,293,295,305,307,317,319,329,331 mov $1,$0 div $0,2 mul $0,4 add $1,$0 mul $1,2 add $1,5...
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.16.27026.1 TITLE z:\sources\lunor\repos\rougemeilland\palmtree.math.core.sint\palmtree.math.core.sint\pmc_clone.c .686P .XMM include listing.inc .model flat INCLUDELIB OLDNAMES PUBLIC _PMC_Clone_X@8 END
;****************************************************************************** ;* x86-optimized input routines; does shuffling of packed ;* YUV formats into individual planes, and converts RGB ;* into YUV planes also. ;* Copyright (c) 2012 Ronald S. Bultje <rsbultje@gmail.com> ;* ;* This file is part of Libav. ;* ;* L...
; int ffsll(long long i) SECTION code_clib SECTION code_string PUBLIC _ffsll EXTERN asm_ffsll _ffsll: pop af pop hl pop de exx pop hl pop de push de push hl exx push de push hl push af jp asm_ffsll
#ifndef COMP6771_EUCLIDEAN_VECTOR_HPP #define COMP6771_EUCLIDEAN_VECTOR_HPP #include <compare> #include <functional> #include <list> #include <memory> #include <ostream> #include <range/v3/algorithm.hpp> #include <range/v3/iterator.hpp> #include <span> #include <stdexcept> #include <string> #include <string_view> #inc...
; A288937: Positions of 0 in A288936; complement of A288938. ; Submitted by Jon Maiga ; 1,2,4,5,8,11,15,20,26,33,41,50,60,71,83,96,110,125,141,158,176,195,215,236,258,281,305,330,356,383,411,440,470,501,533,566,600,635,671,708,746,785,825,866,908,951,995,1040,1086,1133,1181,1230,1280,1331,1383,1436,1490,1545,1601,1658,...
* Set default or given channel V0.4 PUBLIC DOMAIN by Tony Tebby QJUMP * * call parameters : a3 and a5 standard pointers to name table for parameters * : d6 channel number * return parameters : d4 pointer to channel table * : d6 channel number * a0 channel id * section utils * xdef ut_chan defau...
; A052468: Numerators in the Taylor series for arccosh(x) - log(2*x). ; 1,3,5,35,63,77,429,6435,12155,46189,88179,676039,1300075,5014575,646323,300540195,583401555,756261275,4418157975,6892326441,22427411435,263012370465,514589420475,2687300306925,15801325804719,61989816618513,121683714103007,136583760727865,1879204156...
; A198834: Number of sequences of n coin flips that win on the last flip, if the sequence of flips ends with (0,1,1) or (1,1,1). ; 0,0,2,2,4,6,10,16,26,42,68,110,178,288,466,754,1220,1974,3194,5168,8362,13530,21892,35422,57314,92736,150050,242786,392836,635622,1028458,1664080,2692538,4356618,7049156,11405774,18454930,2...
/* ; Project: Open Vehicle Monitor System ; Date: 5th July 2018 ; ; Changes: ; 1.0 Initial release ; ; (C) 2011 Michael Stegen / Stegen Electronics ; (C) 2011-2018 Mark Webb-Johnson ; (C) 2011 Sonny Chen @ EPRO/DX ; ; Permission is hereby granted, free of charge, to an...
/* * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. */ #include "bgp/rtarget/rtarget_address.h" #include "base/logging.h" #include "testing/gunit.h" using namespace std; class RouteTargetTest : public ::testing::Test { }; TEST_F(RouteTargetTest, ByteArrayType0_1) { RouteTarget::bytes_type dat...
#include "VecD.hpp" #include "VecF.hpp" #include "Str.hpp" #include <Util/CoutBuf.hpp> #include <Util/PimplDeleter.hpp> #include <Statistical/VectorD.hpp> #include <Statistical/Assertions.hpp> using namespace EnjoLib; struct VecD::Impl { Impl() {} Impl(const std::vector<double> & init) : dat(init) {} I...
;=============================================================================== ;- Programm: ;- ;- Dateinname: .asm ;- Version: 1.0 ;- Autor: Benj Fassbind ;- ;- Verwendungszweck: uP-Schulung ;- ;- Beschreibung: ;- ;- ;- ;- Entwicklungsablauf: ;- Ver: Datum: Autor: Entwicklungsschritt: ...
; A125592: Evil numbers (A001969) multiplied by 2. ; 0,6,10,12,18,20,24,30,34,36,40,46,48,54,58,60,66,68,72,78,80,86,90,92,96,102,106,108,114,116,120,126,130,132,136,142,144,150,154,156,160,166,170,172,178,180,184,190,192,198,202,204,210,212,216,222,226,228,232,238 mul $0,2 mov $1,$0 seq $1,10060 ; Thue-Morse sequence...
; A158272: 324n + 1. ; 325,649,973,1297,1621,1945,2269,2593,2917,3241,3565,3889,4213,4537,4861,5185,5509,5833,6157,6481,6805,7129,7453,7777,8101,8425,8749,9073,9397,9721,10045,10369,10693,11017,11341,11665,11989,12313,12637,12961,13285,13609,13933,14257,14581,14905,15229,15553,15877,16201,16525,16849,17173,17497,17821,...
/* Licensed under the MIT license. Made for Haiku. */ #include <Screen.h> #include <String.h> #include "ForecastDayView.h" #include "ForecastView.h" ForecastDayView::ForecastDayView(BRect frame) : BView(frame, "ForecastDayView", B_FOLLOW_NONE, B_WILL_DRAW | B_FRAME_EVENTS), fHigh(0), fLow(0), fIco...
; BeepFX sound effect by shiru ; http://shiru.untergrund.net SECTION rodata_sound_bit PUBLIC _bfx_22 _bfx_22: ; Boom_3 defb 2 ;noise defw 8,200,20 defb 2 ;noise defw 4,2000,5220 defb 0
; A084174: a(n) = 3*a(n-1) - a(n-2) - 3*a(n-3) + 2*a(n-4). ; 1,1,3,6,14,29,61,124,252,507,1019,2042,4090,8185,16377,32760,65528,131063,262135,524278,1048566,2097141,4194293,8388596,16777204,33554419,67108851,134217714,268435442,536870897,1073741809,2147483632,4294967280,8589934575,17179869167,34359738350,68719476718,13...
;++ ; ;Copyright (c) 1995 Microsoft Corporation ; ;Module Name: ; ; bioschk.asm ; ;Abstract: ; ; The code in this "image" is responsible for checking if is appropriate ; for us to start setupldr.bin. We consider this appropriate when we pass ; BIOS checkings. Setupldr.bin is binary appended at the end of t...
; Z180 utility routines ; Copyright 2020 J.B. Langston ; ; Permission is hereby granted, free of charge, to any person obtaining a ; copy of this software and associated documentation files (the "Software"), ; to deal in the Software without restriction, including without limitation ; the rights to use, copy, modify...
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
;======================================= ; ; MSU-1 Enhanced Audio Patch ; Zelda no Densetsu - Kamigami no Triforce ; Modified for VT Randomizer ; ; Author: qwertymodo ; ; Track List: ; ; 1 - Title ~ Link to the Past ; 2 - Hyrule Field ; 3 - Time of Falling Rain ; 4 - The Silly Pink Rabbit ; 5 - Forest of Mystery ;...
.MODEL SMALL .STACK 100H .DATA MSG1 DB 'ENTER A STRING: $' MSG2 DB 0DH,0AH,'NUMBER OF VOWELS $' S DB 50 DUP<'$'> .CODE MAIN PROC MOV AX,@DATA MOV DS,AX LEA DX,MSG1 MOV AH,9 INT 21H MOV SI,OFFSET S INPUT: MOV AH,1 INT 21H CMP AL,13 JE L1 MOV [SI],AL...
// // Copyright (C) 2022 Patrick Rotsaert // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE or copy at // http://www.boost.org/LICENSE_1_0.txt) // #include "squid/preparedstatement.h" #include "squid/connection.h" #include "squid/ibackendconnection.h" #include "squid/iback...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r8 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x18068, %rdx nop nop nop sub $43529, %r12 mov $0x6162636465666768, %r11 movq %r11, (%rdx) nop nop nop inc %rax lea addresses_A_ht+0x14052, %rax nop nop and $42929, %rsi mov $0...
; ; Windows x64 Kernel Get ETHREAD.ThreadListEntry Delta ; ; Author: Sean Dillon <sean.dillon@risksense.com> (@zerosum0x0) ; Copyright: (c) 2017 RiskSense, Inc. ; License: Apache 2.0 ; ; Based on EQGRP code ; ; Arguments: r15 = base of nt ; Clobbers: RAX, RSI, RCX ; Return: RCX = delta offset ; THREADLISTHEAD_OFFSET ...
; A202196: Number of (n+2) X 4 binary arrays avoiding patterns 001 and 101 in rows and columns. ; 240,640,1400,2688,4704,7680,11880,17600,25168,34944,47320,62720,81600,104448,131784,164160,202160,246400,297528,356224,423200,499200,585000,681408,789264,909440,1042840,1190400,1353088,1531904,1727880,1942080,2175600,24295...
db 0 ; 351 DEX NO db 70, 70, 70, 70, 70, 70 ; hp atk def spd sat sdf db FIRE, FIRE ; type db 45 ; catch rate db 145 ; base exp db MYSTIC_WATER, MYSTIC_WATER ; items db GENDER_F50 ; gender ratio db 100 ; unknown 1 db 25 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/hoenn/castform/f...
GFX_QUEUE_LIMIT EQU 10 GFX_QUEUE_LENGTH EQU 2 + 2 + 1 SECTION "Gfx Queue WRAM", WRAM0 wGfxQueue: ds 1 ds GFX_QUEUE_LENGTH * GFX_QUEUE_LIMIT SECTION "Gfx Queue", ROM0 QueueGfx:: ; a: length ; bc: source ; de: dest push hl .add ld hl, wGfxQueue + 1 push af ld a, [wGfxQueue] and a jr z, .ok cp GFX_QUEUE_...
#include "iline/iline.hpp" int main() { icl::ReadLine cmd; while (char* c = cmd.getchar()){ if (c[0] == 'q') break; } return 0; }
\ LCD FUNCTIONS -- funcs_lcd.asm ----------------------------------------------- \ ------------------------------------------------------------------------------ \ --- LCD_CLEAR_BUF \ ------------------------------------------------------------------------------ \ Fill the LCD buffer with spaces .lcd_clear_buf ldy ...
.MODEL SMALL .STACK 100H .DATA STRING DB 100 DUP(?) MSG1 DB "ENTER A STRING: $" MSG2 DB 0DH, 0AH, "TOTAL NUMBER OF VOWELS: $" VOWELS DW 0 .CODE MAIN PROC MOV AX, @DATA MOV DS, AX MOV ES, AX MOV AH, 9 LEA DX, MSG1 ;Print MSG1 INT 21H LEA ...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x1582d, %rcx and $29440, %rbp mov (%rcx), %edx nop nop nop nop inc %rbp lea addresses_WT_ht+0x1d3ed, %rsi lea addresses_WC_ht+0x6c0d, %rdi nop nop nop nop and %r11, %r11 mov $105, %rcx...
; A033890: a(n) = Fibonacci(4*n+2). ; 1,8,55,377,2584,17711,121393,832040,5702887,39088169,267914296,1836311903,12586269025,86267571272,591286729879,4052739537881,27777890035288,190392490709135,1304969544928657,8944394323791464,61305790721611591 mul $0,2 mov $1,1 mov $2,1 lpb $0 sub $0,1 add $2,$1 add $1,$2 lpe
; A126275: Moment of inertia of all magic squares of order n. ; 5,60,340,1300,3885,9800,21840,44280,83325,147620,248820,402220,627445,949200,1398080,2011440,2834325,3920460,5333300,7147140,9448285,12336280,15925200,20345000,25742925,32284980,40157460,49568540,60749925,73958560,89478400,107622240,128733605,153188700,181...
; A081908: a(n) = 2^n*(n^2 - n + 8)/8. ; 1,2,5,14,40,112,304,800,2048,5120,12544,30208,71680,167936,389120,892928,2031616,4587520,10289152,22937600,50855936,112197632,246415360,538968064,1174405120,2550136832,5519704064,11911823360,25635586048,55029268480,117843165184,251792457728,536870912000,1142461300736,24266565222...
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// // Copyright (c) 2017-19, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/COPYRIGHT file for details. // // SPDX-License-Identifier: (BSD-3-Clause) //~~~~~~~~~~~~~~~~~~~~~~~~...
; A112415: a(n) = C(1+n,1) * C(2+n,1) * C(4+n,2). ; 12,60,180,420,840,1512,2520,3960,5940,8580,12012,16380,21840,28560,36720,46512,58140,71820,87780,106260,127512,151800,179400,210600,245700,285012,328860,377580,431520,491040,556512,628320,706860,792540,885780,987012,1096680,1215240,1343160,1480920,1629012,1787940,1958...
; A283070: Sierpinski tetrahedron or tetrix numbers: a(n) = 2*4^n + 2. ; 4,10,34,130,514,2050,8194,32770,131074,524290,2097154,8388610,33554434,134217730,536870914,2147483650,8589934594,34359738370,137438953474,549755813890,2199023255554,8796093022210,35184372088834,140737488355330,562949953421314,2251799813685250,9007...
.global s_prepare_buffers s_prepare_buffers: push %r14 push %rbx push %rcx push %rdi push %rsi lea addresses_UC_ht+0x17325, %rsi lea addresses_UC_ht+0x1b8cd, %rdi nop add $38176, %r14 mov $102, %rcx rep movsq nop nop inc %r14 lea addresses_UC_ht+0x5425, %rsi lea addresses_WC_ht+0x925, %rdi nop nop nop cmp %rbx, %rbx mo...
;***************************************************************************** ;* checkasm-a.asm: assembly check tool ;***************************************************************************** ;* Copyright (C) 2008-2016 x264 project ;* ;* Authors: Loren Merritt <lorenm@u.washington.edu> ;* Henrik Gramner <...
;* ;* Gameboy Hardware definitions ;* ;* Based on Jones' hardware.inc ;* And based on Carsten Sorensen's ideas. ;* ;* Rev 1.1 - 15-Jul-97 : Added define check ;* Rev 1.2 - 18-Jul-97 : Added revision check macro ;* Rev 1.3 - 19-Jul-97 : Modified for RGBASM V1.05 ;* Rev 1.4 - 27-Jul-97 : Modified for new subroutine prefi...
/* Redis Sentinel implementation * * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of sou...
;Testname=avx512pf; Arguments=-fbin -oavx512pf.bin -O0 -DSRC; Files=stdout stderr avx512pf.bin ; AVX-512PF testcases from gas ;------------------------ ; ; This file is taken from there ; https://gnu.googlesource.com/binutils/+/master/gas/testsuite/gas/i386/x86-64-avx512pf-intel.d ; So the original author is ...
.686P .model flat,c ExitProcess proto stdcall :dword includelib kernel32.lib printf proto c :vararg includelib libcmt.lib includelib legacy_stdio_definitions.lib .data lpFmt db "%d",0ah, 0dh, 0 .stack 200 .code main proc ; eax=0; for (ebx=1;ebx<=100;ebx++) eax=eax+ebx; mov eax, 0 mov eb...
; SECTION .data hello_add : DB '3 + 2 = ', 10 ; Hello world!’ плюс символ возврата каретки helloLen : EQU $-hello_add ; Длина строки ’3 + 2 = ’ SECTION .text ; Начало секции кода GLOBAL _start ; Метка _start должна быть глобальной, ; чтобы линкер смог её найти и сделать ; т...