text
stringlengths
1
1.05M
; A169371: Number of reduced words of length n in Coxeter group on 22 generators S_i with relations (S_i)^2 = (S_i S_j)^31 = I. ; 1,22,462,9702,203742,4278582,89850222,1886854662,39623947902,832102905942,17474161024782,366957381520422,7706105011928862,161828205250506102,3398392310260628142,71366238515473190982 add $0,...
/* * Copyright (c) 2014 The WebRTC 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 contribut...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r15 push %r8 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x17da9, %r15 cmp %rdx, %rdx mov $0x6162636465666768, %r13 movq %r13, (%r15) nop nop nop nop nop xor $27293, %r10 lea addresses_WC_ht+0x21a9, %r8 nop nop nop nop ...
Route22GateObject: db $a ; border block db $5 ; warps db $7, $4, $0, $ff db $7, $5, $0, $ff db $0, $4, $0, $ff db $0, $5, $0, $ff db $3, $0, $1, MT_SILVER db $0 ; signs db $1 ; objects object SPRITE_GUARD, $6, $2, STAY, LEFT, $1 ; person ; warp-to EVENT_DISP ROUTE_22_GATE_WIDTH, $7, $4 EVENT_DISP ROUTE...
; long __ladd (long left, long right) SECTION code_clib SECTION code_fp_am9511 PUBLIC cam32_sdcc_ladd EXTERN cam32_sdcc_readr, asm_am9511_ladd .cam32_sdcc_ladd ; add two sdcc longs ; ; enter : stack = sdcc_long right, sdcc_long left, ret ; ; exit : DEHL = sdcc_long(left+right) ; ; use...
; A198971: a(n) = 5*10^n-1. ; 4,49,499,4999,49999,499999,4999999,49999999,499999999,4999999999,49999999999,499999999999,4999999999999,49999999999999,499999999999999,4999999999999999,49999999999999999,499999999999999999,4999999999999999999,49999999999999999999,499999999999999999999,4999999999999999999999,499999999999999...
bits 64 default rel %include "cabna/sys/conv.nasm" global notify_receiver global supply_retval extern sched_task section .text proc notify_receiver: ; Notify the currently executing task's waiting receiver task that one of its ; tasks finished. If the receiver task gets its final notice, schedule the ...
; A173148: a(n) = cos(2*n*arccos(sqrt(n))). ; Submitted by Jon Maiga ; 1,1,17,485,18817,930249,55989361,3974443213,325142092801,30122754096401,3117419602578001,356452534779818421,44627167107085622401,6071840759403431812825,892064955046043465408177,140751338790698080509966749,23737154316161495960243527681,42610969898935...
#include <deque> template <class T, class Sequence = std::deque<T> > class stack { friend bool operator== (const stack&, const stack&); friend bool operator< (const stack&, const stack&); public: typedef typename Sequence::value_type value_type; typedef typename Sequence::size_type size_type; type...
#pragma once #include <iostream> #include <string> #include "IncludeDeps.hpp" #include "Core/Mesh.hpp" #include "Core/Textures/Texture.hpp" #include "Core/Vulkan/Material.hpp" #include "Core/GameObject.hpp" namespace LWGC { class ModelLoader { private: public: ModelLoader(void) = delete; ModelLoader(c...
[bits 64] [org 0x140059080] cmp eax, 0xdeadc0de jne not_eq mov r13, 0x140059100 mov r12, 0x1F jmp 0x14000B4EF not_eq: mov rax, r12 shl rax, 5 jmp 0x14000B4DB
#include <stdio.h> #include <stdlib.h> #include "bignum.h" /** * Test populating, searching, and removing integers from a Vector. * * @param Argument count * @param Argument list * @return Error level */ int main(int argc, char* argv[]) { char buffer[1000]; Bignum n(0); n.str(buffer, 1000); printf("%u: %s\...
; A047612: Numbers that are congruent to {0, 2, 4, 5} mod 8. ; 0,2,4,5,8,10,12,13,16,18,20,21,24,26,28,29,32,34,36,37,40,42,44,45,48,50,52,53,56,58,60,61,64,66,68,69,72,74,76,77,80,82,84,85,88,90,92,93,96,98,100,101,104,106,108,109,112,114,116,117,120,122,124,125,128,130,132,133,136,138,140,141,144,146,148,149,152,154,...
#include "Platform.inc" #include "FarCalls.inc" #include "Arithmetic32.inc" #include "SunriseSunset.inc" #include "States.inc" radix decimal defineSunriseSunsetState SUN_STATE_INTERPOLATE_LONGITUDE loadLongitudeOffsetMultipliedByFourIntoDividend: bcf STATUS, C .setBankFor longitudeOffset rlf longitudeOff...
;; ;; Copyright (c) 2012-2021, 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...
#pragma once #include "RegexElements.hpp" #include <string> #include <string_view> namespace RegPanzer { struct ParseError { size_t pos= 0; std::string message; }; using ParseErrors= std::vector<ParseError>; using ParseResult= std::variant<RegexElementsChain, ParseErrors>; // Parse regex in UTF-8 format. ParseRe...
; A118830: 2-adic continued fraction of zero, where a(n) = -1 if n is odd, 2*A006519(n/2) otherwise. ; -1,2,-1,4,-1,2,-1,8,-1,2,-1,4,-1,2,-1,16,-1,2,-1,4,-1,2,-1,8,-1,2,-1,4,-1,2,-1,32,-1,2,-1,4,-1,2,-1,8,-1,2,-1,4,-1,2,-1,16,-1,2,-1,4,-1,2,-1,8,-1,2,-1,4,-1,2,-1,64,-1,2,-1,4,-1,2,-1,8,-1,2,-1,4,-1,2,-1,16,-1,2,-1,4,-1...
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * h...
SECTION code_clib SECTION code_fp_math48 PUBLIC _fdim_callee EXTERN cm48_sdccix_fdim_callee defc _fdim_callee = cm48_sdccix_fdim_callee
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Copyright(c) 2011-2015 Intel Corporation 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 so...
// Test the pseudorandom number generator in stdlib.h // Source http://www.retroprogramming.com/2017/07/xorshift-pseudorandom-numbers-in-z80.html // Information https://en.wikipedia.org/wiki/Xorshift // Commodore 64 PRG executable file .file [name="rand-1.prg", type="prg", segments="Program"] .segmentdef Program [seg...
; ; Enterprise 64/128 specific routines ; by Stefano Bodrato, 2011 ; ; exos_reset_font(); ; ; ; $Id: exos_reset_font.asm,v 1.4 2016/06/19 20:17:32 dom Exp $ ; SECTION code_clib PUBLIC exos_reset_font PUBLIC _exos_reset_font INCLUDE "enterprise.def" exos_reset_font: _exos_reset_font: ; __FASTCALL_ ld ...
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r14 push %rax push %rbp push %rbx push %rdi push %rdx push %rsi // Store mov $0xabe, %rbp nop nop nop nop nop inc %rax movl $0x51525354, (%rbp) add %rbp, %rbp // Store lea addresses_normal+0xc63e, %r14 nop nop nop nop nop...
/********************************************************************** * File: paragraphs.cpp * Description: Paragraph detection for tesseract. * Author: David Eger * Created: 25 February 2011 * * (C) Copyright 2011, Google Inc. ** Licensed under the Apache License, Version 2.0 (the "License"); ...
/* * Copyright 2019 Xilinx, Inc. * * 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 agreed to...
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r14 push %r8 push %r9 push %rbp push %rcx push %rdi push %rsi lea addresses_A_ht+0x83e7, %r14 nop nop nop nop nop inc %rdi movl $0x61626364, (%r14) nop nop nop nop nop and %rdi, %rdi lea addresses_WT_ht+0xbea7, %r9 cmp %rsi, %rsi mov (%r9), %rbp nop nop nop n...
// Assembler: KickAssembler 4.4 // source: http://codebase64.org/doku.php?id=base:16bit_addition_and_subtraction .var num1lo = $62 .var num1hi = $63 .var num2lo = $64 .var num2hi = $65 .var reslo = $66 .var reshi = $67 .var delta = $68 // 16-bit addition zero page add16: clc lda num1lo adc num2lo sta reslo lda ...
;; ;; Copyright (c) 2018, 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 the ...
#include <Energia.h> #include "device.h" #include "pinchange.h" static Port *d[2]; #pragma vector=PORT1_VECTOR __interrupt void port1(void) { if (d[0]) d[0]->ready(); __bic_SR_register_on_exit(LPM4_bits | GIE); } #pragma vector=PORT2_VECTOR __interrupt void port2(void) { if (d[1]) d[1]->ready(); __bic_SR_r...
WardensHouse_Object: db $17 ; border block def_warps warp 4, 7, 3, LAST_MAP warp 5, 7, 3, LAST_MAP def_signs sign 4, 3, 4 ; FuchsiaHouse2Text4 sign 5, 3, 5 ; FuchsiaHouse2Text5 def_objects object SPRITE_WARDEN, 2, 3, STAY, NONE, 1 ; person object SPRITE_POKE_BALL, 8, 3, STAY, NONE, 2, RARE_CANDY o...
; A188480: a(n) = (n^4 + 16*n^3 + 65*n^2 + 26*n + 12)/12. ; 1,10,39,99,203,366,605,939,1389,1978,2731,3675,4839,6254,7953,9971,12345,15114,18319,22003,26211,30990,36389,42459,49253,56826,65235,74539,84799,96078,108441,121955,136689,152714,170103,188931,209275,231214,254829,280203,307421,336570,367739,401019,436503,4742...
// Copyright (c) 2015 Vivaldi Technologies AS. All rights reserved #include "importer/chromium_profile_lock.h" #include <windows.h> void ChromiumProfileLock::Init() { lock_handle_ = INVALID_HANDLE_VALUE; } void ChromiumProfileLock::Lock() { if (HasAcquired()) return; lock_handle_ = CreateFile(lock_file_....
#include <algorithm> #include <iostream> #include <map> #include <vector> using namespace std; int main() { int n; cin >> n; vector<long long> a(n); map<long long,int> v; for (int i = 0; i < n; i++) { cin >> a[i]; v[a[i]]++; } vector<long long> d; d.push_back(1); for (int i = 1; i < 32; i++...
[bits 32] [section .text] INT_VECTOR_SYS_CALL equ 0x80 _NR_PUTCHAR EQU 5 global putchar putchar: mov eax, _NR_PUTCHAR mov ebx, [esp + 4] int INT_VECTOR_SYS_CALL ret
; A241520: Numbers n such that n^2 == -1 (mod 89). ; 34,55,123,144,212,233,301,322,390,411,479,500,568,589,657,678,746,767,835,856,924,945,1013,1034,1102,1123,1191,1212,1280,1301,1369,1390,1458,1479,1547,1568,1636,1657,1725,1746,1814,1835,1903,1924,1992,2013,2081,2102,2170,2191,2259,2280,2348,2369,2437,2458,2526,2547,2...
; ; Startup for test emulator ; ; $Id: test_crt0.asm,v 1.12 2016-06-21 20:49:07 dom Exp $ module test_crt0 INCLUDE "test_cmds.def" defc crt0 = 1 INCLUDE "zcc_opt.def" EXTERN _main ;main() is always external to crt0 code PUBLIC cleanup ;jp'd to by exit() PUBLIC ...
copyright zengfr site:http://github.com/zengfr/romhack 00042A move.l D1, (A0)+ 00042C dbra D0, $42a 001248 move.l D2, ($2c,A6) 00124C tst.w D0 [enemy+2C, enemy+2E, etc+2C, etc+2E, item+2C, item+2E] 001298 move.l D2, ($2c,A6) 00129C tst.w D0 [enemy+2C, enemy+2E, item+2C, item+2E] 0016D2 move.l D1, ...
; A276800: Decimal expansion of t^2, where t is the tribonacci constant A058265. ; Submitted by Jon Maiga ; 3,3,8,2,9,7,5,7,6,7,9,0,6,2,3,7,4,9,4,1,2,2,7,0,8,5,3,6,4,5,5,0,3,4,5,8,6,9,4,9,3,8,2,0,4,3,7,4,8,5,7,6,1,8,2,0,1,9,5,6,2,6,7,7,2,3,5,3,7,1,8,9,6,0,0,9,9,4,0,2,9,2,2,2,3,5,9,3,3,3,4,0,0,4,3,6,6,1,3,9 mov $5,$0 c...
#include "crystalpicnic.h" #include "error.h" std::string Error::get_message(void) { return message; } Error::Error(std::string msg) : message(msg) { } Error::Error() : message("") { }
// 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/policy/browser_policy_connector.h" #include "base/bind.h" #include "base/bind_helpers.h" #include "base/command_line.h" #inc...
// // Created by Rose on 2018/8/21. // #include "List.h" int List::traverseList() { ListNode * p=pHead->pNext; if(p == NULL){ return 0; } while(p!=NULL) { cout<<"N(" << p->NDeg << "): "; SubList *s = p->subList; s->traverseList(); p=p->pNext; //cout ...
// Copyright 2006-2009 Daniel James. // 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) // This test creates the containers with members that meet their minimum // requirements. Makes sure everything compiles a...
; A094569: Associated with alternating row sums of array in A094568. ; Submitted by Jon Maiga ; 2,11,78,532,3649,25008,171410,1174859,8052606,55193380,378301057,2592914016,17772097058,121811765387,834910260654,5722560059188,39223010153665,268838511016464,1842646566961586,12629687457714635,86565165637040862,593326472001...
ORG 100 LDA 106 BUN 104 X, DEC 100 Y, HEX 102 ADD X CIR STA Y I HLT END
.data #global data X: .word 5 Y: .word 10 SUM: .word 0 .text #.globl main main: la R1, X la R2, Y lwz R3, 0(R1) lwz R4, 0(R2) add R5, R3, R4 la R6, SUM stw R5, 0(R6) lwz R8, 0(R6) # .end
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1993 -- All Rights Reserved PROJECT: PC GEOS MODULE: Hearts (trivia project) FILE: heartsDeck.asm AUTHOR: Peter Weck, Jan 20, 1993 ROUTINES: Name Description ---- ----------- REVISION HI...
/* * Copyright 2009-2017 Alibaba Cloud 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...
copyright zengfr site:http://github.com/zengfr/romhack 00042A move.l D1, (A0)+ 00042C dbra D0, $42a 014840 move.w (A1)+, D0 014842 add.w D4, D0 [base+6582, base+658A, base+6592, base+659A, base+65A2] 0148EE move.w (A1)+, D0 0148F0 add.w D4, D0 [base+6002, base+6022, base+602A, base+6102, base+610A,...
//============================================================================= // // OpenMesh // Copyright (C) 2003 by Computer Graphics Group, RWTH Aachen // www.openmesh.org // //---------------------------------------------------------------------------...
%include "include/u7bg-all-includes.asm" %include "../u7-common/patch-eop-promptToExit.asm"
segment .bss align 4 x: resb 4 segment .text align 4 global _main:function _main: align 4 xpl: push ebp mov ebp, esp sub esp, 4 push dword 0 lea eax, [ebp+-4] push eax pop ecx pop eax mov [ecx], eax push dword 4 push dword [esp] push dword $x pop ecx pop eax mov [ecx], eax add esp, 4 push dword $x po...
// // TextEntityItem.cpp // libraries/entities/src // // Created by Brad Hefta-Gaub on 12/4/13. // Copyright 2013 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #include "TextEntityItem.h" #i...
; A307912: a(n) = n - 1 - pi(2*n-1) + pi(n), where pi is the prime counting function. ; 0,0,1,1,3,3,4,5,5,5,7,7,9,10,10,10,12,13,14,15,15,15,17,17,18,19,19,20,22,22,23,24,25,25,26,26,27,28,29,29,31,31,33,34,34,35,37,38,38,39,39,39,41,41,41,42,42,43,45,46,48,49,50,50,51,51,53,54 mov $2,$0 mov $4,$0 lpb $2 sub $2,1 ...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" #include "extern/beatsaber-hook/shared/utils/byref.hpp" // Including type: MasterServer.B...
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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 ...
/* * Copyright (c) 2016-2020 ARM Limited. * * SPDX-License-Identifier: MIT * * 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 * ri...
; A291386: a(n) = (1/3)*A099432(n+1). ; Submitted by Christian Krause ; 2,11,54,252,1134,4977,21438,91017,381996,1588248,6552252,26853687,109438938,443837799,1792373346,7211142612,28915704810,115603540605,460942202070,1833459620517,7276826042712,28823185892016,113957884236024,449793742386627,1772580021170994,6975448310...
#include <iostream> #include <opencv2/opencv.hpp> using namespace cv; using namespace std; int main(int argc, char** argv){ Mat image; if (argc < 5) { cout << "Quatro argumentos numéricos são necessários" << endl; return 0; } int ax = atoi(argv[1]); int ay = atoi(argv[2]); int bx = atoi(argv[3])...
# Christian Suleiman # GCD Recursive li $a0, 44 #load values into registers li $a1, 8 li $a2, 0 # hold the result/temp sub $sp,$sp,16 # creating space on stack for 4 4-bytes of data (return address, a, b, res) sw $ra,0($sp) #storing values in registers into newly created space on stack sw $a0,4...
// Copyright (c) 2009-2017 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include "config/ksoc-config.h" #endif #include <cstring> #if HAVE_DECL_STRNLEN == 0 size_t strn...
; A337843: a(n) is n + the number of digits in the decimal expansion of n. ; 1,2,3,4,5,6,7,8,9,10,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69 add $0,1 mov $1,$0 log $1,11 add $1,$0
INCLUDE "graphics/grafix.inc" EXTERN pixeladdress EXTERN __gfx_coords ; Generic code to handle the pixel commands ; Define NEEDxxx before including IF maxx <> 256 ld a,h cp maxx ret nc ENDIF ld a,l cp maxy ret nc ld (__gfx_coords),hl push bc ;Save callers value call pixeladdress ;hl = address, a = pix...
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) | +---------...
; A068346: a(n) = n'' = second arithmetic derivative of n. ; 0,0,0,0,4,0,1,0,16,5,1,0,32,0,6,12,80,0,10,0,44,7,1,0,48,7,8,27,80,0,1,0,176,9,1,16,92,0,10,32,72,0,1,0,112,16,10,0,240,9,39,24,92,0,108,32,96,13,1,0,96,0,14,20,640,21,1,0,156,15,1,0,220,0,16,16,176,21,1,0,368,216,1,0,128,13,39,80,188,0,44,24,272,19,14,44,560...
/* * Copyright (c) 2013 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implementation of the func...
.P816 .ORG $4000 S1: SEI SEP #$30 SEC XCE S2: LDA #'a' loop: CLC XCE REP #$30 CLI JSL $E063 SEI SEP #$30 SEC XCE CLC ADC #1 CMP #'z'+1 BNE loop CLC XCE REP #$30 done: JML $E066 RTL
/* This lib is a tls client for FISCO BCOS2.0 (https://github.com/FISCO-BCOS/) This lib is free software: you can redistribute it and/or modify it under the terms of the MIT License as published by the Free Software Foundation. This project is distributed in the hope that it will be useful, but WITHOUT ANY WARR...
#include "TriangleCounter.h" #include <cassert> #include <iostream> using namespace std; unsigned long long edge_to_id(const int u, const int v) { assert(MAX_NUM_NODES > u); assert(MAX_NUM_NODES > v); assert(u!=v); int n_u = (u<v ? u : v); int n_v = (u<v ? v : u); unsigned long long ret = static_cast<un...
; A053763: a(n) = 2^(n^2 - n). ; 1,1,4,64,4096,1048576,1073741824,4398046511104,72057594037927936,4722366482869645213696,1237940039285380274899124224,1298074214633706907132624082305024 bin $0,2 mov $1,4 pow $1,$0 mov $0,$1
; A017403: (11n+1)^3. ; 1,1728,12167,39304,91125,175616,300763,474552,704969,1000000,1367631,1815848,2352637,2985984,3723875,4574296,5545233,6644672,7880599,9261000,10793861,12487168,14348907,16387064 mul $0,11 add $0,1 pow $0,3
.globl Tela45 Tela45: addi $10, $0, 0xcff8cf sw $10, 268500992($0) addi $10, $0, 0x00d800 sw $10, 268500996($0) addi $10, $0, 0x00d800 sw $10, 268501000($0) addi $10, $0...
.text j to_user_mode j interrupt j exception to_user_mode: la $ra, main nop jr $ra main: # load SysTick => count clocks li $s7, 0x40000000 # $s7 0x40000000 lw $s6, 20($s7) # $s6 (0x40000014) # call bubble sort ori $a0, $0, 0 ...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r14 push %r15 push %r9 push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x3253, %rdx nop add %r13, %r13 mov $0x6162636465666768, %rsi movq %rsi, (%rdx) nop nop nop inc %rdx lea addresses_WT_ht+0x3721, %r9 add $62650, %r15 movb $0x61, (%r9...
; A180677: The Gi4 sums of the Pell-Jacobsthal triangle A013609. ; Submitted by Jon Maiga ; 1,3,15,87,503,2871,16311,92599,525751,2985399,16952759,96267703,546663863,3104271799,17627835831,100100959671,568430652855,3227875241399,18329726840247,104086701305271,591063984860599,3356400287444407,19059565762670007,108231145...
; Generate all legal moves. calign 16 Gen_Legal: ; in: rbp address of position ; rbx address of state ; io: rdi address to write moves push rsi r12 r13 r14 r15 ; generate moves mov rax, qword[rbx+State.checkersBB] mov rsi, rdi mov r15, qword[rbx+State.pinned] mov r13d, dword...
/** * This file has been modified from its orginal sources. * * Copyright (c) 2012 Software in the Public Interest Inc (SPI) * Copyright (c) 2012 David Pratt * * 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...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r15 push %r9 push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x2c8, %r11 nop nop add $45988, %rdi mov (%r11), %r15w sub %r9, %r9 lea addresses_A_ht+0xfd40, %r13 nop nop nop add %r9, %r9 mov (%r13), %rdx nop nop nop nop nop xor %r15, %r15 ...
#include "baldr/json.h" #include "baldr/rapidjson_utils.h" #include "test.h" #include <cstdint> #include <set> namespace { void TestJsonSerialize() { using namespace std; using namespace valhalla::baldr; stringstream result; result << *json::map( {{"hint_data", json::map( {{"locati...
;;; Test program of devices/ccs811.asm ;;- The test program for ccs811-asm (asm version). ;;- ;;- This program reads data from CCS811 and show the received data via USART like this: ;;- ;;- #+begin_src sh ;;- $ dterm /dev/ttyUSB0 4800 ;;- # Hallo CCS811 ;;- # CCS811 found at 0x5A ;;- # Waiting for the first data .... ...
// Copyright (c) 2012-2015 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 "key.h" #include "keystore.h" #include "validation.h" #include "policy/policy.h" #include "script/script.h" #include...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Copyright(c) 2011-2016 Intel Corporation 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 so...
.global s_prepare_buffers s_prepare_buffers: push %r14 push %r8 push %r9 push %rax push %rcx push %rdi push %rsi lea addresses_normal_ht+0xff81, %rsi lea addresses_WC_ht+0x8e49, %rdi clflush (%rsi) clflush (%rdi) add %r14, %r14 mov $64, %rcx rep movsb nop nop nop nop cmp %r9, %r9 lea addresses_WC_ht+0x1c141, %rsi lea a...
; These routines manage gradual fading ; (e.g., entering a doorway) LoadGBPal:: ld a, [wMapPalOffset] ;tells if wCurMap is dark (requires HM5_FLASH?) ld b, a ld hl, FadePal4 ld a, l sub b ld l, a jr nc, .ok dec h .ok ld a, [hli] ld [rBGP], a ld a, [hli] ld [rOBP0], a ld a, [hli] ld [rOBP1], a ret GBFade...
_sh: file format elf32-i386 Disassembly of section .text: 00001000 <main>: return 0; } int main(void) { 1000: 55 push %ebp 1001: 89 e5 mov %esp,%ebp 1003: 83 e4 f0 and $0xfffffff0,%esp 1006: 83 ec 10 sub $0x10,%esp stat...
.386p .model small FIRST_SEGMENT EQU 0 LOADER_BASE_SEGMENT EQU 800H KERNEL_BASE_SEGMENT EQU 1000H KERDLL_BASE_SEGMENT EQU 4000H FONT_BASE EQU 7600H BAKMBR_BASE EQU 7A00H INFO_BASE EQU 7800H LOADER_FLAG_OFFST EQU INFO_BASE LOADER_SEC_OFFSET EQU (INFO_BASE + 6) LOADER_SEC_CNT EQU (INFO_BASE + 4) KERNEL_SEC_OFFSE...
//******************************************************************** //* //* Warning: This file was generated by ecore4CPP Generator //* //******************************************************************** #ifndef FUML_EVALUATION_HPP #define FUML_EVALUATION_HPP #include <list> #include <memory> #include <stri...
%ifdef CONFIG { "RegData": { "R15": "0x3" }, "MemoryRegions": { "0x100000000": "4096" } } %endif %macro cfmerge 0 ; Get CF sbb r14, r14 and r14, 1 ; Merge in to results shl r15, 1 or r15, r14 %endmacro mov rdx, 0xe0000000 mov rax, 0xFFFFFFFF80000000 mov [rdx + 8 * 0], rax mov [rdx + 8 * 1], rax mo...
; PROLOGUE(mpn_half) ; Copyright 2009 Jason Moxham ; ; Windows Conversion Copyright 2008 Brian Gladman ; ; This file is part of the MPIR Library. ; The MPIR Library is free software; you can redistribute it and/or modify ; it under the terms of the GNU Lesser General Public License as published ; by the Free Sof...
; A020708: Pisot sequences E(4,9), P(4,9). ; 4,9,20,44,97,214,472,1041,2296,5064,11169,24634,54332,119833,264300,582932,1285697,2835694,6254320,13794337,30424368,67103056,148000449,326425266,719953588,1587907625,3502240516,7724434620,17036776865,37575794246,82876023112,182788823089,403153440424,889182903960,19611546310...
// SPDX-License-Identifier: BSD-3-Clause // Copyright Contributors to the OpenColorIO Project. #include <cstdio> #include <iostream> #include <fstream> #include <string.h> #include <OpenColorIO/OpenColorIO.h> namespace OCIO = OCIO_NAMESPACE; #include "apputils/argparse.h" #include "utils/StringUtils.h" // Array o...
org 0x100 cpu 8086 programBase: pitCyclesPerScanline equ 76 ; Fixed by CGA hardware scanlinesPerFrame equ 262 ; Fixed by NTSC standard activeScanlines equ 200 ; Standard CGA full-screen visual_profiler equ 0 onScreenPitCycles equ pitCyclesPerScanline*activeScanlines - 22 offScreenPitCycles ...
MOV R0, 1 start: ADD R0, 1 JL R0, 8, start MOV R1, R0 MOV R0, 0 RET db str "This is a test " ; Argument passed in in R1. If it's prime, sets R2 to 0. If not-prime, sets it to 1. isPrime:
#include "../glfw/include/GLFW/glfw3.h" #include "glpch.h" #include "OrthographicCamera.h" #include <glm/gtc/matrix_transform.hpp> namespace GLCore::Utils { OrthographicCamera::OrthographicCamera(float left, float right, float bottom, float top) : m_ViewMatrix(glm::lookAt(m_Position , m_camera_front + m_Posi...
; A070709: n^7 mod 28. ; 0,1,16,3,4,5,20,7,8,9,24,11,12,13,0,15,16,17,4,19,20,21,8,23,24,25,12,27,0,1,16,3,4,5,20,7,8,9,24,11,12,13,0,15,16,17,4,19,20,21,8,23,24,25,12,27,0,1,16,3,4,5,20,7,8,9,24,11,12,13,0,15,16,17,4,19,20,21,8,23,24 pow $0,7 mod $0,28
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r9 push %rax push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0x15a7d, %rbp nop nop nop sub $40790, %rax mov (%rbp), %rbx nop nop nop nop add $23978, %r13 lea addresses_D_ht+0xe4f9, %rsi lea addresses_A_ht+0x8c25, %rdi nop nop nop sub %r9...
; A246456: a(n) = sigma(n + sigma(n)). ; 3,6,8,12,12,39,24,24,36,56,24,90,40,60,56,48,48,80,56,96,54,90,48,224,120,126,68,224,60,216,104,120,121,180,84,128,124,171,120,252,84,288,120,255,168,180,120,308,162,168,168,372,108,360,128,372,138,266 mov $2,$0 seq $0,203 ; a(n) = sigma(n), the sum of the divisors of n. Also c...
; A052254: Partial sums of A050406. ; 1,17,108,444,1410,3762,8844,18876,37323,69355,122408,206856,336804,531012,813960,1217064,1780053,2552517,3595636,4984100,6808230,9176310,12217140,16082820,20951775,27032031,34564752,43828048,55141064,68868360,85424592,105279504,128963241,157071993,190273980,229315788,275029066,3283...
;****************************************************************************** .define dir_reg, 0x00 .define port_reg, 0x01 .define pin_reg, 0x02 .define prescaler_l, 0x03 .define prescaler_h, 0x04 .define count_ctrl, 0x05 .define uart_baud, 0x0A .defin...
#include "AppDelegate.h" #include "cocos2d.h" #include "platform/android/jni/JniHelper.h" #include <jni.h> #include <android/log.h> #include "runtime/ConfigParser.h" #include "ide-support/CodeIDESupport.h" #define LOG_TAG "main" #define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__) using ...
.text .globl main main: li $v0, 5 syscall move $t0, $v0 li $v0, 5 syscall ble $v0, $t0, next move $t0, $v0 next: li $v0, 5 syscall ble $v0, $t0, fine move $t0, $v0 fine: li $v0, 10 syscall .data