text
stringlengths
1
1.05M
/* A view of a path to something (C) 2017-2020 Niall Douglas <http://www.nedproductions.biz/> (20 commits) File Created: Jul 2017 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 in the accompanying fi...
; A106576: Period 20. Sequence gives last digit of A106157, starting from the first positive term. ; 1,2,1,2,3,6,3,6,5,0,5,0,7,4,7,4,9,8,9,8,1,2,1,2,3,6,3,6,5,0,5,0,7,4,7,4,9,8,9,8,1,2,1,2,3,6,3,6,5,0,5,0,7,4,7,4,9,8,9,8,1,2,1,2,3,6,3,6,5,0,5,0,7,4,7,4,9,8,9,8,1,2,1,2,3,6,3,6,5,0,5,0,7,4,7,4,9,8,9,8 mov $1,$0 div $1,2...
.macosx_version_min 10, 11 .section __TEXT,__text,regular,pure_instructions .align 4, 0x90 .globl _PyToken_OneChar _PyToken_OneChar: pushq %rbp movq %rsp, %rbp movl %edi, -8(%rbp) movl %edi, %eax subl $93, %edi movl %eax, -12(%rbp) movl %edi, -16(%rbp) jg L0000...
; size_t ftog(float x, char *buf, uint16_t prec, uint16_t flag) SECTION code_clib SECTION code_stdlib PUBLIC ftog EXTERN dtog defc ftog = dtog
; --------------------------------------------------------------------------- ; Sprite mappings - chain of spiked balls (SYZ) ; --------------------------------------------------------------------------- dc.w byte_10958-Map_obj57 byte_10958: dc.b 1 dc.b $F8, 5, 0, 0, $F8 even
SECTION code_driver SECTION code_driver_character_input PUBLIC _acia_peekc EXTERN aciaRxCount, aciaRxOut _acia_peekc: ld a,(aciaRxCount) ; get the number of bytes in the Rx buffer ld l,a ; and put it in hl or a ; see if...
// Copyright (c) 2009-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-2018 The Bitcoin Green developers // Copyright (c) 2018 The Insifa developers // Distributed under the MIT sof...
;----------------------------------------------------------- ; Filename: dcspropp.asm ; Long name: Doors CS 6 Properties Subsection for 83+/84+/SE ; Author: Kerm Martian aka Christopher Mitchell ; Last Update: April 25, 2010 ; ;Please consult license.txt for the fair use agreement ;implicitly binding by you contin...
%ifdef CONFIG { "RegData": { "RAX": "0x4008000000000000" }, "Env": { "FEX_X87REDUCEDPRECISION" : "1" } } %endif mov rdx, 0xe0000000 mov rax, 0x3ff0000000000000 ; 1.0 mov [rdx + 8 * 0], rax mov rax, 0x4000000000000000 ; 2.0 mov [rdx + 8 * 1], rax fld qword [rdx + 8 * 0] fld qword [rdx + 8 * 1] ; fadd st(0)...
/*========================================================================= Program: Visualization Toolkit Module: vtkTransform2D.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This s...
; A251657: a(n) = (2^n + 3)^n. ; 1,5,49,1331,130321,52521875,90458382169,662062621900811,20248745068443234721,2548385124666493326171875,1305282261160894865367626964649 mov $1,2 pow $1,$0 add $1,3 pow $1,$0 mov $0,$1
/* * File: ximajas.cpp * Purpose: Platform Independent JasPer Image Class Loader and Writer * 12/Apr/2003 Davide Pizzolato - www.xdp.it * CxImage version 5.99c 17/Oct/2004 */ #include "ximajas.h" #if CXIMAGE_SUPPORT_JASPER //////////////////////////////////////////////////////////////////////////////// bool CxI...
/* * Copyright 2020 Tadashi G. Takaoka * * 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 agr...
/** * This is the C++ adaptation and derivative work of Myia (https://github.com/mila-iqia/myia/). * * Copyright 2019 Huawei Technologies Co., Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the ...
; A304508: a(n) = 5*(3*n+1)*(9*n+8)/2 (n>=0). ; 20,170,455,875,1430,2120,2945,3905,5000,6230,7595,9095,10730,12500,14405,16445,18620,20930,23375,25955,28670,31520,34505,37625,40880,44270,47795,51455,55250,59180,63245,67445,71780,76250,80855,85595,90470,95480,100625,105905,111320,116870,122555,128375,134330,140420,14664...
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r14 push %r15 push %r8 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_UC_ht+0xbdc3, %rbx nop nop nop nop dec %r14 mov (%rbx), %ebp nop nop dec %rbp lea addresses_UC_ht+0x19b21, %r13 nop nop nop add %rbx, %rbx mov (%r13), %r15w nop nop nop nop...
; A162626: If 0 <= n <= 3 then a(n) = n(n+1)(n+2)/3, if n >= 4 then a(n) = n(n^2+5)/3. ; 0,2,8,20,28,50,82,126,184,258,350,462,596,754,938,1150,1392,1666,1974,2318,2700,3122,3586,4094,4648,5250,5902,6606,7364,8178,9050,9982,10976,12034,13158,14350,15612,16946,18354,19838,21400,23042,24766,26574 mov $2,$0 trn $2,3 add ...
//===- LinalgToStandard.cpp - conversion from Linalg to Standard dialect --===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
#pragma once #ifdef ORBIT_DIRECTX_12 #endif
/*========================================================================= Program: Visualization Toolkit Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distributed WITHOUT ANY WARRAN...
// Copyright (c) 2020 Carnegie Mellon University // // 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, m...
TITLE GDI.ASM PAGE ,132 ; ; WOW v1.0 ; ; Copyright (c) 1991, Microsoft Corporation ; ; GDI.ASM ; Thunks in 16-bit space to route Windows API calls to WOW32 ; ; History: ; 25-Jan-1991 Jeff Parsons (jeffpar) ; Created. ; ; Some applications require that USER have a heap. ...
; A184659: floor(n*s+h-h*s), where s=(3+sqrt(5))/2, h=-1/3; complement of A184658. ; 3,5,8,11,13,16,18,21,24,26,29,31,34,37,39,42,45,47,50,52,55,58,60,63,65,68,71,73,76,79,81,84,86,89,92,94,97,100,102,105,107,110,113,115,118,120,123,126,128,131,134,136,139,141,144,147,149,152,155,157,160,162,165,168,170,173,175,178,181...
// The MIT License (MIT) // // Copyright (c) 2018 Mateusz Pusz // // 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, co...
; A086090: 2^n+n3^n. ; 1,5,22,89,340,1247,4438,15437,52744,177659,591514,1950665,6381388,20734391,66977950,215266373,688813072,2195513843,6973830946,22083492161,69736736596,219669514415,690387505702,2165301501629 mov $1,1 mov $3,$0 lpb $0 sub $0,1 mul $1,2 mov $2,$3 add $2,$3 add $3,$2 lpe add $1,$3 mov $0,$...
; A087915: Even numbers n such that 2*n+3 is a prime. ; Submitted by Jon Maiga ; 0,2,4,8,10,14,20,22,28,32,34,38,40,50,52,62,64,68,74,80,82,88,94,98,104,110,112,118,124,130,134,140,152,154,164,172,178,182,188,190,208,214,218,220,230,232,238,242,244,248,250,260,272,280,284,292,298,302 mov $2,36 mul $2,$0 mov $4,2 lpb $...
; ; Sprinter C Library ; ; ANSI Video handling for Sprinter ; ; Handles colors referring to current PAPER/INK/etc. settings ; ; Scrollup ; ; ; $Id: f_ansi_scrollup.asm,v 1.3 2016/06/12 16:06:43 dom Exp $ ; SECTION code_clib PUBLIC ansi_SCROLLUP .ansi_SCROLLUP ld de,0 ;top xy ld h,32 ld l,80 ld ...
; A245301: a(n) = n*(7*n^2 + 15*n + 8)/6. ; 0,5,22,58,120,215,350,532,768,1065,1430,1870,2392,3003,3710,4520,5440,6477,7638,8930,10360,11935,13662,15548,17600,19825,22230,24822,27608,30595,33790,37200,40832,44693,48790,53130,57720,62567,67678,73060,78720,84665 mov $2,$0 lpb $2,1 add $0,4 add $3,$0 add $1,$3 su...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r9 push %rcx lea addresses_UC_ht+0x13ee6, %r10 nop nop nop nop and $9, %rcx vmovups (%r10), %ymm2 vextracti128 $1, %ymm2, %xmm2 vpextrq $0, %xmm2, %r12 nop nop nop and %r9, %r9 pop %rcx pop %r9 pop %r12 pop %r10 ret .global s_faulty_load s_faul...
#include "txtablemodel.h" #include "settings.h" #include "rpc.h" TxTableModel::TxTableModel(QObject *parent) : QAbstractTableModel(parent) { headers << QObject::tr("Type") << QObject::tr("Address") << QObject::tr("Date/Time") << QObject::tr("Amount"); } TxTableModel::~TxTableModel() { delete modeldata; ...
; ; Spectrum C Library ; ; ANSI Video handling for The Sharp MZ ; (Hey, I've been lucky.. the Aquarius port works in the same way!) ; ; Text Attributes ; m - Set Graphic Rendition ; ; Stefano Bodrato - May 2000 ; Stefano Bodrato - Jan 2002..fixed ; ; $Id: f_ansi_attr.asm,v 1.5 2015/01/19 01:33:19 pauloscustodi...
#include <Arduboy2.h> #include "game.h" #include "renderer.h" #include "nonMaskBitmaps.h" #include "maskBitmaps.h" #include "strings.h" #include "tileFloor.h" #include "world.h" #include "hud.h" #include "shop.h" #include "girlDialog.h" #include "guyDialog.h" #include "worms.h" #include "signs.h" #include "girl.h" #inc...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r14 push %r9 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x17336, %r14 nop nop nop nop inc %rax mov $0x6162636465666768, %rdi movq %rdi, (%r14) add %rcx, %rcx lea addresses_normal_ht+0x159f6, %r12 nop xor %rdx, %rdx mov $0x616263...
.text .global _start _start: /* // 69 IMUL r16/32/64 r/m16/32/64 imm16/32 imul $260, %rdx, %rax imul $260, %eax, %edx imul $260, %ax, %dx // 6B IMUL r16/32/64 r/m16/32/64 imm8 imul $5, %rdx, %rax imul $5, %edx, %eax imul $5, %edx imul $5, %eax imul $5, %...
page ,132 ;*****************************************************************************; ; ; ; FILE NAME: doswrite.asm ; ; ; ; DESCRIPTION: MS-DOS write file function 40H ; ; ; ; NOTES: ; ; ; ; HISTORY: ...
#include <stdint.h> #include "m2_btn.h" unsigned int btnTimer[BTN_CNT]; uint8_t btnState[BTN_CNT]; unsigned int btnDebounce; //+============================================================================= ======================================= int btn_get (btn_t btn) { unsigned i...
ORG 020 SP: 7FF ACC: WORD ? PUSH: WORD ? MOV ACC CLA ADD SP DEC MOV SP CLA ADD ACC MOV (SP) BR(PUSH) POP: WORD ? CLA ADD (SP) MOV ACC CLA ADD SP INC MOV S...
; A127802: a(0) = 1, a(n) = 3*A036987(n), n>1. ; 1,3,0,3,0,0,0,3,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,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,3,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,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,3,0,0,0,0,0,0,0,0...
; float sqrt(float x) __z88dk_fastcall SECTION code_fp_math48 PUBLIC cm48_sdccix_sqrt_fastcall EXTERN cm48_sdccixp_dx2m48, am48_sqrt, cm48_sdccixp_m482d cm48_sdccix_sqrt_fastcall: call cm48_sdccixp_dx2m48 call am48_sqrt jp cm48_sdccixp_m482d
SECTION code_driver SECTION code_driver_terminal_output PUBLIC console_01_output_char_iterm_msg_readline_end console_01_output_char_iterm_msg_readline_end: ; input terminal readline ends res 7,(ix+7) ; indicate readline not in progress ; number of allowed scrolls set to current y coo...
############################################################################### # 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...
; A192255: 1-sequence of reduction of (n^2) by x^2 -> x+1. ; 0,4,13,45,120,300,692,1524,3225,6625,13280,26096,50432,96100,180925,337085,622328,1139756,2072580,3744980,6728345,12026209,21395328,37901760,66881760,117598660,206094157,360085869,627364920,1090171020 lpb $0 add $0,1 mov $2,$0 seq $2,118658 ; a(n) = 2*...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r13 push %r8 push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x465b, %r10 nop nop inc %r8 mov $0x6162636465666768, %r11 movq %r11, %xmm7 movups %xmm7, (%r10) nop nop nop nop nop add %rdx, %rdx lea addresses_D_ht+0x8ca5, %rsi lea addresses...
; NFA/SFA USE use name v. 2.04 (c) L. Lenerz 2012-2017 ; 2.04 implements win_drive ; 2.03 ? ; v 2.02 when xxx_USE device is called, pass this on to Java ; based on ; RAM Disk USE use name V2.01  1989 Tony Tebby QJUMP ; section exten xdef nfa_use xdef sfa_use xdef win_drive xdef win_use xd...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r14 push %r8 push %rcx push %rdx push %rsi lea addresses_UC_ht+0x11beb, %rcx nop nop lfence movb $0x61, (%rcx) nop nop nop and %r11, %r11 lea addresses_normal_ht+0x195ef, %r12 nop nop nop nop nop cmp %r8, %r8 movups (%r12), %xmm1 vpextrq $0, %xmm1, ...
; A184114: n + floor(5*sqrt(n-1)); complement of A184115. ; 1,7,10,12,15,17,19,21,23,25,26,28,30,32,33,35,37,38,40,41,43,44,46,47,49,51,52,53,55,56,58,59,61,62,64,65,67,68,69,71,72,74,75,76,78,79,80,82,83,85,86,87,89,90,91,93,94,95,97,98,99,101,102,103,105,106,107,108,110,111,112,114,115,116,118,119,120,121,123,124,125...
#include <iostream> #include <cstdio> #include <cstring> #define check(n, pos) (n & (1 << pos)) #define set(n, pos) (n | (1 << pos)) using namespace std; int dp[17][100005]; long long a[17][17]; int n; long long rec(int index, long long vis) { if (index == n) return 0; if (dp[index][vis] != -1) return dp[ind...
; A128992: a(n) = (n^3 - n^2)*9^n. ; 0,324,13122,314928,5904900,95659380,1406192886,19284931008,251048476872,3138105960900,37971082126890,447368385785904,5154903899851212,58290067175240628,648557066098144350,7115597525191069440,77115288179258215056,826721251215871158468,8777834461439102594322,92398257488832658887600,96...
; A172062: Expansion of (2/(3*sqrt(1-4*z)-1+4*z))*((1-sqrt(1-4*z))/(2*z))^k with k=5. ; Submitted by Christian Krause ; 1,6,29,128,541,2232,9076,36568,146446,584082,2322967,9220544,36548573,144732176,572756312,2265577184,8959034798,35421613196,140035644602,553606049024,2188652065586,8653317051056,34216118389384,1353101...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2018 The PIVX developers // Copyright (c) 2018 The LockChain developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit...
;Program to Convert a Binary digit to Decimal and vice versa printm macro mess lea dx,mess mov ah,09h int 21h endm new_line macro mov ah,02h mov dl,0dh int 21h mov dl,0ah int 21h endm dec_input macro local input,skip ; output: bx xor bx,bx mov ah,01h int 21h ;if \r cmp al,0dh je skip input: and ax,...
; A159020: a(0)=11; a(n) = a(n-1) + floor(sqrt(a(n-1))), n > 0. ; Submitted by Simon Strandgaard ; 11,14,17,21,25,30,35,40,46,52,59,66,74,82,91,100,110,120,130,141,152,164,176,189,202,216,230,245,260,276,292,309,326,344,362,381,400,420,440,460,481,502,524,546,569 add $0,6 mov $3,1 lpb $0 sub $0,$3 mov $1,$4 min ...
ReadJoy: lda #$01 sta JOY1 sta buttons lsr a sta JOY1 joyloop: lda JOY1 lsr a rol buttons bcc joyloop rts
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE590_Free_Memory_Not_on_Heap__delete_char_static_66a.cpp Label Definition File: CWE590_Free_Memory_Not_on_Heap__delete.nonpointer.label.xml Template File: sources-sink-66a.tmpl.cpp */ /* * @description * CWE: 590 Free Memory Not on Heap * BadSource: static Data...
TITLE TEST_DumpMem.asm INCLUDE Irvine32.inc INCLUDELIB Irvine32.lib INCLUDELIB Kernel32.Lib INCLUDELIB User32.Lib .data array DWORD 1,2,3,4,5,6,7,8,9,25o .code main PROC mov esi,OFFSET array mov ecx,LENGTHOF array mov ebx,TYPE array call DumpMem exit main ENDP END main
; void clearerr(FILE *stream) INCLUDE "config_private.inc" SECTION code_clib SECTION code_stdio ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; IF __CLIB_OPT_MULTITHREAD & $02 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PUBLIC _clearerr EXTERN _clearerr_fastcall _clearerr: pop af pop hl push hl push af jp _clearerr_fas...
; char *stpncpy(char * restrict s1, const char * restrict s2, size_t n) SECTION code_clib SECTION code_string PUBLIC stpncpy EXTERN asm_stpncpy stpncpy: pop af pop bc pop hl pop de push de push hl push bc push af jp asm_stpncpy
; A209981: Number of singular 2 X 2 matrices having all elements in {-n,...,n}. ; 1,33,129,289,545,833,1313,1729,2369,3041,3905,4577,5857,6657,7905,9345,10881,11937,13953,15137,17441,19521,21537,22977,26177,28257,30657,33249,36577,38401,42721,44673,48257,51617,54785,58529,63905,66241,69793,73793,79553,82145,88385,91105...
#include<iostream> using namespace std; int num = 10; int number = 1; void e() { num = 11; } void d() { e(); } void c() { d(); } void b() { c(); } void a() { b(); } int main() { int temp = 1; num = 9; number 10; if(temp % 2) { if(!(temp % 4)) temp = t...
SEMIPRIV TITLE 'Test a semiprivileged instruction' * * This file was put into the public domain 2016-11-30 * by John P. Hartmann. You can use it for anything you like, * as long as this notice remains. * SEMIPRIV start 0 using SEMIPRIV,15 org SEMIPRIV+x'1a0' Restart dc x'0000000180000000',ad(go) org SEMIPRIV+x'1c0...
.open "sys/main.dol" .org @NextFreeSpace .global hurricane_spin_item_resource_arc_name hurricane_spin_item_resource_arc_name: .string "Vscroll" .align 2 ; Align to the next 4 bytes .global ballad_of_gales_warp_table ballad_of_gales_warp_table: ; For reference, here is the original table from vanilla: ;.byte -...
_kill: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "stat.h" #include "user.h" int main(int argc, char **argv) { 0: 8d 4c 24 04 lea 0x4(%esp),%ecx 4: 83 e4 f0 and $0xfffffff0,%esp 7: ff 71 fc pushl -0x4(%ecx) a: 55 ...
; ; Generic pseudo graphics routines for text-only platforms ; ; Get pixel at (x,y) coordinate. ; SECTION code_clib PUBLIC pointxy .pointxy defc NEEDpoint = 1 INCLUDE "pixel.asm"
#include <bits/stdc++.h> #define mod 1000000007 using namespace std; int main() { int n; scanf("%d", &n); int a = 1, b = 1; for (int i = 2; i <= n; ++ i) { a = a * 2ll % mod; b = (long long ) b * i % mod; } printf("%d\n", ((b - a) % mod + mod) % mod); }
; A272636: a(0)=0, a(1)=1; thereafter a(n) = squarefree part of a(n-1)+a(n-2). ; Submitted by Jon Maiga ; 0,1,1,2,3,5,2,7,1,2,3,5,2,7,1,2,3,5,2,7,1,2,3,5,2,7,1,2,3,5,2,7,1,2,3,5,2,7,1,2,3,5,2,7,1,2,3,5,2,7,1,2,3,5,2,7,1,2,3,5,2,7,1,2,3,5,2,7,1,2,3,5,2,7,1,2,3,5,2,7,1,2,3,5,2,7,1,2,3,5,2,7,1,2,3,5,2,7,1,2 lpb $0 sub ...
//===- ASTReaderStmt.cpp - Stmt/Expr Deserialization ----------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
/* * Copyright (c) 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: * * 1. Redistributions of source code must retain the above copyright notice, this * list of cond...
global _start section .data %include "header.inc" mov eax, foo jmp eax foo: xor eax, eax %include "footer.inc"
;boot.asm:the bootloader to boot are operating system with grub [bits 32] ;we are in 32 bit global start ;start's the operating system:we call it in the linker script extern _kernel_main ;this is in are .cpp file and it is the main function of are kernel ;do not modify these lines(these are needed by grub)! section .mb...
; long __FASTCALL__ atol(char *s) ; 12.2006 aralbrec XLIB atol LIB l_long_neg ; FASTCALL ; enter : hl = char* ; exit : dehl = long result ; bc = & next char to interpret in char* .atol ld a,(hl) ; eat whitespace inc hl cp 32 ; inlined isspace jr z, atol ...
object_const_def Route106_MapScripts: db 0 ; scene scripts db 0 ; callbacks ;callback MAPCALLBACK_NEWMAP, .InitializeRoom ;callback MAPCALLBACK_TILES, .SetSpawn Route106_MapEvents: db 0, 0 ; filler db 4 ; warp events warp_event 15, 12, JADE_FOREST, 1 warp_event 15, 13, JADE_FOREST, 2 warp_event 24, 8, JA...
; ---------------------------------------------------------------- ; Z88DK INTERFACE LIBRARY FOR THE BIFROST* ENGINE - RELEASE 1.2/L ; ; See "bifrost_l.h" for further details ; ---------------------------------------------------------------- ; unsigned char *BIFROSTL_findAttrH(unsigned char lin, unsigned char col) SE...
#include "../compiler_fixture.hpp" #include "cci/syntax/diagnostics.hpp" #include "cci/syntax/scanner.hpp" #include "cci/syntax/source_map.hpp" #include "cci/util/contracts.hpp" #include "gtest/gtest.h" #include <ostream> #include <span> #include <string> #include <string_view> using cci::diag::Diag; using cci::syntax...
; ; Game device library for the MicroBEE ; Stefano Bodrato - 11/2016 ; ; $Id: joystick.asm,v 1.2 2016-11-28 07:33:11 stefano Exp $ ; SECTION code_clib PUBLIC joystick PUBLIC _joystick .joystick ._joystick ;__FASTCALL__ : joystick no. in HL ld a,l dec a jp z,arrows dec a jp ...
/*****************************************************************************/ /* SOURCE CONTROL VERSIONS */ /*---------------------------------------------------------------------------*/ /* ...
; A099672: Partial sums of repdigits of A002279. ; 5,60,615,6170,61725,617280,6172835,61728390,617283945,6172839500,61728395055,617283950610,6172839506165,61728395061720,617283950617275,6172839506172830,61728395061728385,617283950617283940,6172839506172839495,61728395061728395050,617283950617283950605,61728395061728395...
/* * Copyright (C) 2019-2020 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "shared/source/os_interface/windows/os_interface.h" #include "opencl/test/unit_test/os_interface/windows/hw_info_config_win_tests.h" using namespace NEO; using namespace std; using HwInfoConfigTestWindowsTgllp = HwInf...
// Copyright (c) 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 "consensus/merkle.h" #include "test/test_tiajians.h" #include <boost/test/unit_test.hpp> BOOST_FIXTURE_TEST_SUITE(merkl...
#include "Shader.h" Shader::Shader(const std::string& fileVert, const std::string& fileFrag) : m_FilepathVert(fileVert), m_FilepathFrag(fileFrag), m_RendererID(0) { m_RendererID = CreateShader(fileVert, fileFrag); } Shader::~Shader() { glDeleteProgram(m_RendererID); } void Shader::Bind() const { ...
; void *balloc_addmem(unsigned char q, size_t num, size_t size, void *addr) SECTION code_clib SECTION code_alloc_balloc PUBLIC balloc_addmem_callee, l0_balloc_addmem_callee EXTERN asm_balloc_addmem balloc_addmem_callee: pop af pop de pop hl pop bc pop ix push af l0_balloc_addmem_callee: ld ...
/* * Copyright (c) [2020-2021] Huawei Technologies Co.,Ltd.All rights reserved. * * OpenArkCompiler is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * ...
; A187509: Number of 4-step S, E, and NW-moving king's tours on an n X n board summed over all starting positions ; 0,2,36,115,236,399,604,851,1140,1471,1844,2259,2716,3215,3756,4339,4964,5631,6340,7091,7884,8719,9596,10515,11476,12479,13524,14611,15740,16911,18124,19379,20676,22015,23396,24819,26284,27791,29340,30931,...
BITS 32 extern reset_intr_pic2 extern pf_handler global _pf_handler _pf_handler: pushad call pf_handler call reset_intr_pic2 popad add esp, 4 ; remove error code iret
// Copyright 2018 The MediaPipe Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or a...
; A152618: a(n) = (n-1)^2*(n+1). ; 1,0,3,16,45,96,175,288,441,640,891,1200,1573,2016,2535,3136,3825,4608,5491,6480,7581,8800,10143,11616,13225,14976,16875,18928,21141,23520,26071,28800,31713,34816,38115,41616,45325,49248,53391,57760,62361,67200,72283,77616,83205,89056,95175,101568,108241,115200,122451,130000,137853,146...
; A259362: a(1) = 1, for n > 1: a(n) is the number of ways to write n as a nontrivial perfect power. ; 1,0,0,1,0,0,0,1,1,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 mov $3,$0 mov $5...
; A043620: Numbers whose base-7 representation has exactly 5 runs. ; 2451,2452,2453,2454,2455,2456,2464,2465,2467,2468,2469,2470,2471,2472,2473,2475,2476,2477,2478,2479,2480,2481,2483,2484,2485,2486,2487,2488,2489,2491,2492,2493,2494,2495,2496,2497 mov $1,$0 add $0,3 mov $2,$1 sub $2,5 mov $3,1 mov $5,4 lpb $2 mov $...
; You may customize this and other start-up templates; ; The location of this template is c:\emu8086\inc\0_com_template.txt org 100h a DB 5 DUP(1,2) ret
; Project: Reaction Time Game ; ; Created : 12/07/2019 ; Authors : Ramzy El-Taher, Austin Nolz ; Purpose : Apply what we learned about in the course. .include <ATxmega256A3BUdef.inc> // All Data Direcetion registers are set as input by default. // LED <-0 => on // LED <-1 => off // SWITCH pressed => 0 // SWITCH up =>...
/*------------------------------------------------------------------------------ * FileName : memhelper.hpp * Author : lbh * Create Time : 2018-08-23 * Description : * CopyRight : from gservers_engine @loboho * ----------------------------------------------------------------------------*/ #include<vector> #i...
; A046980: Numerators of Taylor series for exp(x)*cos(x). ; 1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1 add $0,61 seq $0,131079 ; Periodic seq...
; A094102: Triangle read by rows in which row n contains Fib(1), ..., Fib(n-1), Fib(n), Fib(n-1), ..., Fib(1). ; 1,1,1,1,1,1,2,1,1,1,1,2,3,2,1,1,1,1,2,3,5,3,2,1,1,1,1,2,3,5,8,5,3,2,1,1,1,1,2,3,5,8,13,8,5,3,2,1,1,1,1,2,3,5,8,13,21,13,8,5,3,2,1,1,1,1,2,3,5,8,13,21,34,21,13,8,5,3,2,1,1,1,1,2,3,5,8,13,21,34,55,34,21,13,8,5...
SECTION code_clib SECTION code_l_sccz80 PUBLIC l_mult PUBLIC l_mult_0 ; Entry: hl = value1 ; de = value2 ; Exit: hl = value1 * value2 .l_mult ld bc,hl .l_mult_0 defb 0xf7 ; mul : hlbc = bc * de ld hl,bc ret
.MODEL SMALL .STACK 100H .DATA .CODE MAIN PROC MOV AX,@DATA MOV DS,AX MOV AL,2 MOV CL,2 SHL AL,CL MOV BL,AL MOV AH,AL MOV AH,4CH INT 21H MAIN ENDP END MAIN
_grep: file format elf32-i386 Disassembly of section .text: 00000000 <matchstar>: return 0; } // matchstar: search for c*re at beginning of text int matchstar(int c, char *re, char *text) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 57 push ...
; A002696: Binomial coefficients C(2n,n-3). ; 1,8,45,220,1001,4368,18564,77520,319770,1307504,5311735,21474180,86493225,347373600,1391975640,5567902560,22239974430,88732378800,353697121050,1408831480056,5608233007146,22314239266528,88749815264600,352870329957600,1402659561581460,5574440580220512,22150361247847371,88004...
; Sprinter fcntl library ; ; $Id: getwd.asm,v 1.4 2017-01-02 21:02:22 aralbrec Exp $ ; SECTION code_clib PUBLIC getwd PUBLIC _getwd ;int getwd(char *buf); ; NB buf must be at least 256 bytes .getwd ._getwd pop bc pop hl push hl push bc push ix ;save caller...
#include <string> #include <vector> #include "caffe/sgd_solvers.hpp" #include "caffe/util/hdf5.hpp" #include "caffe/util/io.hpp" #include "caffe/util/upgrade_proto.hpp" namespace caffe { // Return the current learning rate. The currently implemented learning rate // policies are as follows: // - fixed: always ret...
/* * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
db 0 ; species ID placeholder db 46, 62, 40, 50, 45, 40 ; hp atk def spd sat sdf db POISON, POISON ; type db 235 ; catch rate db 60 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F0 ; gender ratio db 100 ; unknown 1 db 20 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/nidoran_m...