text
stringlengths
1
1.05M
#include <string.h> #include <fstream> #include <iostream> #include <stack> #include <cmath> #include <algorithm> #include <iomanip> // output more decimals #include <functional> #include <vector> #include <ctime> #include "string_manipulations.h" #include "node.h" #include "queue.h" #include "probs_calculation.h" #in...
/******************************************************************************* * * * Copyright (C) 2014-2015 Nick Guletskii * * All rights reserved. *...
#Confrontare due interi positivi a e b, definiti in memoria, e mettere in $t0 il valore 0 se a e' maggiore di b, 1 altrimenti. #Non è possibile utilizzare l'istruzione di comparazione tra valori: operare sui singoli bit dei valori. .text .globl main main: lw $t1, n1 lw $t2, n2 xor $t3, $t1, $t2 loop: beq $t4, ...
;================================================================================ ; Randomize NPC Items ;-------------------------------------------------------------------------------- ; Old Man - Zora King - Sick Kid - Tree Kid - Sahasrala - Catfish - Rupee NPC ;=SET 1 ;OLD_MAN = "#$01" ;ZORA_KING = "#$02" ;SICK_KID ...
PlayerPC: ld a, ITEM_NAME ld [wNameListType], a call SaveScreenTilesToBuffer1 xor a ld [wBagSavedMenuItem], a ld [wParentMenuItem], a ld a, [wFlags_0xcd60] bit 3, a ; accessing player's PC through another PC? jr nz, PlayerPCMenu ; accessing it directly ld a, SFX_TURN_ON_PC call PlaySound ld hl, TurnedOnPC2T...
; DV3 Directory Buffer Handling V3.00  1992 Tony Tebby section dv3 xdef dv3_drnew xdef dv3_drloc xdef dv3_drupd xref dv3_sbloc xref dv3_sbnew xref dv3_a1upd include 'dev8_dv3_keys' include 'dev8_keys_err' includ...
; A089781: Successive coprime numbers with distinct successive differences: gcd(a(k+1),a(k)) = gcd(a(m+1),a(m)) = 1 and a(k+1)-a(k) = a(m+1)-a(m) <==> m=k. ; 1,2,5,7,11,16,23,29,37,46,57,67,79,92,107,121,137,154,173,191,211,232,255,277,301,326,353,379,407,436,467,497,529,562,597,631,667,704,743,781,821,862,905,947,991,...
<% from pwnlib.shellcraft import common from pwnlib.shellcraft.mips.linux import fork, exit %> <%page args=""/> <%docstring> Attempts to fork. If the fork is successful, the parent exits. </%docstring> <% dont_exit = common.label('forkexit') %> ${fork()} blez $v0, ${dont_exit} ${exit(0)} ${dont_exi...
.global s_prepare_buffers s_prepare_buffers: push %r14 push %r8 push %rax push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x1840e, %rdx nop nop nop nop dec %rbp movb $0x61, (%rdx) nop nop nop cmp %r14, %r14 lea addresses_UC_ht+0xa64e, %rsi lea addresses_D_ht+0x19f76, %rdi nop nop nop sub %r8, %r8 ...
; A158129: 100n^2 - 2n. ; 98,396,894,1592,2490,3588,4886,6384,8082,9980,12078,14376,16874,19572,22470,25568,28866,32364,36062,39960,44058,48356,52854,57552,62450,67548,72846,78344,84042,89940,96038,102336,108834,115532,122430,129528,136826,144324,152022,159920,168018,176316,184814,193512,202410,211508,220806,230304,240...
;------------------------------------------------------------------------------- ; dabort.asm ; ; Copyright (C) 2009-2016 Texas Instruments Incorporated - www.ti.com ; ; ; Redistribution and use in source and binary forms, with or without ; modification, are permitted provided that the following conditions...
* Find job information V0.0  1985 Tony Tebby QJUMP * section utils * xdef ut_fjob find a job (given the name) xdef ut_jinf get job information * xref ut_cnmar compare absolute and relative names * include dev8_sbsext_...
; A070707: n^7 mod 26. ; 0,1,24,3,4,21,20,19,18,9,10,15,12,13,14,11,16,17,8,7,6,5,22,23,2,25,0,1,24,3,4,21,20,19,18,9,10,15,12,13,14,11,16,17,8,7,6,5,22,23,2,25,0,1,24,3,4,21,20,19,18,9,10,15,12,13,14,11,16,17,8,7,6,5,22,23,2,25,0,1 pow $0,7 mod $0,26 mov $1,$0
; ; Game device library for the PC6001 ; SECTION code_clib PUBLIC joystick PUBLIC _joystick EXTERN get_psg .joystick ._joystick ;__FASTCALL__ : joystick no. in HL ld a,14 dec l jr z,got_port inc a dec l jr z,got_port ld hl,0 ret got_port: ld l,a call get_psg ;Exits with a = value ld hl,...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r15 push %r8 push %rbp push %rcx push %rdi push %rsi lea addresses_D_ht+0x473d, %r8 and %r13, %r13 mov $0x6162636465666768, %rbp movq %rbp, %xmm6 vmovups %ymm6, (%r8) nop nop nop nop add $57373, %rsi lea addresses_D_ht+0x1176d, %r11 nop nop nop and ...
/* * MIT License * * Copyright (c) 2021 KhoaTran Programmer * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, co...
// // Boost.Pointer Container // // Copyright Thorsten Ottosen 2003-2005. 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/li...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved PROJECT: PC GEOS MODULE: GrObj FILE: SplineGuardian.asm AUTHOR: Steve Scholl, Jan 9, 1992 ROUTINES: Name Description ---- ----------- SplineGuardianTran...
; A098022: Irrational rotation of Log(3)/Log(2) as an implicit sequence with an uneven Cantor cartoon. ; 5,10,17,22,29,34,41,46,51,58,63,70,75,82,87,94,99,104,111,116,123,128,135,140,147,152,157,164,169,176,181,188,193,200,205,210,217,222,229,234,241,246,253,258,263,270,275,282,287,294,299,306,311,316,323,328 mov $3,$...
############################################################################### # File : slti.asm # Project : MIPS32 MUX # Author: : Grant Ayers (ayers@cs.stanford.edu) # # Standards/Formatting: # MIPS gas, soft tab, 80 column # # Description: # Test the functionality of the 'slti' instruction. # ...
// Copyright 2013 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 "extensions/browser/file_highlighter.h" #include "base/containers/stack.h" #include "base/values.h" namespace extensions { namespace { // Key...
SECTION code_user PUBLIC _extract_get_mmu _extract_get_mmu: ; When loading pages, a particular page must be brought ; into a specific mmu slot. However that mmu slot must ; not be occupied by the stack. This subroutine chooses ; a suitable mmu slot to do this paging. ; exit : hl = mmu slot to us...
SECTION code_clib SECTION code_fp_math48 PUBLIC am48_double8u EXTERN am48_double16u am48_double8u: ; 8-bit unsigned integer to double ; ; enter : L = 8-bit unsigned integer n ; ; exit : AC = AC' (exx set saved) ; AC'= (double)(n) ; ; uses : af, bc, de, hl, bc', de', hl' ld...
; A022977: 21-n. ; Submitted by Christian Krause ; 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,-32,-33,-34,-35,-36,-37,-38,-39 sub $0,21 mul $0,-1
/* * Driver.hh * * Created on: Jan 23, 2012 * Author: cferenba * * Copyright (c) 2012, Los Alamos National Security, LLC. * All rights reserved. * Use of this source code is governed by a BSD-style open-source * license; see top-level LICENSE file for full license text. */ #ifndef DRIVER_HH_ #define DR...
db "ALPHA@" ; species name db "It is said to have" next "emerged from an" next "egg in a place" page "where there was" next "nothing, then it" next "shaped the world.@"
include w2.inc include noxport.inc include consts.inc include structs.inc createSeg edit_PCODE,edit2,byte,public,CODE ; DEBUGGING DECLARATIONS ifdef DEBUG midEditn2 equ 22 ; module ID, for native asserts endif ; EXTERNAL FUNCTIONS externFP <N_PdodMother> externFP <...
#include "Mcu.inc" #include "PollChain.inc" #include "TestDoubles.inc" radix decimal udata global calledPollAfterSunriseSunset calledPollAfterSunriseSunset res 1 PollAfterSunriseSunsetMock code global initialisePollAfterSunriseSunsetMock global POLL_AFTER_SUNRISESUNSET initialisePollAfterSunriseSunsetMock:...
; A070553: Rectangular array read by rows: n-th row gives the 7 numbers k*10^n mod 7 for 0 <= k < 7. ; 0,1,2,3,4,5,6,0,3,6,2,5,1,4,0,2,4,6,1,3,5,0,6,5,4,3,2,1,0,4,1,5,2,6,3,0,5,3,1,6,4,2,0,1,2,3,4,5,6,0,3,6,2,5,1,4,0,2,4,6,1,3,5,0,6,5,4,3,2,1,0,4,1,5,2,6,3,0,5,3,1,6,4,2 mov $1,$0 lpb $1 mod $0,7 mul $0,24 sub $1...
; A188043: Positions of 1 in A188041; complement of A188042. ; 5,10,15,17,22,27,29,34,39,44,46,51,56,58,63,68,73,75,80,85,87,92,97,99,104,109,114,116,121,126,128,133,138,143,145,150,155,157,162,167,169,174,179,184,186,191,196,198,203,208,213,215,220,225,227,232,237,242,244,249,254,256,261,266,268,273,278,283,285,290,29...
SECTION code_fp_math48 PUBLIC lp_pdoub EXTERN cm48_sccz80p_lp_pdoub defc lp_pdoub = cm48_sccz80p_lp_pdoub
/*========================================================================= * * Copyright RTK Consortium * * 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.apa...
; A315610: Coordination sequence Gal.5.256.5 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. ; 1,6,12,14,20,26,32,38,40,46,52,58,64,66,72,78,84,90,92,98,104,110,116,118,124,130,136,142,144,150,156,162,168,170,176,182,188,194,196,202,20...
/* ARPACK++ v1.2 2/18/2000 c++ interface to ARPACK code. MODULE RSymGCay.cc. Example program that illustrates how to solve a real symmetric generalized eigenvalue problem in Cayley mode using the ARrcSymGenEig class. 1) Problem description: In this example we try to solve A*x = B*x*lambda ...
;------------------------------------------------------------------- ; Praktikum SMD 2015 ; M.Wahyudin (140310120031) ; ; Name : LATIH24.ASM (PROG2B) ; Desc : Mencacah 7Seg dengan timer sebagai tunda ; Input : - ; Output: 7Seg(P1) ;------------------------------------------------------------------- scount equ 9Ah ...
;***************************************************************************** ;* strfuncs.asm - Because aa_syslib doesn't provide all the string utils. ;***************************************************************************** _DATA segment public dword use32 'data' _DATA ends _CODE segment public dword u...
frame 1, 08 frame 0, 05 setrepeat 7 frame 2, 03 frame 3, 03 dorepeat 3 frame 2, 20 endanim
; see also MapHeaderPointers MapHeaderBanks: db BANK(PalletTown_h) ;PALLET_TOWN db BANK(ViridianCity_h) ; VIRIDIAN_CITY db BANK(PewterCity_h) ; PEWTER_CITY db BANK(CeruleanCity_h) ; CERULEAN_CITY db BANK(LavenderTown_h) ; LAVENDER_TOWN db BANK(VermilionCity_h) ; VERMILION_CITY db BANK(CeladonCity_h) ; CELADON_CI...
; int b_array_back(b_array_t *a) SECTION code_adt_b_array PUBLIC b_array_back b_array_back: INCLUDE "adt/b_array/z80/asm_b_array_back.asm"
; NMI + few procedures ; this block of code MAY not be longer than $ad60-$adde org nmiHandler .proc NMI bit nmist ; what interruption VBL or DLI ? bpl no DLI jmp dull no sta nmist VBL jmp dull dull rti .endp ; .align $100 ; warning: it MAY NOT cross page boundary (example $31f8 ->$3208...
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r15 push %r8 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0xf6b7, %rcx dec %r13 movl $0x61626364, (%rcx) nop nop nop nop inc %rdi lea addresses_D_ht+0x190ed, %rbx nop and $21991, %r9 mov $0x6162636465666768, %r8 movq %r8, %xmm6 mov...
; StdScripts indexes (see engine/events/std_scripts.asm) ; also used in TileCollisionStdScripts (see data/events/collision_stdscripts.asm) enum_start enum pokecenternurse enum difficultbookshelf enum picturebookshelf enum magazinebookshelf enum teamrocketoath enum incenseburner enum merchandiseshelf enum townm...
; int feof(FILE *stream) INCLUDE "config_private.inc" SECTION code_clib SECTION code_stdio ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; IF __CLIB_OPT_MULTITHREAD & $02 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PUBLIC _feof EXTERN _feof_fastcall _feof: pop af pop hl push hl push af jp _feof_fastcall ;;;;;;;;;;;;;;...
; A130270: Triangle read by rows, T(n) followed by 1,2,3,...(n-1). ; Submitted by Jon Maiga ; 1,3,1,6,1,2,10,1,2,3,15,1,2,3,4,21,1,2,3,4,5,28,1,2,3,4,5,6,36,1,2,3,4,5,6,7,45,1,2,3,4,5,6,7,8 mov $2,$0 mov $4,$0 lpb $2 add $2,1 add $3,1 sub $2,$3 sub $2,1 add $4,1 lpe lpb $4 mov $4,$2 sub $4,1 lpe mov $0,$...
;-----------------------------------------------------------------------------; ; Author: Stephen Fewer (stephen_fewer[at]harmonysecurity[dot]com) ; Compatible: Windows 7, 2003 ; Architecture: x64 ; Size: 200 bytes ;-----------------------------------------------------------------------------; [BITS 64] ; Windows x64...
; ; Z88dk Generic Floating Point Math Library ; ; ; $Id: div1.asm,v 1.4 2016/06/21 21:16:49 dom Exp $ SECTION code_fp PUBLIC div1 EXTERN fdiv .div1 POP BC POP IX POP DE jp fdiv
; A108793: Semiprimes that can be partitioned into a sum of semiprimes in more than one way. ; Submitted by Christian Krause ; 10,14,15,21,22,25,26,33,34,35,38,39,46,49,51,55,57,58,62,65,69,74,77,82,85,86,87,91,93,94,95,106,111,115,118,119,121,122,123,129,133,134,141,142,143,145,146,155,158,159,161,166,169,177,178,183,...
; ; Small C z88 File functions ; Written by Dominic Morris <djm@jb.man.ac.uk> ; 22 August 1998 ** UNTESTED ** ; ; *** THIS IS A Z88 SPECIFIC ROUTINE!!! *** ; ; 11/3/99 djm - revised INCLUDE "#fileio.def" INCLUDE "#stdio.def" INCLUDE "libdefs.def" XLIB...
__________________________________________________________________________________________________ sample 96 ms submission /* // Definition for a Node. class Node { public: int val; Node* prev; Node* next; Node* child; Node() {} Node(int _val, Node* _prev, Node* _next, Node* _child) { ...
; A016064: Smallest side lengths of almost-equilateral Heronian triangles (sides are consecutive positive integers, area is a nonnegative integer). ; 1,3,13,51,193,723,2701,10083,37633,140451,524173,1956243,7300801,27246963,101687053,379501251,1416317953,5285770563,19726764301,73621286643,274758382273,1025412242451,382...
;--------------------------------------- ; CLI (Command Line Interface) Plugin ; (C) breeze/fishbone crew 2012 ;--------------------------------------- DEVICE ZXSPECTRUM128 org #be00 edit256 ds 128," " ; 128 bytes ascii ds 128,defaultCol ; 128 bytes colors org #bf00 bufer256 ds 128," " ; 12...
TITLE ../openssl/crypto/bn/asm/x86-mont.asm IF @Version LT 800 ECHO MASM version 8.00 or later is strongly recommended. ENDIF .686 .MODEL FLAT OPTION DOTNAME IF @Version LT 800 .text$ SEGMENT PAGE 'CODE' ELSE .text$ SEGMENT ALIGN(64) 'CODE' ENDIF ALIGN 16 _bn_mul_mont PROC PUBLIC $L_bn_mul_mont_begin:: push ebp push ...
.MODEL SMALL .CODE public int10_override_, setup_int10_ int10_override_ proc far cmp ax, 4f01h je check_mode01 cmp ax, 4f02h jne chain_to_prev cmp bx, 4136h jne chain_to_prev push cx push bx and bx, 4000h or bx, [mode] jmp chain_to_prev_and_restore check_mode01: cmp cx, 136h jne chain_to_prev p...
main: 0xaf mov $1, $7 add $1, $7, $7 iadd $5 ldd $7, 0x12($6) std $3, 0x12($6) int 15 hlt int1: 0xa7 ; -> m[6]&m[7] mov $1, $7 add $1, $7, $7 rti int2: 0xd ; -> m[8]&m[9] mov $1, $7 add $1, $7, $7 rti exp1: 0x13 ; -> m[2]&m[3] mov $1, $7 add $1, $7, $7...
[BITS 64] section .text extern kernel_entrypoint_main kernel_entrypoint_start: mov ax, 0x0010 mov ds, ax mov es, ax mov fs, ax mov gs, ax mov ss, ax mov rbp, 0x0000000000008000 mov rsp, 0x0000000000008000 call kernel_entrypoint_main
; A256535: The largest number of T-tetrominoes that fit within an n X n square. ; 0,0,1,4,5,8,11,16,19,24,29,36,41,48,55,64,71,80,89,100,109,120,131,144,155,168,181,196,209,224,239,256,271,288,305,324,341,360,379,400,419,440,461,484,505,528,551,576,599,624,649,676,701,728,755,784,811 mov $1,$0 mul $0,2 trn $0,5 add $1...
; void exit (int code); ; --------------------- ; This function aborts execution of the program by returning ; the given exit code to the operating system. It never returns. ; Only the 8 lower bits of the exit code are considered, thus ; the exit code should be a number between 0 and 255. section...
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 db 0,0,0,0,0,0,136,136,136,136,136,136,136,136,136,136 db 136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136 db 136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136 db 136,136,136,136,136,136,136,136,136,204,204,204,204...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r14 push %rax push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0xfbdc, %rbp nop nop sub $51388, %rbx and $0xffffffffffffffc0, %rbp vmovaps (%rbp), %ymm2 vextracti128 $0, %ymm2, %xmm2 vpextrq $1, %xmm2, %rdi nop nop nop dec %rbx ...
section .text org 0x00 mov ax, 9ch mov ss, ax ;set stack segment mov sp, 4096d ;set stack pointer mov ax, 7c0h ;?sets the AL? (AH is rewritten); no mov ah, 0eh mov al, 66h int 10h ;BIOS call to print a character jmp $ section .data times 510-($-$$) db 0 ;$ should be current address, $$ - first ad...
; scrolls screen in gfx mode org 0x100 section .text start: mov ax,13h int 10h mov ah, 0xc ; draw a pixel mov bh, 0 ; page 0 mov al, 13 ; pixel color mov cx, 50 ; x mov dx, 50 ; y int 0x10 mov ah, 0x06 ; scroll up mov ch, 10 ; upper_y mov cl, 10 ...
#include <algorithm> #include <hpx/hpx_main.hpp> #include <hpx/parallel/algorithms/for_loop.hpp> int main(int argc, char** argv){ int NR = 10; int NZ = 8; double Eps[NR*NZ]; int i = 0; if ((NR >= 1) && (NZ >= 1)){ hpx::parallel::v2::for_loop (hpx::parallel::v1::par, 0,NR-1 + 1,[&](int t1) { hpx::p...
; A014800: Squares of even pentagonal pyramidal numbers. ; 0,36,324,1600,15876,38416,82944,302500,527076,876096,2160900,3240000,4734976,9474084,13032100,17640000,30980356,40297104,51840000,83283876,104162436,129231424,194602500,236421376,285474816,409252900,486202500,574848576,792872964,925376400,1075840000,1438381476,...
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and Freie Universit...
; A327936: Multiplicative with a(p^e) = p if e >= p, otherwise 1. ; 1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,2,1,1,3,2,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,2,1,3,1,2,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,2,3,1,1,2,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,2 add $0,1 mov $1,1 mov $2,2 mov $3,$0 mov $4,$0 lpb ...
; A114753: First column of A114751. ; 1,3,3,7,5,11,7,15,9,19,11,23,13,27,15,31,17,35,19,39,21,43,23,47,25,51,27,55,29,59,31,63,33,67,35,71,37,75,39,79,41,83,43,87,45,91,47,95,49,99,51,103,53,107,55,111,57,115,59,119,61,123,63,127,65,131,67,135,69 dif $0,2 mul $0,2 add $0,1
;=============================================================================== ; Copyright 2015-2020 Intel Corporation ; ; 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.apa...
_start: mov ax, 0 mov bx, https://example.com mov cx, SITE syscall mov ax, 1 mov bx, 1 mov cx, [SITE] syscall
//Bai toan cai ba lo 1 // Moi do vat co so luong khong han che // Du lieu cho trong file D://Balo.INP #include <stdio.h> #include <malloc.h> #include <string.h> typedef struct { char TenDV[20]; int TL, GT, PA; } DoVat; typedef int bang[50][100];// Ba lo co trong luong toi da 99 va co toi da 50 do vat ...
_zombie: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "stat.h" #include "user.h" 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 pus...
; int adt_ListAdd(struct adt_List *list, void *item) ; 02.2003, 06.2005 aralbrec ; CALLER linkage for function pointers XLIB adt_ListAdd LIB adt_ListAdd_callee XREF ASMDISP_ADT_LISTADD_CALLEE .adt_ListAdd pop hl pop bc pop de push de push bc push hl jp adt_ListAdd_callee + ASMDISP_ADT_LIST...
; A023569: Greatest prime divisor of prime(n) - 3. ; 2,2,2,5,7,2,5,13,7,17,19,5,11,5,7,29,2,17,7,19,5,43,47,7,5,13,53,11,31,2,67,17,73,37,11,5,41,17,11,89,47,19,97,7,13,11,7,113,23,59,17,31,127,13,19,67,137,139,7,29,19,11,31,157,41,167,43,173,7,89,13,37,47,19,193,197,199,29,13,19,107,43,109,11,223,227,229,23,29,17,11,6...
#pragma once #include "base/Math.hpp" #include "gpu/GLContext.hpp" #include <string> #define COMPUTE_CLOTH_MODULE namespace FW { // Simple helper to manage multiple shaders more easily struct Shader { Shader() {}; Shader(const std::string& name, const bool compute, GLContext *ctx); ~Shader(); GLuint han...
.model small .data num1 db 0,1,2,3,4,5,6,7,8,9,'$' decimales_1 db 0,1,2,3,4,5,6,7,8,9,'$' num2 db 0,1,2,3,4,5,6,7,8,9,'$' decimales_2 db 0,1,2,3,4,5,6,7,8,9,'$' ;operandos para conjugar la parte decimal de cada operando n...
#ifndef STAN_MATH_REV_FUN_HPP #define STAN_MATH_REV_FUN_HPP #include <stan/math/prim/mat/fun/Eigen.hpp> #include <stan/math/prim/mat.hpp> #include <stan/math/rev/fun/LDLT_alloc.hpp> #include <stan/math/rev/fun/LDLT_factor.hpp> #include <stan/math/rev/fun/Phi.hpp> #include <stan/math/rev/fun/Phi_approx.hpp> #include ...
#include <PointSpec.h> #include <Asserter.h> #include <Point.h> #include <Util.h> PointSpec::PointSpec() { } void PointSpec::run() { randomizeSpec(); distanceOnXToSpec(); distanceOnYToSpec(); distanceOnZToSpec(); distance2DToSpec(); distance3DSpec(); } void PointSpec::randomizeSpec() { Point p; p.ran...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1990 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: stringCompare.asm AUTHOR: Gene Anderson, Dec 6, 1990 ROUTINES: Name Description ---- ----------- LocalGetLanguage Get current ...
; Adding 2 single-digit numbers — ADD_NUM.asm ; Copyright (c) 2021 Janrey Licas ; This code is licensed under MIT license. (see LICENSE for details) .MODEL TINY .CODE ORG 100H ; Set the starting address point. INPUT_ENTRYPOINT: MAIN PROC MOV AH, 01H ; Set mode to get input of a character. INT 2...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: MODULE: FILE: swarmpref.asm AUTHOR: Adam de Boor, Dec 3, 1992 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Descripti...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include "3rdparty/objTester/obj_parser.h" #include "3rdparty/objTester/list.h" #include "3rdparty/objTester/string_extra.h" #define WHITESPACE " \t\n\r" void obj_free_half_list(objl_list *listo) { list_delete_all(listo); free(listo->names); } int obj_c...
############################################################################## # Program : HW#5_1 Programmer: Chaoran Li # Due Date: 11/04/19 Last Modified:11/06/19 # Course: CS3340 Section:501 ############################################################################# # Description: # Write a MIPS assembly language...
#include "tst.h" #include <cassert> int main() { const TST<> tst{ "catamorphism" }; const auto result{ tst + "cat" + "theory" + "function" + "catfish" }; assert(result.value() == 'c'); assert(!result.word()); assert(!result.empty()); assert(result.center().value() == 'a'); assert(!result.center().word()...
; A282166: a(n) is the minimal sum of a positive integer sequence of length n with no duplicate substrings of length greater than 1, and every number different from its neighbors. ; 1,3,4,7,8,12,13,17,18,22,24,28,30,35,37,42,44,49,51,56,59 add $0,2 lpb $0 mov $2,$0 trn $0,2 seq $2,193832 ; Irregular triangle rea...
; A065233: Fill a triangular array by rows by writing numbers 1 up to b(0), 1 up to b(1), etc., where the b(n) are the nonzero 9-gonal (nonagonal) numbers 1, 9, 24, 46, ... (A001106). The initial elements of the rows form a(n). ; 1,1,3,6,1,6,12,19,3,12,22,33,45,12,26,41,57,74,17,36,56,77,99,11,35,60,86,113,141,16,46,77...
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <op_table.hpp> #include <openvino/opsets/opset8.hpp> using namespace std; using namespace ov::opset8; namespace ov { namespace frontend { namespace tf { namespace op { OutputVector TranslateSqrtOp(const NodeContext& node...
; A078832: Smallest prime contained as binary substring in binary representation of n>1, a(1)=1. ; 1,2,3,2,2,2,3,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,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,3,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 mov $1,$0 lpb $1 s...
// Bubble sort implementation using C++ program #include <bits/stdc++.h> using namespace std; void swap(int *xp, int *yp) { int temp = *xp; *xp = *yp; *yp = temp; } // A function to implement bubble sort void bubbleSort(int arr[], int n) { int i, j; for (i = 0; i < n-1; i++) // Last i elements are already in...
#pragma once #include <buffer.hpp> #include <iostream> namespace libasm { namespace compiled { class function { private: void* memory_address; size_t size; public: template <typename T> T to() { return reinterpret_cast<T...
; double tanh(double x) SECTION code_clib SECTION code_fp_math48 PUBLIC am48_tanh EXTERN am48_dequate, am48_sinh, am48_cosh, am48_ddiv, am48_dpopret am48_tanh: ; hyberbolic tangent ; AC' = tanh(AC') ; ; enter : AC' = double x ; ; exit : AC' = tanh(x) ; carry reset ; ; uses : a...
/* * Copyright 2004 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 contributing ...
; PEPE gerado por 'lcc' (IST: prs 2005, 2009) ; 'rl' serve como frame-pointer e 'r0' como acumulador ; os registos 'r1' a 'r10' sao preservados nas chamadas ; global main ; TEXT main: ; ncalls=5 PUSH r9 PUSH r10 PUSH rl MOV rl, sp ; P_argc EQU 8 ; P_argv EQU 10 MOV r10,L2 PUSH r10 CALL prints ADD sp,2 MOV r10, 10 ADD r...
; A056526: First differences of Flavius Josephus's sieve. ; Submitted by Jon Maiga ; 2,4,6,6,8,12,10,14,16,12,18,24,14,34,26,16,30,36,18,42,38,12,60,22,48,38,46,36,60,54,44,36,84,22,60,84,18,78,72,60,38,112,12,96,114,26,88,92,34,90,138,26,82,98,112,54,170,36,60,168,52,128,52,128,94,108,90,188,34,72,170,120,46,158,196,2...
; A142410: Primes congruent to 37 mod 48. ; Submitted by Jon Maiga ; 37,181,229,277,373,421,613,661,709,757,853,997,1093,1237,1381,1429,1621,1669,1861,2053,2293,2341,2389,2437,2677,2917,3061,3109,3253,3301,3541,3637,3733,3877,4021,4261,4357,4549,4597,4789,4933,5077,5413,5557,5653,5701,5749,6037,6133,6229,6277,6373,6421...
<% from pwnlib.shellcraft.powerpc.linux import syscall %> <%page args="set"/> <%docstring> Invokes the syscall sigsuspend. See 'man 2 sigsuspend' for more information. Arguments: set(sigset_t): set </%docstring> ${syscall('SYS_sigsuspend', set)}
; A059421: A diagonal of A059419. ; 16,136,616,2016,5376,12432,25872,49632,89232,152152,248248,390208,594048,879648,1271328,1798464,2496144,3405864,4576264,6063904,7934080,10261680,13132080,16642080,20900880,26031096,32169816,39469696 mov $1,5 add $1,$0 bin $1,$0 mov $2,2 add $2,$0 mul $2,5 add $2,2 mul $1,$2 sub $1,1...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r15 push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x8be8, %rsi lea addresses_UC_ht+0x4028, %rdi nop nop nop nop nop xor $5675, %r15 mov $24, %rcx rep movsb nop nop xor %r11, %r11 lea addresses_D_ht+0x2f68, %rsi lea addresses_D_ht+0...
; A001826: Number of divisors of n of form 4k+1. ; 1,1,1,1,2,1,1,1,2,2,1,1,2,1,2,1,2,2,1,2,2,1,1,1,3,2,2,1,2,2,1,1,2,2,2,2,2,1,2,2,2,2,1,1,4,1,1,1,2,3,2,2,2,2,2,1,2,2,1,2,2,1,3,1,4,2,1,2,2,2,1,2,2,2,3,1,2,2,1,2,3,2,1,2,4,1,2,1,2,4,2,1,2,1,2,1,2,2,3,3,2,2,1,2,4,2,1,2,2,2,2,1,2,2,2,2,4,1,2,2,2,2,2,1,4,3,1,1,2,4,1,2,2,1,4...
// // Created by simon on 12/1/20. // #include "Plugin.hpp" #include "Kommunikationsstelle.hpp" void Plugin::print(const std::string &message) { Kommunikationsstelle::gui_print(message); } void Plugin::draw_rect(TGraphicRect rect) { Kommunikationsstelle::gui_draw_rect(rect); } void Plugin::draw_circle(TGrap...
tilepal 0, GRAY, RED, BROWN, RED, RED, GREEN, GREEN, BROWN tilepal 0, BROWN, BROWN, BROWN, BROWN, GREEN, GREEN, GREEN, GREEN tilepal 0, BROWN, GRAY, BROWN, RED, RED, GREEN, GREEN, BROWN tilepal 0, BROWN, BROWN, BROWN, BROWN, GREEN, GREEN, GREEN, GREEN tilepal 0, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, GRE...
; A000241: Crossing number of complete graph with n nodes. ; 0,0,0,0,0,1,3,9,18,36,60,100,150 sub $0,1 lpb $0 sub $0,2 mov $1,$2 add $2,$0 mul $1,$2 lpe div $1,4 mov $0,$1