text
stringlengths
1
1.05M
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r14 push %r9 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x876f, %rsi lea addresses_UC_ht+0x167, %rdi nop nop nop nop nop cmp $32597, %rdx mov $38, %rcx rep movsb nop nop nop nop xor %rbx, %rbx lea addresses_WT_ht+0x6d6f, %r9 nop cmp...
; A292372: A binary encoding of 2-digits in base-4 representation of n. ; Submitted by Jon Maiga ; 0,0,1,0,0,0,1,0,2,2,3,2,0,0,1,0,0,0,1,0,0,0,1,0,2,2,3,2,0,0,1,0,4,4,5,4,4,4,5,4,6,6,7,6,4,4,5,4,0,0,1,0,0,0,1,0,2,2,3,2,0,0,1,0,0,0,1,0,0,0,1,0,2,2,3,2,0,0,1,0,0,0,1,0,0,0,1,0,2,2,3,2,0,0,1,0,4,4,5,4 mov $3,1 lpb $0 mo...
; A111597: Lah numbers: n!*binomial(n-1,6)/7!. ; Submitted by Christian Krause ; 1,56,2016,60480,1663200,43908480,1141620480,29682132480,779155977600,20777492736000,565147802419200,15721384321843200,448059453172531200,13097122477350912000,392913674320527360000,12101741169072242688000,382717564471909675008000,1242706444...
PowerPlant_Object: db $2e ; border block def_warps warp 4, 35, 3, LAST_MAP warp 5, 35, 3, LAST_MAP warp 0, 11, 3, LAST_MAP def_signs def_objects object SPRITE_POKE_BALL, 9, 20, STAY, NONE, 1, VOLTORB, 40 object SPRITE_POKE_BALL, 32, 18, STAY, NONE, 2, VOLTORB, 40 object SPRITE_POKE_BALL, 21, 25, STAY, N...
#include <iostream> #include <iomanip> #include <cstdint> #include "color/color.hpp" int main( int argc, char *argv[] ) { // Instead of float you may put std::uint8_t,std::uint16_t, std::uint32_t, std::uint64_t, double, long double color::cmyk<float> c; // initialize c before get. c = color::con...
/* * 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 ...
; A330569: a(n) = 1 if n is odd, otherwise a(n) = 2^(v-1)+1 where v is the 2-adic valuation of n (A007814(n)). ; 1,2,1,3,1,2,1,5,1,2,1,3,1,2,1,9,1,2,1,3,1,2,1,5,1,2,1,3,1,2,1,17,1,2,1,3,1,2,1,5,1,2,1,3,1,2,1,9,1,2,1,3,1,2,1,5,1,2,1,3,1,2,1,33,1,2,1,3,1,2,1,5,1,2,1,3,1,2,1,9,1,2,1,3,1 add $0,1 gcd $0,281474976710656 mo...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2018 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 <merkleblock.h> #include <hash.h> #include <consensus/consensus.h> #in...
///* // * Copyright (c) 2021 George Beckstein // * SPDX-License-Identifier: Apache-2.0 // * // * 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...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r13 push %r8 push %r9 push %rcx push %rdi push %rsi lea addresses_UC_ht+0x12697, %r9 nop nop nop nop nop inc %rcx mov $0x6162636465666768, %r11 movq %r11, %xmm0 and $0xffffffffffffffc0, %r9 vmovaps %ymm0, (%r9) nop nop nop nop xor $57054, %r8 lea ad...
; A001850: Central Delannoy numbers: a(n) = Sum_{k=0..n} C(n,k)*C(n+k,k). ; Submitted by Simon Strandgaard ; 1,3,13,63,321,1683,8989,48639,265729,1462563,8097453,45046719,251595969,1409933619,7923848253,44642381823,252055236609,1425834724419,8079317057869,45849429914943,260543813797441,1482376214227923,8443414161166173...
j Main j Interrupt j Exception Main: jal start start: li $t0,0x7fffffff and $ra,$ra,$t0 addi $ra,$ra,28 li $s0,0x40000000 jr $ra #set timer sw $zero,8($s0) #setTCON li $t0,0xfffe7960 sw $t0,0($s0) #setTH sw $t0,4($s0) #setTL #load data li $a0,0x00000000 li $t0,266 sw $t0,0($a0) li $t0,834 sw $t0,4(...
[bits 16] repne lodsw ; out: f2 ad repnz lodsd ; out: 66 f2 ad rep stosb ; out: f3 aa repe cmpsb ; out: f3 a6 repz movsb ; out: f3 a4
SECTION "Test",CODE[0] sub (hl) sub a,(ix+2) sub a,(iy-2) sub a,b sub a,c sub a,d sub a,e sub a,h sub a,l sub a,a sub a,2
GameCornerPrizeRoom_Object: db $f ; border block def_warps warp 4, 7, 9, LAST_MAP warp 5, 7, 9, LAST_MAP def_signs sign 2, 2, 3 ; CeladonPrizeRoomText3 sign 4, 2, 4 ; CeladonPrizeRoomText4 sign 6, 2, 5 ; CeladonPrizeRoomText5 def_objects object SPRITE_BALDING_GUY, 1, 4, STAY, NONE, 1 ; person ob...
; A014728: Squares of odd Fibonacci numbers. ; 1,1,9,25,169,441,3025,7921,54289,142129,974169,2550409,17480761,45765225,313679521,821223649,5628750625,14736260449,101003831721,264431464441,1812440220361,4745030099481,32522920134769 seq $0,254962 ; Indices of hexagonal numbers (A000384) that are also centered pentagona...
#ifndef MPSKIT_MODELS_BOSE_HUBBARD_1D #define MPSKIT_MODELS_BOSE_HUBBARD_1D #include "../json.hpp" #include "../types.hpp" #include "bosonic_1d.hpp" class BoseHubbard1D : public Bosonic1D { protected: Real m_J; Real m_U; Real m_mu; public: explicit BoseHubbard1D(int L, bool periodic, bool conserv...
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r8 push %rbp push %rbx push %rdi push %rdx // Faulty Load lea addresses_normal+0x19e1f, %rbx nop and $53765, %rdi movups (%rbx), %xmm3 vpextrq $1, %xmm3, %r8 lea oracles, %rbp and $0xff, %r8 shlq $12, %r8 mov (%rbp,%r8,1),...
//===- AIECreatePacketFlows.cpp ---------------------------------*- C++ -*-===// // // This file is licensed 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 // // (c) Copyright 2019 Xilinx Inc. //...
// Copyright 2010 Google Inc. All Rights Reserved. // Author: rays@google.com (Ray Smith) /////////////////////////////////////////////////////////////////////// // File: shapetable.cpp // Description: Class to map a classifier shape index to unicharset // indices and font indices. // Author: R...
<?xml version = '1.0' encoding = 'ISO-8859-1' ?> <asm version="1.0" name="0"> <cp> <constant value="Families2Persons"/> <constant value="links"/> <constant value="NTransientLinkSet;"/> <constant value="col"/> <constant value="J"/> <constant value="main"/> <constant value="A"/> <constant value="OclParam...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Copyright(c) 2011-2019 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...
; Z88 Small C+ Run Time Library ; Long functions ; XLIB l_long_or ; "or" primary and secondary into dehl ; dehl = primary ; stack = secondary, ret .l_long_or pop ix pop bc ld a,c or l ld l,a ld a,b or h ld h,a pop bc ld a,c or e ld e,a ld a,b or d ...
opt c,ct ******************************************************************************** * Game Engine (TO8 Thomson) - Benoit Rousseau 2020-2021 * ------------------------------------------------------------------------------ * * ******************************************************************************...
; int asprintf(char **s, const char *fmt, ...) ; 05.2008 aralbrec PUBLIC asprintf EXTERN vasprintf_callee, stdio_varg, stdio_nextarg EXTERN ASMDISP_VASPRINTF_CALLEE .asprintf call stdio_varg push de ; stack = char **s call stdio_nextarg ; de = char *fmt ld c,l ld ...
; A135450: a(n) = 3*a(n-1) + 4*a(n-2) - a(n-3) + 3*a(n-4) + 4*a(n-5). ; 0,0,0,1,4,16,63,252,1008,4033,16132,64528,258111,1032444,4129776,16519105,66076420,264305680,1057222719,4228890876,16915563504,67662254017,270649016068,1082596064272,4330384257087,17321537028348,69286148113392,277144592453569,1108578369814276,44343...
db DEX_ELECTRODE ; pokedex id db 60 ; base hp db 50 ; base attack db 70 ; base defense db 140 ; base speed db 80 ; base special db ELECTRIC ; species type 1 db ELECTRIC ; species type 2 db 58 ; catch rate db 150 ; base exp yield INCBIN "pic/ymon/electrode.pic",0,1 ; 55, sprite dimensions dw ElectrodePicFront dw Electro...
// Copyright 2015 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 "core/css/RuleFeature.h" #include "core/css/CSSSelectorList.h" #include "core/css/RuleSet.h" #include "core/css/StylePropertySet.h" #include "co...
; A164660: Numerators of row sums of triangle of rationals A164658/A164659. Definite integral of Chebyshev polynomials of the first kind: Integral_{x=0..1} T(n,x). ; 1,1,-1,-1,-1,1,-1,-1,-1,1,-1,-1,-1,1,-1,-1,-1,1,-1,-1,-1,1,-1,-1,-1,1,-1,-1,-1,1,-1,-1,-1,1,-1,-1,-1,1,-1,-1,-1,1,-1,-1,-1,1,-1,-1,-1,1,-1,-1,-1,1,-1,-1,-...
; void *wv_stack_pop(wv_stack_t *s) SECTION code_clib SECTION code_adt_wv_stack PUBLIC wv_stack_pop EXTERN asm_wv_stack_pop defc wv_stack_pop = asm_wv_stack_pop ; SDCC bridge for Classic IF __CLASSIC PUBLIC _wv_stack_pop defc _wv_stack_pop = wv_stack_pop ENDIF
[BITS 64] ;global _start:function global div_r8:function global div_m8:function global div_r16:function global div_m16:function global div_r32:function global div_m32:function global div_r64:function global div_m64:function section .text ;_start: ; call div_m64 ; ; sys_exit(eax) ; mov ebx, eax ; mov eax,...
; A301688: Coordination sequence for node of type V2 in "krh" 2-D tiling (or net). ; 1,4,9,12,17,22,24,30,35,36,43,48,48,56,61,60,69,74,72,82,87,84,95,100,96,108,113,108,121,126,120,134,139,132,147,152,144,160,165,156,173,178,168,186,191,180,199,204,192,212,217,204,225,230,216,238,243,228,251,256,240,264,269,252,277,28...
MelanieText1:: text "I take care of" line "injured #MON." para "I nursed this" line "BULBASAUR back to" cont "health." para "It needs a good" line "trainer to take" cont "care of it now.@@" MelanieText2:: text "I know! Would you" line "take care of this" cont "BULBASAUR?" done MelanieText3:: text "Plea...
; A307681: Difference between the number of diagonals and the number of sides for a convex n-gon. ; -3,-2,0,3,7,12,18,25,33,42,52,63,75,88,102,117,133,150,168,187,207,228,250,273,297,322,348,375,403,432,462,493,525,558,592,627,663,700,738,777,817,858,900,943,987,1032,1078,1125,1173,1222,1272,1323,1375,1428,1482,1537,15...
// Copyright 2017 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 "base/bind.h" #include "base/callback_helpers.h" #include "base/files/file_path.h" #include "base/files/file_util.h" #include "base/files/scoped_...
#pragma once #include "GeneralSummaryNodeCollectorFactory.hpp" #include "GeneralNodeCollectorParser.hpp" namespace axis { namespace application { namespace factories { namespace collectors { class GeneralSummaryNodeCollectorFactory::Pimpl { public: axis::services::language::parsing::ParseResult TryParseAny( co...
/*============================================================================= Copyright (c) 2011 Eric Niebler 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) ================================================...
; A117066: Partial sums of cupolar numbers (1/3)*(n+1)*(5*n^2+7*n+3) (A096000). ; 1,11,48,140,325,651,1176,1968,3105,4675,6776,9516,13013,17395,22800,29376,37281,46683,57760,70700,85701,102971,122728,145200,170625,199251,231336,267148,306965,351075,399776,453376,512193,576555,646800,723276,806341,896363,993720,1098800,...
; A021820: Decimal expansion of 1/816. ; 0,0,1,2,2,5,4,9,0,1,9,6,0,7,8,4,3,1,3,7,2,5,4,9,0,1,9,6,0,7,8,4,3,1,3,7,2,5,4,9,0,1,9,6,0,7,8,4,3,1,3,7,2,5,4,9,0,1,9,6,0,7,8,4,3,1,3,7,2,5,4,9,0,1,9,6,0,7,8,4,3,1,3,7,2,5,4,9,0,1,9,6,0,7,8,4,3,1,3 add $0,1 mov $1,10 pow $1,$0 mul $1,2 div $1,1632 mod $1,10 mov $0,$1
; ----------------------------------------------------------------------------- ; ZX0 decoder by Einar Saukas & introspec ; "Mega" version (412 bytes, 25% faster) ; ----------------------------------------------------------------------------- ; Parameters: ; HL: source address (compressed data) ; DE: destination ad...
%include "io.inc" %define ARRAY_SIZE 13 %define DECIMAL_PLACES 5 section .data num_array dw 76, 12, 65, 19, 781, 671, 431, 761, 782, 12, 91, 25, 9 array_sum_prefix db "Sum of numbers: ",0 array_mean_prefix db "Numbers mean: ",0 decimal_point db ".",0 section .text global CMAIN CMAIN: ...
// Copyright Steinwurf ApS 2014. // All Rights Reserved // // Distributed under the "BSD License". See the accompanying LICENSE.rst file. #include <kw/parameter.hpp> #include <string> #include <cstdint> #include <tuple> #include <gtest/gtest.h> #include "test_parameters.hpp" namespace { const kw::parameter<uint32...
#include "ConfigProcessor.h" #include <sys/utsname.h> #include <cerrno> #include <cstdlib> #include <cstring> #include <algorithm> #include <iostream> #include <functional> #include <Poco/DOM/Text.h> #include <Poco/DOM/Attr.h> #include <Poco/DOM/Comment.h> #include <Poco/Util/XMLConfiguration.h> #include <Common/ZooKe...
; vertical credits scroller ; somewhat generalised so will scroll all MODE 7 characters up by one pixel at a time ; then adds new row of pixels at the bottom from a fixed array ; separate routine fills the new line buffer with font data from an array of text .start_fx_creditscroll \\ Change these to adjust window t...
; A075753: Smallest prime factor of n-th odd triangular number. ; Submitted by Jon Maiga ; 3,3,3,3,5,7,3,3,3,3,11,5,3,3,3,3,5,19,3,3,3,3,23,5,3,3,3,3,29,31,3,3,3,3,5,37,3,3,3,3,41,5,3,3,3,3,5,7,3,3,3,3,53,5,3,3,3,3,7,11,3,3,3,3,5,7,3,3,3,3,11,5,3,3,3,3,5,79,3,3,3,3,83,5,3,3,3,3,89,7,3,3,3,3,5,97,3,3,3 mov $2,$0 mul $0...
/** * This software is distributed under the terms of the MIT License. * Copyright (c) 2020 LXRobotics. * Author: Alexander Entinger <alexander.entinger@lxrobotics.com> * Contributors: https://github.com/107-systems/107-Arduino-UAVCAN/graphs/contributors. */ #ifndef ARDUINO_UAVCAN_TYPES_UAVCAN_FILE_READ_1_0_HPP_ ...
;; ;; Copyright (c) 2012-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...
;------------------------------------------------------------------------------- ; MSP430 Assembler Code Template for use with TI Code Composer Studio ; ; ;------------------------------------------------------------------------------- .cdecls C,LIST,"msp430.h" ; Include device header file ...
/* * Copyright (c) 2018 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...
; int vfprintf(FILE *stream, const char *format, void *arg) INCLUDE "clib_cfg.asm" SECTION code_stdio ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; IF __CLIB_OPT_MULTITHREAD & $02 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PUBLIC vfprintf_callee EXTERN asm_vfprintf vfprintf_callee: pop af pop bc pop de pop ix push af ...
BerryTreeScript:: ; Display the "It's a fruit-bearing tree." text call EnableAutoTextBoxDrawing ld hl, FruitTreeText call PrintText ; Check to see if the player can get a berry from this tree right now ld a, [wWhichTrade] ; Which tree is this? dec a ld c, a ; We need this in register c ld b, 2 ; We want to rea...
; Tell the Assembler that are loaded at offset 0x7c00 [org 0x7c00] [bits 16] ; Memory location where our C kernel will be loaded ROOTDIRECTORY_OFFSET equ 0x1000 KERNEL_OFFSET equ 0x1200 ; Number of the sectors that we are reading during the loading of the C kernel NUMBER_OF_SECTORS_TO_READ equ 0x4 jmp s...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2020 ArangoDB GmbH, Cologne, Germany /// /// 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...
/* Copyright 2020 The OneFlow Authors. 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 by applicable law or agre...
; A282513: a(n) = floor((3*n + 2)^2/24 + 1/3). ; 0,1,3,5,8,12,17,22,28,35,43,51,60,70,81,92,104,117,131,145,160,176,193,210,228,247,267,287,308,330,353,376,400,425,451,477,504,532,561,590,620,651,683,715,748,782,817,852,888,925,963 mov $2,$0 add $2,2 lpb $0,1 trn $1,$2 add $1,$0 sub $0,1 trn $2,4 lpe
; A169451: Number of reduced words of length n in Coxeter group on 6 generators S_i with relations (S_i)^2 = (S_i S_j)^33 = I. ; 1,6,30,150,750,3750,18750,93750,468750,2343750,11718750,58593750,292968750,1464843750,7324218750,36621093750,183105468750,915527343750,4577636718750,22888183593750,114440917968750,57220458984...
;Testname=noerr; Arguments=-felf64 -ogotoff64.o; Files=stdout stderr gotoff64.o ;Testname=err; Arguments=-DERROR -felf64 -ogotoff64.o; Files=stdout stderr gotoff64.o bits 64 default rel extern foo mov r15,[foo wrt ..got] lea r12,[foo wrt ..got] %ifdef ERROR lea rax,[foo wrt ..gotoff] mov rax,[foo ...
ScoopDebrisOffset equ 0 ; hull byte#0 high nibble is scoop info, lower nibble is debris spin info MissileLockLoOffset equ 1 MissileLockHiOffset equ 2 EdgeAddyOffset equ 3 LineX4Offset equ 5 GunVertexOffset equ 6 ExplosionCtOffset equ 7 VertexCtX6Offset eq...
//===-- sancov.cpp --------------------------------------------------------===// // // 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 // //===---------------------------...
; this program is from chapter 8 of the book. ; Program to count occurrences of a character in a file. ; Character to be input from the keyboard. ; Result to be displayed on the monitor. ; Program works only if no more than 9 occurrences are found. ; ; ; Initialization ; .ORIG x3000 AND R2,R2,#0 ; R2 is counter, initi...
CHAR_CLRSCR equ 147 ; ----------------------------------------------------------------- ; Implements a jump table to select various interrupt routines. ; Input: ; BP - offset to the function table ; AH - function number ; ----------------------------------------------------------------- INT_Dispatch: push bx...
/* * Copyright 2018- The Pixie 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 ag...
; Fibonacci Sequence Display ; ; Display the Fibonacci sequence for the range that is caculatable with 8-bit math OUTPUT = $7800 ; The display register is found at address $7800 ; ; Code ; .org 0 ; code starts at address 0 start: mov [OUTPUT],1 ; init display to 1 mov i,1 ...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r14 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x14786, %rsi lea addresses_WT_ht+0x148d4, %rdi nop nop nop dec %r13 mov $11, %rcx rep movsq add $64364, %r10 lea addresses_WT_ht+0x3d86, %r10 dec %r13 mov $0x6162636465666768...
object_const_def ; object_event constants const VIOLETKYLESHOUSE_POKEFAN_M const VIOLETKYLESHOUSE_KYLE VioletKylesHouse_MapScripts: db 0 ; scene scripts db 0 ; callbacks VioletKylesHousePokefanMScript: jumptextfaceplayer VioletKylesHousePokefanMText Kyle: faceplayer opentext trade NPC_TRADE_KYLE waitbutto...
/* The copyright in this software is being made available under the BSD * License, included below. This software may be subject to other third party * and contributor rights, including patent rights, and no such rights are * granted under this license. * * Copyright (c) 2010-2021, ITU/ISO/IEC * All rights reserve...
/**************************************************************************** ** MIT License ** ** Copyright (C) 2020-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com ** Author: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> ** ** This file is part of KDToolBox (https...
// // Basic class to handle reading of static data // // Author: Alex V. Boreskoff // #include <stdio.h> #ifdef _WIN32 #include <fcntl.h> #include <io.h> #include <sys/stat.h> #else #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #define O_BINARY 0 #...
// // Created by edward on 13.11.2019. // #include <fstream> #include <gtest/gtest.h> #include <stack> #include <toolbox/data.hpp> #include <toolbox/data/literals.h> #include <toolbox/data/transformers.h> using namespace toolbox::data; using namespace toolbox::data::literals; TEST(BytesData, Write) { bytes_data ...
; A139716: If k is the largest divisor of n that is <= sqrt(n) then a(n) = n - k^2. ; 0,1,2,0,4,2,6,4,0,6,10,3,12,10,6,0,16,9,18,4,12,18,22,8,0,22,18,12,28,5,30,16,24,30,10,0,36,34,30,15,40,6,42,28,20,42,46,12,0,25,42,36,52,18,30,7,48,54,58,24,60,58,14,0,40,30,66,52,60,21,70,8,72,70,50,60,28,42 mov $1,$0 add $1,1 mov ...
/** * @file * @brief Player related functions. **/ #include "AppHdr.h" #include "player.h" #include <algorithm> #include <cctype> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <sstream> #include "ability.h" #include "abyss.h" #include "act-iter.h" #include "areas.h" #include "a...
; ; Fast background restore ; ; MSX version ; ; $Id: bkrestore.asm,v 1.6 2016/06/21 20:16:35 dom Exp $ ; SECTION code_clib PUBLIC bkrestore PUBLIC _bkrestore EXTERN bkpixeladdress IF FORmsx INCLUDE "msx.def" ELSE INCLUDE "svi.def" ENDIF .bkrestore ._bkrestore ; __FASTCALL__ : sprite ptr in HL push ix...
_forktest: 檔案格式 elf32-i386 Disassembly of section .text: 00000000 <main>: printf(1, "fork test OK\n"); } int main(void) { 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...
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a ...
org 0x7c00 bits 16 cpu 8086 jmp short main nop %define kernel_segment 0x0800 %define kernel_offset 0x0000 %macro DefineValue 3 %1 %2 %3 %1.value: equ %3 %endmacro bios_parameter_block: .oem_id: db "FtrDOS " DefineValue .bytes_per_sector, dw, 512 DefineValue .sectors_per_cluster, db, 1 DefineValue .reserved_sectors...
; A212698: Main transitions in systems of n particles with spin 3/2. ; 3,24,144,768,3840,18432,86016,393216,1769472,7864320,34603008,150994944,654311424,2818572288,12079595520,51539607552,219043332096,927712935936,3917010173952,16492674416640,69269232549888,290271069732864,1213860837064704,5066549580791808 mov $1,$0 a...
INCLUDE "constants.asm" ; PokemonPicPointers and UnownPicPointers are assumed to start at the same ; address, but in different banks. This is enforced in pokecrystal.link. SECTION "Pic Pointers", ROMX INCLUDE "data/pokemon/pic_pointers.asm" SECTION "Unown Pic Pointers", ROMX INCLUDE "data/pokemon/unown_pic_poin...
[BITS 64] %include "parameters.inc" extern exit global and_int64 section .text and_int64: push rbp mov rax, ITERATIONS_and_int64 mov rbx, 1 mov rcx, 2 mov rdx, 3 mov rsi, 4 mov rdi, 5 mov r8, 6 mov r9, 7 mov r10, 8 mov r11, 9 mov r12, 10 mov r13, 11 mov r14, 12 ...
; CALLER LINKAGE FOR FUNCTION POINTERS SECTION code_clib PUBLIC cplot PUBLIC _cplot EXTERN asm_cplot .cplot ._cplot pop af pop bc pop hl pop de push de push hl push bc push af jp asm_cplot
// // Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.16384 // // /// // Buffer Definitions: // // cbuffer cbPNTriangles // { // // float4x4 g_f4x4World; // Offset: 0 Size: 64 [unused] // float4x4 g_f4x4ViewProjection; // Offset: 64 Size: 64 [unused] // float4x4 g_f4x4WorldV...
; A001748: 3 * primes. ; 6,9,15,21,33,39,51,57,69,87,93,111,123,129,141,159,177,183,201,213,219,237,249,267,291,303,309,321,327,339,381,393,411,417,447,453,471,489,501,519,537,543,573,579,591,597,633,669,681,687,699,717,723,753,771,789,807,813,831,843,849,879,921,933,939,951,993,1011,1041,1047,1059,1077,1101,1119,1137,...
; A158135: a(n) = 144*n^2 - 2*n. ; 142,572,1290,2296,3590,5172,7042,9200,11646,14380,17402,20712,24310,28196,32370,36832,41582,46620,51946,57560,63462,69652,76130,82896,89950,97292,104922,112840,121046,129540,138322,147392,156750,166396,176330,186552,197062,207860,218946,230320,241982,253932,266170,278696,291510,304612...
/* Develop by Luis Alberto email: alberto.bsd@gmail.com gcc -o bPfile bPfile.c -lgmp -lm Hint: compile in the keyhunt directory */ #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <gmp.h> #include <string.h> #ifdef WIN64 #include <Windows.h> #else #include <unistd.h> #include <pthread.h> #endif #...
; A204042: The number of functions f:{1,2,...,n}->{1,2,...,n} (endofunctions) such that all of the fixed points in f are isolated. ; Submitted by Jon Maiga ; 1,1,2,12,120,1520,23160,413952,8505280,197631072,5125527360,146787894440,4601174623584,156693888150384,5761055539858528,227438694372072120,9596077520725211520,430...
//===--- UnwrappedLineParser.cpp - Format C++ code ------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
; Top-hole Golf ; Copyright 2020-2021 Matthew Clarke !to "splash.o",cbm !source "../core/labels.asm" !source "../core/mymacros.asm" !source "../core/vic_ii.asm" *= end_of_core !zone { splash_s_init +utils_m_enable_bitmap_mode +clr splash_v_must_exit ; Copy pixel data to bitmap. ; 40*25*8 = 8000 by...
; A123746: Numerators of partial sums of a series for 1/sqrt(2). ; Submitted by Christian Krause ; 1,1,7,9,107,151,835,1241,26291,40427,207897,327615,3296959,5293843,26189947,42685049,1666461763,2749521971,13266871709,22115585443,211386315749,355490397193,1684973959237,2855358497999,53747636888759,91693947972799,428765...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r14 push %r15 push %r9 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x82d5, %rbp sub $58043, %rdx movw $0x6162, (%rbp) nop nop cmp $11065, %rbp lea addresses_D_ht+0x19989, %r14 xor $31096, %r15 movb $0x61, (%r14) nop nop nop nop n...
;***************************************************************** ;* - Description: Device definition file for RC Calibration ;* - File: t24.asm ;* - AppNote: AVR053 - Production calibration of the ;* RC oscillator ;* ;* - Author: Atmel Corporation: http://www.atmel.com ;* ...
;/* ; FreeRTOS V8.2.1 - Copyright (C) 2015 Real Time Engineers Ltd. ; All rights reserved ; ; VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. ; ; This file is part of the FreeRTOS distribution. ; ; FreeRTOS is free software; you can redistribute it and/or modify it under...
; int isblank(int c) SECTION code_clib SECTION code_ctype PUBLIC _isblank EXTERN _isblank_fastcall _isblank: pop af pop hl push hl push af jp _isblank_fastcall
; A049480: a(n) = (2*n-1)*(n^2 -n +6)/6. ; 1,4,10,21,39,66,104,155,221,304,406,529,675,846,1044,1271,1529,1820,2146,2509,2911,3354,3840,4371,4949,5576,6254,6985,7771,8614,9516,10479,11505,12596,13754,14981,16279,17650,19096,20619,22221,23904,25670,27521,29459,31486,33604,35815,38121,40524,43026,45629,48335,51146,54064,...
// 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/chromeos/drive/file_system/copy_operation.h" #include <string> #include "base/file_util.h" #include "base/task_runner_util....
; A108340: A083952 read mod 2. ; 1,0,1,0,0,0,1,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 mov $1,$0 gcd $1,2 mov $2,$0 add $2,$0 lpb $2 gcd $1,$2 div $2,5 lpe sub $1,1
;-------------------------------------------------------------------------- ; modsigned.s ; ; Copyright (C) 2009, Philipp Klaus Krause ; ; This library is free software; you can redistribute it and/or modify it ; under the terms of the GNU General Public License as published by the ; Free Software Foundation; eith...
; ; Copyright (c) 2010 The WebM 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 contributing proje...
#include<iostream> #include<fstream> using namespace std; int main(){ fstream sf; sf.open("output.txt",ios::app); string name; cout<<"enter name of file you want to append "; cin>>name; ifstream fi; fi.open(name); string line; while (!fi.eof()) { getline(fi,line); ...
; boot12.asm FAT12 bootstrap for real mode image or loader ; Version 1.0, Jul 5, 1999 ; Sample code ; by John S. Fine johnfine@erols.com ; I do not place any restrictions on your use of this source code ; I do not provide any warranty of the correctness of this source code ;_____________________________________...
#include "larva_creep_spawn.h" #include <SCBW/api.h> //Helper functions definitions namespace { void setUnitPathing(CUnit* unit, u8 unkPathRelated); //0x00401360 bool isUnitPositions2Equal(CUnit* unit); //0x00402160 CUnit* connectAddonCheck(CUnit* unit); //0x004404...