text
stringlengths
1
1.05M
; A014125: Bisection of A001400. ; 1,3,6,11,18,27,39,54,72,94,120,150,185,225,270,321,378,441,511,588,672,764,864,972,1089,1215,1350,1495,1650,1815,1991,2178,2376,2586,2808,3042,3289,3549,3822,4109,4410,4725,5055,5400,5760,6136,6528,6936 add $0,2 mov $2,$0 lpb $2,1 lpb $3,1 add $1,$3 trn $3,3 lpe sub $2,...
; A011886: a(n) = floor(n*(n-1)*(n-2)/4). ; 0,0,0,1,6,15,30,52,84,126,180,247,330,429,546,682,840,1020,1224,1453,1710,1995,2310,2656,3036,3450,3900,4387,4914,5481,6090,6742,7440,8184,8976,9817,10710,11655,12654,13708,14820,15990,17220,18511,19866,21285,22770,24322,25944,27636,29400,31237,33150,35139,37206,39352,41580,4...
; A203586: v(n+1)/v(n), where v=A203585. ; Submitted by Christian Krause ; 13,500,40426,5709600,1256804900,399383584000,173474742285000,98872482630272000,71645799536067250000,64368175738481971200000,70249051303937073666500000,91567621291850074309120000000 add $0,2 mov $3,$0 add $0,1 pow $0,2 mov $2,1 mov $4,1 lpb $3 ...
.include "defaults_mod.asm" table_file_jp equ "exe6-utf8.tbl" table_file_en equ "bn6-utf8.tbl" game_code_len equ 3 game_code equ 0x4252354A // BR5J game_code_2 equ 0x42523545 // BR5E game_code_3 equ 0x42523550 // BR5P card_type equ 1 card_id equ 31 card_no equ "031" card_sub equ "Mod Card 031" card_sub_x ...
SECTION code_fp_math16 PUBLIC sinf16 EXTERN _m16_sinf defc sinf16 = _m16_sinf ; SDCC bridge for Classic IF __CLASSIC PUBLIC _sinf16 EXTERN cm16_sdcc_sin defc _sinf16 = cm16_sdcc_sin ENDIF
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2015 The Bitcoin Core developers // Copyright (c) 2014-2017 The Crowdcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "rpc/server.h" #inc...
; ; Basic keyboard handling for the Jupiter ACE ; By Stefano Bodrato Feb. 2001 ; ; getkey() Wait for keypress ; ; ; $Id: fgetc_cons.asm,v 1.4 2015/01/19 01:33:17 pauloscustodio Exp $ ; PUBLIC fgetc_cons .fgetc_cons .kwait call $336 and a jr nz,kwait .kwait1 call $336 and a jr z,kwait1 cp 5 ; Delete? jr nz...
;THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX ;SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO ;END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A ;ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS ;IN USING, DISPLAYING, ...
/** @file 29.cpp Problem 29: Distinct powers * * Consider all integer combinations of a**b for 2 <= a <= 5 and 2 <= b <= 5: * * 2**2=4, 2**3=8, 24**=16, 2**5=32 * 3**2=9, 3**3=27, 3**4=81, 3**5=243 * 4**2=16, 4**3=64, 4**4=256, 4**5=1024 * 5**2=25, 5**3=125, 5**4=625, 5**5=3125 * * If they ...
; A077996: Expansion of (1-x)/(1-2*x-x^2-2*x^3). ; Submitted by Jamie Morken(s1) ; 1,1,3,9,23,61,163,433,1151,3061,8139,21641,57543,153005,406835,1081761,2876367,7648165,20336219,54073337,143779223,382304221,1016534339,2702931345,7187005471,19110010965,50812890091,135109802089,359252516199,955240614669,2539953349715,67...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r14 push %r15 push %r8 push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x13e05, %r13 nop nop nop nop inc %rdx movb $0x61, (%r13) nop nop nop nop sub %r14, %r14 lea addresses_WT_ht+0x79fd, %rsi nop nop nop xor %r8, %r8 and $0xffffffffffff...
.init main .code main: mov i0 @99 exit
; A093412: Triangle read by rows: a(n, k) is the numerator of (n + (n-1) + ... + (n-k+1))/(1 + 2 + ... + k), 0 < k <= n. ; Submitted by Christian Krause ; 1,2,1,3,5,1,4,7,3,1,5,3,2,7,1,6,11,5,9,4,1,7,13,3,11,5,9,1,8,5,7,13,2,11,5,1,9,17,4,3,7,13,3,11,1,10,19,9,17,8,15,7,13,6,1,11,7,5,19,3,17,2,5,7,13,1,12,23,11,21,10,1...
; A139488: Binomial transform of [1, 2, 3, 4, 0, 0, 0, ...]. ; 1,3,8,20,43,81,138,218,325,463,636,848,1103,1405,1758,2166,2633,3163,3760,4428,5171,5993,6898,7890,8973,10151,11428,12808,14295,15893,17606,19438,21393,23475,25688,28036,30523,33153,35930,38858,41941,45183 lpb $0,1 trn $2,3 add $2,$0 add $2,$0 sub ...
#include "defines.h" #include "DcxGDIModule.h" #include "Dcx.h" DcxGDIModule::~DcxGDIModule() noexcept { unload(); } bool DcxGDIModule::load(void) { if (isUseable()) return false; #ifdef DCX_USE_GDIPLUS // Initialize GDI+ DCX_DEBUG(mIRCLinker::debug, __FUNCTIONW__, TEXT("Initializing GDI+..."))...
// Copyright 2018 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 "services/network/public/cpp/features.h" namespace network { namespace features { const base::Feature kNetworkErrorLogging{"NetworkErrorLogging...
global start extern long_mode_start section .text bits 32 start: ;; Initialize the stack pointer mov esp, stack_top ;; Move Multiboot info pointer to edi mov edi, ebx call check_multiboot call check_cpuid call check_long_mode call setup_page_tables call enable_paging ;; Load the 64-bit ...
; A267602: Number of unlabeled, connected graphs on n vertices that are prime and have no induced subgraph isomorphic to a bull, a P5 or a P5-bar. ; 0,0,0,1,1,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Copyright (c) 2017 The Prufus developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or ht...
; --------------------------------------------------------------------------- ; Animation script - Newtron enemy ; --------------------------------------------------------------------------- dc.w byte_DF24-Ani_obj42 dc.w byte_DF28-Ani_obj42 dc.w byte_DF30-Ani_obj42 dc.w byte_DF34-Ani_obj42 dc.w byte_DF38-Ani_...
_grep: file format elf32-i386 Disassembly of section .text: 00000000 <main>: } } 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: 55 push %ebp b:...
#include "VgaTerminal.hpp" #include <typeinfo> #include "vgafonts.h" #include "vgapalette.h" #include <version.h> #include <algorithm> #include "exceptions/exceptions.hpp" #include <utility> template<typename T> constexpr auto RESIZE_VGA_PALETTE(T x) { return (x * 255 / 0x3F); } const VgaTerminal::videoMode_t V...
; Operators (Operator.asm) ; Demonstrates the TYPE, LENGTHOF, and SIZEOF operators .386 .model flat,stdcall .stack 4096 ExitProcess PROTO, dwExitCode:dword .data byte1 BYTE 10,20,30 array1 WORD 30 DUP(?),0,0 array2 WORD 5 DUP(3 DUP(?)) array3 DWORD 1,2,3,4 digitStr BYTE '12345678',0 myArr...
SECTION code_fp_mbf32 PUBLIC l_f32_div EXTERN ___mbf32_setup_arith EXTERN ___mbf32_DVBCDE EXTERN ___mbf32_return EXTERN msbios l_f32_div: call ___mbf32_setup_arith IF __CPU_INTEL__ || __CPU_GBZ80__ call ___mbf32_DVBCDE ELSE ld ix,___mbf32_DVBCDE call msbios ENDIF jp ___mbf32_return
push ebp mov ebp,esp push ecx push esi call dword ptr ds:[3AD1BCh] mov esi,dword ptr [dev] mov ecx,eax mov eax,esi xor edx,edx and eax,3F000h div eax,ecx xor eax,esi and e...
// RUN: %clang_cc1 -fsyntax-only -verify %s template void *; // expected-error{{expected unqualified-id}} template typedef void f0; // expected-error{{explicit instantiation of typedef}} int v0; // expected-note{{refers here}} template int v0; // expected-error{{does not refer}} template<typename T> struct X0 { s...
//***************************************************************************** // Copyright 2017-2020 Intel Corporation // // 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://w...
; A281716: Number of 2 X n 0..1 arrays with no element unequal to a strict majority of its horizontal, diagonal and antidiagonal neighbors and with new values introduced in order 0 sequentially upwards. ; Submitted by Simon Strandgaard ; 2,3,7,14,29,61,126,265,553,1162,2441,5141,10846,22921,48529,102914,218617,465133,9...
; A179783: a(n) = 2*n*(n+1)*(n+2)/3 + (-1)^n. ; 1,3,17,39,81,139,225,335,481,659,881,1143,1457,1819,2241,2719,3265,3875,4561,5319,6161,7083,8097,9199,10401,11699,13105,14615,16241,17979,19841,21823,23937,26179,28561,31079,33745,36555,39521,42639,45921,49363,52977,56759,60721,64859,69185,73695,78401,83299,88401,93703,99...
; Startup code for cc65 and Shiru's NES library ; based on code by Groepaz/Hitmen <groepaz@gmx.net>, Ullrich von Bassewitz <uz@cc65.org> FT_DPCM_OFF = $c000 ;$c000..$ffc0, 64-byte steps FT_SFX_STREAMS = 4 ;number of sound effects played at once, 1..4 .define FT_DPCM_ENABLE 1 ;undefine to exclude all DMC c...
#include "stdafx.h" #include "messages_data.h" #include "storage.h" #include "archive_index.h" #include "../tools/system.h" #include "../../common.shared/common_defs.h" using namespace core; using namespace archive; messages_data::messages_data(const std::wstring& _file_name) : storage_(new storage(_fi...
.586 .model flat .code _somma_modulo proc push ebp mov ebp,esp push esi push edi push ebx ; dword ptr[ebp+12] ; len mov ebx, dword ptr[ebp+8] ;src arr PP dest arr mov esi, 0d mov ecx, 0d mov edi, 0d ; counter 3 & 4 primo_ciclo: cmp esi, dword ptr[ebp+12] je fine_primo mov eax, dword ptr [ebx+esi*4] cdq idiv dw...
; A129003: (n^3+n^2)*3^n. ; 6,108,972,6480,36450,183708,857304,3779136,15943230,64953900,257217444,994857552,3772168218,14061928860,51656065200,187339329792,671787127926,2384960530284,8391527791740,29288988968400,101486346775506,349333955567388,1195241798387592,4066985325326400,13768439903448750,46394135098660908,15565...
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "db/builder.h" #include "db/dbformat.h" #include "db/filename.h" #include "db/table_cache.h" ...
; A071721: Expansion of (1+x^2*C^2)*C^2, where C = (1-(1-4*x)^(1/2))/(2*x) is g.f. for Catalan numbers, A000108. ; 1,2,6,18,56,180,594,2002,6864,23868,83980,298452,1069776,3863080,14040810,51325650,188574240,695987820,2579248980,9593714460,35804293200,134032593240,503154100020,1893689067348,7144084508256,27010813341400...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r14 push %r8 push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x62c0, %r11 nop nop nop nop nop sub %rsi, %rsi movups (%r11), %xmm4 vpextrq $0, %xmm4, %r12 nop nop nop sub $33783, %rbx lea addresses_normal_ht+0x7f40, %r10 clflush ...
#include <iostream> using namespace std; // 객체지향 마무리 // 1) struct vs class // c++ 에서는 struct 나 class나 종이 한 장 차이다. // struct는 기본 접근 지정자가 public 이고 class는 private이다. // 왜 이렇게 했을까? c++는 c언어에서 파상되어 발전했기 때문에, 호환성을 지키기 위함. // struct -> 그냥 구조체 (데이더 묶음)표현 용도 // class -> 객체 지향 프로그래밍의 특징 나타내는 용도 struct Teststruct { public: ...
; A017466: a(n) = (11*n + 6)^6. ; 46656,24137569,481890304,3518743761,15625000000,51520374361,139314069504,326940373369,689869781056,1340095640625,2436396322816,4195872914689,6906762437184,10942526586601,16777216000000,25002110044521,36343632130624,51682540549249,72074394832896,98771297640625,133244912166976,1772107550...
;shaochen ren extern printf global read_clock section .bss section .text read_clock: push rbp ;Backup rbp mov rbp,rsp ;The base pointer now points to top of stack push rdi ...
; A273387: First differences of number of active (ON,black) cells in n-th stage of growth of two-dimensional cellular automaton defined by "Rule 659", based on the 5-celled von Neumann neighborhood. ; 4,12,32,32,40,48,56,64,72,80,88,96,104,112,120,128,136,144,152,160,168,176,184,192,200,208,216,224,232,240,248,256,264,...
; This table translates key presses into ascii codes. ; Also used by 'GetKey' and 'LookupKey'. An effort has been made for ; this key translation table to emulate a PC keyboard with the 'CTRL' ; key represented by CAPS SHIFT + SYM SHIFT. XLIB in_keytranstbl .in_keytranstbl defb 255,'z','x','c','v' ; CAPS SH...
<% from pwnlib.shellcraft.amd64.linux import setsockopt from pwnlib.shellcraft.amd64 import push from pwnlib.constants import SOL_SOCKET, SO_RCVTIMEO %> <%page args="sock, secs"/> <%docstring> Invokes the syscall for setsockopt to set a timeout on a socket in seconds. See 'man 2 setsockopt' for more inform...
; A021681: Decimal expansion of 1/677. ; Submitted by Christian Krause ; 0,0,1,4,7,7,1,0,4,8,7,4,4,4,6,0,8,5,6,7,2,0,8,2,7,1,7,8,7,2,9,6,8,9,8,0,7,9,7,6,3,6,6,3,2,2,0,0,8,8,6,2,6,2,9,2,4,6,6,7,6,5,1,4,0,3,2,4,9,6,3,0,7,2,3,7,8,1,3,8,8,4,7,8,5,8,1,9,7,9,3,2,0,5,3,1,7,5,7 add $0,1 mov $2,10 pow $2,$0 div $2,677 mov $0,$...
/** * %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% * * Copyright (c) 2012 - SCAPI (http://crypto.biu.ac.il/scapi) * This file is part of the SCAPI project. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Permission is hereby granted, free of charge, to any pe...
; ; Z88 Graphics Functions - Small C+ stubs ; ; Written around the Interlogic Standard Library ; ; Stubs Written by D Morris - 30/9/98 ; ; ; $Id: xordrawto.asm $ ; ; CALLER LINKAGE FOR FUNCTION POINTERS ; ----- void xordrawto(int x2, int y2) SECTION code_graphics PUBLIC xordrawto PUB...
############################################################################### # Copyright 2018 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...
; ******************************************************************************************* ; ******************************************************************************************* ; ; Name : unittest.asm ; Purpose : Basic Interpreter (Main) ; Date : 31st July 2019 ; Author : Paul Robson (paul@robsons.or...
; A165817: Number of compositions (= ordered integer partitions) of n into 2n parts. ; 1,2,10,56,330,2002,12376,77520,490314,3124550,20030010,129024480,834451800,5414950296,35240152720,229911617056,1503232609098,9847379391150,64617565719070,424655979547800,2794563003870330,18412956934908690 mov $1,3 mul $1,$0 sub $1,1...
#ifndef RDF4CPP_BLANKNODE_HPP #define RDF4CPP_BLANKNODE_HPP #include <optional> #include <ostream> #include <rdf4cpp/rdf/Node.hpp> namespace rdf4cpp::rdf { class BlankNode : public Node { private: BlankNode(const NodeID &id); explicit BlankNode(BackendNodeHandle handle); public: BlankNode(); explic...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r14 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x107a6, %r14 nop nop nop nop nop xor $45802, %rdx mov (%r14), %cx nop nop and %r10, %r10 lea addresses_WT_ht+0xc5a, %rcx nop add $61369, %rdi movw $0x6162, (%rcx) nop dec %r1...
;/* ; * Microsoft Confidential ; * Copyright (C) Microsoft Corporation 1991 ; * All Rights Reserved. ; */ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; DESCRIPTION : Code Page Switching 5202 Printer Font File ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ...
#include <gtest/gtest.h> #include "../../../../../src/ara/com/someip/sd/someip_sd_server.h" #include "../../../../../src/ara/com/someip/sd/someip_sd_client.h" #include "../../helper/mockup_network_layer.h" namespace ara { namespace com { namespace someip { namespace sd {...
; test code to measure time of a small system call ; compile and run with: ; yasm -f elf64 write_syscall.asm && ld write_syscall.o -o write_syscall && time ./write_syscall section .data filename: db '/dev/null', 0 section .text global _start _start: ; r14 = open("/dev/null", O_WRONLY) mov rax, 2 mov rdi, ...
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r14 push %rax push %rcx push %rdx push %rsi // Store lea addresses_PSE+0x1cfaf, %rsi nop nop and %r14, %r14 mov $0x5152535455565758, %rax movq %rax, %xmm2 movups %xmm2, (%rsi) nop nop sub %rax, %rax //...
; @author Changlon <changlong.a2@gmail.com> ; @github https://github.com/Changlon ; @date 2022-02-27 23:43:04 ; 内核程序,加载用户程序,创建安装描述符,切到用户代码执行
; A160720: Number of "ON" cells at n-th stage in 2-dimensional cellular automaton (see Comments for precise definition). ; 0,1,5,9,21,25,37,49,77,81,93,105,133,145,173,201,261,265,277,289,317,329,357,385,445,457,485,513,573,601,661,721,845,849,861,873,901,913,941,969,1029,1041,1069,1097,1157,1185,1245,1305,1429,1441,14...
; Enhanced BASIC to assemble under 6502 simulator, $ver 2.09 ; $E7E1 $E7CF $E7C6 $E7D3 $E7D1 $E7D5 $E7D3 ; 2.00 new revision numbers start here ; 2.01 fixed LCASE$() and UCASE$() ; 2.02 new get value routine done ; 2.03 changed RND() to Galois method ; 2.04 fixed SPC() ; 2.05 new get value routine fixed ; 2.06 chang...
; void *zx_cyx2aaddr(uchar row, uchar col) SECTION code_clib SECTION code_arch PUBLIC _zx_cyx2aaddr EXTERN l0_zx_cyx2aaddr_callee _zx_cyx2aaddr: pop af pop de pop hl push hl push de push af jp l0_zx_cyx2aaddr_callee
; A193868: Even central polygonal numbers. ; 2,4,16,22,46,56,92,106,154,172,232,254,326,352,436,466,562,596,704,742,862,904,1036,1082,1226,1276,1432,1486,1654,1712,1892,1954,2146,2212,2416,2486,2702,2776,3004,3082,3322,3404,3656,3742,4006,4096,4372,4466,4754,4852,5152,5254,5566,5672,5996,6106,6442,6556,6904,7022,7382,7...
/* * Copyright (c) 2020, NVIDIA CORPORATION. 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 requir...
// 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/diagnostics/recon_diagnostics.h" #include <string> #include "base/file_util.h" #include "base/json/json_reader.h" #include ...
; int isgreaterequal(float x, float y) __z88dk_callee SECTION code_fp_math48 PUBLIC cm48_sdccix_isgreaterequal_callee EXTERN am48_isgreaterequal, cm48_sdccixp_dcallee2 cm48_sdccix_isgreaterequal_callee: call cm48_sdccixp_dcallee2 ; AC'= y ; AC = x jp am48_isgreaterequal
_helloname_test: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "stat.h" #include "user.h" #include "fcntl.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 push...
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // // $NoKeywords: $ //=============================================================================// #include "cbase.h" #include "particles_simple.h" #include "tempent.h" #include "iefx.h" #include "decals.h" #include "iview...
// Original test: ./shi-ting/hw4/problem6/roli_2.asm // Author: shi-ting // Test source code follows //Author: Shi-Ting Zhou, shi-ting lbi r1, 97 roli r2, r1, 4 halt
.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+0x1ec23, %rsi lea addresses_D_ht+0xd963, %rdi sub $22376, %r13 mov $28, %rcx rep movsl nop nop nop nop nop sub $27556, %rdi lea addresses_normal_ht+0x1cd9, %r9 clflush (%r9) no...
.global s_prepare_buffers s_prepare_buffers: push %r14 push %r15 push %r8 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0x7a30, %rcx add %r15, %r15 movups (%rcx), %xmm6 vpextrq $0, %xmm6, %r9 nop nop xor %rbx, %rbx lea addresses_D_ht+0xb228, %rsi lea addresses_D_ht+0x1dfe8, %rdi nop nop nop nop cm...
#pragma once #include <string> #include <rai/common/numbers.hpp> namespace rai { #define XSTR(x) VER_STR(x) #define VER_STR(x) #x const char * const RAI_VERSION_STRING = XSTR(TAG_VERSION_STRING); enum class RaiNetworks { // Low work parameters, publicly known genesis key, test IP ports TEST, // Normal wor...
; We're done, so save the number. lastNum: pop ; Get the number stod binarynum: ; Store it in the binary number var lodd 4092 ; Load the input buffer loco 0 retn ; Done so return.
.include "header.inc" .include "misc_macros.inc" .bank 0 slot 1 .ramsection "lfsr_vars" SLOT RAM_SLOT lfsr_state: dw .ends .section "lfsr" FREE .16BIT ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; Simple pseudo-random number generator. ; ; Based on https://en.wikipedia.org/wiki/Linea...
; A189054: E.g.f. exp(x/sqrt(1-4*x^2)). ; Submitted by Christian Krause ; 1,1,1,13,49,841,6001,126421,1371553,34081489,503678881,14391006301,271223253841,8751666000793,201326507146129,7238365225056421,197024810845531201,7810072695945382561,245787442777437613633,10650850672760636362669,380690212524743467643761,179067653...
SECTION code_clib SECTION code_l_sdcc PUBLIC __divsint_callee EXTERN l_divs_16_16x16 __divsint_callee: ; signed 16-bit division ; ; enter : stack = divisor, dividend, ret ; ; exit : hl = quotient ; de = remainder pop af pop hl ; hl = dividend pop de ...
BITS 32 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS=FLAG_FPU_PE|FLAG_FPU_C1 ;TEST_FILE_META_END FLDPI ;TEST_BEGIN_RECORDING lea edi, [esp-0xc] FST dword [edi] FSUBR dword [edi] mov edi, 0 ;TEST_END_RECORDING
; A036982: a(n)=[ a*a(n-1)+b ]/p^r, where a=2.001, b=3.2, p=2 and p^r is the highest power of p dividing [ a*a(n-1)+b ]. ; 1,5,13,29,61,125,253,509,1021,1023,1025,1027,1029,1031,1033,1035,1037,1039,1041,1043,1045,1047,1049,1051,1053,1055,1057,1059,1061,1063,1065,1067,1069,1071,1073,1075,1077,1079,1081,1083,1085,1087,10...
// 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/plugins/plugin_policy_handler.h" #include <string> #include "base/stl_util.h" #include "base/strings/pattern.h" #include "b...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r14 push %r15 push %rbp push %rcx push %rdx lea addresses_D_ht+0xc561, %r12 clflush (%r12) xor $14721, %r14 mov (%r12), %r15d nop nop nop cmp %rbp, %rbp lea addresses_normal_ht+0xa9b1, %rcx xor %r11, %r11 mov $0x6162636465666768, %rdx movq %rdx, %xm...
#pragma once #include <avk/avk.hpp> namespace avk { /** The format of a color channel */ enum struct image_color_channel_format { uint8, uint8_srgb, int8, uint16, int16, uint32, int32, uint64, int64, float16, float32, float64 }; }
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r14 push %rax lea addresses_D_ht+0x2c1d, %r12 clflush (%r12) nop nop nop nop nop inc %r10 mov (%r12), %eax nop nop nop nop nop cmp $60664, %r14 pop %rax pop %r14 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r15 pus...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r13 push %r15 push %r9 push %rcx push %rdi push %rsi lea addresses_A_ht+0x13296, %rsi nop nop nop sub $3865, %r13 movb (%rsi), %r10b add $42345, %r9 lea addresses_D_ht+0x496, %rcx nop cmp %r9, %r9 mov (%rcx), %r12w nop nop xor %rcx, %rcx lea address...
.size 8000 .text@48 jp lstatint .text@100 jp lbegin .data@143 c0 .text@150 lbegin: ld b, 91 lbegin_waitvblank: ldff a, (44) cmp a, b jrnz lbegin_waitvblank xor a, a ldff(40), a ld a, 00 ldff(ff), a ld a, 30 ldff(00), a ld a, 01 ldff(4d), a stop, 00 ld a, 91 ldff(40), a ld c, 41 ld b, 03 lbegin_w...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %rax push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x176c4, %rdx nop nop and $8102, %rsi movb (%rdx), %r13b nop nop nop nop nop and %rax, %rax lea addresses_D_ht+0xe724, %rbx clflush (%rbx) nop nop nop nop inc %r12 mov $0x6162...
section .data hello db "The answer is %d", 0x0a, 0x00 section .text ;default rel global _main extern _printf, _exit _main: push ebp mov ebp, esp ; Set up stack frame mov eax, 40 mov ebx, 2255 sub ebx, eax sub esp, 8 ; 16-byte align stack + room for parameters passed ...
; A172284: First positive zeros of Bessel function of order n rounded to nearest integer ; 2,4,5,6,8,9,10,11,12,13,14,16,17,18,19,20,21,22,23,24,25,26,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,68,69,70,71,72,73,74,75,76,77,78 mov $1,3 mov $2,$0 mo...
; A293956: Maximum over all sets of n points in the plane of the number of second-smallest distances between the points. ; Submitted by Jamie Morken(s3) ; 0,0,2,4,6,9,11,14,18,20 mul $0,7 add $0,7 mov $1,$0 div $1,4 sub $0,$1 div $0,2 mod $1,2 add $1,$0 mov $0,$1 trn $0,7
INCLUDE Irvine32.inc INCLUDELIB Winmm.lib ;// Biblioteca do PlaySound PlaySound PROTO, pszSound : PTR BYTE, hmod : DWORD, fdwSound : DWORD ;// ------------------------------------------------------------------------- ;// DEFINIÇÃO DE CONSTANTES ;// --------------------------------------------------------------------...
#include <glad/glad.h> #include <GLFW/glfw3.h> #include <iostream> #include <tool/shader.h> #include <tool/camera.h> #define STB_IMAGE_IMPLEMENTATION #include <tool/stb_image.h> #include <tool/gui.h> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> using namespace std; ...
; ; SEGA SC-3000 C Library ; ; Print string to the screen ; ; $Id: puts_cons.asm,v 1.2 2015/01/19 01:33:21 pauloscustodio Exp $ ; PUBLIC puts_cons ; Enter in with hl holding the address of string to print .puts_cons pop bc pop hl push hl push bc jp $4A6F
*=$8000 .fill $8000,$ff .include "wd1770.asm" .include "com.asm" .include "equate.asm" .include "iodef.asm" .include "lccio.asm" .include "ramvar.asm" ;.include "dversion.asm" ;checksum, signature, & version bytes .include "burst.a...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r9 push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x86e, %rsi lea addresses_D_ht+0x226e, %rdi inc %r9 mov $56, %rcx rep movsq nop nop nop cmp $46686, %rdx lea addresses_WC_ht+0x28ee, %rsi lea addresses_WT_ht+0x1dee6, %rdi and %r9, %r9 m...
; A212739: a(n) = 2^(n^2) - 1. ; 0,1,15,511,65535,33554431,68719476735,562949953421311,18446744073709551615,2417851639229258349412351,1267650600228229401496703205375 pow $0,2 mov $1,2 pow $1,$0 sub $1,1 mov $0,$1
; A040134: Continued fraction for sqrt(147). ; 12,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8 mul $0,-3 add $0,2 mod $0,6 div $0,2 pow $0,2 mov $1,$0 mul $1,4 add $1,8
;;============================================================================ ;; MCKL/lib/asm/math.asm ;;---------------------------------------------------------------------------- ;; MCKL: Monte Carlo Kernel Library ;;---------------------------------------------------------------------------- ;; Copyright (c) 2013-...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r14 push %r9 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x1dd12, %r14 clflush (%r14) nop nop add %r12, %r12 movl $0x61626364, (%r14) nop nop nop nop nop and $64733, %r9 lea addresses_WC_ht+0x1211e, %rcx nop nop nop cmp $35791, %rbx m...
/** * Copyright (C) 2019 Samsung Electronics Co., Ltd. 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 requ...
%ifdef CONFIG { "RegData": { "RAX": "0x000000000000fbcc", "RBX": "0x00000000000089fb", "RCX": "0x0000000000000089", "RDX": "0x0000000000001800", "RSI": "0x000000000000b018", "RDI": "0x000000000000cbb0", "RBP": "0x00000000000054cb", "RSP": "0x0000000000002a54", "R8": "0x00000000000...
BITS 64 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS=FLAG_AF|FLAG_OF ;TEST_FILE_META_END ; SHR16r1 mov ax, 0xe45 ;TEST_BEGIN_RECORDING shr ax, 0x1 ;TEST_END_RECORDING
dnl ARM mpn_lshiftc. dnl Contributed to the GNU project by Torbjörn Granlund. dnl Copyright 2012 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl dnl The GNU MP Library is free software; you can redistribute it and/or modify dnl it under the terms of either: dnl dnl * the GNU ...
;[]-----------------------------------------------------------------[] ;| ROTR.ASM -- right rotate of unsigned short | ;[]-----------------------------------------------------------------[] ; ; C/C++ Run Time Library - Version 10.0 ; ; Copyright (c) 1991, 2000 by Inprise Corporation...
; A237516: Pyramidal centered square numbers. ; 1,15,91,325,861,1891,3655,6441,10585,16471,24531,35245,49141,66795,88831,115921,148785,188191,234955,289941,354061,428275,513591,611065,721801,846951,987715,1145341,1321125,1516411,1732591,1971105,2233441,2521135,2835771,3178981,3552445,3957891,4397095,4871881,5384121,593...
#pragma once #include "alu.inl" #include "branch.inl" #include "data_transfer.inl" #include "push_pop.inl" #include "misc.inl" namespace TurnipEmu::ARM7TDMI::Instructions::Thumb { const Condition InstructionCategory::always = { "AL", "true", [](ProgramStatusRegister status) { return true; } }; Instruc...