text
stringlengths
1
1.05M
;***************************************************************************** ;* MMX/SSE2/AVX-optimized H.264 deblocking code ;***************************************************************************** ;* Copyright (C) 2005-2011 x264 project ;* ;* Authors: Loren Merritt <lorenm@u.washington.edu> ;* Fiona G...
; A246360: a(1) = 1, then A007051 ((3^n)+1)/2 interleaved with A057198 (5*3^(n-1)+1)/2. ; 1,2,3,5,8,14,23,41,68,122,203,365,608,1094,1823,3281,5468,9842,16403,29525,49208,88574,147623,265721,442868,797162,1328603,2391485,3985808,7174454,11957423,21523361,35872268,64570082,107616803,193710245,322850408,581130734,9685512...
; A097073: Expansion of (1-x+2*x^2)/((1+x)*(1-2*x)). ; 1,0,4,4,12,20,44,84,172,340,684,1364,2732,5460,10924,21844,43692,87380,174764,349524,699052,1398100,2796204,5592404,11184812,22369620,44739244,89478484,178956972,357913940,715827884,1431655764,2863311532,5726623060,11453246124,22906492244,45812984492,91625968980,18...
; A152524: a(n) is the number of L-bit words in which, if up to k bits are perturbed, the resulting change in unsigned L-bit value is n, for L=8 and k=7. ; 508,508,504,504,500,500,496,496,492,492,488,488,484,484,480,480,476,476,472,472,468,468,464,464,460,460,456,456,452,452,448,448,444,444,440,440,436,436,432,432,428,...
extern libc_entrypoint global _start _start: %ifdef ULTRA_64 mov rdi, rsp %elifdef ULTRA_32 push 0 push esp add [esp], dword 4 %else %error Unknown architecture %endif call libc_entrypoint ud2
; A068551: a(n) = 4^n - binomial(2*n,n). ; 0,2,10,44,186,772,3172,12952,52666,213524,863820,3488872,14073060,56708264,228318856,918624304,3693886906,14846262964,59644341436,239532643144,961665098956,3859788636664,15488087080696,62135313450064,249227373027556,999489300404872,4007681094422392 mov $1,4 pow $1,$0 mov $2,$...
; ; ASM_V1_AddSub.asm ; ; Created: 19.02.2018 14:44:23 ; Author : simon ; ; Replace with your application code start: ; 2.2 ; START SINGLE BYTE ADDITION ldi r16, 0x05 ldi r17, 0x07 ldi r18, 0x00 add r18, r16 add r18, r17 ; END SINGLE BYTE ADDITION ; 2.3.1 Addition ; START DUAL BYTE ADDIT...
#include "ofApp.h" // This is the "main" function. It is the entry point to the program. Every // computer program has a starting point, and this is it! int main() { // Create some defaul window settings. ofGLWindowSettings settings; // Set the size of the initial window. settings.setSize(256, 256); ...
//===-- llvm-mca.cpp - Machine Code Analyzer -------------------*- C++ -* -===// // // 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 // //===---------------------------...
; ; ; ZX Maths Routines ; ; 9/12/02 - Stefano Bodrato ; ; $Id: dleq.asm,v 1.5 2016/06/22 19:59:18 dom Exp $ ; IF FORzx INCLUDE "zxfp.def" ENDIF IF FORzx81 INCLUDE "81fp.def" ENDIF IF FORlambda INCLUDE "lambdafp.def" ENDIF SECTION code_fp PUBLIC dleq ...
TullyGrownText: text "My @" text_ram wStringBuffer4 text " has" line "grown again." para "It was only about" line "so big when I" para "caught it, but now" line "it's way bigger." done UnknownText_0x65e42: text "Oh yeah, I KO'd a" line "wild @" text_ram wStringBuffer4 text "." para "It was huge, like"...
frame 0, 08 frame 1, 12 frame 2, 18 frame 1, 12 frame 3, 12 endanim
// Write Code to Determine if Two Trees are Identical // Two trees are identical when they have same data and arrangement of data is also same. // Two trees are identical when they have same data and arrangement // of data is also same. To identify if two trees are identical // we need to traverse both trees simultan...
; A191313: Sum of the abscissae of the first returns to the horizontal axis (assumed to be 0 if there are no such returns) in all dispersed Dyck paths of length n (i.e., Motzkin paths of length n with no (1,0) steps at positive heights). ; 0,0,2,5,15,30,71,134,296,551,1188,2211,4720,8815,18722,35105,74307,139842,295223...
; void esx_m_geterr(uint16_t error,unsigned char *msg) SECTION code_esxdos PUBLIC _esx_m_geterr EXTERN l0_esx_m_geterr_callee _esx_m_geterr: pop af pop de pop hl push hl push de push af jp l0_esx_m_geterr_callee
db 0 ; species ID placeholder db 250, 05, 05, 50, 35, 105 ; hp atk def spd sat sdf db NORMAL, NORMAL ; type db 30 ; catch rate db 255 ; base exp db NO_ITEM, LUCKY_EGG ; items db GENDER_F100 ; gender ratio db 40 ; step cycles to hatch INCBIN "gfx/pokemon/chansey/front.dimensions" db GROWTH_FAST ;...
; ######################################################################### ; ; stars.asm - Assembly file for EECS205 Assignment 1 ; ; Modified by: Ryan Hodin (NetID rah025) ; ; ######################################################################### .586 .MODEL FLAT,STDCALL .STACK 4096 op...
// 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 "media/filters/ffmpeg_audio_decoder.h" #include <stdint.h> #include <functional> #include "base/bind.h" #include "base/callback_helpers.h"...
;; Known problematic floating-point numbers and their proper ;; encoding... bits 64 dd 1.1e10 dd 0x5023e9ac ; Should be... dd 50.40e9 dd 0x513bc130 ; Should be... dq 1.4e23 dq 0x44bda56a4b0835c0 dq 50.48e21 dq 0x44a5610d7502feae dt 1.2e28 dq 0x9b18ab5df7180b6c dw 0x405c dt 50.46e25 dq 0xd0b29a67e...
#d incbin("data1.bin", "data2.bin") ; error: wrong
!to "rpg.prg",cbm ;ver 1: loads charset and sprite data, initializes VIC, tests first sprite definitions ;ver 2: added simple joystick controls for player sprite ;ver 3: added ability to draw a tile to any coord on screen, with colour data ; added level drawing routine and test screen data ;ver 4: added animati...
; A060072: a(n) = (n^(n-1) - 1)/(n-1) for n>1, a(1) = 0. ; 0,1,4,21,156,1555,19608,299593,5380840,111111111,2593742460,67546215517,1941507093540,61054982558011,2085209001813616,76861433640456465,3041324492229179280,128583032925805678351,5784852794328402307380,275941052631578947368421,13910921472347577431859820,73902137...
; A256008: Self-inverse permutation of positive integers: 4k+1 is swapped with 4k+3, and 4k+2 with 4k+4. ; 3,4,1,2,7,8,5,6,11,12,9,10,15,16,13,14,19,20,17,18,23,24,21,22,27,28,25,26,31,32,29,30,35,36,33,34,39,40,37,38,43,44,41,42,47,48,45,46,51,52,49,50,55,56,53,54,59,60,57,58,63,64,61,62,67,68,65,66,71,72,69,70,75,76,...
############################################################################### # Copyright 2019 Intel Corporation # All Rights Reserved. # # If this software was obtained under the Intel Simplified Software License, # the following terms apply: # # The source code, information and material ("Material") containe...
******************************************************************** * Copyright (C) 1991, GMD. All rights reserved. * * * * * * NOTICE ...
/////////////////////////////////////////////////////////////////////////////// /// \file inverse_heaviside_array.hpp /// An inverse heaviside array that satisfies the \c InfiniteRangeRunStorage concept // // Copyright 2006 Eric Niebler. Distributed under the Boost // Software License, Version 1.0. (See accompan...
#include "S_Collidable.hpp" S_Collidable::S_Collidable(Quadtree& collisionTree) : collisionTree(collisionTree) { Bitmask defaultCollisions; defaultCollisions.SetBit((int)CollisionLayer::Default); collisionLayers.insert(std::make_pair(CollisionLayer::Default, defaultCollisions)); collisionLayers.in...
_stressfs: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "fs.h" #include "fcntl.h" int main(int argc, char *argv[]) { 0: 55 push %ebp int fd, i; int status; char path[] = "stressfs0"; 1: b8 73 74 72 65 mov $0x65727473,%eax { 6: 89 e...
dnl PowerPC-32/VMX and PowerPC-64/VMX mpn_copyi. dnl Copyright 2006 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl The GNU MP Library is free software; you can redistribute it and/or modify dnl it under the terms of the GNU Lesser General Public License as published dnl by the ...
; float asin(float x) __z88dk_fastcall SECTION code_clib SECTION code_fp_math48 PUBLIC cm48_sdccix_asin_fastcall EXTERN cm48_sdccixp_dx2m48, am48_asin, cm48_sdccixp_m482d cm48_sdccix_asin_fastcall: call cm48_sdccixp_dx2m48 call am48_asin jp cm48_sdccixp_m482d
/* WARNING: This is auto-generated file. Do not modify, since changes will * be lost! Modify the generating script instead. */ typedef VKAPI_ATTR VkResult (VKAPI_CALL* CreateInstanceFunc) (const VkInstanceCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkInstance* pInstance); typedef VKAP...
#include "atcrunwayextendedcentreline.h" ATCRunwayExtendedCentreline::ATCRunwayExtendedCentreline(QGraphicsLineItem *line) : centreline(line) { } ATCRunwayExtendedCentreline::~ATCRunwayExtendedCentreline() { if(centreline != nullptr) delete centreline; for(int i = 0; i < ticks.size(); i++) { if(...
SECTION FRAGMENT "Frag", ROM0[6] ; Uh oh
; A034667: Sum of n-th powers of divisors of 40. ; Submitted by Jon Maiga ; 8,90,2210,73710,2734994,105736950,4161281930,165132191790,6579317233634,262657136433510,10496011084557050,419635308642959070,16781313068980398674,671170570551043634070,26845184104404418478570,1073774593035215963441550,42950328330281631859634114...
/* * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright noti...
#include "KawaiiPhysicsEditMode.h" #include "SceneManagement.h" #include "EngineUtils.h" #include "IPersonaPreviewScene.h" #include "Animation/DebugSkelMeshComponent.h" #include "EditorModeManager.h" #include "CanvasItem.h" #include "CanvasTypes.h" #include "Materials/MaterialInstanceDynamic.h" #include "AnimationRunti...
; A052544: Expansion of (1-x)^2/(1 - 4*x + 3*x^2 - x^3). ; 1,2,6,19,60,189,595,1873,5896,18560,58425,183916,578949,1822473,5736961,18059374,56849086,178955183,563332848,1773314929,5582216355,17572253481,55315679788,174128175064,548137914373,1725482812088,5431645680297,17098272199297,53823634568385,169431367355946,53335...
; How to compile ; $ nasm -f elf64 calc-sheet-column-number.asm && ld -m elf_x86_64 -dynamic-linker \ ; /lib64/ld-linux-x86-64.so.2 /usr/lib/x86_64-linux-gnu/crt1.o \ ; /usr/lib/x86_64-linux-gnu/crti.o calc-sheet-column-number.o /usr/lib/x86_64-linux-gnu/crtn.o -lc -o calc-sheet-column-number extern printf ...
;------------------------------------------------------------------------------ ; ; Copyright (c) 2016, Intel Corporation. All rights reserved.<BR> ; SPDX-License-Identifier: BSD-2-Clause-Patent ; ; Module Name: ; ; AsmFuncs.Asm ; ; Abstract: ; ; Assembly function to set segment selectors. ; ; Notes: ;...
; === audio_intro.asm ; Audio data for the communication setup music. ; It's a remix of the Tomodachi Life Mii Editor theme. ; Actually, I just ripped the MIDI from Tomodachi Collection, ; since both games share pretty much the same Mii Editor theme. Intro1_Pointers: dw $c6f0 + (Intro1_Ch1 - Intro1_Ch1OffsetStart...
#include <boost/test/unit_test.hpp> #include <eosio/testing/tester.hpp> #include <fc/variant_object.hpp> #include <eosio/chain/abi_serializer.hpp> #include <iostream> #include <boost/container/map.hpp> #include <map> #include <Runtime/Runtime.h> #include <iomanip> #include "decide_tester.hpp" using namespace eosio; ...
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2016 Sebastian Schlenkrich */ #ifndef quantlib_templateauxilliaries_choleskyfactorisation_hpp #define quantlib_templateauxilliaries_choleskyfactorisation_hpp //#include <ql/types.hpp> //#include <boost/function.hpp> ...
; void *ba_priority_queue_data(ba_priority_queue_t *q) SECTION code_adt_ba_priority_queue PUBLIC ba_priority_queue_data defc ba_priority_queue_data = asm_ba_priority_queue_data INCLUDE "adt/ba_priority_queue/z80/asm_ba_priority_queue_data.asm"
.mode std .ecp full .stack 1 .r0 subi r0,r0,#1 rfe .text ori r0,r24,#32767 sll r0,r0,#15 ori r0,r0,#32767 sll r0,r0,#1 ori r0,r0,#1 addi r1,r0,#4
InitializeEvents: ; initialize events ld hl, InitialEvents .events_loop ld a, [hli] ld e, a ld a, [hli] ld d, a and e cp -1 jr z, .events_done ld b, SET_FLAG push hl call EventFlagAction pop hl jr .events_loop .events_done ; initialize engine flags ld hl, InitialEngineFlags .flags_loop ld a, [hli] ld e...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "core/providers/get_execution_providers.h" #include "core/graph/constants.h" namespace onnxruntime { namespace { struct ProviderInfo { const char* name; bool available; }; // all providers ordered by defaul...
%ifdef CONFIG { "RegData": { "R15": "0xFFFFFFFFFFFFFFFF", "R14": "0x4141414141410000", "R13": "0", "R12": "0", "R11": "0" } } %endif mov cl, 0 mov r15, -1 mov r14, 0x4141414141410000 mov r13, 0 mov r12, 0 mov r11, 0 ; Get the incoming flags mov rax, 0 lahf mov r11, rax shld r14w, r15w, cl shl...
; int fseek_unlocked(FILE *stream, long offset, int whence) SECTION code_clib SECTION code_stdio PUBLIC _fseek_unlocked EXTERN l0_fseek_unlocked_callee _fseek_unlocked: pop af exx pop bc exx pop hl pop de pop bc push bc push de push hl push bc push af jp l0_fseek_unlock...
/////////////////////////////////////////////////////////////////////// // File: linefind.cpp // Description: Class to find vertical lines in an image and create // a corresponding list of empty blobs. // Author: Ray Smith // Created: Thu Mar 20 09:49:01 PDT 2008 // // (C) Copyright ...
; =============================================================== ; Jun 2007 ; =============================================================== ; ; uint zx_bitmask2px(uchar bitmask) ; ; Return x coordinate 0-7 corresponding to bitmask. ; ; =============================================================== SECTION code_cl...
; A307642: a(n) = n!*Sum_{i=1..n} (Sum_{j=1..i} (i/j)). ; Submitted by Jon Maiga ; 1,8,57,428,3510,31644,312984,3380544,39664080,502927200,6858181440,100135491840,1559197261440,25797280723200,452046655872000,8364495012249600,162994310248089600,3336683369519001600,71596721810396160000,1606993396943155200000 mov $1,$0 s...
; A098790: a(n) = 2*a(n-1) + a(n-2) + 1, a(0) = 1, a(1) = 2. ; 1,2,6,15,37,90,218,527,1273,3074,7422,17919,43261,104442,252146,608735,1469617,3547970,8565558,20679087,49923733,120526554,290976842,702480239,1695937321,4094354882,9884647086,23863649055,57611945197,139087539450,335787024098,810661587647,1957110199393,4724...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r15 push %r8 push %r9 push %rcx push %rdi push %rsi lea addresses_WC_ht+0x1043f, %r8 nop nop nop and %r15, %r15 mov $0x6162636465666768, %rsi movq %rsi, %xmm7 movups %xmm7, (%r8) nop nop nop nop nop xor $63956, %r10 lea addresses_WT_ht+0x1a92f, %rsi...
; void *_falloc__unlocked(void *p, size_t size) SECTION code_clib SECTION code_alloc_malloc PUBLIC __falloc__unlocked EXTERN asm__falloc_unlocked __falloc__unlocked: pop af pop bc pop hl push hl push bc push af jp asm__falloc_unlocked
; A186683: Total number of n-digit numbers requiring 18 positive biquadrates in their representation as sum of biquadrates. ; 0,2,17,5,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,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,0,0,0,0,0,0,0,0,0,0,0,0 mul $0,2 mov $3,$0 l...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1990 -- All Rights Reserved PROJECT: PC GEOS MODULE: Printer Drivers FILE: streamSendCodeOut.asm AUTHOR: Jim DeFrisco, 1 March 1990 ROUTINES: Name Description ---- ----------- REVISION H...
; A293296: a(n) = 2*n^2 - floor(n/4). ; 0,2,8,18,31,49,71,97,126,160,198,240,285,335,389,447,508,574,644,718,795,877,963,1053,1146,1244,1346,1452,1561,1675,1793,1915,2040,2170,2304,2442,2583,2729,2879,3033,3190,3352,3518,3688,3861,4039,4221,4407,4596 mov $1,$0 mul $1,$0 mul $1,2 add $1,9 mov $2,$0 div $2,4 add $2,4 su...
#include "appConstants.h" #include "RileyArcsRoy.h" void RileyArcsRoy::setup(){ // setup pramaters // param.set("param", 5, 0, 100); // parameters.add(param); setAuthor("Roy MacDonald"); setOriginalArtist("Bridget Riley"); loadCode("scenes/RileyArcsRoy/exampleCode.cpp"); minWidth = 1; ...
; A165211: Period 8: repeat [0,1,0,1,1,0,1,0]. ; 0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0...
; Tiny test to try rgbds. Break scroll and see... INCLUDE "header.asm" FRAMES EQU $20 SECTION "default", ROM0 main: LD B, FRAMES ; Number of frames between changes ; Initialize SCY to high position LD A, $32 LD [$FF00+$42], A ; Enable VBlank interrupt LD A, $01 LD [$FF00+$FF], A EI endless: JR endless ;...
; A103326: a(n) = Fibonacci(5n)/Fibonacci(n). ; 5,55,305,2255,15005,104005,709805,4873055,33379505,228841255,1568358005,10750060805,73681030805,505019869255,3461450947505,23725155368255,162614587921805,1114577087604805,7639424691459005,52361396626646255,358890349406803505,2459871055211724055,16860207021391288805,115561...
; ; ANSI Video handling for the NASCOM1/2 ; ; BEL - chr(7) Beep it out ; ; Stefano Bodrato - Jul 2004 ; ; No sound on nascom (?). We'll look for some trick.. ; What about making buzz the tape relais ? ; ; $Id: f_ansi_bel.asm,v 1.4 2015/01/19 01:33:18 pauloscustodio Exp $ ; PUBLIC ansi_BEL EXTERN montest ; Thi...
_echo: 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 ...
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r14 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0xdab2, %rcx clflush (%rcx) nop nop add %rax, %rax movb $0x61, (%rcx) dec %rax lea addresses_D_ht+0x98e0, %r14 nop cmp %rsi, %rsi movups (%r14), %xmm3 vpextrq $0, %xmm3, %rdi nop no...
// Stores all the possible canonical boards for a game. For example the // 1,755 canonical three-card flops for Holdem. Supports a global index for // each board and a method Board() to get the cards corresponding to a // particular global index. // // Also supports a dense local indexing for any subtree of boards. ...
.global vectors .include "macro-defs.asm" .macro exc_handler type exc_handler_\type: kernel_entry exc mov r0, #\type bl isr_exception_handler b hang .endm .macro irq_handler type irq_handler_\type: kernel_entry irq bl isr_irq_handler kernel_exit .endm .align 5 vectors: ldr pc, ventry_addr_0 ldr pc...
/* This testcase is part of GDB, the GNU debugger. Copyright (C) 2006-2017 Free Software Foundation, Inc. This file is part of GDB. This program 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; ei...
; 8086 assembly file ; by:czfshine ; date: 2018/04/12 00:12:26 ;试编写一段程序,从键盘接收一个0-65535间的十进制无符号数, ;并在终端上显示与它等值的二进制数。 ; The Main Data segment include scan.inc DATA SEGMENT DATA ENDS STACK SEGMENT DW 256 DUP(?) STACK ENDS ;entry code segment CODE SEGMENT ASSUME CS:CODE ,DS:DATA,SS:STACK START: ;entry...
; A320431: The number of tiles inside a regular n-gon created by lines that run from each of the vertices of the n edges orthogonal to these edges. ; 1,1,31,13,71,25,127,41,199,61,287,85,391,113,511,145,647,181,799,221,967,265,1151,313,1351,365,1567,421,1799,481,2047,545,2311,613,2591,685,2887,761,3199,841,3527,925,387...
; long strtol_callee( const char * restrict nptr, char ** restrict endptr, int base) SECTION code_clib SECTION code_stdlib PUBLIC _strtol_callee, l0_strtol_callee EXTERN asm_strtol _strtol_callee: pop af pop hl pop de pop bc push af l0_strtol_callee: push ix call asm_strtol pop i...
BITS 32 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS= ;TEST_FILE_META_END lea edi, [esp-0xc] mov word [edi], 0x2 fild word [edi]; st1 = 2 fild word [edi]; st0 = 2 mov edi, 0 ;TEST_BEGIN_RECORDING FSCALE ; st0 = 8 ;TEST_END_RECORDING
; uchar zx_aaddr2py(void *attraddr) SECTION code_clib SECTION code_arch PUBLIC zx_aaddr2py EXTERN asm_zx_aaddr2py defc zx_aaddr2py = asm_zx_aaddr2py ; SDCC bridge for Classic IF __CLASSIC PUBLIC _zx_aaddr2py defc _zx_aaddr2py = zx_aaddr2py ENDIF
/* * Copyright (C) 2018 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...
/* Using multiple return statements in one function */ #include <iostream> using namespace std; const double Pi = 3.14159265; void QueryAndCalculate() { cout << "Enter radius: "; double radius = 0; cin >> radius; cout << "Area: " << Pi * radius * radius << endl; cout << "Do you...
/*! * @file * calculating value of pi by MC trials * * command to run: * mpirung -n 2 ./bin/pi 100000 * * The command line argument is the total number of trials. * * benchmarks at the bottom * */ #include <random> #include <stdexcept> #include <ezl.hpp> #include <ezl/algorithms/predicates.hpp> #include <ez...
#include "controller.h" bool Controller::on_read(address_t addr, byte_t& value) { if (addr == 0x4016) { if (read_state_ == 0xFF) { value = state() & 0x01; } else if (read_state_ < 8) { value = (state() >> read_state_) & 0x01; ++read_st...
; 16 - Programa que muestra números del 10 al 1 con FOR ; López Garay Luis Felipe ; 15211312 ; 9 de Octubre del 2018 .Model small .Stack 64 .Data .Code MAIN PROC mov ax,@Data mov ds,ax mov cx,10 ; for (int i=10; FOR_LOOP: mov ah,02h mov dx,cx add dx,'0' int 21h ; i > 0; i--) dec cx...
; This file is a part of the IncludeOS unikernel - www.includeos.org ; ; Copyright 2015 Oslo and Akershus University College of Applied Sciences ; and Alfred Bratterud ; ; 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 ...
#ifndef _AQUARIUS_CC_EOMEECCSD_HPP_ #define _AQUARIUS_CC_EOMEECCSD_HPP_ #include "util/global.hpp" #include "convergence/davidson.hpp" #include "util/iterative.hpp" #include "operator/2eoperator.hpp" #include "operator/st2eoperator.hpp" #include "operator/excitationoperator.hpp" #include "operator/denominator.hpp" #...
; A044812: Numbers n such that string 9,9 occurs in the base 10 representation of n but not of n+1. ; 99,199,299,399,499,599,699,799,899,999,1099,1199,1299,1399,1499,1599,1699,1799,1899,1999,2099,2199,2299,2399,2499,2599,2699,2799,2899,2999,3099,3199,3299,3399,3499,3599,3699,3799,3899 mul $0,100 add $0,99
INCLUDE "graphics/grafix.inc" SECTION code_graphics PUBLIC respixel EXTERN pixeladdress EXTERN __gfx_coords ; ; $Id: respixl.asm,v 1.7 2016-07-02 09:01:35 dom Exp $ ; ; ****************************************************************** ; ; Reset pixel at (x,y) coordinate ; ; Design & programming by Gunt...
/*========================================================================= * * Copyright NumFOCUS * * 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 * * https://www.apache.o...
Route5GateScript: call EnableAutoTextBoxDrawing ld a, [wRoute5GateCurScript] ld hl, Route5GateScriptPointers jp JumpTable Route5GateScriptPointers: dw Route5GateScript0 dw Route5GateScript1 Route5GateScript_1df43: ld a, D_UP ld [wSimulatedJoypadStatesEnd], a ld a, $1 ld [wSimulatedJoypadStatesIndex], a jp ...
/* Copyright Oliver Kowalke 2009. Copyright Thomas Sailer 2013. 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) */ /***********************************************************...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r9 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0x19d, %rsi lea addresses_normal_ht+0x1381d, %rdi clflush (%rdi) nop and $20956, %r10 mov $91, %rcx rep movsq nop nop nop nop nop xor $24773, %r12 lea addresses_WC_ht+0x1519d, ...
push $0xb pop %eax cltd push %edx {0} mov %esp,%esi push %edx push $0x632d9090 pop %ecx shr $0x10,%ecx push %ecx mov %esp,%ecx push %edx push $0x68 push $0x7361622f push $0x6e69622f mov %esp,%ebx push %edx push %edi push %esi push %ecx push %ebx mov %esp,%ecx int $0x8...
.global s_prepare_buffers s_prepare_buffers: push %r14 push %r15 push %r9 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0xd123, %rax nop nop nop nop nop and $49221, %rdx mov $0x6162636465666768, %rsi movq %rsi, %xmm2 movups %xmm2, (%rax) nop xor %r14, %r14 lea addresses_WC_ht+0x1c8a3, %r15 nop s...
#pragma once #include "keyboard_input.hpp" #include "player_input.hpp" #include <array> #include <memory> namespace green_leaf { class PlayerKeyboardInput : public PlayerInput { public: PlayerKeyboardInput(std::unique_ptr<KeyboardInput> keyboard_input); void update() override; bool a() const overri...
; A043622: Numbers n such that base 7 representation has exactly 7 runs. ; 120100,120101,120102,120103,120104,120105,120113,120114,120116,120117,120118,120119,120120,120121,120122,120124,120125,120126,120127,120128,120129,120130,120132,120133,120134,120135,120136 mov $1,$0 add $1,3 mov $2,$0 trn $2,5 mov $3,1 mov $5,4...
; int wv_stack_shrink_to_fit(wv_stack_t *s) SECTION code_clib SECTION code_adt_wv_stack PUBLIC _wv_stack_shrink_to_fit EXTERN _b_vector_shrink_to_fit defc _wv_stack_shrink_to_fit = _b_vector_shrink_to_fit
SECTION "menu state handler", ROM0 state_menu: jp main
/* written by Pankaj Kumar. country:-INDIA Institute: National Institute of Technology, Uttarakhand */ #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; typedef long long ll ; typedef vector<ll> vl; #define...
// Copyright (c) 2005, Google Inc. // 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 source code must retain the above copyright // notice, this list of conditi...
INCLUDE "mem/_fn.asm" INCLUDE "mem/_routines.asm"
db 0 ; species ID placeholder db 55, 81, 60, 97, 50, 70 ; hp atk def spd sat sdf db NORMAL, NORMAL ; type db 90 ; catch rate db 116 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F50 ; gender ratio db 15 ; step cycles to hatch INCBIN "gfx/pokemon/raticate/front.dimensions" db GROWTH_MEDIUM_F...
; ; jquantf.asm - sample data conversion and quantization (SSE & SSE2) ; ; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB ; Copyright (C) 2016, D. R. Commander. ; ; Based on the x86 SIMD extension for IJG JPEG library ; Copyright (C) 1999-2006, MIYASAKA Masaru. ; For conditions of distribution and use, s...
; FV-1 Testing ; ; Program: Read reg 0x19 ; ; POT0: Test Value ; ; Check read register 0x19 ; skp RUN,main wlds SIN0,0x03f,0x7fff ; SIN0 wlds SIN1,0x07f,0x7fff ; SIN1 wldr RMP0,0x2000,4096 ; RMP0 wldr RMP0,0x4000,4096 ; RMP1 main: clr rdax 0x19,1.0 ; load reg 0x19 wrax DACL,0.0 ; write to DACL cho sof,SIN0,...
; A313614: Coordination sequence Gal.5.129.3 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,5,10,14,20,24,30,34,39,44,49,54,58,64,68,74,78,83,88,93,98,102,108,112,118,122,127,132,137,142,146,152,156...
; A329938: Beatty sequence for sinh x, where csch x + sech x = 1 . ; 1,3,5,7,9,11,13,15,16,18,20,22,24,26,28,30,32,33,35,37,39,41,43,45,47,48,50,52,54,56,58,60,62,64,65,67,69,71,73,75,77,79,80,82,84,86,88,90,92,94,96,97,99,101,103,105,107,109,111,112,114,116,118 add $0,1 mov $1,32 mul $1,$0 div $1,17
; A092966: Number of interior balls in a truncated tetrahedral arrangement. ; 0,10,52,149,324,600,1000,1547,2264,3174,4300,5665,7292,9204,11424,13975,16880,20162,23844,27949,32500,37520,43032,49059,55624,62750,70460,78777,87724,97324,107600,118575,130272,142714,155924,169925,184740,200392,216904,234299,252600,271830,29...