text
stringlengths
1
1.05M
// Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2015-2018 The PIVX developers // Copyright (c) 2019 The GHRCoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "activemasternode.h" #inc...
; A018240: Number of rational knots (or two-bridge knots) with n crossings (up to mirroring). ; 1,1,2,3,7,12,24,45,91,176,352,693,1387,2752,5504,10965,21931,43776,87552,174933,349867,699392,1398784,2796885,5593771,11186176,22372352,44741973,89483947,178962432,357924864,715838805,1431677611,2863333376,5726666752,1145328...
; ; Memotech MTX stdio ; ; getkey() Wait for keypress ; ; Stefano Bodrato - Aug. 2010 ; ; ; $Id: fgetc_cons.asm,v 1.2 2015/01/19 01:33:20 pauloscustodio Exp $ ; PUBLIC fgetc_cons .fgetc_cons call $79 jr z,fgetc_cons ld h,0 ld l,a ret
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r15 push %r9 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x14115, %rdx nop nop nop xor %r10, %r10 movb $0x61, (%rdx) xor $25081, %rbx lea addresses_WT_ht+0x2bef, %r12 nop nop nop nop cmp $24409, %rbx movb (%r12), %r9b nop n...
; A242127: Primes modulo 29. ; 2,3,5,7,11,13,17,19,23,0,2,8,12,14,18,24,1,3,9,13,15,21,25,2,10,14,16,20,22,26,11,15,21,23,4,6,12,18,22,28,5,7,17,19,23,25,8,20,24,26,1,7,9,19,25,2,8,10,16,20,22,3,17,21,23,27,12,18,28,1,5,11,19,25,2,6,12,20,24,3,13,15,25,27,4,8,14,22,26,28,3,15,23,27,6,10,16,28,1,19 seq $0,40 ; The prim...
; A111113: a(2^m) = 1, a(2^m+1) = -1 (m>0), otherwise a(n) = 0. ; 0,0,1,-1,1,-1,0,0,1,-1,0,0,0,0,0,0,1,-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 lpb $0 sub $0,1 sub $2,$3 add $3,1 bin ...
; A051411: a(n+1) = a(n) + sum of digits of a(n)^3. ; Submitted by Jamie Morken(s2) ; 7,17,34,53,88,116,151,179,214,242,277,305,340,359,403,440,466,503,538,575,610,638,682,719,772,818,853,890,925,962,1006,1034,1060,1079,1114,1160,1195,1250,1276,1322,1357,1412,1456,1502,1546,1592,1645,1673,1717 mov $1,5 mov $3,$0 add $...
; A141996: Primes congruent to 20 mod 29. ; 107,223,281,397,571,919,977,1093,1151,1499,1789,1847,2137,2311,2543,2659,2833,3181,3413,3529,3761,3877,4051,4283,4457,5153,5443,5501,5791,5849,6197,6661,6719,7589,7879,7937,8053,8111,8807,8923,9619,9677,9851,9967,10141,10663,10837,11069,11243,11939,12113,12577,12809,12983,130...
/** * 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...
; A044682: Numbers n such that string 5,5 occurs in the base 9 representation of n but not of n+1. ; 50,131,212,293,374,458,536,617,698,779,860,941,1022,1103,1187,1265,1346,1427,1508,1589,1670,1751,1832,1916,1994,2075,2156,2237,2318,2399,2480,2561,2645,2723,2804,2885,2966,3047,3128 mov $4,$0 mul $0,8 add $0,5 mov $7,8...
; A099816: Bisection of A000796 (decimal expansion of Pi). ; 3,4,5,2,5,5,9,9,2,8,6,6,3,8,2,9,0,8,4,9,1,9,9,3,5,0,8,0,7,9,4,9,3,7,1,4,6,8,2,8,9,6,8,3,8,5,4,1,7,6,9,2,4,0,6,1,2,2,0,6,7,9,8,4,0,5,0,8,2,1,2,3,9,0,1,8,8,1,7,5,2,4,0,7,1,3,5,1,0,5,9,4,6,2,4,9,4,3,3,1 mul $0,2 seq $0,796 ; Decimal expansion of Pi (or digits o...
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r10 push %r15 push %r8 push %rcx push %rdi push %rdx push %rsi // REPMOV lea addresses_UC+0x4748, %rsi lea addresses_D+0x15948, %rdi nop sub $5372, %rdx mov $109, %rcx rep movsb and $51554, %r8 // Store mov $0x320, %rsi n...
; $Id: bit_synth_mwr.asm,v 1.2 2015/01/19 01:32:44 pauloscustodio Exp $ ; ; void bit_synth(int duration, int frequency1, int frequency2, int frequency3, int frequency4); ; ; 1 bit sound library - version for "memory write" I/O architectures ; ; synthetizer - this is a sort of "quad sound" routine. ; It is based on 4 se...
; A332476: The number of unitary divisors of n in Gaussian integers. ; Submitted by Christian Krause ; 1,2,2,2,4,4,2,2,2,8,2,4,4,4,8,2,4,4,2,8,4,4,2,4,4,8,2,4,4,16,2,2,4,8,8,4,4,4,8,8,4,8,2,4,8,4,2,4,2,8,8,8,4,4,8,4,4,8,2,16,4,4,4,2,16,8,2,8,4,16,2,4,4,8,8,4,4,16,2,8,2,8,2,8,16,4,8,4,4,16,8,4,4,4,8,4,4,4,4,8 add $0,1 ...
frame 1, 10 frame 2, 10 frame 3, 25 frame 2, 10 endanim
#include "Model.h" #include"include_globals.h" #include "light.h" extern const unsigned int WIDTH; extern const unsigned int HEIGHT; extern float ZNEAR,ZFAR,XLEFT,XRIGHT,YUP,YDOWN; extern Light* LLight; extern Camera* camera; #define VERT_INDICES_MODE false void Model::draw() { //drawWireframe_model(ftriangles)...
// Copyright 2005, Google Inc. // 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 con...
/** * Copyright (C) 2014 MongoDB Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be usef...
_cat: file format elf32-i386 Disassembly of section .text: 00000000 <cat>: char buf[512]; void cat(int fd) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 ec 28 sub $0x28,%esp int n; while((n = read(fd, buf, sizeof(buf))) > 0) 6: eb 1b ...
// redbox, 2021 #include "InstancedPluginEditorCommands.h" #define LOCTEXT_NAMESPACE "FInstancedPluginEditorModule" void FInstancedPluginEditorCommands::RegisterCommands() { UI_COMMAND(PluginCommand0, "Convert static meshes to instances", "Replace selected StaticMeshActors or actors containing StaticMeshCompone...
InternalClockTradeAnim: ; Do the trading animation with the player's gameboy on the left. ; In-game trades and internally clocked link cable trades use this. ld a, [wTradedPlayerMonSpecies] ld [wLeftGBMonSpecies], a ld a, [wTradedEnemyMonSpecies] ld [wRightGBMonSpecies], a ld de, InternalClockTradeFuncSequence jr...
processor 6502 ORG $2000 + 8000 include "player_const.asm" include "soundfxinterface.asm" include "soundfxinstruments.asm"
; ; z88dk library: Generic VDP support code ; ; int msx_vram(); ; ; Detects the VRAM size (in KB) ; ; $Id: gen_vram.asm,v 1.1 2010/06/30 13:21:38 stefano Exp $ ; XLIB msx_vram INCLUDE "msx/vdp.inc" msx_vram: ld hl,VRAM_SIZE ret
<<<<<<< HEAD ;/* ; * FreeRTOS Kernel <DEVELOPMENT BRANCH> ; * Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. ; * ; * SPDX-License-Identifier: MIT ; * ; * Permission is hereby granted, free of charge, to any person obtaining a copy of ; * this software and associated documentation fi...
.data inp: .asciiz "Enter some capital alphabet: " out: .asciiz "\nThe lower alphabet is: " .text .globl main .ent main main: # print input message li $v0, 4 la $a0, inp syscall # get character input li $v0, 12 syscall move $t0, $v0 #calculatio...
; A339051: Even bisection of the infinite Fibonacci word A096270. ; 0,0,1,1,1,0,1,1,1,0,0,1,1,0,0,1,1,0,0,1,1,1,0,1,1,1,0,0,1,1,0,0,1,1,0,0,1,1,1,0,1,1,1,0,1,1,1,0,0,1,1,0,0,1,1,1,0,1,1,1,0,1,1,1,0,0,1,1,0,0,1,1,1,0,1,1,1,0,1,1,1,0,0,1,1,0 mul $0,2 add $0,1 seq $0,189661 ; Fixed point of the morphism 0->010, 1->10 sta...
ORG 0H; LJMP MAIN; MAIN: MOV TMOD, #01H; MOV P1, #0FFH; START: MOV A, #20H; LOWER BYTE CPL A; ADD A, #1D; MOV R0, A; MOV A, #4EH; UPPER BYTE ACALL CHECK_CARRY; MOV R2, #200D; CPL P1.4; CPL P1.5; CPL P1.6; CPL P1.7; ACALL DELAY; CPL P1.4; CPL P1.5; CPL P1.6; CPL P1.7; MOV R2, #200D; A...
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and Freie Universit...
; A285684: Characteristic sequence of the Beatty sequence, A022838, of sqrt(3). ; 0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,...
softwares/hello/output/hello.merl: file format elf32-littleriscv Disassembly of section .init: 20000000 <_start>: 20000000: 00000297 auipc t0,0x0 20000004: 02828293 addi t0,t0,40 # 20000028 <_stext> 20000008: 30529073 csrw mtvec,t0 2000000c: f0000197 auipc gp,0xf0000 2000...
#define PJ_LIB__ #include <errno.h> #include <math.h> #include "proj.h" #include "proj_internal.h" PROJ_HEAD(col_urban, "Colombia Urban") "\n\tMisc\n\th_0="; // Notations and formulas taken from IOGP Publication 373-7-2 - // Geomatics Guidance Note number 7, part 2 - March 2020 namespace { // anonymous namespa...
%define ICW_1 0x11 ; 00010001 binary. Enables initialization mode and we are sending ICW 4 %define PIC_1_CTRL 0x20 ; Primary PIC control register %define PIC_2_CTRL 0xA0 ; Secondary PIC control register %define PIC_1_DATA 0x21 ; Primary PIC data register %define PIC_2_DATA 0xA1 ; Secondary PIC dat...
// Signum.asm // Computes: if R0 > 0: // R1 = 1 // else: // R1=0 @R0 D=M @POSITIVE D;JGT @R1 M=0 @END 0;JMP (POSITIVE) @R1 M=1 (END) @END 0;JMP
;------------------------------------------------------------------------------ ; Z88DK Z80 Macro Assembler ; ; DAA emulation for Rabbit - based on the Fuse implementation ; ; Copyright (C) Paulo Custodio, 2011-2017 ; License: The Artistic License 2.0, http://www.perlfoundation.org/artistic_license_2_0 ; Repository: ht...
BITS 16 start: mov ax, 07C0h ; Set up 4K stack space after this bootloader add ax, 288 ; (4096 + 512) / 16 bytes per paragraph mov ss, ax mov sp, 4096 mov ax, 07C0h ; Set data segment to where we're loaded mov ds, ax mov si, text_string ; Put string position into SI call print_string ; Call our string-p...
// ----------------------------------------------------------------------------------------------------- // Copyright (c) 2006-2020, Knut Reinert & Freie Universität Berlin // Copyright (c) 2016-2020, Knut Reinert & MPI für molekulare Genetik // This file may be used, modified and/or redistributed under the terms of th...
; struct sp1_update *sp1_GetUpdateStruct(uchar row, uchar col) SECTION code_clib SECTION code_temp_sp1 PUBLIC sp1_GetUpdateStruct EXTERN asm_sp1_GetUpdateStruct sp1_GetUpdateStruct: ld hl,2 add hl,sp ld e,(hl) inc hl inc hl ld d,(hl) jp asm_sp1_GetUpdateStruct
; A121633: Sum of the bottom levels of the last column over all deco polyominoes of height n. A deco polyomino is a directed column-convex polyomino in which the height, measured along the diagonal, is attained only in the last column. ; Submitted by Jon Maiga ; 0,0,1,9,68,527,4408,40303,403046,4393339,51955528,6633831...
ld hl,end End ; mixed case = label (not directive) .end ALIGN ; .END should not work at first column, not even with --dirbol enabled end DUP 2 ; END should not work at first column, not even with --dirbol enabled nop ; but other directive on the same line (ALIGN, DUP abov...
ifdef Vasm macro ScreenStartDrawing endm macro ScreenStopDrawing endm else endif ifdef BuildMSX read "..\srcMSX\V1_VdpMemory_Header.asm" endif ifdef BuildCPC ifdef V9K read "..\srcMSX\V1_VdpMemory_Header.asm" endif endif
; A122088: Add 10, subtract 5, add 10, subtract 5, ad infinitum. ; 1,11,6,16,11,21,16,26,21,31,26,36,31,41,36,46,41,51,46,56,51,61,56,66,61,71,66,76,71,81,76,86,81,91,86,96,91,101,96,106,101,111,106,116,111,121,116,126,121,131,126,136,131,141,136,146,141,151,146,156,151,161,156,166,161,171 mov $1,10 mul $1,$0 div $0,2...
//INITIAL VALUES // BAR @24397 D=A @0 //Bar address M=D @3 D=A @1 //Row drawing M=D @6 D=A @2 //Column Drawing M=D // BALL @24175 //Ball initial position D=A @7 M=D @32767 //Number for drawing D=A @8 M=D @24577 //32767 + 24577 = 57344 D=A @8 M=M+D @7 //Number for drawing D=A @9 M=D @6 D=A @10 M=D //BAR PROCESS (BAR) ...
; A020772: Decimal expansion of 1/sqrt(15). ; Submitted by Jon Maiga ; 2,5,8,1,9,8,8,8,9,7,4,7,1,6,1,1,2,5,6,7,8,6,1,7,6,9,3,3,1,8,8,2,6,6,4,0,7,2,2,1,9,4,7,8,0,3,5,2,7,7,2,7,2,1,7,7,2,5,0,4,9,1,7,7,4,0,8,9,8,8,7,2,7,9,5,7,9,8,6,0,2,2,3,4,6,1,9,1,5,8,4,5,7,2,4,4,9,0,1,1 mov $3,$0 add $3,1 mul $3,3 lpb $3 add $6,$2 ...
SECTION .text GLOBAL test test: shrx rax, rax, rax shrx rax, rax, rbx shrx rax, rax, rcx shrx rax, rax, rdx shrx rax, rax, rdi shrx rax, rax, r8 shrx rax, rax, r9 shrx rax, rax, r10 shrx rax, rax, r11 shrx rax, rax, r12 shrx rax, rax, r13 shrx rax, rax, r14 shrx rax, rax, r15 shrx rax, rax, rsp shrx rax, rax, rsi shrx ...
#ifndef PMM_HPP_ #define PMM_HPP_ #include <stivale.hpp> #include <memutils.hpp> #include <cpu.hpp> namespace pmm { inline size_t total_mem = 0; inline size_t total_used_mem = 0; void init(stivale *stivale); size_t alloc(size_t cnt, size_t align = 1); size_t calloc(size_t cnt, size_t align = 1); void free(size_t ba...
[bits 64] section .text [global exec_regs] exec_regs: mov rsp, rdi pop r15 pop r14 pop r13 pop r12 pop r11 pop r10 pop r9 pop r8 pop rsi pop rdi pop rbp pop rdx pop rcx pop rbx pop rax add rsp, 16 iretq
SECTION code_fp_math16 PUBLIC ___h2sint_callee PUBLIC _i16_f16_fastcall EXTERN cm16_sdcc___h2sint_callee EXTERN cm16_sdcc___h2sint_fastcall defc ___h2sint_callee = cm16_sdcc___h2sint_callee defc _i16_f16_fastcall = cm16_sdcc___h2sint_fastcall
.size 8000 .text@48 jp lstatint .text@100 jp lbegin .data@143 c0 .text@150 lbegin: ld a, 00 ldff(ff), a ld b, 91 call lwaitly_b ld a, b1 ldff(40), a ld a, 07 ldff(4b), a ld c, 41 ld b, 03 lbegin_waitm3: ldff a, (c) and a, b cmp a, b jrnz lbegin_waitm3 ld a, 20 ldff(c), a xor a, a ldff(0f), a l...
// // Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.16384 // // /// // // Input signature: // // Name Index Mask Register SysValue Format Used // -------------------- ----- ------ -------- -------- ------- ------ // COLOR 0 xyzw 0 NONE float x // D...
/* ----------------------------------------------------------------------------------- * * File CCScriptSupport.cpp * Ported By Young-Hwan Mun * Contact xmsoft77@gmail.com * * ----------------------------------------------------------------------------------- * * ...
; A330033: a(n) = Kronecker(n, 5) * (-1)^floor(n/5). ; 0,1,-1,-1,1,0,-1,1,1,-1,0,1,-1,-1,1,0,-1,1,1,-1,0,1,-1,-1,1,0,-1,1,1,-1,0,1,-1,-1,1,0,-1,1,1,-1,0,1,-1,-1,1,0,-1,1,1,-1,0,1,-1,-1,1,0,-1,1,1,-1,0,1,-1,-1,1,0,-1,1,1,-1,0,1,-1,-1,1,0,-1 mov $2,$0 mul $0,22 mov $3,5 lpb $0,1 sub $0,$2 lpb $0,1 sub $0,5 a...
; You may customize this and other start-up templates; ; The location of this template is c:\emu8086\inc\0_com_template.txt org 100h ; add your code here ret
; A144721: a(0) = 2, a(1) = 5, a(n) = 4 * a(n-1) - a(n-2). ; 2,5,18,67,250,933,3482,12995,48498,180997,675490,2520963,9408362,35112485,131041578,489053827,1825173730,6811641093,25421390642,94873921475,354074295258,1321423259557,4931618742970,18405051712323,68688588106322,256349300712965,956708614745538,3570485158269187...
Name: Ending1-e.asm Type: file Size: 19345 Last-Modified: '1992-11-18T01:42:42Z' SHA-1: A2254FC9252582AD51D0953D882C2A6EEB0811AA Description: null
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r15 push %rax lea addresses_WC_ht+0x121e4, %r12 nop nop nop nop sub %r13, %r13 mov (%r12), %ax nop nop nop nop dec %r15 pop %rax pop %r15 pop %r13 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r8 push %r9 push %rbp...
#include<iostream> using namespace std; class Test { public: Test(); }; Test::Test() { cout<<"Constructor Called \n"; } int main() { cout<<"Start \n"; Test t1(); cout<<"End \n"; return 0; }
.386 .model flat, stdcall option casemap : none include sy.inc include sokoban.inc .data levelFileName1 byte "./pic/level-1.bmp", 0h levelFileName2 byte "./pic/level-2.bmp", 0h levelFileName3 byte "./pic/level-3.bmp", 0h levelFileName4 byte "./pic/level-4.bmp", 0h levelFileName5 byte "./pic/level-5.bmp", 0h levelFil...
; int ba_stack_pop(ba_stack_t *s) SECTION code_clib SECTION code_adt_ba_stack PUBLIC ba_stack_pop EXTERN asm_ba_stack_pop defc ba_stack_pop = asm_ba_stack_pop ; SDCC bridge for Classic IF __CLASSIC PUBLIC _ba_stack_pop defc _ba_stack_pop = ba_stack_pop ENDIF
; size_t fread_unlocked(void *ptr, size_t size, size_t nmemb, FILE *stream) SECTION code_stdio PUBLIC _fread_unlocked EXTERN asm_fread_unlocked _fread_unlocked: pop af pop de pop bc pop hl pop ix push hl push hl push bc push de push af jp asm_fread_unlocked
; SPIR-V ; Version: 1.0 ; Generator: Khronos Glslang Reference Front End; 10 ; Bound: 239 ; Schema: 0 OpCapability Shader %1 = OpExtInstImport "GLSL.std.450" OpMemoryModel Logical GLSL450 OpEntryPoint Fragment %4 "main" %33 %89 OpExecutionMode %4 Ori...
#include "Config.hpp" namespace acid { Config::Config(std::shared_ptr<IFile> file) : m_file(file), m_values(std::map<std::string, std::shared_ptr<ConfigKey>>()) { } Config::~Config() { } void Config::Load() { m_file->Load(); auto fileMap = m_file->ConfigReadValues(); m_values.clear(); for (auto...
// Copyright (c) Facebook, Inc. and its affiliates. // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. #include "GenericDrawable.h" #include <Corrade/Containers/ArrayViewStl.h> #include <Corrade/Utility/FormatStl.h> #include <Magnum/Math/Color...
; A179432: a(n) = C(2*3^(n-1), n). ; 1,2,15,816,316251,873642672,17743125256857,2739097835911193328,3301626910467952067341626,31698997711344336177849363574320,2460103385023594223069956382123378560008 mov $2,$0 sub $0,1 mov $1,3 pow $1,$0 mul $1,2 bin $1,$2 mov $0,$1
; A064310: Generalized Catalan numbers C(-1; n). ; Submitted by Christian Krause ; 1,1,0,1,-2,6,-18,57,-186,622,-2120,7338,-25724,91144,-325878,1174281,-4260282,15548694,-57048048,210295326,-778483932,2892818244,-10786724388,40347919626,-151355847012,569274150156,-2146336125648,8110508473252,-30711521221376,11651821526...
; A119707: Number of distinct primes appearing in all partitions of n into prime parts. ; Submitted by Christian Krause ; 0,1,1,1,3,2,4,3,4,4,5,4,6,5,6,6,7,6,8,7,8,8,9,8,9,9,9,9,10,9,11,10,11,11,11,11,12,11,12,12,13,12,14,13,14,14,15,14,15,15,15,15,16,15,16,16,16,16,17,16,18,17,18,18,18,18,19,18,19,19,20,19,21,20,21,21...
#include "main.h" #include <Eigen/MPRealSupport> #include <Eigen/LU> #include <Eigen/Eigenvalues> #include <sstream> using namespace mpfr; using namespace Eigen; void test_mpreal_support() { // set precision to 256 bits (double has only 53 bits) mpreal::set_default_prec(256); typedef Matrix<mpreal,Eigen::Dynami...
; A286665: {0->01}-transform of the Pell word, A171588. ; 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,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,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,0,1,1,0,1,0,1,1,0,1,0,1,0,1,1,0 add $0,1 seq $0,159684 ; Sturmian word: limit S(infinity) whe...
; Licensed to the .NET Foundation under one or more agreements. ; The .NET Foundation licenses this file to you under the MIT license. ; ==++== ; ; ; ==--== ; *********************************************************************** ; File: JitHelpers_Fast.asm, see jithelp.asm for history ; ; Notes: routinues which we ...
/* * Copyright (c) 2020-2022 Gustavo Valiente gustavo.valiente@protonmail.com * zlib License, see LICENSE file. */ #include "bf_game_hero_bomb.h" #include "bn_keypad.h" #include "bn_blending.h" #include "bn_sound_items.h" #include "bn_regular_bg_builder.h" #include "bn_regular_bg_items_hero_bomb.h" #include "bf_co...
#include <chrono> #include <iostream> int main() { // create array const int size = 10000; static int x[size][size]; auto t1 = std::chrono::high_resolution_clock::now(); for (int i = 0; i < size; i++) { for (int j = 0; j < size; j++) { x[i][j] = i + j; // std::cout << &x[j][i] << ": i=" << i...
; Assembly Level Program 1b ; Read the status of eight input bits from the Logic Controller Interface and display 'FF' if it is the parity of the input read is even; otherwise display 00. .model SMALL .data PA EQU 0E400h PB EQU 0E401h PC EQU 0E402h CR EQU 0E403h CW dB 82h M1 dB 10, 13, 'Select an 8-bit Number...
; A258059: Let n = Sum_{i=0..k} d_i*4^i be the base-4 expansion of n, with 0 <= d_i < 4. Then a(n) = minimal i such that d_i is not 1, or k+1 if there is no such i. ; 1,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,1...
; The MIT License ; Copyright (c) ocanty <git@ocanty.com> ; 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...
// Copyright (c) 2011-2015 The Bitcoin Core developers // Copyright (c) 2014-2017 The Dash Core developers // Copyright (c) 2018 The Absolute Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "askpassphras...
; A263449: Permutation of the natural numbers: [4k+1, 4k+4, 4k+3, 4k+2, ...]. ; 1,4,3,2,5,8,7,6,9,12,11,10,13,16,15,14,17,20,19,18,21,24,23,22,25,28,27,26,29,32,31,30,33,36,35,34,37,40,39,38,41,44,43,42,45,48,47,46,49,52,51,50,53,56,55,54,57,60,59,58,61,64,63,62,65,68,67,66,69,72,71,70,73,76,75,74,77,80,79,78,81,84,83,...
; A070388: a(n) = 5^n mod 42. ; 1,5,25,41,37,17,1,5,25,41,37,17,1,5,25,41,37,17,1,5,25,41,37,17,1,5,25,41,37,17,1,5,25,41,37,17,1,5,25,41,37,17,1,5,25,41,37,17,1,5,25,41,37,17,1,5,25,41,37,17,1,5,25,41,37,17,1,5,25,41,37,17,1,5,25,41,37,17,1,5,25,41,37,17,1,5,25,41,37,17,1,5,25,41,37,17,1,5,25,41 mov $1,1 mov $2,$0 lp...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r14 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x1402c, %rsi lea addresses_WT_ht+0x1b5a6, %rdi nop nop nop nop add %r13, %r13 mov $60, %rcx rep movsq nop nop nop nop xor %rdx, %rdx lea addresses_A_ht+0x6a56, %r14 nop nop no...
#include<bits/stdc++.h> using namespace std; struct trie//creating structure name trie { struct trie* m[26];//creating mapping for the 26 small latters alphabet int end=0;//0 means not a leaf node and 1 means it is a leaf node }; struct trie * BuildtrieTree(struct trie * root,string s, int start, int size){ if(...
;=============================================================================== ; Constants FlowNumLives = 3 FlowStateMenu = 0 FlowStateAlive = 1 FlowStateDying = 2 ;=============================================================================== ; Variables flowScoreX byte 0 flowScoreNumX ...
// Copyright (c) 2014-2017 The Crowdcoin Core developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. //#define ENABLE_CRC_DEBUG #include "activemasternode.h" #include "consensus/validation.h" #include "governance.h" #in...
.global s_prepare_buffers s_prepare_buffers: push %r9 push %rcx push %rdi push %rsi lea addresses_WT_ht+0x8a2d, %rsi lea addresses_D_ht+0x17fbd, %rdi clflush (%rdi) dec %r9 mov $1, %rcx rep movsw nop nop nop nop inc %r9 pop %rsi pop %rdi pop %rcx pop %r9 ret .global s_faulty_load s_faulty_load: push %r10 push %r11...
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r14 push %r8 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_UC_ht+0xbd11, %rsi lea addresses_WT_ht+0x598, %rdi nop nop nop nop add %rbx, %rbx mov $67, %rcx rep movsl nop nop nop nop nop dec %r14 lea addresses_D_ht+0x11c50, %rsi lea addresses_D...
/// @ref ext_matrix_int4x4_sized /// @file glm/ext/matrix_int4x4_sized.hpp /// /// @see core (dependence) /// /// @defgroup ext_matrix_int4x4_sized GLM_EXT_matrix_int4x4_sized /// @ingroup ext /// /// Include <glm/ext/matrix_int4x4_sized.hpp> to use the features of this extension. /// /// Defines a number of matrices w...
TowerMons1: db $00 db $00
; A010011: a(0) = 1, a(n) = 21*n^2 + 2 for n>0. ; 1,23,86,191,338,527,758,1031,1346,1703,2102,2543,3026,3551,4118,4727,5378,6071,6806,7583,8402,9263,10166,11111,12098,13127,14198,15311,16466,17663,18902,20183,21506,22871,24278,25727,27218,28751,30326,31943,33602,35303,37046,38831,40658,42527,44438,46391,48386,50423,525...
#include <boost/test/unit_test.hpp> #include <eosio/testing/tester.hpp> #include <eosio/testing/tester_network.hpp> #include <eosio/chain/generated_transaction_object.hpp> #include <fc/variant_object.hpp> #include <actx.token/actx.token.wast.hpp> #include <actx.token/actx.token.abi.hpp> #include <deferred_test/defe...
/**************************************************************************** * * Copyright (c) 2018-2021 PX4 Development Team. 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. Re...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2011-2012 Litecoin Developers // Copyright (c) 2013 DonCoin Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license....
; A190619: Binary expansions of odd numbers with a single zero in their binary expansion. ; Submitted by Christian Krause ; 101,1011,1101,10111,11011,11101,101111,110111,111011,111101,1011111,1101111,1110111,1111011,1111101,10111111,11011111,11101111,11110111,11111011,11111101,101111111,110111111,111011111,111101111,11...
; A293168: Partial sums of A054868. ; 0,1,2,3,4,5,6,8,9,10,11,13,14,16,18,19,20,21,22,24,25,27,29,30,31,33,35,36,38,39,40,42,43,44,45,47,48,50,52,53,54,56,58,59,61,62,63,65,66,68,70,71,73,74,75,77,79,80,81,83,84,86,88,90,91,92,93,95,96,98,100,101,102,104,106 mov $5,$0 mov $6,$0 lpb $6 mov $0,$5 sub $6,1 sub $0,$...
;-Camera Position of Ship---------------------------------------------------------------------------------------------------------- UBnKxlo DB 0 ; INWK+0 UBnKxhi DB 0 ; there are hi medium low as some times these are 24 bit UBnKxsgn ...
db MACHOP ; pokedex id db 70 ; base hp db 80 ; base attack db 50 ; base defense db 35 ; base speed db 35 ; base special db FIGHTING ; species type 1 db FIGHTING ; species type 2 db 180 ; catch rate db 88 ; base exp yield INCBIN "pic/gsmon/machop.pic",0,1 ; 55, sprite dimensions dw MachopPicFront dw MachopPicBack ; atta...
#include "CompressorDXT1.h" #include "SingleColorLookup.h" #include "ClusterFit.h" #include "nvimage/ColorBlock.h" #include "nvimage/BlockDXT.h" #include "nvmath/Color.inl" #include "nvmath/Vector.inl" #include "nvmath/Fitting.h" #include "nvmath/ftoi.h" #include "nvcore/Utils.h" // swap #include <s...
;----------------------------------------------- ; User interface sound effects SFX_ui_move: db 7,#b8 ;; SFX all channels to tone db 10,#0b ;; volume db 4,0, 5+MUSIC_CMD_TIME_STEP_FLAG,#02 ;; frequency db MUSIC_CMD_SKIP db MUSIC_CMD_SKIP db 10,#00 ;; silence db SFX_CMD_END SFX_u...
; A099902: Multiplies by 2 and shifts right under the XOR BINOMIAL transform (A099901). ; Submitted by Jon Maiga ; 1,3,7,11,23,59,103,139,279,827,1895,2955,5655,14395,24679,32907,65815,197435,460647,723851,1512983,3881019,6774887,9142411,18219287,54002491,123733863,192940939,369104407,939538491,1610637415,2147516555,42...
.thumb @Master Key Usability @r0 holds ram character pointer push {r4,r14} mov r4, r0 ldr r3, ChestCheck @check if on top of a chest tile? bl Jump lsl r0,r0, #0x18 cmp r0, #0x0 bne TrueCase mov r0, r4 ldr r3, DoorCheck @check if next to a door tile? bl Jump lsl r0,r0, #0x18 cmp r0, #0x0 bne TrueCase mov r0, r...
; int sscanf(char *s, const char *fmt,...) ; 05.2008 aralbrec PUBLIC sscanf EXTERN vsscanf_callee, stdio_varg, stdio_nextarg EXTERN ASMDISP_VSSCANF_CALLEE .sscanf call stdio_varg push de exx pop hl ; hl = char *s exx call stdio_nextarg ; de = char *fmt ld c...
;------------------------------------------------------------------------------- ; filter5(int N, int *start, int length, int *dest): ; Applies a median filter to a signal array at start, writes the result to dest ;------------------------------------------------------------------------------- section .data ; error m...
SECTION data_clib PUBLIC __brksave __brksave: defb 1 ;; Keeping the BREAK enable flag, used by pc88_break, etc..
// note: **1.11** P11, first **bigger** than second #include <iostream> #include <utility> int main() { std::cout << "Enter 2 integers:" << std::endl; int a = 0, b = 0; std::cin >> a >> b; if (a > b) { std::swap(a, b); } while (a <= b) { std::cout << a++ << std::endl; } ...