text stringlengths 1 1.05M |
|---|
// Copyright (c) 2019, tlblanc <tlblanc1490 at gmail dot com>
#include "status.hpp"
#include <stdlib.h>
const StatusClass *OK = new StatusClass(0, "OK");
|
SECTION code_clib
SECTION code_fp_math48
PUBLIC _lgamma
EXTERN cm48_sdccix_lgamma
defc _lgamma = cm48_sdccix_lgamma
|
Entity start
No options
Constants
0 S start
1 S (2.0 * (8.0 - 18.0 / 9.0 * 6.0) * (49.0 / 7.0 - 3.0))=
2 R 2.000000
3 R 8.000000
4 R 18.000000
5 R 9.000000
6 R 6.000000
7 R 49.000000
8 R 7.000000
9 R 3.000000
10 I 2
11 S io.writeln
End
Valid context (always)
No properties
Def start
No pa... |
; Hook music parser in zCMusicSys_DirectMusic::zCMusicSys_DirectMusic
%include "inc/macros.inc"
%if GOTHIC_BASE_VERSION == 1
%include "inc/symbols_g1.inc"
%elif GOTHIC_BASE_VERSION == 2
%include "inc/symbols_g2.inc"
%endif
%ifidn __OUTPUT_FORMAT__, bin
org g1g2(0x4DA448,0x4E765C)
%endif
bits 32
... |
; Top-hole Golf
; Copyright 2020-2021 Matthew Clarke
; *****************
; *** CONSTANTS ***
; *****************
fader_l_FADE_TO_GREY
!byte BLACK,WHITE,GREY1,WHITE,GREY2,GREY2,GREY1,WHITE,GREY2,BLACK,GREY3,GREY1,GREY2,WHITE,GREY3,GREY3
fader_l_GREYSCALE_TABLE_SR !fill 1000,0
fader_l_GREYSCALE_TABLE_CR !fill ... |
; A140341: The number of bits needed to write the universal code for an Elias delta coding, the simplest asymptotically optimal code.
; Submitted by Jon Maiga
; 1,4,4,5,5,5,5,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,1... |
TITLE Multiple Doubleword Shift (MultiShift.asm)
; Demonstration of multi-doubleword shift, using
; SHR and RCR instructions.
; Last update: 7/22/01
INCLUDE Irvine16.inc
.data
ArraySize = 3
array DWORD ArraySize dup(99999999h) ; 1001 pattern...
.code
main PROC
mov ax,@data
mov ds,ax
call ClrScr
call ... |
#include "PointerAnalysis/MemoryModel/Memory/MemoryManager.h"
#include "PointerAnalysis/MemoryModel/Pointer/PointerManager.h"
#include "PointerAnalysis/MemoryModel/PtsSet/Env.h"
#include "PointerAnalysis/MemoryModel/PtsSet/PtsSet.h"
#include "PointerAnalysis/MemoryModel/PtsSet/Store.h"
#include "Utils/ParseLLVMAssembly... |
; A170171: Number of reduced words of length n in Coxeter group on 18 generators S_i with relations (S_i)^2 = (S_i S_j)^39 = I.
; 1,18,306,5202,88434,1503378,25557426,434476242,7386096114,125563633938,2134581776946,36287890208082,616894133537394,10487200270135698,178282404592306866,3030800878069216722,51523614927176684... |
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1989 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Text
FILE: textSuspend.asm
METHODS:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ---- -----------
... |
; A161342: Number of "ON" cubic cells at n-th stage in simple 3-dimensional cellular automaton: a(n) = A160428(n)/8.
; 0,1,8,15,64,71,120,169,512,519,568,617,960,1009,1352,1695,4096,4103,4152,4201,4544,4593,4936,5279,7680,7729,8072,8415,10816,11159,13560,15961,32768,32775,32824,32873
mov $2,$0
mov $6,$0
lpb $2,1
mov... |
/* file: pca_input.cpp */
/*******************************************************************************
* Copyright 2014-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... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
/**************************************************************************
* module: UTIL.C
*
*
* utility modul... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r15
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x13334, %rsi
lea addresses_UC_ht+0x1a334, %rdi
nop
nop
nop
nop
inc %r15
mov $122, %rcx
rep movsb
nop
nop
nop
nop
nop
xor %r13, %r13
lea addresses_D_ht+0x1c474, %rsi
lea addresses_UC_ht... |
#include "duckdb/transaction/undo_buffer.hpp"
#include "duckdb/catalog/catalog_entry.hpp"
#include "duckdb/catalog/catalog_entry/list.hpp"
#include "duckdb/catalog/catalog_set.hpp"
#include "duckdb/common/exception.hpp"
#include "duckdb/storage/data_table.hpp"
#include "duckdb/storage/write_ahead_log.hpp"
#include "du... |
; A311801: Coordination sequence Gal.6.115.4 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,4,8,13,17,21,25,29,33,37,42,46,50,54,58,63,67,71,75,79,83,87,92,96,100,104,108,113,117,121,125,129,133,137,142,146,150,154,158,163,167,171... |
; A088211: Denominators of convergents of the continued fraction with the n+1 partial quotients: [2;2,2,...(n 2's)...,2,n+1], starting with [1], [2;2], [2;2,3], [2;2,2,4], ...
; 1,2,7,22,65,186,519,1422,3841,10258,27143,71270,185921,482314,1245191,3201182,8199169,20931234,53276679,135246390,342508097,865501658,21827281... |
#include <unistd.h>
#include "ros/ros.h"
#include <string>
#include "stdio.h"
#include "string.h"
#include "riptide_msgs/ThrustStamped.h"
//Define test thrust
#define TEST_THRUST 1.5
//Constants used for colored text
#define ANSI_COLOR_RED "\x1b[31m"
#define ANSI_COLOR_YELLOW "\x1b[33m"
#define ANSI_COLOR_RESET "\x1b... |
if VERSION_OS = 'W'
SEP_CHAR = ';'
else
SEP_CHAR = ':'
end if
; MAX_RESETCNT should NOT be more than the number of times search is called per second/core,
; which is about half of nps/core (the other half comes from qsearch). Higher setting are
; dangerous but lower settings lead to increased polling of the time
... |
; A121471: a(n) = 9*n^2/4 -4*n +19/8 -3*(-1)^n/8.
; 1,3,11,22,39,59,85,114,149,187,231,278,331,387,449,514,585,659,739,822,911,1003,1101,1202,1309,1419,1535,1654,1779,1907,2041,2178,2321,2467,2619,2774,2935,3099,3269,3442,3621,3803,3991,4182,4379,4579,4785,4994,5209
mov $1,9
mul $1,$0
add $1,2
mul $1,$0
div $1,4
add $... |
(gdb) disass main
Dump of assembler code for function main:
0x00008d3c <+0>: push {r4, r11, lr}
0x00008d40 <+4>: add r11, sp, #8
0x00008d44 <+8>: sub sp, sp, #12
0x00008d48 <+12>: mov r3, #0
0x00008d4c <+16>: str r3, [r11, #-16]
0x00008d50 <+20>: ldr r0, [pc, #104] ; 0x8dc0 <main+132>
0x00008d54 <+... |
/*
Bullet Continuous Collision Detection and Physics Library
Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from the use of this software.
P... |
;Testname=sha; Arguments=-felf -osha.o -O0; Files=stdout stderr sha.o
BITS 32
sha1rnds4 xmm1, xmm2, 9
sha1rnds4 xmm2, [eax], 7
sha1rnds4 xmm3, [eax+0x12], 5
sha1rnds4 xmm4, [eax+ebx*2], 1
sha1nexte xmm1, xmm2
sha1nexte xmm2, [eax]
sha1nexte xmm3, [eax+0x12]
sha1nexte xmm4, [eax+ebx*2]
sha1msg1 xmm1, xmm2
sha... |
; A093916: a(2*k-1)=(2*k-1)^2+2-k, a(2*k)=6*k^2+2-k: First column of the triangle A093915.
; 2,7,9,24,24,53,47,94,78,147,117,212,164,289,219,378,282,479,353,592,432,717,519,854,614,1003,717,1164,828,1337,947,1522,1074,1719,1209,1928,1352,2149,1503,2382,1662,2627,1829,2884,2004,3153,2187,3434,2378,3727,2577,4032,2784,43... |
DMA_SRC = 0x000
DMA_DST = 0x001
DMA_LEN = 0x002
DMA_DIR = 0x003
; mem_copy(src: i32*, dst: i32*, len: u32)
mem_copy:
test a2
br.z .return ; zero length
cmp a0, a1
br.eq .return ; src and dst are the same
ld t1, 0
cmp a0, a1
br.u.g .copy
; we have to copy backwards
shl t0, a2, 2... |
ldl $1
and r7,r7,r0
ldl $8
and r7,r7,r1
ldl $8
and r7,r7,r2
xor r3,r3,r3
xor r4,r4,r4
>loop
add r0,r3,r3
add r1,r4,r4
ldl #out
cmp r3,r2,r0
je r6,r7,r0
ldl #loop
jmp r6,r7,r0
>out
hlt
|
/* Copyright 2018 Alibaba Group Holding Limited. 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 o... |
global _start
section .data
align 16
quad1:
dq 0xad0000ceadad00ff
quad2:
dq 0xffffffffffffffff
quad3:
dq 0x0000000000000000
quad4:
dq 0x7fff8000ffff0808
myquad:
dq 0xad0000ceadad00ff
mydword:
dd 0xcafebabe
myaddress:
dq 0x00adbeefc0de00ce
%include "header.inc"
movq mm0, [quad1]
movq mm1, [quad2]
movq m... |
.386p
.387
; COPYRIGHT (c) 1997 xTech Ltd. All Rights Reserved.
;
; DLL initialization stub
ifdef OS2
.model FLAT
endif
DGROUP group _DATA
_DATA segment use32 dword public 'DATA'
_DATA ends
_TEXT segment us... |
ORG 0009
ADDR: WORD 06B0 ; address of first two characters
ORG 2FF
ZERO: WORD 0000
BUF-A: WORD ?
BUF-C: WORD ?
SAVE_A_C: WORD ?
MOV BUF-A
ROL
MOV BUF-C
ROR
BR SAVE_A_C
LOAD_A_C: WORD ?
CLA
ADD BUF-C
ROR
CLA
CMA
AND BUF-A
BR LOAD_A_C
CONSTF: WORD FF00 ; const for zeroing low 8 bits
CON... |
_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 ... |
_forktest: file format elf32-i386
Disassembly of section .text:
00000000 <printf>:
#define N 1000
void
printf(int fd, char *s, ...)
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 ec 08 sub $0x8,%esp
write(fd, s, strlen(s));
6: 83 ec 0c ... |
kernel: file format elf32-i386
Disassembly of section .text:
80100000 <multiboot_header>:
80100000: 02 b0 ad 1b 00 00 add 0x1bad(%eax),%dh
80100006: 00 00 add %al,(%eax)
80100008: fe 4f 52 decb 0x52(%edi)
8010000b: e4 .byte 0xe4
8010000c <entry>:
# E... |
#include<iostream>
using namespace std;
const int MAXN=100001;
int main (){
int n;
long long x=0;
long a[MAXN];
cin >> n;
for (int i=0; i<n; i++){
cin >> a[i];
x+=a[i]-1;
if (x%2==1) cout<<1<<endl;
else cout<<2<<endl;
}
return 0;
}
|
; A091916: Maximum of odd products of partitions of n.
; 1,1,1,3,3,5,9,9,15,27,27,45,81,81,135,243,243,405,729,729,1215,2187,2187,3645,6561,6561,10935,19683,19683,32805,59049,59049,98415,177147,177147,295245,531441,531441,885735,1594323,1594323,2657205,4782969,4782969
mul $0,2
div $0,3
cal $0,83658 ; a(n) = a(n-1) + a... |
; A251421: Number of length n+2 0..1 arrays with the sum of the maximum minus twice the median plus the minimum of adjacent triples multiplied by some arrangement of +-1 equal to zero.
; 2,12,12,40,56,144,240,544,992,2112,4032,8320,16256,33024,65280,131584,261632,525312,1047552,2099200,4192256,8392704,16773120,33562624... |
; A070453: a(n) = n^2 mod 31.
; 0,1,4,9,16,25,5,18,2,19,7,28,20,14,10,8,8,10,14,20,28,7,19,2,18,5,25,16,9,4,1,0,1,4,9,16,25,5,18,2,19,7,28,20,14,10,8,8,10,14,20,28,7,19,2,18,5,25,16,9,4,1,0,1,4,9,16,25,5,18,2,19,7,28,20,14,10,8,8,10,14,20,28,7,19,2,18,5,25,16,9,4,1,0,1,4,9,16,25,5
pow $0,2
mod $0,31
|
/* ************************************************************************
* Copyright 2016-2020 Advanced Micro Devices, Inc.
* ************************************************************************ */
#include "handle.h"
#include "logging.h"
#include "rocblas.h"
#include "utility.h"
template <bool CONJ, typename... |
; A061165: Polynomial extrapolation of 2, 3, 5, 7, 11.
; 2,3,5,7,11,22,48,100,192,341,567,893,1345,1952,2746,3762,5038,6615,8537,10851,13607,16858,20660,25072,30156,35977,42603,50105,58557,68036,78622,90398,103450,117867,133741,151167,170243,191070,213752,238396,265112,294013,325215,358837,395001,433832,475458,520010,5... |
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "bytefieldvalue.h"
#include "numericfieldvalue.hpp"
namespace document {
} // document
|
SECTION "Input", ROM0
loadJoypad:
.copy
ld a, [joybuttons]
ld [joyhold], a
.upper
ld a, P1F_5
ld [rP1], a
ld a, [rP1]
ld a, [rP1]
cpl
and $0F
swap a
ld b, a
.lower
ld a, P1F_4
ld [rP1], a
ld a, [rP1]
ld a, [rP1]
ld a, [rP1]
ld a, [rP1]
ld a, [rP1]
ld a, [rP1]
cpl
and $0F
or a, b
.store
ld [joybut... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution... |
#ifdef _DEVIRTUALIZE_
#include <GameSDK_devirt_defines.h>
#endif
#include "../PersistantStats.cpp"
#include "../PlayerModifiableValues.cpp"
#include "../PlayerPlugin.cpp"
#include "../PlayerPlugin_CurrentlyTargetting.cpp"
#include "../PlayerPlugin_Interaction.cpp"
#include "../PlayerProgression.cpp"
#include "../Prog... |
#include <bits/stdc++.h>
template<typename T> T gcd(T a, T b) {
if(!b) return a;
return gcd(b, a % b);
}
template<typename T> T lcm(T a, T b) {
return a * b / gcd(a, b);
}
template<typename T> void chmin(T& a, T b) { a = (a > b) ? b : a; }
template<typename T> void chmax(T& a, T b) { a = (a < b) ? b : a; ... |
/*
This file belongs to Ashes.
See LICENSE file in root folder
*/
#include "Miscellaneous/TestDeviceMemory.hpp"
#include "Core/TestDevice.hpp"
#include "Core/TestInstance.hpp"
#include "Core/TestPhysicalDevice.hpp"
#include <ashes/common/Exception.hpp>
#include <iostream>
#include <cstdlib>
#include <cstring>
#incl... |
////////////////////////////////////////////////////////////////////////////
// Module : luabind_memory.cpp
// Created : 24.06.2005
// Modified : 24.09.2006
// Author : Dmitriy Iassenev
// Description : luabind memory allocator template class
///////////////////////////////////////////////////////////////////////... |
BITS 64
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
; set up st0 to be 3.141593
FLD1
FLD1
FLD1
;TEST_BEGIN_RECORDING
FUCOM st2
;TEST_END_RECORDING
|
; A201279: a(n) = 6n^2 + 10n + 5.
; 5,21,49,89,141,205,281,369,469,581,705,841,989,1149,1321,1505,1701,1909,2129,2361,2605,2861,3129,3409,3701,4005,4321,4649,4989,5341,5705,6081,6469,6869,7281,7705,8141,8589,9049,9521,10005,10501,11009,11529,12061,12605,13161,13729,14309,14901,15505,16121,16749,17389,18041,18705,19381,... |
//===- RangeOp.cpp - Implementation of the linalg RangeOp operation -------===//
//
// Copyright 2019 The MLIR Authors.
//
// 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.... |
/*
* 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 notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in bi... |
.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_WC_ht+0x60e6, %rdx
nop
nop
sub $20124, %r11
mov $0x6162636465666768, %rax
movq %rax, (%rdx)
nop
and $19103, %rcx
lea addresses_WT_ht+0x1c6d2, %rsi
nop
cmp $21997, %rcx
mov $0x616263... |
; size_t b_vector_append(b_vector_t *v, int c)
SECTION code_clib
SECTION code_adt_b_vector
PUBLIC b_vector_append
EXTERN asm_b_vector_append
b_vector_append:
pop af
pop bc
pop hl
push hl
push bc
push af
jp asm_b_vector_append
|
/*
* GridTools
*
* Copyright (c) 2014-2019, ETH Zurich
* All rights reserved.
*
* Please, refer to the LICENSE file in the root directory.
* SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
#include "../common/defs.hpp"
#include "../common/layout_map.hpp"
#include "../common/selector.hpp"
#include "./com... |
#include "mvDrawQuad.h"
#include "mvLog.h"
#include "mvItemRegistry.h"
#include "mvPythonExceptions.h"
namespace Marvel {
void mvDrawQuad::InsertParser(std::map<std::string, mvPythonParser>* parsers)
{
std::vector<mvPythonDataElement> args;
AddCommonArgs(args,(CommonParserArgs)(
MV_PARSER_ARG_ID |
MV_PAR... |
; A290198: Decimal representation of the diagonal from the corner to the origin of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 721", based on the 5-celled von Neumann neighborhood.
; 1,2,5,13,30,62,126,254,510,1022,2046,4094,8190,16382,32766,65534,131070,262142,524286,1048574,209... |
// Copyright (c) 2011-2017 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <qt/addresstablemodel.h>
#include <qt/guiutil.h>
#include <qt/walletmodel.h>
#include <base58.h>
#include <wallet/... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r15
push %r8
push %rbx
push %rcx
push %rdi
lea addresses_A_ht+0x152aa, %r13
nop
nop
nop
nop
nop
add $34267, %r8
movups (%r13), %xmm6
vpextrq $1, %xmm6, %rdi
nop
nop
nop
nop
nop
and $53186, %r13
lea addresses_A_ht+0x65de, %rbx
nop
dec %rcx
movb $0x61, (%rbx)
n... |
SECTION code_fp_math48
PUBLIC ___fslt_callee
EXTERN cm48_sdcciyp_dslt_callee
defc ___fslt_callee = cm48_sdcciyp_dslt_callee
|
/*
Open Asset Import Library (assimp)
----------------------------------------------------------------------
Copyright (c) 2006-2021, assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms,
with or without modification, are permitted provided that the
following conditions ... |
Map_4C2A0: dc.w word_4C2AC-Map_4C2A0
dc.w word_4C342-Map_4C2A0
dc.w word_4C2DE-Map_4C2A0
dc.w word_4C342-Map_4C2A0
dc.w word_4C310-Map_4C2A0
dc.w word_4C342-Map_4C2A0
word_4C2AC: dc.w 8
dc.b $F0, 8, $40, 0, $FF, $E8
dc.b $F0, 8, $48, 0, 0, 0
dc.b $F8, 8, $40, 0, $FF, $E8
dc.b $F... |
; *****************************************************************************
; *****************************************************************************
;
; Name: instruction.asm
; Purpose: Assemble a single instruction
; Created: 22nd March 2020
; Reviewed: TODO
; Author: Paul Robson (paul@robsons.org.u... |
db DEX_GRANBULL ; pokedex id
db 90 ; base hp
db 120 ; base attack
db 75 ; base defense
db 45 ; base speed
db 60 ; base special
db FAIRY ; species type 1
db DARK ; species type 2
db 19 ; catch rate
db 69 ; base exp yield
INCBIN "pic/ymon/Granbull.pic",0,1 ; 55, sprite dimensions
dw GranbullPicFront
dw GranbullPicBack
; ... |
;
; QSORT - compiled, then hand-adjusted
; Stefano, 29/10/2010
;
; $Id: qsort_callee.asm,v 1.3 2015/01/19 01:33:22 pauloscustodio Exp $
;
; Original code taken from the BDS C by Leor Zolman
;
;void qsort(char *base, unsigned int nel, unsigned int width, void *compar)
;{ int i, j;
; unsigned gap, ngap, t1;
; int jd, t2... |
.program:
ji i4
noop
DATA_SECTION_OFFSET[0..32]
DATA_SECTION_OFFSET[32..64]
lw $ds $is 1
add $$ds $$ds $is
lw $r0 data_0 ; literal instantiation
move $r1 $r0
move $r0 $r1
jnei $r0 $one i18
move $r0 $r1
move $r2 $r0
move $r2 $r0
jnei $r0 $one i16
lw $r0 data_1 ; literal instantiation... |
; A285716: a(n) = A080791(A245611(n)).
; 0,0,0,0,1,0,0,1,0,0,1,0,1,2,0,0,1,1,0,1,0,0,2,0,1,1,0,1,1,0,0,2,1,0,1,0,0,2,1,0,3,0,1,1,0,1,1,1,0,2,0,0,2,0,0,1,0,1,2,1,1,1,2,0,1,0,1,3,0,0,1,1,1,2,0,0,2,1,0,1,1,0,2,0,1,2,0,2,1,0,0,1,1,1,3,0,0,2,0,0
seq $0,91304 ; a(n) = Omega(2n-1) (number of prime factors of the n-th odd num... |
#define STAGE_GEM_STAGE_SPRITES $20
#define STAGE_GEM_NB_STAGE_SPRITES 8
#define STAGE_GEM_FIRST_SPRITE_OAM_OFFSET STAGE_GEM_STAGE_SPRITES*4
#define STAGE_GEM_LAST_SPRITE_OAM_OFFSET (STAGE_GEM_STAGE_SPRITES+STAGE_GEM_NB_STAGE_SPRITES-1)*4
#define STAGE_GEM_GEM_SPRITE STAGE_GEM_STAGE_SPRITES
#define STAGE_GEM_GEM_SPRIT... |
; DISKSCAN.ASM -- Checks out disk by reading sectors
; --------------------------------------------------
CSEG Segment
Assume CS:CSEG, DS:CSEG, ES:CSEG, SS:CSEG
Org 100h
Entry: Jmp Begin
; All Data
; --------
db ' Copyright 1986 Ziff-Davis Publishing Co.'
db ' Programmed by Charles Petzold '
D... |
#include "readObject.h"
#include "archive.h"
#include "bitMaskType.h"
#include "builtinType.h"
#include "config.h"
#include "containerType.h"
#include "enumType.h"
#include "flags.h"
#include "pointerType.h"
#include "property.h"
#include "referenceType.h"
#include "serializeBuiltIns.h"
#include "structType.h"
#include... |
prueba de git |
// Boost.Process
//
// Copyright (c) 2006 Julio M. Merino Vidal.
// Copyright 2008 Ilya Sokolov
//
// 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.)
/// \file boost/process/detail/posix_util.hpp
///
//... |
// RUN: %clangxx -fsycl -c -fno-color-diagnostics -Xclang -fdump-record-layouts %s | FileCheck %s
// REQUIRES: linux
// clang-format off
#include <CL/sycl/accessor.hpp>
using namespace cl::sycl;
//----------------------------------------------------------------------------//
// Host buffer accessor.
//-------------... |
//
// Copyright (c) .NET Foundation and Contributors
// Portions Copyright (c) Microsoft Corporation. All rights reserved.
// See LICENSE file in the project root for full license information.
//
#include "sys_net_native.h"
// clang-format off
static const CLR_RT_MethodHandler method_lookup[] =
{
NULL,
NUL... |
// Copyright 2019 The SwiftShader 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 b... |
_forktest: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
printf(1, "fork test OK\n");
}
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 push... |
/*
Copyright (c) 2005-2022, University of Oxford.
All rights reserved.
University of Oxford means the Chancellor, Masters and Scholars of the
University of Oxford, having an administrative office at Wellington
Square, Oxford OX1 2JD, UK.
This file is part of Chaste.
Redistribution and use in source and binary forms... |
#pragma once
/* NOTE: IIRC, wak@ is working on exposing some of this in stdplus, so we can
* transition when that's ready.
*
* Copied some from gpioplus to enable unit-testing of lpc nuvoton and later
* other pieces.
*/
#include <poll.h>
#include <sys/mman.h>
#include <cinttypes>
#include <cstddef>
namespace i... |
#pragma once
#include <string>
#include <vector>
#include "types.hpp"
// ROM classification.
enum class ROMType {
LoROM,
HiROM,
ExLoROM,
ExHiROM,
SDD1,
};
// ROM's header.
enum Header {
TITLE_LEN = 21,
TITLE = 0xFFC0,
MARKUP = 0xFFD5,
TYPE = 0xFFD6,
SIZE = 0xFFD7,
NMI = 0xFFEA,
RESET = 0xFFF... |
[bits 32]
; 对于CPU会自动压入错误码的中断类型,无需额外的操作
%define ERROR_CODE nop
; 如果CPU没有压入错误码,为了保持处理逻辑的一致性,我们需要手动压入一个0
%define ZERO push 0
extern put_str
; 中断处理函数数组
extern idt_table ; idt_table是C中注册的中断处理程序数组
section .data
intr_str db "interrupt occur!", 0xa, 0
global intr_entry_table
intr_entry_table:
; 中断处理程序宏定义
%macro VECTOR 2
se... |
SECTION code_clib
SECTION code_fp_math48
PUBLIC _scalbn_callee
EXTERN cm48_sdcciy_scalbn_callee
defc _scalbn_callee = cm48_sdcciy_scalbn_callee
|
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r15
push %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
// Store
lea addresses_WC+0x12ae6, %rdx
nop
nop
nop
nop
and $26688, %rax
mov $0x5152535455565758, %rcx
movq %rcx, %xmm7
movups %xmm7, (%rdx)
dec %rax... |
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===---------------------------------... |
Name: Gdefchr.asm
Type: file
Size: 6977
Last-Modified: '2016-05-13T04:52:55Z'
SHA-1: 673527D46791611B25C833EA866686F783E70AF8
Description: null
|
//
// TcpClient.hpp
// TestNetwork
//
// Created by leejw51 on 2017. 8. 29..
// Copyright © 2017년 Jongwhan Lee. All rights reserved.
//
#ifndef TcpClient_hpp
#define TcpClient_hpp
#include <string>
#include "BasicServer.hpp"
namespace Simplenet {
class TcpClient:public BasicServer {
public:
std::s... |
#include "YETENEK12.h"
Sensors::Sensors(){}
void Sensors::init(int type){
if(type == 0){
selectedComm = commType::i2c;
Wire.begin(33, 32, (uint32_t) 400000);
}else if(type == 1){
selectedComm = commType::modBus;
Serial2.begin(MODBUS_SPEED, SERIAL_8N1, 9, 10);
// Switch pin girince calismiyor
modbus.begin... |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/appcache/appcache_request_handler.h"
#include <stdint.h>
#include <stack>
#include <string>
#include <utility>
#include <vecto... |
/* Copyright 2018 The TensorFlow 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 a... |
; Copyright Oliver Kowalke 2009.
; 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)
; ---------------------------------------------------------------------------------
; | 0 | 1 ... |
; A305189: a(n) = 1*2 + 3 + 4*5 + 6 + 7*8 + 9 + 10*11 + 12 + ... + (up to n).
; 1,2,5,9,25,31,38,87,96,106,206,218,231,400,415,431,687,705,724,1085,1106,1128,1612,1636,1661,2286,2313,2341,3125,3155,3186,4147,4180,4214,5370,5406,5443,6812,6851,6891,8491,8533,8576,10425,10470,10516,12632,12680,12729,15130,15181,15233,179... |
###############################################################################
# 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 %r12
push %r14
push %r15
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x117b3, %rsi
lea addresses_D_ht+0x57b3, %rdi
nop
add %r14, %r14
mov $53, %rcx
rep movsw
nop
nop
nop
add %rcx, %rcx
lea addresses_WT_ht+0x17033, %r12
and $63895, %rbp
movl $0x61... |
//=========================================================================
// Copyright (C) 2012 The Elastos 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
//
// ... |
; A116082: a(n) = C(n,7) + C(n,6) + C(n,5) + C(n,4) + C(n,3) + C(n,2) + C(n,1).
; 0,1,3,7,15,31,63,127,254,501,967,1815,3301,5811,9907,16383,26332,41225,63003,94183,137979,198439,280599,390655,536154,726205,971711,1285623,1683217,2182395,2804011,3572223,4514872,5663889,7055731,8731847,10739175,13130671,15965871,1931148... |
; A045323: Primes congruent to {1, 2, 3, 7} mod 8.
; Submitted by Jon Maiga
; 2,3,7,11,17,19,23,31,41,43,47,59,67,71,73,79,83,89,97,103,107,113,127,131,137,139,151,163,167,179,191,193,199,211,223,227,233,239,241,251,257,263,271,281,283,307,311,313,331,337,347,353,359,367,379,383,401,409,419,431,433,439,443,449,457,463,... |
ChoosePlayerName:
call OakSpeechSlidePicRight
ld de, DefaultNamesPlayer
call DisplayIntroNameTextBox
ld a, [wCurrentMenuItem]
and a
jr z, .customName
ld hl, DefaultNamesPlayerList
call GetDefaultName
ld de, wPlayerName
call OakSpeechSlidePicLeft
jr .done
.customName
ld hl, wPlayerName
xor a ; NAME_PLAYER_S... |
// C++ program to demonstrate functionality of unordered_map
#include <bits/stdc++.h>
using namespace std;
int main()
{
// Declaring umap to be of <string, double> type
// key will be of string type and mapped value will
// be of double type
unordered_map<string, double> umap;
// inserting value... |
; A011909: a(n) = floor( n*(n-1)*(n-2)/27 ).
; 0,0,0,0,0,2,4,7,12,18,26,36,48,63,80,101,124,151,181,215,253,295,342,393,449,511,577,650,728,812,902,998,1102,1212,1329,1454,1586,1726,1874,2030,2195,2368,2551,2742,2943
bin $0,3
mul $0,2
div $0,9
|
MODULE _printf
SECTION code_clib
PUBLIC _printf
EXTERN asm_printf
EXTERN fputc_callee
EXTERN __sgoioblk
;sdcc version
_printf:
ld hl,4
add hl,sp ;points to ap
pop bc ;ret address
pop de ;fmt
push de
push bc
push ix ;save ix
ld bc,__sgoioblk+6 ;file
push bc
ld bc,fputc_callee
push bc
ld bc,0 ;... |
TITLE DOS_ABORT - Internal SFT close all files for proc call for MSDOS
NAME DOS_ABORT
; Internal Abort call closes all handles and FCBs associated with a process.
;
; DOS_ABORT
;
; Modification history:
;
; sudeepb 11-Mar-1991 Ported For NT DOSEm.
;
; get the appropriate segment definitions
... |
; HealMachineAnim.Jumptable indexes
const_def
const HEALMACHINESTATE_LOADGFX
const HEALMACHINESTATE_PCLOADBALLS
const HEALMACHINESTATE_HOFLOADBALLS
const HEALMACHINESTATE_PLAYMUSIC
const HEALMACHINESTATE_HOFPLAYSFX
const HEALMACHINESTATE_FINISH
HealMachineAnim:
; If you have no Pokemon, don't change the buffer... |
// This file is part of ViViA, and is distributed under the
// OSI-approved BSD 3-Clause License. See top-level LICENSE file or
// https://github.com/Kitware/vivia/blob/master/LICENSE for details.
#include "vpSuperResWorker.h"
#include "vpSuperResWarper.h"
#include <tracking/refine_homography.h>
#include <video_trans... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.