text
stringlengths
1
1.05M
/* -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 4; tab-width: 4 -*- */ #include <iostream> #include <thread> #include <string> #include <mutex> #include <echolib/client.h> #include <echolib/datatypes.h> using namespace std; using namespace echolib; #define DELIMITER "$ " namespace echolib { //template <>...
lc r4, 0x00000000 lc r5, 0x0000101f lc r6, 0x00000000 tlbse r6, r4 lc r8, 0x40000000 lc r9, 0x0000101f lc r10, 0x00000001 tlbse r10, r8 lc r11, 0xdeadbeef lc r12, 0x80000000 lc r13, 0x80000000 st4 r11, r12, 0 ex4 r30, r12, 0 halt #@expected values #r4 = 0x0000000...
#include "query_parser.h" #include "http_filemapper.h" namespace simpleServer { #ifdef _WIN32 char HttpFileMapper::pathSeparator = '\\'; #else char HttpFileMapper::pathSeparator = '/'; #endif HttpFileMapper::HttpFileMapper(std::string &&documentRoot, std::string &&index) :documentRoot(std::move(documentRoot)) ,i...
input: INP STA [num] JIZ [end] JSP [loop] loop: LDA [num] STA [numDiv] JSP [divisori] JMP [loop] divisori: LDA [num] LDB [numDiv] DIV STA [divRes] LDA [numDiv] LDB [divRes] MUL STA [mulRes] LDA [num] LDB [mulRes] SUB STA [rem] LDA [numDiv] STA [outputNum] LDB #1 SUB STA [numDiv] JIZ [input] LDA [rem] JIZ [out...
/* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2014 Phalcon Team (http://www.phalconphp.com) | +-----...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/sms/model/ReplicationRunType.h> #include <aws/core/utils/HashingUtils.h> #include <aws/core/Globals.h> #include <aws/core/utils/EnumParseOverflowContainer.h> using namespace Aws::Utils;...
; Boot sector that prints Hello to the screen using a BIOS routine mov ah, 0x0e ; Scrolling teletype BIOS routine => prints character and moves cursor over, ready to print another character ; Prints "Hello" to the screen character by character mov al, 'H' int 0x10 mov al, 'e' int 0x10 mov al, 'l' int 0x10 mov al,...
INCLUDE "config_private.inc" SECTION code_driver SECTION code_driver_terminal_output PUBLIC rc_01_output_hbios1_iterm_msg_putc EXTERN rc_01_output_hbios1_oterm_msg_putc_raw rc_01_output_hbios1_iterm_msg_putc: ; enter : c = char to output ; can use: af, bc, de, hl, ix ; char to print is coming from ...
_grep: file format elf32-i386 Disassembly of section .text: 00001000 <grep>: char buf[1024]; int match(char*, char*); void grep(char *pattern, int fd) { 1000: 55 push %ebp 1001: 89 e5 mov %esp,%ebp 1003: 83 ec 28 sub $0x28,%esp int n, m; c...
_rm: 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 ...
MULTIPLY: MOV R4, #'x' MOV R0, #2h MOV A, #50h ADD A, R0 MOV R0, A MOV A, @R0 ACALL CONTINUECODE
dnl S/390-32 logops. dnl Copyright 2011 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl dnl The GNU MP Library is free software; you can redistribute it and/or modify dnl it under the terms of either: dnl dnl * the GNU Lesser General Public License as published by the Free dnl ...
LCClubT label byte word C_BLACK Bitmap <71,100,BMC_PACKBITS,BMF_MONO> db 0xf8, 0x00 db 0xf8, 0x00 db 0xf8, 0x00 db 0xf8, 0x00 db 0x01, 0x18, 0x78, 0xfa, 0x00 db 0x01, 0x18, 0xfc, 0xfa, 0x00 db 0x01, 0x19, 0xce, 0xfa, 0x00 db 0x01, 0x19, 0x86, 0xfa, 0x00 db 0x01, 0x19, 0x86, 0xfa, 0x00 db 0x01, 0...
.file "example.cpp" .intel_syntax noprefix .text .Ltext0: .globl _Z3foov .type _Z3foov, @function _Z3foov: .LFB17: .file 1 "/tmp/compiler-explorer-compiler119330-63-1ccesdf.nzyy/example.cpp" .loc 1 3 11 .cfi_startproc .loc 1 3 13 .loc ...
; A292046: The list of distinct values of A072464. ; 1,3,6,7,11,12,13,14,16,17,18,19,20,21,22,23,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,1...
kernel: file format elf32-i386 Disassembly of section .text: 80100000 <multiboot_header>: 80100000: 02 b0 ad 1b 00 00 add 0x1bad(%eax),%dh 80100006: 00 00 add %al,(%eax) 80100008: fe 4f 52 decb 0x52(%edi) 8010000b: e4 0f in $0xf,%al 8010000c <entry>:...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r9 push %rbp push %rdx lea addresses_A_ht+0x1747b, %rbp nop nop and $31071, %r12 vmovups (%rbp), %ymm0 vextracti128 $0, %ymm0, %xmm0 vpextrq $1, %xmm0, %r9 nop nop nop nop cmp $8494, %rdx lea addresses_A_ht+0xc97b, %r10 and $62024, %r11 mo...
// Copyright (c) 2010-2021, Lawrence Livermore National Security, LLC. Produced // at the Lawrence Livermore National Laboratory. All Rights reserved. See files // LICENSE and NOTICE for details. LLNL-CODE-806117. // // This file is part of the MFEM library. For more information and source code // availability visit ht...
; ; Invoke a GSX/GIOS function with 2 coordinates (4 values) in "ptsin" ; ; ; $Id: gios_2px_callee.asm $ ; SECTION code_clib PUBLIC gios_2px_callee PUBLIC _gios_2px_callee EXTERN gios EXTERN gios_ctl EXTERN gios_ptsin PUBLIC ASMDISP_GIOS_2PX gios_2px_callee: _gios_2px_callee: pop bc ld hl,gios_ptsin+7 pop d...
; A265228: Interleave the even numbers with the numbers that are congruent to {1, 3, 7} mod 8. ; 0,1,2,3,4,7,6,9,8,11,10,15,12,17,14,19,16,23,18,25,20,27,22,31,24,33,26,35,28,39,30,41,32,43,34,47,36,49,38,51,40,55,42,57,44,59,46,63,48,65,50,67,52,71,54,73,56,75,58,79,60,81,62,83,64,87,66,89,68,91,70,95,72,97,74,99,76,1...
; ; jiss2fst-64.asm - fast integer IDCT (64-bit SSE2) ; ; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB ; Copyright 2009 D. R. Commander ; ; Based on ; x86 SIMD extension for IJG JPEG library ; Copyright (C) 1999-2006, MIYASAKA Masaru. ; For conditions of distribution and use, see copyright notice in js...
; Licensed to the .NET Foundation under one or more agreements. ; The .NET Foundation licenses this file to you under the MIT license. ; See the LICENSE file in the project root for more information. ;; ==++== ;; ;; ;; ==--== #include "ksarm64.h" #include "asmconstants.h" #include "asmmacros.h" IMPORT VirtualMet...
#include <stdlib.h> #include <string.h> #include "vrclient_private.h" #include "vrclient_defs.h" #include "openvr_v0.9.10/openvr.h" using namespace vr; extern "C" { #include "struct_converters.h" #pragma pack(push, 8) struct winRenderModel_TextureMap_t_0910 { uint16_t unWidth; uint16_t unHeight; const uint8...
db 0 ; species ID placeholder db 111, 83, 68, 39, 92, 82 ; hp atk def spd sat sdf db WATER, GROUND ; type db 75 ; catch rate db 166 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F50 ; gender ratio db 100 ; unknown 1 db 20 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/gastrodon...
; A011750: Expansion of (1 + x^2)/(1 + x + x^2 + x^3 + x^5) mod 2. ; 1,1,1,1,1,0,1,1,1,0,0,0,1,0,1,0,1,1,0,1,0,0,0,0,1,1,0,0,1,0,0,1,1,1,1,1,0,1,1,1,0,0,0,1,0,1,0,1,1,0,1,0,0,0,0,1,1,0,0,1,0,0,1,1,1,1,1,0,1,1,1,0,0,0,1,0,1,0,1,1,0 seq $0,70614 ; a(n) = n^5 mod 31. sub $0,1 trn $0,1 bin $0,4 add $0,1 mod $0,2
; A293145: a(n) = n! * [x^n] exp(n*x/(1 - x)). ; Submitted by Jon Maiga ; 1,1,8,99,1696,37225,997056,31535371,1150303232,47538819729,2195314048000,112032721984051,6261138045038592,380309520560089081,24946892219825709056,1757549042234670166875,132356128415391650676736,10610067001068927596601889,9020572021296077603804282...
;; Licensed to the .NET Foundation under one or more agreements. ;; The .NET Foundation licenses this file to you under the MIT license. ;; See the LICENSE file in the project root for more information. .586 .model flat option casemap:none .code include AsmMacros.inc ifdef FEATURE_D...
; void p_stack_init(void *p) SECTION code_adt_p_stack PUBLIC p_stack_init defc p_stack_init = asm_p_stack_init INCLUDE "adt/p_stack/z80/asm_p_stack_init.asm"
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r14 push %r15 push %r8 push %r9 push %rcx push %rdi push %rsi lea addresses_D_ht+0x42d, %rsi lea addresses_A_ht+0x2a2d, %rdi nop nop nop nop nop sub %r8, %r8 mov $62, %rcx rep movsw inc %rcx lea addresses_A_ht+0x8c5d, %r15 nop nop nop dec %rsi mov $0x61626364...
; A164094: a(n) = 3*2^n + 2. ; 5,8,14,26,50,98,194,386,770,1538,3074,6146,12290,24578,49154,98306,196610,393218,786434,1572866,3145730,6291458,12582914,25165826,50331650,100663298,201326594,402653186,805306370,1610612738,3221225474,6442450946,12884901890,25769803778,51539607554,103079215106,206158430210,412316860418,82...
; A181983: a(n) = (-1)^(n+1) * n. ; 0,1,-2,3,-4,5,-6,7,-8,9,-10,11,-12,13,-14,15,-16,17,-18,19,-20,21,-22,23,-24,25,-26,27,-28,29,-30,31,-32,33,-34,35,-36,37,-38,39,-40,41,-42,43,-44,45,-46,47,-48,49,-50,51,-52,53,-54,55,-56,57,-58,59 sub $0,1 mov $1,-2 bin $1,$0 mov $0,$1
; Copyright 2011-2017 Mersenne Research, Inc. All rights reserved ; Author: George Woltman ; Email: woltman@alum.mit.edu ; ; These routines implement the AVX version of normalization part of a r4dwpn (radix-4 delayed with partial normalization) FFT. ; TITLE setup IFNDEF X86_64 .686 .XMM .MODEL FLAT ENDIF INC...
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. #include "../inc/globals.h" #include "LSM6DSLSensor.h" #include "LIS2MDLSensor.h" #include "HTS221Sensor.h" #include "LPS22HBSensor.h" #include "IrDASensor.h" #include "../inc/sensors.h" #define FREEMEM(d) if (d != NULL) { delete d...
; A113311: Expansion of (1+x)^2/(1-x). ; 1,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4 mul $0,2 mov $1,3 min $1,$0 add $1,1 mov $0,$1
Name: kart-init-p.asm Type: file Size: 59305 Last-Modified: '1992-08-30T15:00:00Z' SHA-1: DED2947D7EC7E56FBF44025C62DEA63E68B7B150 Description: null
; A071024: Triangle read by rows giving successive states of cellular automaton generated by "Rule 92". ; 1,1,1,1,1,1,1,0,1,1,1,0,1,1,1,1,0,1,0,1,1,1,0,1,0,1,1,1,1,0,1,0,1,0,1,1,1,0,1,0,1,0,1,1,1,1,0,1,0,1,0,1,0,1,1,1,0,1,0,1,0,1,0,1,1,1,1,0,1,0,1,0,1,0,1,0,1,1,1,0,1,0,1,0,1,0,1,0,1,1,1,1,0,1,0,1,0,1,0 add $0,2 mov $2...
ifdef RAX .code extern OriginalFuncs_version:QWORD GetFileVersionInfoA proc jmp QWORD ptr OriginalFuncs_version[0 * 8] GetFileVersionInfoA endp GetFileVersionInfoByHandle proc jmp QWORD ptr OriginalFuncs_version[1 * 8] GetFileVersionInfoByHandle endp GetFileVersionInfoExA proc jmp QWORD ptr Origin...
dc.w word_35D5E-Map_BPZElephantBlock dc.w word_35D6C-Map_BPZElephantBlock word_35D5E: dc.w 2 ; DATA XREF: ROM:00035D5Ao dc.b $F0, $F, 0, $6E, $FF, $F8 dc.b $F0, $F, 0, $7E, 0, $18 word_35D6C: dc.w 3 ; DATA XREF: ROM:00035D5Ao dc.b $F0, $F, 0, $6E, $FF, $F8 dc.b $F0, $F, 0, $7E, 0, ...
; ; ; ZX Spectrum ZXMMC specific routines ; code by Alessandro Poppi ; ported to z88dk by Stefano Bodrato - Mar 2010 ; ; $Id: mmc_write_block.asm,v 1.2 2015/01/19 01:33:11 pauloscustodio Exp $ ; ; Write a 512 byte data block to the MMC card ; extern int __LIB__ mmc_write_block(struct MMC mmc_descriptor, long card_a...
<% from pwnlib.shellcraft.powerpc.linux import syscall %> <%page args="out_fd, in_fd, offset, count"/> <%docstring> Invokes the syscall sendfile. See 'man 2 sendfile' for more information. Arguments: out_fd(int): out_fd in_fd(int): in_fd offset(off_t): offset count(size_t): count </%docstring> ...
/* +------------------------------------------------------------------------+ | Mobile Robot Programming Toolkit (MRPT) | | https://www.mrpt.org/ | | | | Cop...
; ********************************************************************************* ; ********************************************************************************* ; ; File: multiply.asm ; Purpose: 16 bit unsigned multiply ; Date : 1st January 2019 ; Author: paul@robsons.org.uk ; ; *************************...
; FILE *open_memstream_callee(char **bufp, size_t *sizep) SECTION code_stdio PUBLIC _open_memstream_callee EXTERN asm_open_memstream _open_memstream_callee: pop hl pop de ex (sp),hl jp asm_open_memstream
; void sp1_MoveSprPix(struct sp1_ss *s, struct sp1_Rect *clip, uchar *frame, uint x, uint y) ; CALLER linkage for function pointers SECTION code_clib SECTION code_temp_sp1 PUBLIC sp1_MoveSprPix EXTERN asm_sp1_MoveSprPix sp1_MoveSprPix: pop af pop bc pop de pop hl pop iy pop ix push hl push ...
; A310496: Coordination sequence Gal.6.327.1 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. ; Submitted by Jamie Morken(s2) ; 1,4,10,16,20,24,30,34,38,44,50,54,58,64,70,74,78,84,88,92,98,104,108,112,118,124,128,132,138,142,146,152,158...
; A271359: a(n) = k*Fibonacci(2*n+1) + (k+1)*Fibonacci(2*n), where k=5. ; 5,16,43,113,296,775,2029,5312,13907,36409,95320,249551,653333,1710448,4478011,11723585,30692744,80354647,210371197,550758944,1441905635,3774957961,9882968248,25873946783,67738872101,177342669520,464289136459,1215524739857,3182285083112,8331330509...
<% from pwnlib.shellcraft.aarch64.linux import syscall %> <%page args=""/> <%docstring> Invokes the syscall geteuid. See 'man 2 geteuid' for more information. Arguments: </%docstring> ${syscall('SYS_geteuid')}
#include <uWS/uWS.h> #include <iostream> #include "json.hpp" #include "PID.h" #include <math.h> // for convenience using json = nlohmann::json; // For converting back and forth between radians and degrees. constexpr double pi() { return M_PI; } double deg2rad(double x) { return x * pi() / 180; } double rad2deg(double...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r13 push %r14 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0xfae, %rcx nop nop nop nop nop and %rdx, %rdx mov $0x6162636465666768, %r10 movq %r10, %xmm6 vmovups %ymm6, (%rcx) nop nop inc %rax lea addresses_WC_ht+0x1542e, %r1...
.data .text main: addi $5, $0, 0 addi $6, $0, 11 addi $7, $0, 1 loop: add $5, $5, $7 addi $7, $7, 1 sub $8, $6, $7 bgtz $8, loop finish: add $4, $0, $5 add $2, $0, 1 syscall add $2, $0, 10 syscall
db DEX_LAPRAS ; pokedex id db 130, 85, 80, 60, 95 ; hp atk def spd spc db WATER, ICE ; type db 45 ; catch rate db 219 ; base exp INCBIN "gfx/pokemon/front/lapras.pic", 0, 1 ; sprite dimensions dw LaprasPicFront, LaprasPicBack db WATER_GUN, GROWL, NO_MOVE, NO_MOVE ; level 1 learnset db GROWTH_SLO...
; A023471: n-29. ; -29,-28,-27,-26,-25,-24,-23,-22,-21,-20,-19,-18,-17,-16,-15,-14,-13,-12,-11,-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 sub $0,29 mul $0,120259084288 mov $1,$0 div $1,120259084288
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r15 push %r8 push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x15979, %rsi lea addresses_UC_ht+0xad79, %rdi nop nop cmp %r12, %r12 mov $13, %rcx rep movsl nop nop nop and $63787, %rcx lea addresses_A_ht+0x1b79, %rsi lea addresses_UC_ht+0...
/* * 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...
; @Author Muhammad Quwais Safutra ; JANGAN DI COPAS ATAU DI DEBUG SENDIRIAN. TAKUTNYA MATI / ERROR KOMPUTERNYA ESCCH EQU 0 CANCEL EQU 1BH ;Cancel with ESC TOGLINS EQU TRUE ;One key toggles insert mode TOGLPRN EQU TRUE ;One key toggles printer echo NUMDEV EQU 6 ...
; ; Philips VG-5000 Graphics Functions ; ; cls () -- clear screen ; ; Stefano Bodrato - Oct 2015 ; ; ; $Id: clsgraph.asm,v 1.1 2015/10/09 13:02:42 stefano Exp $ ; PUBLIC cleargraphics EXTERN base_graphics .cleargraphics ; ld d,' ' ; ld e,7 ; white on black ld h,25+6 .loop2 l...
; A094391: A Beatty sequence using exp(Pi/4)/(exp(Pi/4)-1). ; 1,3,5,7,9,11,12,14,16,18,20,22,23,25,27,29,31,33,34,36,38,40,42,44,45,47,49,51,53,55,56,58,60,62,64,66,68,69,71,73,75,77,79,80,82,84,86,88,90,91,93,95,97,99,101,102,104,106,108,110,112,113,115,117,119,121,123 add $0,1 mul $0,68 div $0,37 mov $1,$0
[BITS 64] section .text global idt_flush idt_flush: lidt [rdi] ret %macro push_all 0 push rax push rbx push rcx push rdx push rsi push rdi push rbp push r8 push r9 push r10 push r11 push r12 push r13 push r14 push r15 %endmacro %macro pop_all 0 ...
;add a series of 10 bytes stores in the memory from locations ;20,000H to 20,009. Store the result immediately after the series. CODE SEGMENT assume CS:Code mov ax,2000H mov ds,ax mov si,0000H ;starting offset address = 0000H mov cx,000AH ;10 bytes = 'A' mov ...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r14 push %r8 push %r9 push %rax push %rcx push %rdi push %rsi lea addresses_UC_ht+0x11aa3, %rcx nop nop nop nop nop add $60430, %r13 movb (%rcx), %r14b nop nop nop nop nop and $60430, %rax lea addresses_normal_ht+0x13cd1, %r8 clflush (%r8) nop nop n...
; Glass: Making sure reorganizing blocks of code that involve local labels are handled fine org #4000 global1: ld hl, variable ; jp global2.local ; -mdl global2.local: ld (hl), 1 ; jp global1.local ; -mdl global1.local: inc hl ld (hl), 2 loop: jp loop global2: ret global3: jp z, global3.local ret global3.l...
// Copyright (c) 2009-2014 The Bitcoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "uritests.h" #include "guiutil.h" #include "walletmodel.h" #include <QUrl> void URITests::uriTests() { SendCoinsRe...
; A267935: Decimal representation of the n-th iteration of the "Rule 249" elementary cellular automaton starting with a single ON (black) cell. ; 1,1,27,127,511,2047,8191,32767,131071,524287,2097151,8388607,33554431,134217727,536870911,2147483647,8589934591,34359738367,137438953471,549755813887,2199023255551,8796093022...
.data a.0: .word 0 b.1: .word 0 c.2: .word 0 d.3: .word 0 e.4: .word 0 f.5: .word 0 g.6: .word 0 .text runtime: addi $sp, $sp, -4 sw $ra, 0($sp) lw $ra, 0($sp) addi $sp, $sp, 4 jr $ra .end runtime .globl main .ent main main: li $3, 1 # a.0 -> $3 li $5, 3 # b.1 -> $5 sw $5, b.1 # spilled b.1, ...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*************************************************************************************/ /* StressLog.cpp */ /*****...
// Boost.Assign library // // Copyright Thorsten Ottosen 2003-2004. Use, modification and // distribution is subject to 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) // // For more information, see http://www.boost.org/libs/ass...
// _ _____ __________ // | | / / _ | / __/_ __/ Visibility // | |/ / __ |_\ \ / / Across // |___/_/ |_/___/ /_/ Space and Time // // SPDX-FileCopyrightText: (c) 2020 The VAST Contributors // SPDX-License-Identifier: BSD-3-Clause #define SUITE address_synopsis #include "vast/address_s...
; A183626: Number of (n+1) X 4 0..2 arrays with every 2 X 2 subblock summing to 4. ; Submitted by Jamie Morken(s2) ; 115,189,355,741,1675,4029,10195,26901,73435,205869,588835,1709061,5012395,14807709,43964275,130975221,391090555,1169601549,3501464515,10489713381,31439779915,94260619389,282664417555,847758371541,2542805...
global getKey global hasKey hasKey: push rbp mov rbp,rsp mov rax,0 in al,64h and al,0x01 leave ret getKey: push rbp mov rbp,rsp mov rax,0 in al, 60h leave ret
; A101448: Nonnegative numbers k such that 2k + 11 is prime. ; 0,1,3,4,6,9,10,13,15,16,18,21,24,25,28,30,31,34,36,39,43,45,46,48,49,51,58,60,63,64,69,70,73,76,78,81,84,85,90,91,93,94,100,106,108,109,111,114,115,120,123,126,129,130,133,135,136,141,148,150,151,153,160,163,168,169,171,174,178,181,184,186,189,193,195,199,2...
/**************************************************************************** * * Copyright (c) 2013-2016 PX4 Development Team. 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. Red...
; max number .386 .model flat,stdcall .stack 4096 ExitProcess proto,dwExitCode:dword .data val1 DWORD 3 val2 DWORD 13 val3 DWORD 8 val4 DWORD 9 max DWORD ? .code main proc mov eax, val1 mov ebx, val2 mov ecx, val3 mov edx, val4 call MaxOfFour mov max, eax invoke ExitProcess,0 main endp ...
#include "string_list.hpp" namespace node_gdal { StringList::StringList() : list(NULL), strlist(NULL) { } StringList::~StringList() { if(list) delete [] list; if(strlist) delete [] strlist; } int StringList::parse(Local<Value> value) { unsigned int i; if(value->IsNull() || value->IsUndefined()) return 0; ...
/********************************************************************** * Copyright (c) 2008-2013, 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 publishe...
<% from pwnlib.shellcraft.amd64.linux import syscall %> <%page args="fd, fd2, flags"/> <%docstring> Invokes the syscall dup3. See 'man 2 dup3' for more information. Arguments: fd(int): fd fd2(int): fd2 flags(int): flags </%docstring> ${syscall('SYS_dup3', fd, fd2, flags)}
; A174474: a(n) = (2*n^2 - 2*n - 3)/8 + 3*(-1)^n*(1-2*n)/8. ; 0,0,-1,3,0,8,3,15,8,24,15,35,24,48,35,63,48,80,63,99,80,120,99,143,120,168,143,195,168,224,195,255,224,288,255,323,288,360,323,399,360,440,399,483,440,528,483,575,528,624,575,675,624,728,675,783,728,840,783,899,840,960,899,1023,960,1088,1023,1155,1088,1224,1...
.area _IVT .area _HEADER nop jp 0x0150 ; This is a bitmap of the Nintendo logo which is required for the cartridge ; to boot. The idea was to try to use their trademark to defend their ; licensing scheme. Apparently the courts ultimately decided they could not ; do this. .byte 0xce,0xed,0x66,0x66,0xcc,...
// RUN: clang++ -Xclang -verify -Xclang -load -Xclang %shlibdir/libUnusedForLoopVar%shlibext -Xclang -plugin -Xclang unused-for-loop-variable -c %s 2>&1 // Unused for loop variables are are not reported by the plugin, because their // name match: [U|u][N|n][U|u][S|s][E|e][D|d] // expected-no-diagnostics #include <ve...
#include <gtest/gtest.h> #include <fstream> #include <opencv2/highgui.hpp> #include "test_utility.h" #include "reference.h" #include "internal.h" TEST(ScanCostTest, RandomU8) { using disp_type = uchar; const int segmentWidth = 10; const int umax = 1024 / segmentWidth; const int vmax = 333; const int dmax = 128...
add_song: MACRO .\1:: db BANK(\1) dw \1 ; The song bank must be representable with a single byte ASSERT BANK(\1) <= $FF ENDM SECTION "song table", ROMX song_table:: add_song ryukenden add_song wild_pokemon_appear add_song uwu
#include "extensions/filters/http/lua/lua_filter.h" #include <atomic> #include <memory> #include "envoy/http/codes.h" #include "common/buffer/buffer_impl.h" #include "common/common/assert.h" #include "common/common/enum_to_int.h" #include "common/config/datasource.h" #include "common/crypto/utility.h" #include "comm...
; =============================================================== ; --------------------------------------------------------------- ; Error handling and debugging modules ; 2016-2017, Vladikcomper ; --------------------------------------------------------------- ; Error handler functions and calls ; ------------------...
// 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 "cc/layers/surface_layer_impl.h" #include "cc/debug/debug_colors.h" #include "cc/layers/quad_sink.h" #include "cc/quads/surface_draw_quad.h" na...
.data dx: .word -1:1 .word 0:1 .word 1:1 .word 0:1 dy: .word 0:1 .word 1:1 .word 0:1 .word -1:1 mat: .space 640 mark: .space 640 .macro readInt(%x) li $v0, 5 syscall move %x, $v0 .end_macro .macro getOffset(%des, %i, %j) sll %des, %i, 4 add %des, %des, %j sll %des, %des, 2 .end_macro .mac...
INCLUDE "graphics/grafix.inc" SECTION code_clib PUBLIC undrawb PUBLIC _undrawb EXTERN w_pixeladdress ; EXTERN l_cmp ; ; $Id: undrawb.asm,v 1.6 2016-10-13 06:32:03 stefano Exp $ ; ; *********************************************************************** ; ; drawbox Timex hires version ; .undrawb ._undrawb push ...
#include<bits/stdc++.h> using namespace std; #define ll long long int namespace fenwick { ll bit[2000001],n; ll get(ll ind) { ll res=0; while(ind>=1) { res+=bit[ind]; ind-=ind&-ind; } return res; } void upd(ll ind,ll val) { ...
; A205633: Expansion of f(x^3, x^7) in powers of x where f() is Ramanujan's two-variable theta function. ; 1,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,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,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0 mul $0,5 add...
include "src/sound/apparition_stalk_the_night/channel1.asm" include "src/sound/apparition_stalk_the_night/channel2.asm" include "src/sound/apparition_stalk_the_night/channel3.asm" include "src/sound/apparition_stalk_the_night/channel4.asm" RumiaTheme:: db $100 - $8E db %100 dw musicChan1RumiaTheme dw musicChan2Rum...
; A010726: Period 2: repeat (6,10). ; 6,10,6,10,6,10,6,10,6,10,6,10,6,10,6,10,6,10,6,10,6,10,6,10,6,10,6,10,6,10,6,10,6,10,6,10,6,10,6,10,6,10,6,10,6,10,6,10,6,10,6,10,6,10,6,10,6,10,6,10,6,10,6,10,6,10 mod $0,2 mov $1,$0 mul $1,4 add $1,6
; A004216: a(n) = floor(log_10(n)). ; 0,0,0,0,0,0,0,0,0,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,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,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2...
; A169479: Number of reduced words of length n in Coxeter group on 34 generators S_i with relations (S_i)^2 = (S_i S_j)^33 = I. ; 1,34,1122,37026,1221858,40321314,1330603362,43909910946,1449027061218,47817893020194,1577990469666402,52073685498991266,1718431621466711778,56708243508401488674,1871372035777249126242,617552...
section .text ;push all registers except rax %macro pushState 0 push rbx push rcx push rdx push rbp push rdi push rsi push r8 push r9 push r10 push r11 push r12 push r13 push r14 push r15 %endmacro ;pop all registers except rax %macro popState 0 pop r15 pop r14 pop r13 pop r12 pop r11 pop r10 p...
; A016234: Expansion of 1/((1-x)(1-5x)(1-9x)). ; Submitted by Jamie Morken(s1) ; 1,15,166,1650,15631,144585,1320796,11984820,108351661,977606355,8810664226,79357013190,714518294491,6432190529325,57897344158456,521114244398760,4690218934452121,42212924084385495,379921085131051486,3419313608037373530,30773941681625912551...
#include <KrautPluginPCH.h> #include <Core/Assets/AssetFileHeader.h> #include <KrautPlugin/Resources/KrautTreeResource.h> #include <RendererCore/Material/MaterialResource.h> #include <RendererCore/Meshes/MeshResource.h> #include <RendererCore/Meshes/MeshResourceDescriptor.h> #include <RendererCore/Textures/Texture2DRe...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; 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 s...
icl '../os/symbols.asm' org BOOTADDR lda #0 sta ROS7 lda #2 ldx #OS_SET_VIDEO_MODE jsr OS_CALL mwa DISPLAY_START VRAM_TO_RAM jsr lib_vram_to_ram ldy #0 copy: lda message, y cmp #255 beq stop sta (RAM_TO_VRAM), y iny bne copy stop: jmp stop message: .by "Hello world!!!!", 255 ...
; A112063: Positive integers i for which A112049(i) == 3. ; 11,12,23,36,47,48,71,72,83,96,107,108,131,132,143,156,167,168,191,192,203,216,227,228,251,252,263,276,287,288,311,312,323,336,347,348,371,372,383,396,407,408,431,432,443,456,467,468,491,492,503,516,527 lpb $0 mov $2,$0 sub $2,1 cal $2,112133 ; First dif...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r14 push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x36d1, %r10 nop dec %r14 mov $0x6162636465666768, %r12 movq %r12, %xmm0 movups %xmm0, (%r10) nop and %r11, %r11 lea addresses_WC_ht+0xdf1d, %rsi lea addresses_WC_ht+0x13d01, ...
/* * Copyright (C) 2011 The Android Open Source Project * * 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 app...
.size 8000 .text@100 jp lbegin .data@143 80 .text@150 lbegin: xor a, a ldff(26), a ld a, 80 ldff(26), a ld a, 77 ldff(24), a ld a, 11 ldff(25), a ld a, 80 ldff(11), a ld a, 80 ldff(12), a ld a, c0 ldff(13), a ld a, 87 ldff(14), a ld b, 81 lwaitpos: dec b jrnz lwaitpos ld a, 80 lmodulate: xor a...