text
stringlengths
1
1.05M
; Console I/O Entry  1998 Tony Tebby ; 2004-03-27 1.01 compatible with new cursor toggle ; ; Entry point for all Bit Image I/O calls: translates the ; supplied parameters to those used by the medium level routines ; and calls them. ; ; Registers: ; Entry Exit ; D0 I/O key error code ; D1 parameter return ; ...
/**************************************************************************** Copyright (C) 2013 Henry van Merode. All rights reserved. Copyright (c) 2015 Chukong Technologies Inc. http://www.cocos2d-x.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and ...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r13 push %r14 push %r8 push %rbx push %rcx push %rdi push %rsi lea addresses_UC_ht+0x5d0, %r14 nop nop nop nop and %r13, %r13 movb $0x61, (%r14) nop nop nop nop add %r8, %r8 lea addresses_D_ht+0x13def, %r10 nop sub $20885, %r8 movups (%r10), %xmm5 v...
; $Id: Win2kWorkaroundsA.asm $ ;; @file ; VirtualBox Windows Guest Shared Folders - Windows 2000 Hacks, Assembly Parts. ; ; ; Copyright (C) 2006-2017 Oracle Corporation ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; ; you can re...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Geoworks 1994 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: pgfsDevSpec.asm AUTHOR: Chris Boyke ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ---- -...
; C O L U M N A ; 0 1 2 3 4 5 6 7 ; 0 01 02 03 04 05 06 07 08 R ; 1 09 10 11 12 13 14 15 16 E ; 2 17 18 19 20 21 22 23 24 N ; 3 25 26 27 28 29 30 31 32 G ; 4 33 34 35 36 37 38 39 40 L ; 5 41 42 43 44 45 46 47 48 O ; 6 49 50 51 52 53 54 55 56 N ; 7 57 58 59 60 61 6...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r14 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_D_ht+0xd797, %rsi nop nop nop nop mfence movl $0x61626364, (%rsi) nop nop nop nop inc %r14 lea addresses_normal_ht+0xc52f, %r10 nop nop nop nop nop cmp $3911, %rcx mov (%r10), %r13w...
; ; f_ansi_scrollup ; ; Scroll screen up one line ; ; We set the window to none-scrolling.. ; ; ; $Id: f_ansi_scrollup.asm,v 1.3 2001/05/02 09:21:51 dom Exp $ ; XLIB ansi_SCROLLUP INCLUDE "#stdio.def" .ansi_SCROLLUP ld a,1 call_oz(os_out) ld a,255 call_oz(os_out) ret
; A091650: Let M = the 4 X 4 matrix [0 1 0 0 / 0 0 1 0 / 0 0 0 1 / -1 -1 3 2]. Set seed vector = [1 1 1 1] = first row, then take M*[1 1 1 1] = [1 1 1 3] then M * [1 1 1 3], etc. Sequence gives terms in rightmost column. ; 1,3,7,21,59,171,491,1415,4073,11729,33771,97241,279993,806209,2321385,6684163,19246279,55417453,1...
; ; ZX81 specific routines ; by Stefano Bodrato, Fall 2013 ; ; int psg_init(); ; ; Set up the PSG ; ; ; $Id: psg_init.asm,v 1.3 2016/06/26 20:32:08 dom Exp $ ; SECTION code_clib PUBLIC psg_init PUBLIC _psg_init psg_init: _psg_init: ld e,@01010101 xor a ; R0: Channel A frequency...
# Trevor Hickey # Code was written in MARS 4.2 # Program Description: # This program will ask for 3 integers from the user. # Once it has validated all of the user data, it will return the # number with the largest value. # Algorithm # 1. Prompt User # 2. Get User Value # 3. While (userInput is invalid){ # Get...
EXTERN pixeladdress INCLUDE "graphics/grafix.inc" ; Generic code to handle the pixel commands ; Define NEEDxxx before including ld a,l cp 208 ret nc push bc ;Save callers value call pixeladdress ;hl = address, a = pixel number ld b,a ld a,1 jr z, rotated ; pixel is at bit 0... .plot_position rl...
; A168856: Number of reduced words of length n in Coxeter group on 35 generators S_i with relations (S_i)^2 = (S_i S_j)^20 = I. ; 1,35,1190,40460,1375640,46771760,1590239840,54068154560,1838317255040,62502786671360,2125094746826240,72253221392092160,2456609527331133440,83524723929258536960,2839840613594790256640,965545...
; A008825: Expansion of (1+2*x^5+x^9)/((1-x)^2*(1-x^9)). ; 1,2,3,4,5,8,11,14,17,22,27,32,37,42,49,56,63,70,79,88,97,106,115,126,137,148,159,172,185,198,211,224,239,254,269,284,301,318,335,352,369,388,407,426,445,466,487,508,529,550,573,596,619,642,667,692,717,742,767,794,821,848,875,904,933,962,991,1020,1051,1082,1113,...
; ; LOBSCH (Last Object Search) subrouting. ; Finds, and saves in LOBJAD, the address ; of the last object in a file; also ; counts, and returns in Y-reg, the number ; of objects in the file. File to search ; is EGO file if called with Y=0; is ; file at LOCAD if called with Y=1. ; LOBSCH:...
; A185906: Weight array of A000007 (which has only one nonzero term and whose second accumulation array is the multiplication table for the positive integers), by antidiagonals. ; 1,-1,-1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,...
BITS 32 section .data section .text global _start _start: push ebp mov ebp, esp xor eax, eax mov byte al, 0x08 sub esp, eax xor eax, eax mov byte [ebp-0x08], 0x63 mov byte [ebp-0x07], 0x6d mov byte [ebp-0x06], 0x64 mov byte [ebp-0x05], 0x2e mov byte [ebp-0x04], 0x65 mov byte [ebp-0x03], 0x78 mov byte [ebp-0x02], 0x...
; A064322: Triply triangular numbers. ; 0,1,21,231,1540,7260,26796,82621,222111,536130,1186570,2445366,4747821,8763391,15487395,26357430,43398586,69401871,108140571,164629585,245433090,359026206,516216646,730632651,1019283825,1403201800,1908167976,2565535896,3413156131,4496411865,5869373685,7596082396,9751968996,124254...
extern m7_ippsGFpECGetInfo_GF:function extern n8_ippsGFpECGetInfo_GF:function extern y8_ippsGFpECGetInfo_GF:function extern e9_ippsGFpECGetInfo_GF:function extern l9_ippsGFpECGetInfo_GF:function extern n0_ippsGFpECGetInfo_GF:function extern k0_ippsGFpECGetInfo_GF:function extern ippcpJumpIndexForMergedLibs extern ippcp...
/* Copyright (c) 2016 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 by applicable law or agr...
//===---- CGBuiltin.cpp - Emit LLVM Code for builtins ---------------------===// // // 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 // //===---------------------------...
; A317331: Indices m for which A058304(m) = 1. ; 4,8,11,16,20,23,27,32,36,40,43,47,52,55,59,64,68,72,75,80,84,87,91,95,100,104,107,111,116,119,123,128,132,136,139,144,148,151,155,160,164,168,171,175,180,183,187,191,196,200,203,208,212,215,219,223,228,232,235,239,244,247,251,256,260,264,267,272,276,279,283,288,292,296,2...
############################################################################### # Copyright 2018 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...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r13 push %r14 push %r15 push %r9 push %rdi lea addresses_WC_ht+0x1e31d, %rdi nop nop nop add $54954, %r9 vmovups (%rdi), %ymm3 vextracti128 $0, %ymm3, %xmm3 vpextrq $1, %xmm3, %r12 cmp $36469, %r15 lea addresses_WC_ht+0x11eeb, %r11 nop nop nop nop l...
; CALLER linkage for function pointers XLIB write LIB write_callee XREF ASMDISP_WRITE_CALLEE .write pop af pop bc pop de pop hl push hl push de push bc push af jp write_callee + ASMDISP_WRITE_CALLEE
; A079756: Operation count to create all permutations of n distinct elements using the "streamlined" version of Algorithm L (lexicographic permutation generation) from Knuth's The Art of Computer Programming, Vol. 4, chapter 7.2.1.2. Sequence gives number of interchanges in reversal step. ; Submitted by Christian Kraus...
/* * gObject.cpp * * Created on: May 16, 2020 * Author: noyan */ #include "gObject.h" #include <unistd.h> const int gObject::LOGLEVEL_SILENT = 0; const int gObject::LOGLEVEL_INFO = 1; const int gObject::LOGLEVEL_DEBUG = 2; const int gObject::LOGLEVEL_WARNING = 3; const int gObject::LOGLEVEL_ERROR = 4; gO...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2018 The PIVX developers // Copyright (c) 2018 The SKW Core developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-...
INCLUDE "graphics/grafix.inc" SECTION code_clib PUBLIC xorborder PUBLIC _xorborder EXTERN w_pixeladdress ; EXTERN l_cmp ; ; $Id: xorborder.asm,v 1.6 2016/10/13 06:32:03 stefano Exp $ ; ; *********************************************************************** ; ; drawbox Timex hires version ; .xorborder ._xorbord...
; A061774: a(n) = (n-1)!, as n runs through the prime powers >= 1. ; Submitted by Christian Krause ; 1,1,2,6,24,720,5040,40320,3628800,479001600,1307674368000,20922789888000,6402373705728000,1124000727777607680000,620448401733239439360000,403291461126605635584000000,304888344611713860501504000000,2652528598121910586363...
// // Created by tao on 19-1-17. // #include "common_includes.h" #include <iostream> #include <libgo.h> #include <stdio.h> #include <thread> void foo() { printf("function pointer\n"); } struct A { void fA() { printf("std::bind\n"); } void fB() { printf("std::function\n"); } }; int lib_...
// This is an open source non-commercial project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com #include "GameOverDialog.h" #include "../Constants.h" #include "../FontManager.h" #include "NAS2D/Utility.h" #include "NAS2D/Renderer/Renderer.h" using name...
; the basic name defintions for soundfile et al v. 1.00 (c) 2012 W. Lenerz section sound include 'dev8_mac_proc' xdef snd_nam section procs snd_nam lea procs,a1 move.w $110,a2 jmp (a2) procs proc_stt proc_def SOUNDFILE proc_def SOUNDFILE2 proc_def SOUNDFILE3 proc_def SETRATE10 proc_def SETRATE20 pro...
dnl AMD64 mpn_mul_2 optimised for Intel Sandy Bridge. dnl Contributed to the GNU project by Torbjörn Granlund. dnl Copyright 2003-2005, 2007, 2008, 2011-2013 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 mo...
;------------------------------------------------------------------------------ ; ; Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR> ; SPDX-License-Identifier: BSD-2-Clause-Patent ; ; Module Name: ; ; InterlockedIncrement.Asm ; ; Abstract: ; ; InterlockedIncrement function ; ; Not...
segment .data fmt_out: dq "The sum is: %lld", 10, 0 fmt: dq "%s", 10, 0 fmt_in: dq "%lld", 0 a: dq 0 b: dq 0 segment .text global main extern printf extern scanf print_function: push RBP mov RBP, RSP mov RAX, [RBP + 16] mov RBX, [RBP + 24] add RAX, RBX mov [a], RAX mov RAX, 0 mov RBX, 0 mov RDI, fmt_out m...
#include <vector> #include <opengm/functions/explicit_function.hxx> #include <opengm/unittests/test.hxx> #include <opengm/graphicalmodel/graphicalmodel.hxx> #include <opengm/operations/adder.hxx> #include <opengm/operations/minimizer.hxx> #include <opengm/inference/icm.hxx> #include <opengm/utilities/metaprogramming.h...
; A135172: a(n) = 3^prime(n) + 2^prime(n). ; 13,35,275,2315,179195,1602515,129271235,1162785755,94151567435,68630914235795,617675543767595,450284043329950835,36472998576194041955,328256976190630099835,26588814499694991643115,19383245676687219151537715,14130386092315195257068234555,127173474827954453552096993555,9270946...
//pacman's draw glyph // // if opentimer == 1 // load open timer // open timer in 65511 //storing r1 in LUI 255 r1 ORI 231 r1 LOAD r1 r1 //check to see if is 1 CMPI 1 r1 //check condition code BNE AFTER_MOUTH_TOGGLE //if timer is 1, invert the mouth condition //get the value of the mouth condition //r2 has the mo...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r8 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x1ee98, %rsi lea addresses_normal_ht+0xcd9c, %rdi nop inc %r12 mov $27, %rcx rep movsl sub %r9, %r9 lea addresses_UC_ht+0xeb69, %rsi lea addresses_D_ht+0xd929, %rdi add $41236,...
;Program to accept a two-digit number and print it .model small .stack 100h .data msg db 'Enter the two digit number : $' .code main proc mov ax,@data mov ds,ax mov dx,offset msg mov ah,9 int 21h mov ah,1 int 21h mov bl,al mov ah,1 int 21h mov cl,al ...
; A089821: Number of subsets of {1,.., n} containing exactly one prime. ; 0,2,4,8,12,24,32,64,128,256,320,640,768,1536,3072,6144,7168,14336,16384,32768,65536,131072,147456,294912,589824,1179648,2359296,4718592,5242880,10485760,11534336,23068672,46137344,92274688,184549376,369098752,402653184 mov $4,$0 add $4,1 mov $0,...
; A314706: Coordination sequence Gal.6.130.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,5,9,13,18,22,26,30,34,39,43,47,52,57,61,65,70,74,78,82,86,91,95,99,104,109,113,117,122,126,130,134,138,143,147,151,156,161,165,169,174,178...
;16 ALPHA END TO END NON-CONTINUOUS CRAWLING DISPLAY ;10/08/2007 ;CHECKED AND TESTED ON AT89C51 ;PROGRAM RUN--------SUCCESS ;CHANGE CONTROL : 04-09-2010 LOGIC CHANGED AGAINST USE OF DPTR ; ORG 0000H ; P1.1-RS SJMP 0030H ; P1.2-R/W ORG 0030H ; P1.3-EN ; PORT2 FOR DATA OUT START: CL...
; A027608: Expansion of 1/((1-x)*(1-2x)^4). ; 1,9,49,209,769,2561,7937,23297,65537,178177,471041,1216513,3080193,7667713,18808833,45547521,109051905,258473985,607125505,1414529025,3271557121,7516192769,17163091969,38973472769,88046829569,197971148801,443186937857,988110913537,2194728288257,4857608011777,10715943403521,...
%include "io.inc" section .data %define ARRAY_LEN 7 input dd 122, 184, 199, 242, 263, 845, 911 output times ARRAY_LEN dd 0 section .text global CMAIN CMAIN: ; TODO push the elements of the array on the stack ; TODO retrieve the elements (pop) from the stack into the output array mov ecx, ARRAY_L...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" // Including type: UnityEngine.MonoBehaviour #include ...
.text "Hello World" ldca $a .text pushi $a ;; push the address on the stack, so that print_string can use it call :print_string ;; call the print_string subroutine jmp :exit ; exit out of the program printi #11 ; shouldn't get invoked, because we are jumping to the :exit label ;; ;...
; A322029: Denominator of least value of the squared diameters of the enclosing circles of all strictly convex lattice n-gons with minimal area given by A070911. Numerators are A321693. ; 1,1,9,1,1,1,49,1,1,1,1,1,1,1,169,1,1,1,1,1,1,1,1,1 mov $3,2 mov $7,$0 lpb $3,1 mov $0,$7 sub $3,1 add $0,$3 trn $0,1 add ...
/* 卡尔曼滤波器算法测试 */ #include "KalmanFilterTest.h" double frand() { return 2 * ((rand() / (double)RAND_MAX) - 0.5);//随机噪声 } void KalmanFiterTest() { float x_last = 0; float p_last = 0.02; float Q = 0.018; float R = 0.542; float kg; float x_mid; float x_now; float p_m...
wordsize 8 ;this is the code used to make rom3 used in simu3_tb. This should be compiled with reflet-masm. ;This program run a debug instruction wil level 2 each time a bit in the GPIO is flipped ;The base address for the GPIO in 0x80 and the address for the exti is 0x88 label start ;configuring the GPIO set+ 132 ;add...
// Copyright (c) Facebook, Inc. and its affiliates. // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. // Construction code adapted from Bullet3/examples/ #include "BulletArticulatedObject.h" #include "BulletDynamics/Featherstone/btMultiBodyLi...
again: movi r4 17 movi r1 twice jalr r31 r1 movi r1 34 beq r1 r2 done beq r0 r0 again done: halt twice: add r2 r4 r4 jalr r0 r31
; A014675: The infinite Fibonacci word (start with 1, apply 1->2, 2->21, take limit). ; 2,1,2,2,1,2,1,2,2,1,2,2,1,2,1,2,2,1,2,1,2,2,1,2,2,1,2,1,2,2,1,2,2,1,2,1,2,2,1,2,1,2,2,1,2,2,1,2,1,2,2,1,2,1,2,2,1,2,2,1,2,1,2,2,1,2,2,1,2,1,2,2,1,2,1,2,2,1,2,2,1,2,1,2,2,1,2,2,1,2,1,2,2,1,2,1,2,2,1,2,2,1,2,1,2,2,1,2,1,2,2,1,2,2,1,2,...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Copyright(c) 2011-2016 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...
//%2005//////////////////////////////////////////////////////////////////////// // // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; // IBM Corp.; EMC Cor...
; A016892: (5n+3)^8. ; 6561,16777216,815730721,11019960576,78310985281,377801998336,1406408618241,4347792138496,11688200277601,28179280429056,62259690411361,128063081718016,248155780267521,457163239653376 mul $0,5 add $0,3 pow $0,8
; A086112: Denominator of the mean deviation of a discrete uniform distribution on n elements. ; 1,2,3,1,5,2,7,1,9,2,11,1,13,2,15,1,17,2,19,1,21,2,23,1,25,2,27,1,29,2,31,1,33,2,35,1,37,2,39,1,41,2,43,1,45,2,47,1,49,2,51,1,53,2,55,1,57,2,59,1,61,2,63,1,65,2,67,1,69,2,71,1,73,2,75,1,77,2,79,1,81,2,83 mov $1,$0 lpb $1 ...
; A017746: Binomial coefficients C(n,82). ; 1,83,3486,98770,2123555,36949857,541931236,6890268572,77515521435,783768050065,7210666060598,60962903966874,477542747740513,3489735464257595,23929614612052080,154744841157936784,947812152092362802,5519611944537877494,30664510802988208300,163006083742200475700,8313310270852224...
; A110213: a(n+3) = 6*a(n) - 5*a(n+2), a(0) = 1, a(1) = -7, a(2) = 35. ; Submitted by Jon Maiga ; 1,-7,35,-169,803,-3805,18011,-85237,403355,-1908709,9032123,-42740485,202250171,-957058117,4528847675,-21430737349,101411338043,-479883604165,2270833596731,-10745699955397,50849198151995,-240620989179589,1138630746165563,-...
BITS 32 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS=FLAG_OF|FLAG_SF|FLAG_ZF|FLAG_AF|FLAG_PF|FLAG_CF ;TEST_FILE_META_END ; allocate 16 byte aligned stack space for the packed values lea ecx, [esp-17] and ecx, 0xfffffff0 ; load 128 bit value into xmm0 mov DWORD [ecx], 0xAABBCCDD mov DWORD [ecx+4], 0xF...
; ; Point pixel at (x,y) coordinate. SECTION code_clib PUBLIC w_pointxy_MODE4 defc NEEDpoint = 1 .w_pointxy_MODE4 INCLUDE "pixel_MODE4.inc"
; put data in RAM MOV 30H, #'A' MOV 31H, #'B' MOV 32H, #'C' MOV 33H, #0 ; end of data marker ; initialise the display ; see instruction set for details CLR P1.3 ; clear RS - indicates that instructions are being sent to the module ; function set CLR P1.7 ; | CLR P1.6 ; | SETB P1.5 ; | ...
rcl al, 1 rcl ah, 1 rcl bl, 1 rcl bh, 1 rcl cl, 1 rcl ch, 1 rcl dl, 1 rcl dh, 1 rcl byte [bx], 1 rcl byte [bx+si], 1h rcl byte [bx+si+12h], 1b rcl byte [bx+si+4142h], 1 rcl al, cl rcl ah, cl rcl bl, cl rcl bh, cl rcl cl, cl rcl ch, cl rcl dl, cl rcl dh, cl rcl byte [bx], cl rcl byte [bx+di], cl rcl byte [bx+di+12h], c...
/* * Copyright 2021 Hewlett Packard Enterprise Development LP * Other additional copyright holders may be indicated within. * * The entirety of this work is 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 c...
#include <vector> #include "permutations.hpp" Permutations::Permutations(int n) : len(n) { // create a n-dimensional vector : [1, 2, 3, ..., n] std::vector<int> toPermute = {n}; for(int i=1; i<=len; i++) { toPermute[i] = i; }; // apply the permutation algorithm // the complexity is O(n*...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r9 push %rax push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x3f4f, %rax nop nop nop sub %r12, %r12 movups (%rax), %xmm1 vpextrq $1, %xmm1, %r9 nop dec %rbp lea addresses_WC_ht+0xcacf, %rsi nop nop nop xor $318, %rdx mov (%rsi), %rcx no...
;; ;; Copyright (c) 2019, Intel Corporation ;; ;; Redistribution and use in source and binary forms, with or without ;; modification, are permitted provided that the following conditions are met: ;; ;; * Redistributions of source code must retain the above copyright notice, ;; this list of conditions and the ...
; A061313: Minimal number of steps to get from 1 to n by (a) subtracting 1 or (b) multiplying by 2. ; 0,1,3,2,5,4,4,3,7,6,6,5,6,5,5,4,9,8,8,7,8,7,7,6,8,7,7,6,7,6,6,5,11,10,10,9,10,9,9,8,10,9,9,8,9,8,8,7,10,9,9,8,9,8,8,7,9,8,8,7,8,7,7,6,13,12,12,11,12,11,11,10,12,11,11,10,11,10,10,9,12,11,11,10,11,10,10,9,11,10,10,9,10,...
// __BEGIN_LICENSE__ // Copyright (C) 2006-2011 United States Government as represented by // the Administrator of the National Aeronautics and Space Administration. // All Rights Reserved. // __END_LICENSE__ #include <vw/Plate/detail/Index.h> #include <vw/Plate/detail/RemoteIndex.h> #include <vw/Plate/detail/LocalIn...
; A210062: Number of digits in 7^n. ; Submitted by Christian Krause ; 1,1,2,3,4,5,6,6,7,8,9,10,11,11,12,13,14,15,16,17,17,18,19,20,21,22,22,23,24,25,26,27,28,28,29,30,31,32,33,33,34,35,36,37,38,39,39,40,41,42,43,44,44,45,46,47,48,49,50,50,51,52,53,54,55,55,56,57,58,59,60,61,61,62,63,64,65,66,66,67,68,69,70,71,71,72,73,...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" #include "extern/beatsaber-hook/shared/utils/byref.hpp" // Including type: HMUI.Container...
; WAP to set (1) in the rightmost 4 bits of BX. .MODEL TINY .CODE .STARTUP MOV BX, 0H OR BX, 0001H .EXIT END
;----------------------------------------------------------------------------- ; Paul Wasson - 2021 ;----------------------------------------------------------------------------- ; Zero page usage sourcePtr0 := $5A sourcePtr1 := $5B destPtr0 := $5C destPtr1 := $5D stackPtr0 := $5E stackP...
; A054103: T(n,n-3), array T as in A054098. ; Submitted by Christian Krause ; 1,14,30,148,744,4610,32870,266972,2431608,24554194,272289630,3289836260,43017800312,605289111698,9119314568454,146474344313980,2498617856687400 mov $1,9 mov $3,$0 mov $4,4 lpb $3 add $1,$4 mul $2,-1 add $2,$1 div $1,2 add $4,2 mu...
#include <axxegro/event/EventSource.hpp> al::UserEventSource& al::GetUserEventSource(const ALLEGRO_EVENT& ev) { if(ev.type < 1024) { std::runtime_error("GetUserEventSource called on non-user event"); } return *(UserEventSource*)al_get_event_source_data(ev.any.source); }
; A067324: Third column of triangle A067323. ; Submitted by Jon Maiga ; 2,7,23,76,255,869,3003,10504,37128,132430,476102,1723528,6277505,22988385,84592275,312636240,1159979700,4319218530,16134883410,60452176200,227110782990,855361970034,3228982640478 mov $3,2 mov $5,$0 lpb $3 mov $0,$5 sub $3,1 add $0,$3 mov $...
; --------------------------------------------------------------------------- ; Sprite mappings - rings ; --------------------------------------------------------------------------- dc.w byte_9FA2-Map_obj25, byte_9FA8-Map_obj25 dc.w byte_9FAE-Map_obj25, byte_9FB4-Map_obj25 dc.w byte_9FBA-Map_obj25, byte_9FC0-Map_...
#include "uritests.h" #include "../guiutil.h" #include "../walletmodel.h" #include <QUrl> void URITests::uriTests() { SendCoinsRecipient rv; QUrl uri; uri.setUrl(QString("KazukiCoin:LQDPC5rbjDB72fGFVHu4enYhxGAZuRiFh9?req-dontexist=")); QVERIFY(!GUIUtil::parseBitcoinURI(uri, &rv)); uri.setUrl(QStr...
;***************************************************************************** ;* MMX/SSE2/AVX-optimized 10-bit H.264 intra prediction code ;***************************************************************************** ;* Copyright (C) 2005-2011 x264 project ;* ;* Authors: Daniel Kang <daniel.d.kang@gmail.com> ;* ;* Th...
; A049086: Number of tilings of 4 X 3n rectangle by 1 X 3 rectangles. Rotations and reflections are considered distinct tilings. ; 1,3,13,57,249,1087,4745,20713,90417,394691,1722917,7520929,32830585,143313055,625594449,2730863665,11920848033,52037243619,227154537661,991581805481,4328482658041,18894822411423,82480245888...
; A010869: Constant sequence: a(n) = 30. ; 30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30 mov $1,30
; A177071: (7n + 3)(7n + 4). ; 12,110,306,600,992,1482,2070,2756,3540,4422,5402,6480,7656,8930,10302,11772,13340,15006,16770,18632,20592,22650,24806,27060,29412,31862,34410,37056,39800,42642,45582,48620,51756,54990,58322,61752,65280,68906,72630,76452,80372,84390,88506,92720,97032,101442,105950,110556,115260,120062,1249...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r15 push %r8 push %rax push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x10217, %r8 nop nop nop nop cmp $10896, %rdx movl $0x61626364, (%r8) nop cmp %rbp, %rbp lea addresses_WC_ht+0x15f3, %r8 cmp %r15, %r15 mov $0x6162636465666768, %rax m...
db 0 ; species ID placeholder db 40, 65, 95, 35, 60, 45 ; hp atk def spd sat sdf db POISON, POISON ; type db 190 ; catch rate db 114 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F0 ; gender ratio db 100 ; unknown 1 db 20 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/koffing/...
; void *heap_realloc(void *heap, void *p, size_t size) INCLUDE "clib_cfg.asm" SECTION code_alloc_malloc ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; IF __CLIB_OPT_MULTITHREAD & $01 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PUBLIC _heap_realloc EXTERN asm_heap_realloc _heap_realloc: pop af pop de pop hl pop bc push ...
#include <iostream> #include <stdio.h> using namespace std; int main() { freopen("input.txt", "r", stdin); int n; cin>>n; int *mas = new int[n]; for(int i = 0; i < n; ++i) cin>>mas[i]; int c, t; cin>>c; for(int i = 0; i < c; ++i) { cin>>t; --mas[t-1]; } for(int i = 0; i < n; ++i) { if(mas[i]>=0) co...
// Tests (non-)optimization of constant pointers to pointers // The two examples of &screen is not detected as identical leading to ASM that could be optimized more // Commodore 64 PRG executable file .file [name="ptrptr-optimize-2.prg", type="prg", segments="Program"] .segmentdef Program [segments="Basic, Code, Data...
BITS 32 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS= ;TEST_FILE_META_END ; SETL mov ecx, 0x111 mov ebx, 0x010 cmp ecx, ebx ;TEST_BEGIN_RECORDING setl al ;TEST_END_RECORDING
.data msg1:.asciiz "Dwse to plithos: " msg2:.asciiz "Dwse ton aritmhmo: " .align 2 pin1: .space 100 .text .globl main main: addi $v0,$0,4 la $a0,msg1 syscall addi $v0,$0,5 syscall add $t0,$v0,0 addi $v0,$0,4 la $a0,msg2 syscall addi $v0,$0,5 syscall add $s2,$v0,0 addi $s2,$s2,1 addi $t4,$0,0 loop1: addi $v0,$0,5 sysca...
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
/** * Copyright (C) 2022-present MongoDB, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the Server Side Public License, version 1, * as published by MongoDB, Inc. * * This program is distributed in the hope that it will be useful, * but W...
dnl Intel P5 mpn_mod_1 -- mpn by limb remainder. dnl Copyright 1999, 2000, 2002 Free Software Foundation, Inc. dnl 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 dnl modify it under the terms of the GNU Lesser General Public License as dnl ...
/* Copyright 2020-2021 Daniel S. Buckstein 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 t...
EXTERN mapViewProc1ReturnAddress : QWORD EXTERN mapViewProc2ReturnAddress : QWORD EXTERN mapViewProc3ReturnAddress : QWORD EXTERN mapViewProc3CallAddress : QWORD EXTERN mapViewProc3CallAddress : QWORD ESCAPE_SEQ_1 = 10h ESCAPE_SEQ_2 = 11h ESCAPE_SEQ_3 = 12h ESCAPE_SEQ_4 = 13h LOW_SHIFT = 0Eh HIGH_SHIFT = 9h SHIFT_...
;******************************************************************************* ; PUBLIC FUNCTIONS ;******************************************************************************* ; Functions declared in this file PUBLIC Inc8 ; U8 Inc8(U8 *data); PUBLIC Dec8 ...
// Copyright (c) 2015-2017 The Bitcoin Core developers // Copyright (c) 2017-2018 The Toschain Core developers // Copyright (c) 2017 The Zcash developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <torcontrol.h> #i...
; INTEGER SQUARE ROOT ; ; file: intsqrt.asm ; ; Author: Matthew Sprigg ; ; Description: Calculates the integer square root ; of a number rounded down. This is useful for ; certain algorithms where an integer does not ; exceed the square root of a certain number ; because it takes far fewer bytes than other ; square ro...
;***************************************************************************** ;* x86util.asm: x86 utility macros ;***************************************************************************** ;* Copyright (C) 2003-2013 x264 project ;* Copyright (C) 2013-2017 MulticoreWare, Inc ;* ;* Authors: Holger Lubitz <holger@lubi...
#pragma once #include <cstdint> #include <type_traits> #include <utility> namespace higanbana { template<typename T, size_t N> class FixedSizeDeque { size_t m_count = 0; size_t m_head = 0; T m_arr[N] = {}; size_t index_back() { //assert(m_count > 0); return (m_head + m_count-1) % N; } size_t index...