text
stringlengths
1
1.05M
// Copyright (c) 2021 PaddlePaddle 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...
; A120743: a(n) = (1/2)*(1 + 3*i)^n + (1/2)*(1 - 3*i)^n where i = sqrt(-1). ; 1,-8,-26,28,316,352,-2456,-8432,7696,99712,122464,-752192,-2729024,2063872,31417984,42197248,-229785344,-881543168,534767104,9884965888,14422260736,-70005137408,-284232882176,131585609728,3105500041216,4895143985152,-21264712441856,-914808647...
/* This file is part of cpp-ethereum. cpp-ethereum 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, either version 3 of the License, or (at your option) any later version. cpp-ethereum is distributed ...
// Copyright (c) 2011-2013 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 "sendcoinsentry.h" #include "ui_sendcoinsentry.h" #include "guiutil.h" #include "bitcoinunits.h" #include "addressbo...
; A010442: Squares mod 81. ; 0,1,4,7,9,10,13,16,19,22,25,28,31,34,36,37,40,43,46,49,52,55,58,61,63,64,67,70,73,76,79 mov $2,$0 mov $5,$0 lpb $2,1 mov $0,$5 sub $2,1 sub $0,$2 mov $3,3 mov $6,$0 lpb $0,1 trn $0,$3 sub $0,1 mov $3,9 mov $4,1 add $4,$0 mov $6,9 sub $6,$4 sub $6...
; A001022: Powers of 13. ; 1,13,169,2197,28561,371293,4826809,62748517,815730721,10604499373,137858491849,1792160394037,23298085122481,302875106592253,3937376385699289,51185893014090757,665416609183179841,8650415919381337933,112455406951957393129,1461920290375446110677,19004963774880799438801,247064529073450392704413,3...
; A244416: 6-adic value of 1/n for n >= 1. ; Submitted by Jon Maiga ; 1,6,6,36,1,6,1,216,36,6,1,36,1,6,6,1296,1,36,1,36,6,6,1,216,1,6,216,36,1,6,1,7776,6,6,1,36,1,6,6,216,1,6,1,36,36,6,1,1296,1,6,6,36,1,216,1,216,6,6,1,36,1,6,36,46656,1,6,1,36,6,6,1,216,1,6,6,36,1,6,1,1296,1296,6,1,36,1,6 lpb $0 add $2,1 mul $2,6 ...
; A033539: a(0)=1, a(1)=1, a(2)=1, a(n) = 2*a(n-1) + a(n-2) + 1. ; 1,1,1,4,10,25,61,148,358,865,2089,5044,12178,29401,70981,171364,413710,998785,2411281,5821348,14053978,33929305,81912589,197754484,477421558,1152597601,2782616761,6717831124,16218279010,39154389145,94527057301,228208503748,550944064798,1330096633345,321...
; A095832: Triangle read by rows: T(n,k) = (n-k+1)*(n-k), n>=1, 1<=k<=n. ; 0,2,0,6,2,0,12,6,2,0,20,12,6,2,0,30,20,12,6,2,0,42,30,20,12,6,2,0,56,42,30,20,12,6,2,0,72,56,42,30,20,12,6,2,0,90,72,56,42,30,20,12,6,2,0,110,90,72,56,42,30,20,12,6,2,0,132,110,90,72,56,42,30,20,12,6,2,0,156,132,110,90,72,56,42,30,20,12,6,2,0,18...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r13 push %r15 push %r9 push %rbp push %rcx push %rdi push %rsi lea addresses_normal_ht+0xf721, %r12 nop and $1689, %r9 movw $0x6162, (%r12) nop sub $29464, %r10 lea addresses_A_ht+0x191b1, %rbp nop nop nop nop nop inc %r13 vmovups (%rbp), %ymm7 vext...
; A120165: a(1)=7; a(n)=floor((29+sum(a(1) to a(n-1)))/4). ; 7,9,11,14,17,21,27,33,42,52,65,81,102,127,159,199,248,310,388,485,606,758,947,1184,1480,1850,2312,2890,3613,4516,5645,7056,8820,11025,13782,17227,21534,26917,33647,42058,52573,65716,82145,102681,128352,160440,200550,250687,313359,391699,489623,612029,765036,9...
;----------------------------------------------------- ;Execute shell command ;I: none ;O: none ;----------------------------------------------------- _exec_cmd: ;Check for Empty Comamnd mov si,strCmd cmp BYTE[si],0x00 je _cmd_done _cmd_ver: mov si,strCmd mov di,cmdInfo mov cx,5 rep...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r14 push %r15 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_UC_ht+0xac37, %rsi lea addresses_WT_ht+0x10c1f, %rdi nop nop dec %rbp mov $23, %rcx rep movsl nop nop nop and $55701, %rcx lea addresses_A_ht+0x1b5f, %rcx nop add $11342, %r12 mov (...
; ; CP/M 2.2 BOOT LOADER FOR IMSAI 8080 WITH FIF FDC ; ; COPYRIGHT (C) 2017,2019 BY UDO MUNK ; ; CAN BE ASSEMBLED WITH INTEL MACRO 8080 ASSEMBLER ; OR DRI 8080 ASSEMBLER, SO ALL UPPERCASE, NO TABS ; ORG 0 ;BASE OF BOOT CODE MSIZE EQU 54 ;MEMORY SIZE...
; A038312: Triangle whose (i,j)-th entry is binomial(i,j)*10^(i-j)*10^j. ; Submitted by Christian Krause ; 1,10,10,100,200,100,1000,3000,3000,1000,10000,40000,60000,40000,10000,100000,500000,1000000,1000000,500000,100000,1000000,6000000,15000000,20000000,15000000,6000000,1000000,10000000,70000000,210000000 mov $1,1 lp...
; 386-specific org 0 _start: mov tr0,eax mov eax,tr0 mov tr1,eax mov eax,tr1 ibts ax,bx ibts [si],bx ibts eax,ebx ibts [esi],ecx xbts ax,bx xbts bx,[si] xbts eax,ebx xbts ecx,[esi] smi umov al,al umov [si],al umov ax,ax umov [si],ax umov eax,eax umov [si],eax umov al,[si] umov ax,[si] umov eax,[...
cli ld0 ld0 ld0 ld8 mta loop: ;6 ;LD16M B[15:0]=(A)[15:0] cli clj mfn mty ;loop1: 10 mfb ldr mtb mfa mtx sec ad4 ad4 ad4 ad4 mtx ld2 ldd ld0 ld0 ;end1 addr mta mfj bzz mfx mta ldc ld3 ld0 ld0 ;loop1 addr mtp ;end1: 35 mfx mtd lde ld2 ld2 ld0 ;end addr mta ld0 lde ld0 ld7 mty ad4 ad4 ad4 ad4 bzz ld0 ld0 ld0 ldc mta m...
/* <orly/type/str.cc> Implements <orly/type/str.h>. Copyright 2010-2014 OrlyAtomics, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENS...
/* * Catch v2.2.1 * Generated: 2018-03-11 12:01:31.654719 * ---------------------------------------------------------- * This file has been merged from multiple headers. Please don't edit it directly * Copyright (c) 2018 Two Blue Cubes Ltd. All rights reserved. * * Distributed under the Boost Software Lice...
; Z88 Small C+ Run Time Library ; Long functions ; SECTION code_l_sccz80 PUBLIC l_long_ult EXTERN l_long_ucmp l_long_ult: ; PRIMARY < SECONDARY, carry set if true ; HL set to 0 (false) or 1 (true) ; dehl = secondary ; stack = primary, ret call l_long_ucmp ret c dec l...
; A273981: Erroneous version of A005897. ; 1,4,26,56,98,152,218,296,386,488,602,728,866,1016,1178,1352,1538,1736,1946,2168,2402,2648,2906,3176,3458,3752,4058,4376,4706,5048,5402,5768,6146,6536,6938,7352,7778,8216,8666,9128,9602,10088 pow $0,2 mul $0,3 mov $1,$0 add $1,1 lpb $0,1 mov $0,3 mul $1,2 lpe
// Copyright 2014 BitPay, Inc. // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <stdint.h> #include <vector> #include <string> #include <map> #include <univalue.h> #include "test/test_idf.h" #include <boost/test/unit_te...
; ; Sharp OZ family functions ; ; ported from the OZ-7xx SDK by by Alexander R. Pruss ; by Stefano Bodrato - Oct. 2003 ; ; Serial libraries ; serial control commands ; ; ------ ; $Id: ozgetlcr.asm,v 1.2 2015/01/19 01:33:04 pauloscustodio Exp $ ; PUBLIC ozgetlcr ozgetlcr: in a,(43h) ld l,a ld...
; -Wall and -Wno-all test OPT -Wall ; enable all extra warnings abs: ld hl,abs DEVICE ZXSPECTRUMNEXT, $8000 DEVICE NOSLOT64K, $8000 DEVICE ZXSPECTRUM48, $8000 : DEVICE ZXSPECTRUM48, $8001 DISP 123 : ORG 345 : ENT ORG 123, 0 IF fwd_ref_label : ENDIF ; it's W_EARLY warning, emitted b...
; A130302: A000012 * A130296. ; Submitted by Christian Krause ; 1,3,1,6,2,1,10,3,2,1,15,4,3,2,1,21,5,4,3,2,1,28,6,5,4,3,2,1,36,7,6,5,4,3,2,1 lpb $0 add $1,1 sub $0,$1 lpe sub $1,$0 add $0,1 cmp $0,1 mul $0,$1 add $0,2 mul $1,$0 add $0,$1 div $0,2
MOV R0,#20H;set source address 20H to R0 MOV DPTR,#7050H;set destination address 7050H to DPTR MOV A,@R0;take the value from source to register A CPL A ADD A, #01H MOVX @DPTR, A; Store the result HALT: SJMP HALT ;Stop the program
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ; klib.asm ; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ; Forrest Yu, 2005 ; ++++++++++++++++++++++++++++++++++++++++++++++++++++++...
; A170161: Number of reduced words of length n in Coxeter group on 8 generators S_i with relations (S_i)^2 = (S_i S_j)^39 = I. ; 1,8,56,392,2744,19208,134456,941192,6588344,46118408,322828856,2259801992,15818613944,110730297608,775112083256,5425784582792,37980492079544,265863444556808,1861044111897656,13027308783283592...
// Copyright (c) 2020-2021 Franz Alt // This code is licensed under MIT license (see LICENSE.txt for details). #ifndef LIBCVPG_IMAGEPROC_SCRIPTING_ALGORITHMS_K_MEANS_HPP #define LIBCVPG_IMAGEPROC_SCRIPTING_ALGORITHMS_K_MEANS_HPP #include <libcvpg/imageproc/scripting/algorithms/base.hpp> namespace cvpg::imageproc::sc...
<% from pwnlib.shellcraft.mips.linux import syscall %> <%page args="fds, nfds, timeout"/> <%docstring> Invokes the syscall poll. See 'man 2 poll' for more information. Arguments: fds(pollfd): fds nfds(nfds_t): nfds timeout(int): timeout </%docstring> ${syscall('SYS_poll', fds, nfds, timeout)}
.MODEL SMALL .386 PAGE 70, 140 TITLE MP3 - [Text Mode Mine] - Your Name - Today's Date - COMMENT * In this MP, you will write a text mode video version of the ever popular game, MineSweeper ECE291 - Machine Problem 3 Professor Josh Potts Guest Authors - Michael Urman and ...
;------------------------------------------------------------------------------ ; ; Copyright (c) 2016 - 2018, 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 distri...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PROGRAM ENDS ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; jmp exit ; All done! getIOHandles: push STD_OUTPUT_HANDLE ; _In_ DWORD nStdHandle call GetStdHandle ; https://docs.microsoft.co...
; ; Copyright (c) 2016, Alliance for Open Media. All rights reserved ; ; This source code is subject to the terms of the BSD 2 Clause License and ; the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License ; was not distributed with this source code in the LICENSE file, you can ; obtain it at www.aome...
; ----------------------------------------------------------------------------- ; Decompress raw LZSA1 block. Create one with lzsa -r <original_file> <compressed_file> ; ; in: ; * LZSA_SRC_LO and LZSA_SRC_HI contain the compressed raw block address ; * LZSA_DST_LO and LZSA_DST_HI contain the destination buffer address ...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r9 push %rdi push %rdx lea addresses_WC_ht+0x12220, %r11 nop nop nop cmp $64728, %r9 mov $0x6162636465666768, %rdi movq %rdi, (%r11) nop nop nop cmp %r12, %r12 lea addresses_A_ht+0x119be, %r9 clflush (%r9) nop add $54596, %r10 mov (%r9), %...
#include "amanogawa/include/confluence_plugin.h" #include <arrow/api.h> namespace amanogawa { namespace plugin { namespace confluence { namespace key { struct ConfluenceKeyPlugin : ConfluencePlugin { std::string plugin_name() const override { return "key"; } ConfluenceKeyPlugin(const std::string &id, const std::s...
caballerorenegado_idle: DB 0, 0, 0, 0, 0, 225, 51, 51, 1, 0, 0, 0 DB 0, 0, 0, 0, 16, 62, 19, 17, 19, 0, 0, 0 DB 0, 0, 0, 0, 225, 51, 17, 17, 49, 1, 0, 0 DB 0, 0, 0, 16, 62, 51, 129, 129, 49, 1, 0, 0 DB 0, 0, 0, 16, 17, ...
;********** PVM player *********** ; 19-08-2015 v0.01: Beat display at logo. ; v0.02: Raster bars added - Stable raster from Ricardo's code ; xx-09-2015 v0.10: VUMeter added ; 02-09-2015 v0.15: Playtime timer added ; 04-09-2015 v0.16: Code cleanup !to "mp_sw.prg" !sl "labels.txt" !source "macros.asm" ...
; =========================================================================== ; Copyright (C) 2011 Thilo Schulz <thilo@tjps.eu> ; ; This file is part of Quake III Arena source code. ; ; Quake III Arena source code is free software; you can redistribute it ; and/or modify it under the terms of the GNU General Public L...
; ; CPC Maths Routines ; ; August 2003 **_|warp6|_** <kbaccam /at/ free.fr> ; ; $Id: dge.asm,v 1.3 2015/01/21 10:56:29 stefano Exp $ ; INCLUDE "cpcfirm.def" INCLUDE "cpcfp.def" PUBLIC dge PUBLIC dgec EXTERN fsetup EXTERN stkequcmp EXTERN cmpfin .dge call fsetup call firmware .dgec de...
; A183208: Iterates of f(x)=floor((3x-1)/2) from x=6. ; 6,8,11,16,23,34,50,74,110,164,245,367,550,824,1235,1852,2777,4165,6247,9370,14054,21080,31619,47428,71141,106711,160066,240098,360146,540218,810326,1215488,1823231,2734846,4102268,6153401,9230101,13845151 mov $1,5 mov $2,$0 lpb $2 mul $1,3 div $1,2 sub $2,1...
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r14 push %r9 push %rax push %rcx push %rdi push %rsi lea addresses_WT_ht+0x9f4, %r14 nop nop nop nop nop add $55096, %rax movups (%r14), %xmm5 vpextrq $1, %xmm5, %r13 nop nop xor %rdi, %rdi lea addresses_WT_ht+0x1441f, %rsi lea addresses_WC_ht+0x13a9f, %rdi n...
.model small .stack 64 .data ;dato db "presione cualquier tecla para salir$" dato db "Cual es tu nombre?",10,13,"$" saludo db "Hola ","$" nombre db 20 dup(0) .code start proc far mov ax,@data mov ds,ax mov ah,09h ;llamada a rutina imrpimir cadena por pantalla lea dx,dato int 21h mov...
_init: file format elf32-i386 Disassembly of section .text: 00000000 <main>: char *argv[] = { "sh", 0 }; int main(void) { 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) ...
; ; file: asm_main.asm ; Evaluate: ; A = (A-B) + A + (B - C + D) ; B cancels. (Communitive Property of Addition) ; A = 2A + D - C %include "asm_io.inc" %define A ebp+12 %define B ebp+16 %define C ebp+20 %define D ebp+24 ; ;--------------------------------------------------- ; initialized data is put in the .data seg...
; $Id: tstAsmMovSeg-1.asm 69373 2017-10-26 15:38:48Z vboxsync $ ;; @file ; Disassembly testcase - Valid mov from/to segment instructions. ; ; This is a build test, that means it will be assembled, disassembled, ; then the disassembly output will be assembled and the new binary will ; compared with the original. ; ; ; ...
SECTION code_fp_am9511 PUBLIC _log EXTERN cam32_sdcc_log defc _log = cam32_sdcc_log
; Provided under the CC0 license. See the included LICENSE.txt for details. processor 6502 include "vcs.h" include "macro.h" include "multisprite.h" include "superchip.h" include "2600basic_variable_redefs.h" ifconst bankswitch if bankswitch == 8 ORG $1000 RORG $D000 endif if banksw...
; A103371: Number triangle T(n,k) = C(n,n-k)*C(n+1,n-k). ; Submitted by Christian Krause ; 1,2,1,3,6,1,4,18,12,1,5,40,60,20,1,6,75,200,150,30,1,7,126,525,700,315,42,1,8,196,1176,2450,1960,588,56,1,9,288,2352,7056,8820,4704,1008,72,1,10,405,4320,17640,31752,26460,10080,1620,90,1,11,550,7425,39600,97020,116424,69300,1980...
; A211618: Number of ordered triples (w,x,y) with all terms in {-n,...-1,1,...,n} and 2w+x+y>1. ; 0,3,24,89,218,439,772,1245,1878,2699,3728,4993,6514,8319,10428,12869,15662,18835,22408,26409,30858,35783,41204,47149,53638,60699,68352,76625,85538,95119,105388,116373,128094,140579,153848,167929,182842,198615,215268,232829...
code segment assume cs:code, ds:code mov ax, 5678h mov bx, 1234h add ax, bx mov si, 3000h mov [si], ax hlt code ends end
#include <iostream> #include <string> #include <mutex> #include <vector> #include <thread> using namespace std; class GoRoutine { private: //private default constructor (prohibits creation from outside) GoRoutine( ){}; // private copy constructor (prohibits copy creation) GoRoutine(const GoRoutine&); //...
// Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file // for details. all rights reserved. use of this source code is governed by a // BSD-style license that can be found in the LICENSE.md file. #include "src/shared/assert.h" #include "src/shared/flags.h" #include "src/shared/test_case.h" #i...
/* Copyright (c) 2010, 2014-2020, Arvid Norberg Copyright (c) 2016-2017, 2021, Alden Torres All rights reserved. You may use, distribute and modify this code under the terms of the BSD license, see LICENSE file. */ #include "libTAU/kademlia/dos_blocker.hpp" #ifndef TORRENT_DISABLE_LOGGING #include "libTAU/aux_/sock...
bits 32 section .text global _start _start: mov eax, 0x05 int 0x80
/* * All Video Processing kernels * Copyright © <2010>, Intel Corporation. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the ri...
; A056838: a(n) = floor(n^2/9). ; 0,0,0,1,1,2,4,5,7,9,11,13,16,18,21,25,28,32,36,40,44,49,53,58,64,69,75,81,87,93,100,106,113,121,128,136,144,152,160,169,177,186,196,205,215,225,235,245,256,266,277,289,300,312,324,336,348 pow $0,2 div $0,9
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r15 push %r8 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x1274a, %rbx nop nop nop nop add $2897, %r13 mov $0x6162636465666768, %rcx movq %rcx, (%rbx) nop nop nop nop nop cmp $40977, %rax lea addresses_WT_ht+0x1464a, %rsi lea addresse...
; A158003: a(n) = 196*n^2 - n. ; 195,782,1761,3132,4895,7050,9597,12536,15867,19590,23705,28212,33111,38402,44085,50160,56627,63486,70737,78380,86415,94842,103661,112872,122475,132470,142857,153636,164807,176370,188325,200672,213411,226542,240065,253980,268287,282986,298077,313560,329435,345702,362361,379412,396855,414...
; Comando para ensamblar: #nasm pixel.asm -o pixel.com ; Presionar ENTER para finalizar ;======================================================================| ; M A I N | ;======================================================================| ORG 100h mov ah,00h ;modo video mov al,13h ;3...
object_const_def ; object_event constants const PLAYERSHOUSE1F_MOM const PLAYERSHOUSE1F_RIVALMOM PlayersHouse1F_MapScripts: db 4 ; scene scripts scene_script .Scene0 ; SCENE_PLAYERSHOUSE1F_FIRST_TIME scene_script .Dummy ; SCENE_PLAYERSHOUSE1F_TRY_EXIT_FIRST_TIME scene_script .Dummy ; SCENE_PLAYERSHOUSE1F_NOTH...
//===----------------------------------------------------------------------===// // // Peloton // // postgres_protocol_handler.cpp // // Identification: src/network/postgres_protocol_handler.cpp // // Copyright (c) 2015-2018, Carnegie Mellon University Database Group // //===--------------------...
;------------------------------------------------------------------------------ ; ; SpeculationBarrier() for AArch64 ; ; Copyright (c) 2019, Linaro Ltd. All rights reserved. ; ; SPDX-License-Identifier: BSD-2-Clause-Patent ; ;------------------------------------------------------------------------------ EX...
// Copyright (c) 2014-2015 The ShadowCoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "extkey.h" #include "util.h" #include "base58.h" #include "state.h" #include "wallet.h" #include "init.h" // for ...
; A291500: The arithmetic function uhat(n,1,6). ; -29,-29,-29,-29,-29,-29,-29,-32,-36,-40,-44,-48,-52,-56,-60,-64,-68,-72,-76,-80,-84,-88,-92,-96,-100,-104,-108,-112,-116,-120,-124,-128,-132,-136,-140,-144,-148,-152,-156,-160,-164,-168,-172,-176,-180,-184,-188,-192,-196,-200,-204,-208,-212,-216,-220,-224,-228,-232,-236...
; Original address was $B773 ; Lonely pipe exit area .word $0000 ; Alternate level layout .word $0000 ; Alternate object layout .byte LEVEL1_SIZE_02 | LEVEL1_YSTART_170 .byte LEVEL2_BGPAL_00 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18 .byte LEVEL3_TILESET_01 | LEVEL3_VSCROLL_LOCKLOW | LEVEL3_PIPENOTEXIT .byte LEVEL4_BG...
//================================================================================================== /** Copyright 2016 NumScale SAS Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) **/ //====================================...
include c:\tasm\suma\macro.cbc Pila Segment Dw 64 Dup(0) Pila EndS Datos Segment ha db 'hola mundo$' Datos EndS Codigo Segment inicio: Assume CS:Codigo, SS:Pila xor ax,ax mov ax, datos mov ds,ax PushAll mov ah,09h lea dx,ha int 21...
include LTexture.inc include SDL.inc include SDL_pixels.INC .const .data? .data .code initTexture proc uses rdi, pTexture:QWORD mov rdi, pTexture mov (LTexture PTR[rdi]).m_Texture, 0 mov (LTexture PTR[rdi]).m_Width, 0 mov (LTexture PTR[rdi]).m_Height, 0 ret initTexture endp freeTexture proc uses rdi, ...
; A293067: Sum of values of vertices of type A at level n of the hyperbolic Pascal pyramid PP_(4,5). ; 0,0,2,6,18,58,194,658,2242,7650,26114,89154,304386,1039234,3548162,12114178,41360386,141213186,482131970,1646101506,5620142082,19188365314,65513177090,223675977730,763677556738,2607358271490,8902077972482,303935953469...
; ; Copyright (C) 2010-2010 Intel Corporation. ; SPDX-License-Identifier: MIT ; .code GetMxcsr PROC stmxcsr DWORD PTR [rcx] ret GetMxcsr ENDP SetMxcsr PROC ldmxcsr DWORD PTR [rcx] ret SetMxcsr ENDP end
; A047435: Numbers that are congruent to {1, 2, 4, 5, 6} mod 8. ; 1,2,4,5,6,9,10,12,13,14,17,18,20,21,22,25,26,28,29,30,33,34,36,37,38,41,42,44,45,46,49,50,52,53,54,57,58,60,61,62,65,66,68,69,70,73,74,76,77,78,81,82,84,85,86,89,90,92,93,94,97,98,100,101,102 mov $3,$0 add $0,2 lpb $0 sub $0,1 trn $0,2 add $1,1 ...
CalcSin: subroutine ; 0-2 angle0, angle1, multiplier -> 6-7 sin value lda #0 sta func3 lda func0 bpl .check1 lda func1 eor #$ff clc adc #1 sta func1 lda func0 eor #$ff adc #0 sta func0 lda ...
; A198686: 4*7^n-1. ; 3,27,195,1371,9603,67227,470595,3294171,23059203,161414427,1129900995,7909306971,55365148803,387556041627,2712892291395,18990246039771,132931722278403,930522055948827,6513654391641795,45595580741492571,319169065190448003,2234183456333136027,15639284194331952195,109474989360323665371,76632492552226...
SECTION code_fp_math16 PUBLIC acosf16_fastcall EXTERN _m16_acosf defc acosf16_fastcall = _m16_acosf ; SDCC bridge for Classic IF __CLASSIC PUBLIC _acosf16_fastcall defc _acosf16_fastcall = _m16_acosf ENDIF
#include <unordered_map> #include <limits> #include <cmath> #include <cassert> #include <cmath> #include <cassert> #include "lru_variants.h" #include "../random_helper.h" // golden section search helpers #define SHFT2(a,b,c) (a)=(b);(b)=(c); #define SHFT3(a,b,c,d) (a)=(b);(b)=(c);(c)=(d); // math model below can be d...
; LISTING 2. ; ; =============================================== ; CamelForth for the Zilog Z80 ; (c) 1994 Bradford J. Rodriguez ; Permission is granted to freely copy, modify, ; and distribute this program for personal or ; educational use. Commercial inquiries should ; be directed to the author at 221 King S...
; A147959: a(n) = ((8 + sqrt(2))^n + (8 - sqrt(2))^n)/2. ; Submitted by Jon Maiga ; 1,8,66,560,4868,43168,388872,3545536,32618512,302072960,2810819616,26244590336,245642629184,2303117466112,21620036448384,203127300275200,1909594544603392,17959620096591872,168959059780059648,1589848510492258304,14962114461512434688,1408...
; A062173: a(n) = 2^(n-1) mod n. ; 0,0,1,0,1,2,1,0,4,2,1,8,1,2,4,0,1,14,1,8,4,2,1,8,16,2,13,8,1,2,1,0,4,2,9,32,1,2,4,8,1,32,1,8,31,2,1,32,15,12,4,8,1,14,49,16,4,2,1,8,1,2,4,0,16,32,1,8,4,22,1,32,1,2,34,8,9,32,1,48,40,2,1,32,16,2,4,40,1,32,64,8,4,2,54,32,1,58,58,88,1,32,1,24,46,2,1,68,1,72,4,64,1,32,39,8,22,2,30,8,56,2,...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r14 push %r15 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x1d0ae, %r14 nop nop nop nop cmp %rdx, %rdx mov $0x6162636465666768, %rax movq %rax, %xmm3 vmovups %ymm3, (%r14) nop nop nop dec %r14 lea addresses_A_ht+0x15aec, %r1...
andi $1,$5,3872 nor $3,$6,$3 srlv $3,$3,$3 sb $1,7($0) sll $5,$5,11 lhu $1,14($0) srav $3,$3,$3 sltu $3,$4,$3 slti $3,$3,-23668 srlv $1,$5,$3 sw $5,16($0) sltiu $5,$1,21730 sllv $4,$4,$3 lb $1,16($0) xori $5,$4,34162 xori $3,$3,49583 sltu $3,$1,$3 xori $3,$3,21805 addu $0,$1,$3 lhu $3,16($0) sllv $1,$4,$3 addu $4,$3,$3...
leaw $R1, %A movw (%A), %D leaw $R0, %A movw (%A), %S leaw $ZERO, %A je %S nop je %D nop WHILE: decw %S leaw $END, %A je %S nop leaw $R1, %A addw (%A), %D, %D leaw $R3, %A movw %D, (%A) leaw $WHILE, %A jmp nop ZERO: leaw $0, %A movw %A, %S leaw $R3, %A movw %S, (%A) END:
#include <iostream> #include <cstdio> #include <queue> #include <cstring> using namespace std; int n, m, s, e, temp1, temp2, temp3, now, next; int dist[101]; int nextnode[101][101]; int nodeweight[101][101]; bool inque[101]; int main() { queue<int> que; memset(inque, false, sizeof(inque)); ...
; A189316: Expansion of 5*(1-x-x^2)/((1+x)*(1-3*x+x^2)) ; 5,5,15,35,95,245,645,1685,4415,11555,30255,79205,207365,542885,1421295,3720995,9741695,25504085,66770565,174807605,457652255,1198149155,3136795215,8212236485,21499914245,56287506245,147362604495,385800307235,1010038317215 mov $2,4 lpb $0,1 sub $0,1 add $1,$...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0xa505, %rsi lea addresses_A_ht+0x1cb23, %rdi xor %rdx, %rdx mov $52, %rcx rep movsl nop nop nop xor $19647, %r12 pop %rsi pop %rdx pop %rdi pop %rcx pop %r12 ret .global s_faulty_load s_faulty_load: p...
; Sprinter fcntl library ; ; $Id: fdgetpos.asm,v 1.2 2015/01/19 01:32:43 pauloscustodio Exp $ ; PUBLIC fdgetpos ;int fgetpos(int fd, long *dump) ; ;Dumps in dump the file position, and returns 0 if all went well .fdgetpos pop bc pop de ;dump pop hl ;fd push hl push de push bc push de ;sav...
/*========================================================================= Program: Visualization Toolkit Module: vtkExternalOpenGLCamera.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. ...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Copyright(c) 2011-2015 Intel Corporation All rights reserved. ; ; Redistribution and use in source and binary forms, with or without ; modification, are permitted provided that the following conditions ; are met: ; * Redistributions of so...
; A248333: Number of unit squares enclosed by n lattice points in and along the first quadrant of the coordinate plane starting from (0,0) and moving along each square gnomon starting on the y-axis and ending on the x-axis. ; 0,0,0,0,1,1,2,2,3,4,4,5,6,6,7,8,9,9,10,11,12,12,13,14,15,16,16,17,18,19,20,20,21,22,23,24,25,2...
// Implementation of synchronization functions for ARM architecture // // Copyright (c) 2012-2015, ARM Limited. All rights reserved. // Copyright (c) 2015, Linaro Limited. All rights reserved. // // SPDX-License-Identifier: BSD-2-Clause-Patent // // EXPORT InternalSyncCompareExchange16 EXPORT InternalSyn...
lui $1,55669 ori $1,$1,48798 lui $2,23417 ori $2,$2,40193 lui $3,60648 ori $3,$3,29673 lui $4,2670 ori $4,$4,16248 lui $5,63027 ori $5,$5,28074 lui $6,19387 ori $6,$6,47864 mthi $1 mtlo $2 sec0: nop nop nop addu $6,$6,$6 sec1: nop nop sltu $6,$0,$2 addu $4,$6,$6 sec2: nop nop andi $6,$2,61528 addu $3,$6,$6 ...
<% from pwnlib import shellcraft from pwnlib.context import context as ctx from pwnlib.util.iters import group from six import text_type, binary_type %> <%docstring> Pushes an array/envp-style array of pointers onto the stack. Arguments: reg(str): Destination register to hold the pointer. ...
; Subtracting two 8-bit numbers in memory ; ; Inputs are taken from 0A0H and 0A1H ; Output is stored at 0A2H (Borrow) and 0A3H (Difference) MVI B, 00H ; initialise borrow LDA 0A1H ; load second input to accumulator MOV D, A ; save it to register D LDA 0A0H ; load firs...
/** * @author : Archit * @cf-handle : archit1997 * @GitHub : archit-1997 * @email : architsingh456@gmail.com * @Contest : Codeforces Round 673 Div 2 * @Problem : Two Arrays */ #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #include <function...
//////////////////////////////////////////////////////////////////////////// // lazy_fold_tests.cpp // // tests on foldl foldr and compose // //////////////////////////////////////////////////////////////////////////// /*============================================================================= Copyright ...
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file #include "catch.hpp" #include "bank_account.h" TEST_CASE("Verify Test Configuration", "verification") { REQUIRE(true == true); } TEST_CASE("Verify bank account default constructor") { REQUIRE(account.get_balance) == 5...
#pragma once #include "../../../JObject.hpp" class JIntArray; namespace android::os { class Handler; } namespace android::view { class InputDevice; } class JString; namespace android::hardware::input { class InputManager : public JObject { public: // Fields static JString ACTION_QUERY_KEYBOARD_LAYOUTS(); ...
// Copyright 2019 Esri. // 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 writing, software...
; A308474: a(n) = Sum_{k=1..n^2, gcd(n,k) = 1} k. ; 1,4,27,64,250,216,1029,1024,2187,2000,6655,3456,13182,8232,13500,16384,39304,17496,61731,32000,55566,53240,133837,55296,156250,105456,177147,131712,341446,108000,446865,262144,359370,314432,514500,279936,911754,493848,711828,512000 mov $2,3 mul $2,$0 sub $2,$0 add $2...