text
stringlengths
1
1.05M
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2015 The Bitcoin developers // Copyright (c) 2009-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Copyright (c) 2018 The WORKBIT developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING...
# tests the vector mod instructions mov r4,#5 mov r5,#-3 mov r6,#11 mov r7,#12 v.mod r0,r4,#11
// This file is part of Asteria. // Copyleft 2018 - 2021, LH_Mouse. All wrongs reserved. #ifndef ASTERIA_COMPILER_PARSER_ERROR_HPP_ #define ASTERIA_COMPILER_PARSER_ERROR_HPP_ #include "../fwd.hpp" #include "../source_location.hpp" #include <exception> namespace asteria { class Parser_Error : public virtual except...
//******************************************************************** //* //* Warning: This file was generated by ecore4CPP Generator //* //******************************************************************** #ifndef UML_VERTEXVERTEXIMPL_HPP #define UML_VERTEXVERTEXIMPL_HPP //********************************* //...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <assert.h> #include <chainparams.h> #include <main.h> #include <util.h> stru...
;------------------------------------------------------------------------------ ;Write a program to display "AMMA" on LCD and blink the cursor on the next line. ;Simple PIC 16F877X Program to drive a SERIAL LCD. ;------------------------------------------------------------------------------ ;PIC 16F877a Processor c...
/* * 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...
; asm_isdigit XLIB asm_isdigit ; determine whether ascii char is a decimal digit ; enter : a = char ; exit : carry = not a digit ; uses : f .asm_isdigit cp '0' ret c cp '9'+1 ccf ret
; =============================================================== ; Jan 2014 ; =============================================================== ; ; int fscanf_unlocked(FILE *stream, const char *format, ...) ; ; See C11 specification. ; ; =============================================================== SECTION code_std...
BITS 32 section .text foo: rcl ebp, 1 rcr dword [dword 1000+eax], 1 rol ebp, cl ror dword [dword 1000+eax], cl sal ebp, 9 sar dword [dword 1000+eax], byte 9 shl dh, 1 shr byte [ecx+ebx], 1 rcl dh, cl rcr byte [ecx+ebx], cl rol dh, 9 ror byte [ecx+ebx], 9 sal bx, 1 sar word [dword 1000], 1 shl bx, cl shr word [dword 100...
; A103586: a(0)=1, for n > 0: n-th run consists of 2^n-1 copies of n+1. ; 1,2,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,...
; A092038: a(n+1) = a(n) + (a(n) mod 2)^(n mod a(n)), a(1) = 1. ; 1,2,2,3,4,4,4,5,6,6,6,7,8,8,8,9,10,10,10,11,12,12,12,13,14,14,14,15,16,16,16,17,18,18,18,19,20,20,20,21,22,22,22,23,24,24,24,25,26,26,26,27,28,28,28,29,30,30,30,31,32,32,32,33,34,34,34,35,36,36,36,37,38,38,38,39,40,40,40,41,42,42,42,43,44,44,44,45,46,46,...
section .data len : db 0 num : db 0 msg1: db "Enter a string : " l1: equ $-msg1 msg2: db 10 l2: equ $-msg2 msg3: db "Output string : " l3: equ $-msg3 msg4: db "DEBUG" l4: equ $-msg4 msg5: db 10 l5: equ $-msg5 section .bss s : resb 50 s1 : resb 50 s2 : resb 50 a1 : resb 50 a2 : resb 50 temp : resb 1 ans : resb 1 ans...
;------------------------------------------------------------------------------ ; ; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR> ; This program and the accompanying materials ; are licensed and made available under the terms and conditions of the BSD License ; which accompanies this distribution. Th...
; void sms_vdp_set_write_address(unsigned int addr) SECTION code_clib SECTION code_arch PUBLIC _sms_vdp_set_write_address EXTERN asm_sms_vdp_set_write_address _sms_vdp_set_write_address: pop af pop hl push hl push af jp asm_sms_vdp_set_write_address
// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "wakeup_pipe.h" #include "socket_utils.h" #include <unistd.h> namespace vespalib { WakeupPipe::WakeupPipe() : _pipe() { socketutils::nonblocking_pipe(_pipe); } WakeupPipe::~WakeupPipe() ...
// Copyright 2018 The Fuchsia 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 "src/lib/storage/fs_management/cpp/fvm.h" #include <dirent.h> #include <errno.h> #include <fcntl.h> #include <fidl/fuchsia.device/cpp/wire.h> #in...
SECTION code_fp_math32 PUBLIC cm32_sdcc_frexp EXTERN m32_fsfrexp_callee ; float frexpf(float x, int16_t *pw2); .cm32_sdcc_frexp ; Entry: ; Stack: ptr right, float left, ret pop af ; my return pop hl ; (float)x pop de pop bc ...
#include "Storages/MergeTree/MergeTask.h" #include <memory> #include <fmt/format.h> #include <base/logger_useful.h> #include "Common/ActionBlocker.h" #include "Storages/MergeTree/MergeTreeData.h" #include "Storages/MergeTree/IMergeTreeDataPart.h" #include "Storages/MergeTree/MergeTreeSequentialSource.h" #include "St...
// Copyright 2010-2018 Google LLC // 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 in...
; size_t b_vector_erase_block(b_vector_t *v, size_t idx, size_t n) SECTION code_adt_b_vector PUBLIC _b_vector_erase_block EXTERN _b_array_erase_block defc _b_vector_erase_block = _b_array_erase_block
; A117926: a(n) = n^floor(sqrt(n)). ; 1,2,3,16,25,36,49,64,729,1000,1331,1728,2197,2744,3375,65536,83521,104976,130321,160000,194481,234256,279841,331776,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,2176782336,2565726409,3010936384,3518743761,4096000000,4750104241,54...
TILESET_MENUS_BANK_NUMBER = CURRENT_BANK_NUMBER tileset_menus: ; Tileset's size in tiles (zero means 256) .byt (tileset_menus_end-tileset_menus_tiles)/16 tileset_menus_tiles: ; Full backdrop color ; ; 00000000 ; 00000000 ; 00000000 ; 00000000 ; 00000000 ; 00000000 ; 00000000 ; 00000000 .byt $00, $00, $00, $00, $00,...
; A276880: Sums-complement of the Beatty sequence for 1 + sqrt(3). ; 1,4,7,12,15,18,23,26,29,34,37,42,45,48,53,56,59,64,67,70,75,78,83,86,89,94,97,100,105,108,111,116,119,124,127,130,135,138,141,146,149,154,157,160,165,168,171,176,179,182,187,190,195,198,201,206,209,212 mov $2,$0 add $2,1 mov $5,$0 lpb $2 mov $0,$5 ...
[org 0x7c00] mov ax,3 int 0x10; 设置文本显示模式 xchg bx,bx mov ax,0 mov ss,ax mov sp,0x7c00 mov cx,20 loop1: call print ; 相当于两条指令:push ip ; jmp print loop loop1 halt: jmp halt print: mov ax, 0xb800 mov es,ax mov bx, [video] mov byte [es:bx],'.' add word [video],2 ret ; 相当于指令pop ip...
#ifndef HIOP_SPARSE_MATRIX_MDS #define HIOP_SPARSE_MATRIX_MDS #include "hiopVectorPar.hpp" #include "hiopMatrixDenseRowMajor.hpp" #include "hiopMatrixSparseTriplet.hpp" #include "hiopLinAlgFactory.hpp" #include <algorithm> #include <cassert> namespace hiop { /** Mixed Sparse-Dense blocks matrix - it is not distrib...
; A070039: Sum of divisors of n that are smaller than sqrt(n). ; 0,1,1,1,1,3,1,3,1,3,1,6,1,3,4,3,1,6,1,7,4,3,1,10,1,3,4,7,1,11,1,7,4,3,6,10,1,3,4,12,1,12,1,7,9,3,1,16,1,8,4,7,1,12,6,14,4,3,1,21,1,3,11,7,6,12,1,7,4,15,1,24,1,3,9,7,8,12,1,20,4,3,1,23,6,3,4,15,1,26,8,7,4,3,6,24,1,10,13,12 add $0,1 mov $2,$0 lpb $0 mov ...
global itoa global println_num global open_file_arg WRITE_SYSCALL EQU 1 OPEN_SYSCALL EQU 2 STDIN_FD EQU 0 STDOUT_FD EQU 1 section .data print_num_buf: times 64 db 0 section .text ; itoa - converts an unsigned integer into its ascii r...
; $Id: VBoxBiosAlternative386.asm 69807 2017-11-22 13:55:09Z vboxsync $ ;; @file ; Auto Generated source file. Do not edit. ; ; ; Source file: post.c ; ; $Id: VBoxBiosAlternative386.asm 69807 2017-11-22 13:55:09Z vboxsync $ ; BIOS POST routines. Used only during initialization. ; ; ; ; Copyright (C) 2004-201...
; A002736: Apéry numbers: a(n) = n^2*C(2n,n). ; 0,2,24,180,1120,6300,33264,168168,823680,3938220,18475600,85357272,389398464,1757701400,7862853600,34901442000,153876579840,674412197580,2940343837200,12759640231800,55138611528000,237371722628040,1018383898440480,4355484854900400,18574619721465600,79006629023595000,33524...
; size_t w_vector_append_n_callee(b_vector_t *v, size_t n, void *item) SECTION code_clib SECTION code_adt_w_vector PUBLIC _w_vector_append_n_callee EXTERN asm_w_vector_append_n _w_vector_append_n_callee: pop af pop hl pop de pop bc push af jp asm_w_vector_append_n
#include "persp_projector.h" /* PerspectiveProjector::render Description: Renders Cornell Box from the front face. Parameters: float rfw: Cornell Box Width. float rfh: Cornell Box Height. int th: Image Height. int tw: Image Width. Output: - */ void PerspectiveProjector::render(float rfw, float rfh, int th, in...
0x0000 (0x000000) 0x2003- f:00020 d: 3 | A = OR[3] 0x0001 (0x000002) 0x1C00-0x0409 f:00016 d: 0 | A = A + 1033 (0x0409) 0x0003 (0x000006) 0x2924- f:00024 d: 292 | OR[292] = A 0x0004 (0x000008) 0x2124- f:00020 d: 292 | A = OR[292] ...
// // Copyright (c) 2015-2020 Microsoft Corporation and Contributors. // SPDX-License-Identifier: Apache-2.0 // #ifdef WIN10_CS #include "pch.h" #include "PlatformHelpers.h" #include "IPlatformEventReceiver.h" #include "WindowsRTPlatformEventHandler.h" namespace Microsoft { namespace Applications { namespa...
; A245235: Repeat 2^(n*(n+1)/2) n+1 times. ; Submitted by Jamie Morken(s1) ; 1,2,2,8,8,8,64,64,64,64,1024,1024,1024,1024,1024,32768,32768,32768,32768,32768,32768,2097152,2097152,2097152,2097152,2097152,2097152,2097152,268435456,268435456,268435456,268435456,268435456,268435456,268435456,268435456 seq $0,57944 ; Larges...
; Copyright (c) 2004, Intel Corporation ; All rights reserved. This program and the accompanying materials ; are licensed and made available under the terms and conditions of the BSD License ; which accompanies this distribution...
; A018904: Define the sequence S(a(0),a(1)) by a(n+2) is the least integer such that a(n+2)/a(n+1) > a(n+1)/a(n) for n >= 0. This is S(1,6). ; 1,6,37,229,1418,8781,54377,336734,2085253,12913101,79965442,495192589,3066520913,18989683446,117595179557,728217839669,4509548979898,27925753660941,172932530727097,1070898946784...
/* * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org> * 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 noti...
; A154680: Triangle read by rows where T(m,n)=2*m*n + m + n - 2. ; Submitted by Christian Krause ; 2,5,10,8,15,22,11,20,29,38,14,25,36,47,58,17,30,43,56,69,82,20,35,50,65,80,95,110,23,40,57,74,91,108,125,142,26,45,64,83,102,121,140,159,178,29,50,71,92,113,134,155,176,197,218,32,55,78,101,124,147,170,193,216,239,262,35,...
#include <cstdio> #include <cstdlib> #include <cassert> #include "HalideRuntime.h" #include "HalideBuffer.h" #include "harris.h" #include "harris_classic_auto_schedule.h" #include "harris_auto_schedule.h" #include "benchmark_util.h" #include "halide_image_io.h" using namespace Halide::Tools; int main(int argc, cha...
; void *im2_create_generic_isr(uint8_t num_callback, void *address) SECTION code_clib SECTION code_z80 PUBLIC im2_create_generic_isr EXTERN l0_im2_create_generic_isr_callee im2_create_generic_isr: pop af pop de pop hl push hl push de push af jp l0_im2_create_generic_isr_callee
<% from pwnlib.shellcraft.mips.linux import syscall %> <%page args="pid, pgid"/> <%docstring> Invokes the syscall setpgid. See 'man 2 setpgid' for more information. Arguments: pid(pid_t): pid pgid(pid_t): pgid </%docstring> ${syscall('SYS_setpgid', pid, pgid)}
; A075362: Triangle read by rows with the n-th row containing the first n multiples of n. ; 1,2,4,3,6,9,4,8,12,16,5,10,15,20,25,6,12,18,24,30,36,7,14,21,28,35,42,49,8,16,24,32,40,48,56,64,9,18,27,36,45,54,63,72,81,10,20,30,40,50,60,70,80,90,100,11,22,33,44,55,66,77,88,99,110,121,12,24,36,48,60,72,84,96,108,120,132,144,...
SECTION rodata_font_fzx PUBLIC _ff_dkud1_Overline _ff_dkud1_Overline: BINARY "font/fzx/fonts/dkud1/Overline/overline.fzx"
; pasmo -I ../danagy -d test_faddp.asm 24576.bin > test.asm ; grep "BREAKPOINT" test.asm ; randomize usr 57344 INCLUDE "finit.asm" color_flow_warning EQU 1 carry_flow_warning EQU 1 DATA_ADR EQU $6000 ; 24576 TEXT_ADR EQU $E000 ; 57344 ORG DATA_ADR ...
;------------------------------------------------------------------------------ ; ; Copyright (c) 2006, Intel Corporation ; All rights reserved. This program and the accompanying materials ; are licensed and made available under the terms and conditions of the BSD License ; which accompanies this distribution. Th...
; ******************************************************************************************** ; ******************************************************************************************** ; ; Name : collision.asm ; Purpose : .. ; Created : 15th Nov 1991 ; Updated : 4th Jan 2021 ; Authors : Fred Bowen ; ;...
; A060590: Numerator of the expected time to finish a random Tower of Hanoi problem with n disks using optimal moves. ; 0,2,2,14,10,62,42,254,170,1022,682,4094,2730,16382,10922,65534,43690,262142,174762,1048574,699050,4194302,2796202,16777214,11184810,67108862,44739242,268435454,178956970,1073741822,715827882,429496729...
// Copyright 2014 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 "ui/display/util/display_util.h" #include <stddef.h> #include "base/logging.h" #include "base/macros.h" namespace display { namespace { // A...
* Sprite undo * * Mode 4 * +|-----------------+ * | ww | * - wrw - * | wrrwwwwwwww | * | wrrarrrrrrrrww | * |wrraararrarrarrw | * | wrrarrrrrrrrrarw | * | wrrwwwwwwwwrrrrw| * | wrw wwrrw| * | ww ww | * | wwrrw| * | wwwwwwrrrrw| * | wrrrrrrarw | * | wrararrrw | * | wrrrrrww | * ...
#include "bve_pch.h" #include "shader_parser.h" #include "shader_compiler.h" namespace bve { static std::string read_file(const fs::path& path) { std::ifstream file = std::ifstream(path); std::stringstream contents; std::string line; while (std::getline(file, line)) { con...
; A300075: Period 6: repeat [0, 1, 1, 2, 2, 2]. ; 0,1,1,2,2,2,0,1,1,2,2,2,0,1,1,2,2,2,0,1,1,2,2,2,0,1,1,2,2,2,0,1,1,2,2,2,0,1,1,2,2,2,0,1,1,2,2,2,0,1,1,2,2,2,0,1,1,2,2,2,0,1,1,2,2,2,0,1,1,2,2,2,0,1,1,2,2,2 mod $0,6 lpb $0,1 div $0,3 add $1,1 lpe
; A025950: Expansion of 1/((1-2x)(1-3x)(1-8x)(1-11x)). ; Submitted by Jon Maiga ; 1,24,387,5306,66969,806148,9425599,108151662,1225448037,13766224472,153719012811,1709234017218,18948174785905,209602732183596,2315012544644823,25540197959076374,281542657422715773 mov $1,1 mov $2,$0 mov $3,$0 lpb $2 mov $0,$3 sub $2,...
namespace Rice::detail { inline VALUE Rice::detail::Default_Exception_Handler::handle_exception() const { throw; } template <typename Exception_T, typename Functor_T> inline Rice::detail::Functor_Exception_Handler<Exception_T, Functor_T>:: Functor_Exception_Handler(Functor_T handler, std::shared_ptr<...
// ********************************************************************** // This file is part of the LehrFEM++ finite element library developed // from 2018 at the Seminar of Applied Mathematics of ETH Zurich for // teaching purposes. // This header must not be removed. // *********************************************...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r15 push %r9 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x19b73, %rcx clflush (%rcx) nop nop nop dec %rdx movb $0x61, (%rcx) nop nop nop dec %r11 lea addresses_D_ht+0x19f93, %r15 nop nop and %rcx, %rcx movl $0x61626364, (%r15) nop n...
SECTION code_fp_am9511 PUBLIC _mul10u EXTERN cam32_sdcc_fmul10u defc _mul10u = cam32_sdcc_fmul10u
.code EXTERN SW2_GetSyscallNumber: PROC NtCreateProcess PROC push rcx ; Save registers. push rdx push r8 push r9 mov ecx, 0E5B31BDFh ; Load function hash into ECX. call SW2_GetSyscallNumber ; Resolve function hash into syscall number. pop r9 ; Restore registers. p...
; A105138: Numbers n such that 256n+129 is prime. ; Submitted by Christian Krause ; 2,4,5,10,13,17,19,25,28,37,38,40,44,47,52,53,59,62,70,74,77,79,82,83,103,110,115,119,124,130,137,140,149,152,158,170,173,178,179,193,200,205,208,209,212,217,230,235,238,242,247,248,257,268,269,272,275,280,283,299,307,308,314,317,322,332...
/* * Run unit/regression tests of slmath using the simple testing framework * provided in the library. */ #include "test_slmath.h" #include "testframework.h" #include <slm/slmath.h> #include <stdio.h> #include <string.h> SLMATH_USING() /** * Returns true if specified option is in command line. *...
SECTION rodata_font_fzx PUBLIC _ff_ao_Grotesk _ff_ao_Grotesk: BINARY "font/fzx/fonts/ao/Grotesk/Grotesk.fzx"
[bits 64] addpd xmm1, xmm2 addpd xmm1, dqword [rbx] addps xmm1, xmm2 addps xmm1, dqword [rbx] addsd xmm1, xmm2 addsd xmm1, qword [rbx] addss xmm1, xmm2 addss xmm1, dword [rbx] addsubpd xmm1, xmm2 addsubpd xmm1, dqword [rbx] addsubps xmm1, xmm2 addsubps xmm1, dqword [rbx] andnpd xmm1, xmm2 andnpd xmm1, dqword [rbx...
;------------------------------------------------------------------------------ ; ; Hello, world !! for FreeBSD with JWasm's BIN format. ; Written by Ito Toshimitsu. ; ; > jwasm -q -bin -Fo=FreeBSD1. FreeBSD1.asm ; > chmod 755 FreeBSD1 ; ; How to: ; 1. file elf32.inc must be included. ; 2. Macro 'elf32_header...
db "POISON BAG@" ; species name db "It gulps anything" next "that fits in its" next "mouth. Its special" page "enzymes can" next "dissolve almost" next "anything.@"
class A { public: void SomeMethod() { } }; template<class T, void(T::*SomeMethod)() = nullptr> class B { }; B<A> b1; //OK //B<A, static_cast<SomeMethod_t>(0)> b2; //OK B<A, nullptr> b3; //OK //B<A, 0> b4; // error: could not convert template argument ‘0’ to ‘void (A::*)()’
; A114800: Octuple factorial, 8-factorial, n!8, n!!!!!!!!. ; 1,1,2,3,4,5,6,7,8,9,20,33,48,65,84,105,128,153,360,627,960,1365,1848,2415,3072,3825,9360,16929,26880,39585,55440,74865,98304,126225,318240,592515,967680,1464645,2106720,2919735,3932160,5175225,13366080,25478145,42577920,65909025,96909120,137227545,188743680,2...
; A158730: a(n) = 68*n^2 - 1. ; 67,271,611,1087,1699,2447,3331,4351,5507,6799,8227,9791,11491,13327,15299,17407,19651,22031,24547,27199,29987,32911,35971,39167,42499,45967,49571,53311,57187,61199,65347,69631,74051,78607,83299,88127,93091,98191,103427,108799,114307,119951,125731,131647,137699,143887,150211,156671,163267...
// Copyright (c) 2017-2020 The Widecoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <fs.h> #ifndef WIN32 #include <cstring> #include <fcntl.h> #include <string> #include <sys/file.h> #include <sys/u...
_cat: file format elf32-i386 Disassembly of section .text: 00000000 <main>: } } int main(int argc, char *argv[]) { 0: f3 0f 1e fb endbr32 4: 8d 4c 24 04 lea 0x4(%esp),%ecx 8: 83 e4 f0 and $0xfffffff0,%esp b: ff 71 fc pushl -0x4(%ecx) e: 55 ...
; -------------------------------------- ; Test XRA. ; Exclusive OR a register, with register with A. ; ; A or B, but not, A and B ; 01010001 ...
PewterMartScript: call EnableAutoTextBoxDrawing ld a, $1 ld [wAutoTextBoxDrawingControl], a ret PewterMartTextPointers: dw PewterCashierText dw PewterMartText2 dw PewterMartText3 PewterMartText2: TX_ASM ld hl, .Text call PrintText jp TextScriptEnd .Text TX_FAR _PewterMartText2 db "@" PewterMartText3: T...
INCLUDE "../structs.asm" ; Struct declarations (ideally in a separate file, but grouped here for simplicity) ; Note that everything is happening outside of a `SECTION` ; Defines a sprite as it is in OAM struct Sprite bytes 1, YPos ; Indenting is optional, but recommended bytes 1, XPos by...
RockTunnel2Script: call EnableAutoTextBoxDrawing ld hl, RockTunnel2TrainerHeaders ld de, RockTunnel2ScriptPointers ld a, [wRockTunnel2CurScript] call ExecuteCurMapScriptInTable ld [wRockTunnel2CurScript], a ret RockTunnel2ScriptPointers: dw CheckFightingMapTrainers dw DisplayEnemyTrainerTextAndStartBattle dw...
; A302286: a(n) = [x^n] 1/(1 - n*x - x/(1 - n*x - x/(1 - n*x - x/(1 - n*x - x/(1 - ...))))), a continued fraction. ; Submitted by Jon Maiga ; 1,2,12,116,1530,25422,507696,11814728,313426350,9324499610,307171539576,11091813369276,435408606414964,18453269887229478,839464708754178240,40786587211854543120,21073676688475052...
; A332122: Decimal expansion of unique real root of the polynomial X^3 - X^2 - X/2 - 1/6. ; Submitted by Christian Krause ; 1,4,3,0,8,4,9,5,6,6,2,4,2,7,8,8,9,2,8,2,3,0,2,1,7,8,4,9,8,9,2,5,5,0,8,0,5,9,6,6,2,0,2,1,4,6,2,5,5,7,4,2,8,0,5,0,6,5,1,8,0,5,1,1,7,0,8,7,6,8,3,1,1,1,1,8,8,2,4,8,6,4,1,4,9,6,7,9,8,5,4,9,3,4,2,8,3,1,...
; A052919: a(n) = 1 + 2*3^(n-1) with a(0)=2. ; 2,3,7,19,55,163,487,1459,4375,13123,39367,118099,354295,1062883,3188647,9565939,28697815,86093443,258280327,774840979,2324522935,6973568803,20920706407,62762119219,188286357655,564859072963,1694577218887,5083731656659,15251194969975,45753584909923,137260754729767,411782264...
.macosx_version_min 10, 13 .section __TEXT,__text,regular,pure_instructions .align 4, 0x90 .globl _inflate_table _inflate_table: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $152, %rsp movq ___stack_chk_guard@GOTPCREL(%r...
#include <pybind11/detail/common.h> #include <pybind11/pytypes.h> #include <torch/csrc/jit/api/object.h> #include <torch/csrc/jit/python/script_init.h> #include <caffe2/serialize/versions.h> #include <torch/csrc/Device.h> #include <torch/csrc/DynamicTypes.h> #include <torch/csrc/jit/api/module.h> #include <torch/csrc/...
; ********************************************************************************* ; ********************************************************************************* ; ; File: library.asm ; Purpose: Wrapper for building libraries. ; Date : 1st January 2019 ; Author: paul@robsons.org.uk ; ; *******************...
/*========================================================================= Program: Visualization Toolkit Module: vtkAngleRepresentation3D.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 ...
; int tape_load_block(void *addr, size_t len, unsigned char type) ; CALLER linkage for function pointers PUBLIC tape_load_block EXTERN asm_tape_load_block .tape_load_block pop de pop bc ld a,c pop bc pop hl push hl push bc push bc ; altered ! push de jp asm_tape_load_block
; A155596: a(n) = 5^n - 2^n + 1^n. ; 1,4,22,118,610,3094,15562,77998,390370,1952614,9764602,48826078,244136530,1220694934,6103499242,30517545358,152587825090,762939322054,3814697003482,19073485803838,95367430592050,476837156105974 mov $2,7 mov $3,$0 lpb $3,1 mul $1,5 mul $2,2 add $1,$2 sub $3,1 lpe div $1,14 m...
//===--- StringLiteralWithEmbeddedNulCheck.cpp - clang-tidy----------------===// // // 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 // //===---------------------------...
/* * Licensed under the Apache License, Version 2.0 (the 'License'); * you may not use this file except in compliance with the License. * See the NOTICE file distributed with this work for additional information * regarding copyright ownership. You may obtain a copy of the License at * * http://www.apache.org/li...
/********************************************************************** * Copyright (c) 2008-2014, Alliance for Sustainable Energy. * All rights reserved. * * This 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 t...
; v0.1 ; Assembly AR Code Comment/Relative Address .open "sys/main.dol" .org 0x80390F3C ; 04390f3c (g_profile_CAMERA + 0x10) .long 0x9E0 ;v 000009e0 (originalSize += 0x10) .org 0x8038FD9C ; 0438fd9c (g_profile_PLAYER + 0x10) .long 0x4C38 ;v 00004c38 (originalSize += 0x10) ...
; void ts_vmod(unsigned char mode) SECTION code_clib SECTION code_arch PUBLIC ts_vmod EXTERN asm_ts_vmod defc ts_vmod = asm_ts_vmod
!DisableSoundIfMagicDisabled = 0 if !DisableSoundIfMagicDisabled != 0 org $06D135 HandleAbsorbableSfxNew_sfx: org $06D14E JSL HandleAbsorbableSfxNew : NOP #3 org $0DDBAE JML IncrementMagicNew org $0DDBB7 IncrementMagicNew.Increment: org $0DDBD0 IncrementMagicNew.DontIncrement: endif
; A089658: Let S1 := (n,t)->add( k^t * add( binomial(n,j), j=0..k), k=0..n); a(n) = S1(n,1). ; 0,2,11,42,136,400,1104,2912,7424,18432,44800,107008,251904,585728,1347584,3072000,6946816,15597568,34799616,77201408,170393600,374341632,818937856,1784676352,3875536896,8388608000,18102616064,38956695552,83617644544,179046449...
; A001736: 4 in base 10-n. ; 4,4,4,4,4,4,10,11,100,1111 lpb $0 mov $2,$0 mod $2,10 lpb $0 mul $0,$2 div $0,10 sub $0,1 add $4,$1 mul $1,10 add $1,$2 lpe lpe mov $3,5 add $3,$4 mov $0,$3 sub $0,1
; This is where your program starts in RAM. org 40000 jr blocks ; Clear the screen to black. ld a,110 ; White ink (7), black paper (0), bright (64). ld (23693),a ; Set our screen colours. xor a ; Load accumulator with zero. call 8859 ; Set permanent border colours. call ...
; double exp(double x) SECTION code_fp_math48 PUBLIC am48_exp EXTERN mm48_exp ; computes base-e exponential of AC' ; ; enter : AC' = double x ; ; exit : success ; ; AC' = e^x ; carry reset ; ; fail if overflow ; ; AC' = +inf ; ...
;----------------------------------------------- ; return: ; - z: clear ; - nz: there is still a power pellet or enemy any_enemy_or_power_pellet: ld hl,enemies ld de,ENEMY_STRUCT_SIZE ld b,MAX_ENEMIES any_enemy_or_power_pellet_enemies_loop: ld a,(hl) or a jr nz,any_enemy_or_power_pellet_one_found add hl,de djnz...
; SPIR-V ; Version: 1.0 ; Generator: Khronos Glslang Reference Front End; 10 ; Bound: 94 ; Schema: 0 OpCapability Shader %1 = OpExtInstImport "GLSL.std.450" OpMemoryModel Logical GLSL450 OpEntryPoint Fragment %4 "main" %9 %34 OpExecutionMode %4 Origi...
; ; ; Z88 Maths Routines ; ; C Interface for Small C+ Compiler ; ; 7/12/98 djm ;double cos(double) ;Number in FA.. INCLUDE "#fpp.def" XLIB cos LIB fsetup LIB stkequ2 .cos call fsetup fpp(FP_COS) jp ...
; A195318: Centered 44-gonal numbers. ; 1,45,133,265,441,661,925,1233,1585,1981,2421,2905,3433,4005,4621,5281,5985,6733,7525,8361,9241,10165,11133,12145,13201,14301,15445,16633,17865,19141,20461,21825,23233,24685,26181,27721,29305,30933,32605,34321,36081,37885,39733,41625,43561,45541,47565,49633,51745,53901,56101,58345...
INCLUDE "engine/pikachu_pcm.asm" INCLUDE "engine/overworld/advance_player_sprite.asm" ResetStatusAndHalveMoneyOnBlackout: ; Reset player status on blackout. xor a ld [wd435], a xor a ; gamefreak copypasting functions (double xor a) ld [wBattleResult], a ld [wWalkBikeSurfState], a ld [wIsInBattle], a ld [wMapPal...
; A213823: Principal diagonal of the convolution array A213822. ; Submitted by Jamie Morken(s4) ; 4,41,147,358,710,1239,1981,2972,4248,5845,7799,10146,12922,16163,19905,24184,29036,34497,40603,47390,54894,63151,72197,82068,92800,104429,116991,130522,145058,160635,177289,195056,213972,234073,255395,277974,301846,327047,...
; ::: include #ruledef test { ld {x} => 0x55 @ x`8 } ; ::: ld $ ; = 0x5500 #res 0 ld $ ; = 0x5502 ; ::: ld $ ; = 0x5500 #res 1 ; = 0x00 ld $ ; = 0x5503 ; ::: ld $ ; = 0x5500 #res 1 + 2 ; = 0x000000 ld $ ; = 0x5505 ; ::: ld $ ; = 0x5500 #res 2 ; = 0x0000 #res 3 ; = 0x000000 ld $ ; = 0x5507 ; ::: ld $ ; = ...
; A226198: Floor((n-1)!/n). ; 1,0,0,1,4,20,102,630,4480,36288,329890,3326400,36846276,444787200,5811886080,81729648000,1230752346352,19760412672000,336967037143578,6082255020441600,115852476579840000,2322315553259520000,48869596859895986086,1077167364120207360000,24817936069329577574400,596585001666576384000000,1493672...