text stringlengths 1 1.05M |
|---|
; The test vectors themselves.
;
; Copyright (C) 2012-2022 Patrik Rak (patrik@raxoft.cz)
;
; This source code is released under the MIT license, see included license.txt.
selftests equ 0 ; Set to 1 to include detailed self tests.
failcheck equ 0 ; Run the test only after some prior fai... |
; A099857: Expansion of (1+3x+x^2)/(1-3x+x^2).
; 1,6,18,48,126,330,864,2262,5922,15504,40590,106266,278208,728358,1906866,4992240,13069854,34217322,89582112,234529014,614004930,1607485776,4208452398,11017871418,28845161856,75517614150,197707680594,517605427632,1355108602302,3547720379274,9288052535520,24316437227286,63... |
// @formatter:off
//
// Balau core C++ library
//
// Copyright (C) 2008 Bora Software (contact@borasoftware.com)
//
// 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.apach... |
//$Id$
//------------------------------------------------------------------------------
// GmatAppData
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool
//
// Copyright (c) 2002 - 2017 United States Government as represen... |
; code_driver to ensure we don't page ourselves out
SECTION code_driver
PUBLIC generic_console_vpeek
EXTERN __spc1000_mode
EXTERN vpeek_MODE1
EXTERN vpeek_MODE2
EXTERN generic_console_calc_xypos
EXTERN tms9918_console_vpeek
;Entry: c = x,
; b = y
; e = rawmode
;Exit: nc = succe... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r15
push %r9
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x93f8, %r15
nop
and $54502, %rbx
mov $0x6162636465666768, %rbp
movq %rbp, (%r15)
nop
nop
dec %r13
lea addresses_WC_ht+0xc782, %rax
nop
nop
nop
nop
add $152... |
;
;
; ZX Maths Routines
;
; 21/03/03 - Stefano Bodrato
;
; $Id: cosh.asm,v 1.4 2015/08/10 08:52:12 stefano Exp $
;
;
;double cosh(double)
;Number in FA..
; e = exp(x) ;
; return 0.5*(e+1.0/e) ;
;
IF FORzx
INCLUDE "zxfp.def"
ENDIF
IF FORzx81
INCLUDE "81fp.def"
ENDIF
IF FORlambda
INCLUDE "lam... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
// Load
lea addresses_RW+0x5b09, %rdi
add %r10, %r10
mov (%rdi), %r12d
nop
nop
nop
inc %r12
// Store
lea addresses_WC+0x6641, %rdi
nop
add %r10, %r10
movb $0... |
; A278670: Number of n X 2 0..1 arrays with rows in nondecreasing lexicographic order and columns in nonincreasing lexicographic order, but with exactly one mistake.
; Submitted by Jamie Morken(s2.)
; 1,8,33,99,245,532,1050,1926,3333,5500,8723,13377,19929,28952,41140,57324,78489,105792,140581,184415,239085,306636,38939... |
; A265667: Permutation of nonnegative integers: a(n) = n + floor(n/3)*(-1)^(n mod 3).
; 0,1,2,4,3,6,8,5,10,12,7,14,16,9,18,20,11,22,24,13,26,28,15,30,32,17,34,36,19,38,40,21,42,44,23,46,48,25,50,52,27,54,56,29,58,60,31,62,64,33,66,68,35,70,72,37,74,76,39,78,80,41,82,84,43,86,88,45,90,92,47,94,96,49,98,100,51,102,104,53... |
// Copyright 2017 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... |
; Test case:
xor a
ld (undefined_symbol), a
|
; A165846: Totally multiplicative sequence with a(p) = 25.
; 1,25,25,625,25,625,25,15625,625,625,25,15625,25,625,625,390625,25,15625,25,15625,625,625,25,390625,625,625,15625,15625,25,15625,25,9765625,625,625,625,390625,25,625,625,390625,25,15625,25,15625,15625,625,25,9765625,625,15625,625,15625,25,390625,625,390625,625... |
; A329115: a(n) = floor(A026549(n)/5).
; 0,0,1,2,7,14,43,86,259,518,1555,3110,9331,18662,55987,111974,335923,671846,2015539,4031078,12093235,24186470,72559411,145118822,435356467,870712934,2612138803,5224277606,15672832819,31345665638,94036996915,188073993830
lpb $0,1
sub $0,1
mul $1,$3
mov $4,$2
cmp $2,2
ad... |
/**
* Fledge south service API
*
* Copyright (c) 2021 Dianomic Systems
*
* Author: Mark Riddoch, Massimiliano Pinto
*/
#include <south_api.h>
#include <south_service.h>
#include <rapidjson/document.h>
using namespace std;
using namespace rapidjson;
using HttpServer = SimpleWeb::Server<SimpleWeb::HTTP>;
static ... |
; A134560: A051731 * A127775.
; Submitted by Christian Krause
; 1,1,3,1,0,5,1,3,0,7,1,0,0,0,9,1,3,5,0,0,11,1,0,0,0,0,0,13,1,3,0,7,0,0,0,15,1,0,5,0,0,0,0,0,17,1,3,0,0,9,0,0,0,0,19
seq $0,143425 ; Triangle read by rows A051731 * A130123, 1<=k<=n.
seq $0,197354 ; a(n) = Sum_{k>=0} A030308(n,k)*(2k+1).
|
; A130869: Partial sums of A130752.
; 2,7,16,32,63,126,254,511,1024,2048,4095,8190,16382,32767,65536,131072,262143,524286,1048574,2097151,4194304,8388608,16777215,33554430,67108862,134217727,268435456,536870912,1073741823,2147483646
add $0,1
seq $0,130750 ; Binomial transform of A010882.
sub $0,1
|
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2019 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... |
; A108594: Numbers n such that 10*n + 101 is prime.
; 0,3,5,8,9,11,14,15,17,18,21,23,30,32,33,36,39,42,44,47,50,53,54,56,59,60,65,66,71,72,78,81,84,87,89,92,93,95,96,99,105,107,108,110,113,119,120,122,126,128,135,137,138,141,143,147,150,152,162,164,170,171,173
add $0,5
seq $0,126785 ; Numbers k such that 10*k + 11 is ... |
SECTION code_fp_math32
PUBLIC floor_fastcall
EXTERN m32_floor_fastcall
defc floor_fastcall = m32_floor_fastcall
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _floor_fastcall
defc _floor_fastcall = m32_floor_fastcall
ENDIF
|
// 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 "chrome/browser/ui/views/bookmarks/bookmark_context_menu_controller_views_win.h"
#include "base/win/metro.h"
#include "chrome/app/chrome_com... |
; A257448: a(n) = 13*(2^n - 1) - 3*n^2 - 9*n.
; 1,9,37,111,283,657,1441,3051,6319,12909,26149,52695,105859,212265,425161,851043,1702903,3406725,6814477,13630095,27261451,54524289,109050097,218101851,436205503,872412957,1744828021,3489658311,6979319059,13958640729
mov $1,1
mov $2,6
mov $4,3
lpb $0
sub $0,1
mul $1,2... |
object_const_def ; object_event constants
const ROUTE33_POKEFAN_M
const ROUTE33_LASS
const ROUTE33_FRUIT_TREE
Route33_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
Route33LassScript:
jumptextfaceplayer Route33LassText
TrainerHikerAnthony:
trainer HIKER, ANTHONY2, EVENT_BEAT_HIKER_ANTHONY, HikerAnthony2S... |
; A159030: Numerator of Hermite(n, 1/9).
; Submitted by Christian Krause
; 1,2,-158,-964,74860,774392,-59087816,-870884656,65263814032,1259194142240,-92636252574176,-2225167015577152,160627468056027328,4646979614394038144,-328987488497205476480,-11197324742440089463552,777044947563329128919296,3057755562753137014736537... |
/**
* ScriptDev3 is an extension for mangos providing enhanced features for
* area triggers, creatures, game objects, instances, items, and spells beyond
* the default database scripting in mangos.
*
* Copyright (C) 2006-2013 ScriptDev2 <http://www.scriptdev2.com/>
* Copyright (C) 2014-2017 MaNGOS <https://get... |
;This is free and unencumbered software released into the public domain.
;Anyone is free to copy, modify, publish, use, compile, sell, or
;distribute this software, either in source code form or as a compiled
;binary, for any purpose, commercial or non-commercial, and by any
;means.
;In jurisdictions that recognize c... |
org 0
; Preset values
%define BYTES_PER_SECTOR 512
%define VERSION_STRING "0.2.1"
;; Memory Map:
;; 0x0000:7C00 - 0x0000:0x7C00 + 512 : Bootloader
;; 0x2000:0x0 - 0x2000:0xFFFF : Kernel Space
;; 0x3000:0x0 - 0x3000:0xFFFF : CHIP4504 Program Space
;; 0x4000:0x0 - 0x4000:0xFFFF : Kernel Stack Space
[SECTION .text]
;;;;;... |
; A268295: Terms at square positions in Pascal's triangle when in flattened form.
; 1,1,2,1,5,15,1,126,10,220,715,15,12870,17,27132,15504,1540,1144066,1,5311735,80730,475020,54627300,32,1037158320,46376,254186856,854992152,82251,131282408400,820,151532656696,2481256778,260932815,6973199770790,1,67327446062800,636763050... |
global GetCpuVersion ; void GetCpuVersion(CpuVersion* pResult)
global GetTscRatio ; void GetTscRatio(uint32_t* pResult)
global GetTsc ; uint64_t GetTsc(void)
GetCpuVersion:
push rax
push rbx
push rcx
push rdx
push rdi
mov eax, 0x1
cpuid
pop rdi
mov dword [rdi],... |
; A327470: Maximum valency of the central line in a certain smooth 2D-polarized K3-surface in P^{n+1}.
; 12,9,8,7,6,5,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
mov $1,6
trn $1,$0
mov $2,2
sub $2,$0
trn $2,... |
// Copyright (c), Firelight Technologies Pty, Ltd. 2012-2018.
#include "AssetTypeActions_FMODEvent.h"
#include "AssetTypeActions_Base.h"
#include "FMODEventEditor.h"
#include "FMODEvent.h"
#include "FMODUtils.h"
#include "FMODStudioModule.h"
#include "FMODStudioEditorModule.h"
#include "UnrealEd/Public/Editor.h"
#incl... |
//===================================================================================================================
//
// DebugParse.cc -- Parse the buffer for a command, and return its token
//
// Copyright (c) 2017-2020 -- Adam Clark
// Licensed under "THE BEER-WARE LICENSE"
// See License.md... |
/*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... |
; void *p_forward_list_alt_front(p_forward_list_alt_t *list)
SECTION code_adt_p_forward_list_alt
PUBLIC _p_forward_list_alt_front
EXTERN _p_forward_list_front
defc _p_forward_list_alt_front = _p_forward_list_front
|
/*##############################################################################
HPCC SYSTEMS software Copyright (C) 2013 HPCC Systems®.
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... |
; ..\..\..\Tools\nasm\nasm -fbin EnterLongMode.asm -o EnterLongMode.o
; Source: https://wiki.osdev.org/Entering_Long_Mode_Directly
; With modifications for MOSA Project
%define PAGE_PRESENT (1 << 0)
%define PAGE_WRITE (1 << 1)
%define CODE_SEG 0x0008
%define DATA_SEG 0x0010
; Function to switch di... |
; A011149: Decimal expansion of 5th root of 64.
; Submitted by Christian Krause
; 2,2,9,7,3,9,6,7,0,9,9,9,4,0,7,0,0,1,3,5,9,7,2,5,3,8,9,3,5,5,5,8,5,5,1,7,8,8,8,7,7,0,1,7,7,8,1,9,5,5,9,5,0,1,1,0,2,7,4,2,2,2,3,6,9,8,7,2,0,6,4,1,2,5,0,7,0,2,6,1,1,3,6,2,2,9,4,6,2,2,6,0,2,3,0,1,6,9,4,7
mov $3,$0
mul $3,3
mov $5,13
lpb $3
... |
;================================================================================
; D-Pad Invert
; runs in NMI, must use minimum possible # of cycles
;--------------------------------------------------------------------------------
; Filtered Joypad 1 Register: [AXLR | ????]
; Filtered Joypad 1 Register: [BYST | udlr] ... |
; DV3 close routines V3.00 1992 Tony Tebby
section dv3
xdef dv3_close
xdef dv3_clnb
xref dv3_flsh
xref dv3_flhdr
xref dv3_slen
include 'dev8_dv3_keys'
include 'dev8_keys_err'
include 'dev8_keys_sys'
include 'dev8_keys_qlv'
include 'dev8_mac_assert'
;+++
; DV3 close routine
; If direct sector... |
;*******************************************************************************
;*
;* ASM_003: Control de display de 7 segmentos
;*
;*******************************************************************************
;* FileName: main.asm
;* Processor: PIC16F84A
;* Complier: MPASM v5.55
... |
// Copyright 2020 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 "chrome/browser/ui/webui/tab_search/tab_search_ui.h"
#include "base/cxx17_backports.h"
#include "base/metrics/histogram_functions.h"
#include "b... |
; data for default hidden/shown
; objects for each map ($00-$F8)
; Table of 2-Byte pointers, one pointer per map,
; goes up to Map_F7, ends with $FFFF.
; points to table listing all missable object in the area
MapHSPointers:
dw MapHS00
dw MapHS01
dw MapHS02
dw MapHS03
dw MapHSXX
dw MapHSXX
dw MapHSXX
dw MapHSX... |
.global s_prepare_buffers
s_prepare_buffers:
push %r9
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x1c84d, %rdi
nop
xor %rbp, %rbp
mov $0x6162636465666768, %rsi
movq %rsi, %xmm6
movups %xmm6, (%rdi)
nop
nop
nop
nop
nop
lfence
lea addresses_WT_ht+0x906d, %rsi
lea addresses_D_ht+0x8907, %rdi
clf... |
db NIDOQUEEN ; pokedex id
db 90 ; base hp
db 92 ; base attack
db 87 ; base defense
db 76 ; base speed
db 75 ; base special
db POISON ; species type 1
db GROUND ; species type 2
db 45 ; catch rate
db 194 ; base exp yield
INCBIN "pic/gsmon/nidoqueen.pic",0,1 ; 77, sprite dimensions
dw NidoqueenPicFront
dw NidoqueenPicBac... |
//version 2.18g3 revised 10-21-08 by Alexandra Holloway <fire@soe>
// saving X in OUTSTRING
//version 2.18g3 revised 05-20-02 by Stuart Norton <stuart@cse>
// saving a,b,x,y registers in (non-simulator version of) OUTCHAR
// saving y register in (non-simulator version of) GETCHAR
// included CONSOLEINT and DUMPREG... |
ItemPrices:
money 0 ; MASTER_BALL
money 1200 ; ULTRA_BALL
money 600 ; GREAT_BALL
money 200 ; POKE_BALL
money 0 ; TOWN_MAP
money 0 ; BICYCLE
money 0 ; SURFBOARD
money 1000 ; SAFARI_BALL
money 0 ; POKEDEX
money 0 ; MOON_STONE
money 100 ; ANTIDOTE
money 250 ; BURN_HEAL
money ... |
#ifdef _WIN32
#include <stdio.h>
int main() {
printf("[SKIP] OpenGL on Windows is broken.\n");
return 0;
}
#else
#include "Halide.h"
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#if __APPLE__
// TODO: why are these deprecated? Can we update this test?
#define GL_SILENCE_DEPRECAT... |
0x0000 (0x000000) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x0001 (0x000002) 0x2923- f:00024 d: 291 | OR[291] = A
0x0002 (0x000004) 0x1800-0x0196 f:00014 d: 0 | A = 406 (0x0196)
0x0004 (0x000008) 0x2924- f:00024 d: 292 | OR[292] = A
... |
INCLUDE "hc800.i"
INCLUDE "math.i"
INCLUDE "rc800.i"
; ---------------------------------------------------------------------------
; -- Multiply two integers
; --
; -- Inputs:
; -- bc - pointer to multiplicand and result
; -- ft - multiplier
; --
SECTION "MathMultiplyUnsigned_32x16_p32",CODE
MathMultiplyUn... |
; A198263: Ceiling(n*sqrt(8)).
; 0,3,6,9,12,15,17,20,23,26,29,32,34,37,40,43,46,49,51,54,57,60,63,66,68,71,74,77,80,83,85,88,91,94,97,99,102,105,108,111,114,116,119,122,125,128,131,133,136,139,142,145,148,150,153,156,159,162,165,167,170,173,176,179,182,184,187,190,193,196,198,201,204,207,210,213,215,218,221,224,227,230... |
.seg const
.nostromo.gDbgOut:
.data,
.seg code
.nostromo.debugOut.write:
push, rbp
push, rbx
push, rdi
mov, rbp, rsp ... |
// Copyright 2017 The Fuchsia 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 "garnet/lib/ui/gfx/engine/hit_tester.h"
#include "garnet/lib/ui/gfx/engine/session.h"
#include "garnet/lib/ui/gfx/resources/nodes/traversal.h"
#i... |
; char *strerror(int errnum)
SECTION code_clib
SECTION code_string
PUBLIC strerror
EXTERN asm_strerror
defc strerror = asm_strerror
IF __CLASSIC && __CPU_GBZ80__
PUBLIC _strerror
_strerror:
ld hl,sp+2
ld a,(hl+)
ld h,(hl)
ld l,a
call asm_strerror
ld d,h
ld e,l
ret
ENDIF
; SDCC bridge... |
// Copyright 2009-2018 NTESS. Under the terms
// of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
//
// Copyright (c) 2009-2018, NTESS
// All rights reserved.
//
// Portions are copyright of other developers:
// See the file CONTRIBUTORS.TXT in the top level directo... |
; ---------------------------------------------------------------------------
; Object - Player
;
; input REG : [u] pointer to Object Status Table (OST)
; ---------
;
; ---------------------------------------------------------------------------
INCLUDE "./Engine/Macros.asm"
Player
lda routine,u
... |
addi $t0, $zero, 2
addi $t1, $zero, 1
addi $t2, $zero, 4
add $t3, $t0, $t1 # $t3 = 3
add $t4, $t2, $t3 # $t4 = 7
sub $t5, $t4, $t3 # $t5 = 4
add $t5, $t5, $t5 # $t5 = 8
sub $t6, $t5, $t4 # $t6 = 1
sw $t0, 0($zero)
lw $t7, 0($zero) # $t7 = 2
add $a0, $t7, $t0 ... |
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2018-2019 The Nscoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/... |
; A341314: Array read by antidiagonals: T(n,k) = (n+k)/gcd(n,k), n>=0, k>=0.
; Submitted by Christian Krause
; 0,1,1,1,2,1,1,3,3,1,1,4,2,4,1,1,5,5,5,5,1,1,6,3,2,3,6,1,1,7,7,7,7,7,7,1,1,8,4,8,2,8,4,8,1,1,9,9,3,9,9,3,9,9,1,1,10,5,10,5,2,5,10,5,10,1,1,11,11,11,11,11,11,11,11,11,11,1,1,12,6,4,3,12,2,12,3,4,6,12,1
mov $3,1... |
# Find the greatest common divisor of values in memory locations 0 and 1,
# put result to the register R1
Instruction (Set R0 0)
Instruction (Store R0 255)
Instruction (Load R0 1)
# Test register R0 for being zero by subtracting zero
Instruction (Sub R0 255)
# Halt if register R0 contains zero, loop otherwise
Instructi... |
; PROLOGUE(mpn_hamdist)
;
; Copyright 2008 Jason Moxham
;
; Windows Conversion Copyright 2008 Brian Gladman
;
; This file is part of the MPIR Library.
; The MPIR Library is free software; you can redistribute it and/or modify
; it under the terms of the GNU Lesser General Public License as published
; by the Free... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r14
push %r8
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x16cac, %r14
nop
nop
and $1285, %r12
movb (%r14), %r11b
nop
nop
nop
xor %r10, %r10
lea addresses_D_ht+0x13244, %r8
nop
nop
nop
cmp %rcx, %rcx
and $0xffffffffffffffc0, %r8
vmovn... |
; A140345: a(n)=a(n-1)^2-a(n-2)-a(n-3)-a(n-4), a(1)=a(2)=a(3)=a(4)=1.
; 1,1,1,1,-2,1,1,1,1,-2,1,1,1,1,-2,1,1,1,1,-2,1,1,1,1,-2,1,1,1,1,-2,1,1,1,1,-2,1,1,1,1,-2,1,1,1,1,-2,1,1,1,1,-2,1,1,1,1,-2,1,1,1,1,-2,1,1,1,1,-2,1,1,1,1,-2,1,1,1,1,-2,1,1,1,1,-2,1,1,1,1,-2,1,1,1,1,-2,1,1,1,1,-2,1,1,1,1,-2
mod $0,5
sub $1,$0
div $1,4... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1989 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Esp Test Suite
FILE: proc.asm
AUTHOR: Adam de Boor, Sep 5, 1989
REVISION HISTORY:
Name Date Description
---- ---- -----------
Ad... |
SECTION code_driver
PUBLIC ide_init
EXTERN __IO_IDE_COMMAND
EXTERN __IO_IDE_HEAD
EXTERN ide_wait_ready
EXTERN ide_test_error
EXTERN ide_write_byte
;------------------------------------------------------------------------------
; Routines that talk with the IDE drive, these should be called by
; the main program.... |
#include "FadeToBlack.h"
#include "App.h"
#include "Render.h"
#include "Defs.h"
#include "Log.h"
#include "Window.h"
#include "ParticleModule.h"
#include "SDL/include/SDL_render.h"
FadeToBlack::FadeToBlack(bool startEnabled) : Module(startEnabled)
{
screenRect = { 0, 0, 1280 * 1, 720 * 1 };
name.Create("Fade");
}
... |
lorom
arch 65816
; TODO: why is $aa $f4 $55 $0b being written to $7fdc?
;Define Variables
incsrc "ram-variables.asm"
; Macros!
incsrc "macros.asm"
org $008000
; game entry point (everything starts here)
MainEntryPoint:
clc
xce ; set native mode
jsr BasicInit ; screen off, no interupts, AXY => 8bit
... |
.code
; void AVX_Scalar_Calc_Mean_Stdev_(const double* values, int arrayLength, double* mean, double* stdev)
AVX_Scalar_Calc_Mean_Stdev_ proc
cmp rdx, 2
jl InvalidLength
xor eax, eax ; i = 0
vxorpd xmm0, xmm0, xmm0 ; xmm0 = sum = 0
; Process values for mean calculation
@@:
vaddsd xmm0, xmm0, real8 ptr [r... |
#include <map>
#include <iostream>
#include <chrono>
#include <fstream>
int main() {
std::ofstream* outfile;
outfile = new std::ofstream();
outfile->open("test.dat", std::ios::out | std::ios::binary | std::ios::trunc);
int a = 5;
double b = 6.0;
double c = 7.0;
int d = 8;
outfile->write(reint... |
; A129565: A115359 * A000012 as infinite lower triangular matrices.
; 1,0,1,1,1,1,0,0,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,1,1,1,1,1
seq $0,127948 ; Triangle, A004736 * A127899.
min $0,1
mod $0,2
add $0,2
mod $0,2
|
; Executable name : helloWorld_02
; Version : 1.0
; Created date : 05/20/2020
; Last update : 05/20/2020
; Author : bigb0ss
; Description. : Print "Hello World!"
;
;
section .data ; Section containing initializing data
message: db "Hello World!"
msglen: equ $-message
section .b... |
; A130251: Partial sums of A130249.
; 0,2,4,7,10,14,18,22,26,30,34,39,44,49,54,59,64,69,74,79,84,90,96,102,108,114,120,126,132,138,144,150,156,162,168,174,180,186,192,198,204,210,216,223,230,237,244,251,258,265,272,279,286,293,300,307,314,321,328,335,342,349,356,363,370,377,384,391,398,405,412,419,426,433,440,447,454,4... |
<%
from pwnlib.shellcraft.powerpc.linux import syscall
%>
<%page args="name"/>
<%docstring>
Invokes the syscall mq_unlink. See 'man 2 mq_unlink' for more information.
Arguments:
name(char): name
</%docstring>
${syscall('SYS_mq_unlink', name)}
|
// 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: MenuTransition... |
; A028094: Expansion of 1/((1-3x)(1-7x)(1-9x)(1-11x)).
; Submitted by Christian Krause
; 1,30,580,9210,130921,1735860,21961360,268816620,3212241241,37702583490,436534074340,5001585910230,56839066698961,641793883438920,7209996952371520,80670652808858040,899681515488592081
mov $1,1
mov $2,$0
mov $3,$0
lpb $2
mov $0,$3... |
#include "VaultClient.h"
std::optional<std::string> Vault::Sys::Policies::EGP::list() {
return Vault::Sys::Policies::list(client_, getUrl(Path{}));
}
std::optional<std::string> Vault::Sys::Policies::EGP::read(const Path &path) {
return Vault::Sys::Policies::read(client_, getUrl(path));
}
std::optional<std::strin... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0xc782, %rsi
lea addresses_D_ht+0x1c3f2, %rdi
nop
nop
xor %rax, %rax
mov $29, %rcx
rep movsq
nop
nop
sub $31703, %r11
lea addresses_normal_ht+0x1382, %r13
nop
nop
nop
nop
dec %... |
; int feof_fastcall(FILE *stream)
INCLUDE "config_private.inc"
SECTION code_clib
SECTION code_stdio
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $02
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC _feof_fastcall
EXTERN asm_feof
_feof_fastcall:
push hl
pop ix
jp asm_feof
;;;;;;;;;;;;;;;;;;... |
/*
Copyright (c) DataStax, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... |
; ===============================================================
; Dec 2013
; ===============================================================
;
; size_t strxfrm(char * restrict s1, const char * restrict s2, size_t n)
;
; Transform string s2 according to current locale's char to
; ordinal mapping and write the result... |
// Copyright (c) 2019 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... |
; A117857: Number of palindromes of length n (in base 5).
; 4,4,20,20,100,100,500,500,2500,2500,12500,12500,62500,62500,312500,312500,1562500,1562500,7812500,7812500,39062500,39062500,195312500,195312500,976562500,976562500,4882812500,4882812500,24414062500,24414062500,122070312500
div $0,2
mov $1,5
pow $1,$0
mul $1,4... |
; ----------------------------------------------------------------
; Z88DK INTERFACE LIBRARY FOR THE BIFROST*2 ENGINE
;
; See "bifrost2.h" for further details
; ----------------------------------------------------------------
SECTION code_clib
SECTION code_bifrost2
PUBLIC asm_BIFROST2_setTile
EXTERN _BIFROST2_tilema... |
; A047565: Numbers that are congruent to {0, 1, 3, 4, 5, 6, 7} mod 8.
; 0,1,3,4,5,6,7,8,9,11,12,13,14,15,16,17,19,20,21,22,23,24,25,27,28,29,30,31,32,33,35,36,37,38,39,40,41,43,44,45,46,47,48,49,51,52,53,54,55,56,57,59,60,61,62,63,64,65,67,68,69,70,71,72,73,75,76,77,78,79,80,81,83,84,85,86,87,88,89,91,92,93,94,95,96,97... |
; A192021: The Wiener index of the binomial tree of order n.
; 0,1,10,68,392,2064,10272,49216,229504,1048832,4719104,20972544,92276736,402657280,1744838656,7516209152,32212287488,137439019008,584115683328,2473901424640,10445360988160,43980466159616,184717955563520,774056190148608
mul $0,2
mov $2,$0
mov $3,1
lpb $0
s... |
_usertests: 檔案格式 elf32-i386
Disassembly of section .text:
00000000 <main>:
return randstate;
}
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 ... |
// Copyright (C) 2021 Jérôme Leclercq
// This file is part of the "Nazara Engine - Utility module"
// For conditions of distribution and use, see copyright notice in Prerequisites.hpp
#include <Nazara/Graphics/Systems/RenderSystem.hpp>
#include <Nazara/Graphics/ForwardFramePipeline.hpp>
#include <Nazara/Graphics/Viewe... |
;-Rotation Matrix of Ship----------------------------------------------------------------------------------------------------------
; Rotation data is stored as lohi, but only 15 bits with 16th bit being a sign bit. Note this is NOT 2'c compliment
SBnKrotmatSidevX DW 0 ; INWK +21
SBnK... |
; Interfacing with the high-precision calculator in the ZX Spectrum ROM
FP_CALC: EQU $28
RSTK: EQU $3D ; No such thing needed on ZX81
END_CALC: EQU $38 ; $34 for ZX81
STK_STORE: EQU $2AB6 ; $12C3 for ZX81
; Store floating point number on the calculator stack
; Input: DE = number to stack
; Pollutes: AF, BC, DE, HL
ST... |
; ====================================================
; DLL-Injection-with-Assembly Copyright(C) 2017 Furkan Türkal
; This program comes with ABSOLUTELY NO WARRANTY; This is free software,
; and you are welcome to redistribute it under certain conditions; See
; file LICENSE, which is part of this source code package, ... |
(INIT)
// ...
(WRITE_1)
@R0
M=0
(WRITE_1_LOOP)
// write to SCREEN+R0
@SCREEN
D=A
@R0
D=D+M
A=D
M=1
// increment R0
@R0
M=M+1
// if M is less than 255 the repeat
D=M
@0xff
D=D-A
@WRITE_1_LOOP
D;JLT
// otherwise jump to WRITE_0 to start clearing the screen
@WRITE_0
0;JEQ
(... |
;* * * * * Small-C/Plus z88dk * * * * *
; Version: 16894-223f580fd-20200818
;
; Reconstructed for z80 Module Assembler
;
; Module compile time: Wed May 5 16:07:49 2021
C_LINE 0,"exp2f16.c"
MODULE exp2f16_c
INCLUDE "z80_crt0.hdr"
C_LINE 0,"math16.h"
C_LINE 0,"/home/phillip/Z80/z88dk/lib/config/../..//incl... |
; A030111: Triangular array in which k-th entry in n-th row is C([ (n+k)/2 ],k) (1<=k<=n).
; Submitted by Jon Maiga
; 1,1,1,2,1,1,2,3,1,1,3,3,4,1,1,3,6,4,5,1,1,4,6,10,5,6,1,1,4,10,10,15,6,7,1,1,5,10,20,15,21,7,8,1,1,5,15,20,35,21,28,8,9,1,1,6,15,35,35,56,28,36,9,10,1,1,6,21,35,70,56,84,36,45,10,11,1,1,7,21,56,70,126,84... |
Sound_80_Header:
smpsHeaderStartSong 3
smpsHeaderVoice Sound_80_Voices
smpsHeaderTempoSFX $01
smpsHeaderChanSFX $01
smpsHeaderSFXChannel cFM5, Sound_80_FM5, $00, $00
; FM5 Data
Sound_80_FM5:
smpsSetvoice $00
smpsModSet $01, $01, $69, $70
dc.b nB5, $06, nD6, $07
smpsStop
Sound_80_Voice... |
; void *malloc_unlocked(size_t size)
SECTION code_alloc_malloc
PUBLIC malloc_unlocked
malloc_unlocked:
INCLUDE "alloc/malloc/z80/asm_malloc_unlocked.asm"
|
; A224977: n^2 minus sum of digits of n^2.
; 0,0,0,0,9,18,27,36,54,72,99,117,135,153,180,216,243,270,315,351,396,432,468,513,558,612,657,711,765,828,891,945,1017,1071,1143,1215,1278,1350,1431,1512,1593,1665,1746,1827,1917,2016,2106,2196,2295,2394,2493,2592,2691,2790,2898,3015,3123,3231,3348,3465,3591,3708,3825,3942,407... |
<%
from pwnlib.shellcraft.powerpc.linux import syscall
%>
<%page args="pid, cpusetsize, cpuset"/>
<%docstring>
Invokes the syscall sched_setaffinity. See 'man 2 sched_setaffinity' for more information.
Arguments:
pid(pid_t): pid
cpusetsize(size_t): cpusetsize
cpuset(cpu_set_t): cpuset
</%docstring>
... |
; A064990: If A_k denotes the first 3^k terms, then A_0 = 0, A_{k+1} = A_k A_k B_k, where B_k is obtained from A_k by interchanging 0's and 1's.
; 0,0,1,0,0,1,1,1,0,0,0,1,0,0,1,1,1,0,1,1,0,1,1,0,0,0,1,0,0,1,0,0,1,1,1,0,0,0,1,0,0,1,1,1,0,1,1,0,1,1,0,0,0,1,1,1,0,1,1,0,0,0,1,1,1,0,1,1,0,0,0,1,0,0,1,0,0,1,1,1,0,0,0,1,0,0,1... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r15
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0xc7ec, %rax
nop
nop
nop
nop
nop
cmp %rdi, %rdi
movb $0x61, (%rax)
nop
nop
nop
nop
inc %rbx
lea addresses_normal_ht+0xa67c, %r10
nop
nop
nop
nop
nop
inc %r12
movl $0x61626364,... |
; A109118: a(n) = 2*(n^2 + 3*n + 1)^3.
; 2,250,2662,13718,48778,137842,332750,715822,1409938,2590058,4496182,7447750,11859482,18258658,27303838,39805022,56745250,79303642,108879878,147120118,195944362,257575250,334568302,429843598,546718898
mov $1,$0
add $1,3
mul $0,$1
add $0,1
pow $0,3
mul $0,2
|
#pragma once
#include "_main.hxx"
// Testing performance of 100 memory copy operations
// between CPU memory allocated with cudaHostAlloc()
// and GPU memory allocated with cudaMalloc(). Memory
// allocated with cudaHostAlloc() is page-locked
// (pinned), which means the memory can be directly
// copied by DMA into t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.