text stringlengths 1 1.05M |
|---|
; double fmod(double x, double y)
SECTION code_clib
SECTION code_fp_math48
PUBLIC am48_fmod
EXTERN mm48_mod
; computes result of AC' % AC
;
; enter : AC = double y
; AC' = double x
;
; exit : success
;
; AC' = x%y with sign the same as x
; carry reset
;
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x1ce72, %rsi
lea addresses_WT_ht+0x15db2, %rdi
nop
dec %r8
mov $17, %rcx
rep movsq
nop
nop
mfence
lea addresses_WT_ht+0x79d2, %r10
nop
nop
nop
nop
mfence
movl $0x61626364, (%r10)
xo... |
// Copyright (c) 2018-2019 The Bitcoin Core and Devcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <util/spanparsing.h>
#include <span.h>
#include <string>
#include <vector>
namespace spanparsing... |
; A033685: Theta series of hexagonal lattice A_2 with respect to deep hole.
; Submitted by Jamie Morken(m4)
; 0,3,0,0,3,0,0,6,0,0,0,0,0,6,0,0,3,0,0,6,0,0,0,0,0,3,0,0,6,0,0,6,0,0,0,0,0,6,0,0,0,0,0,6,0,0,0,0,0,9,0,0,6,0,0,0,0,0,0,0,0,6,0,0,3,0,0,6,0,0,0,0,0,6,0,0,6,0,0,6,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,6,0,0
seq $0,2... |
; A131710: Overlay of Pell numbers: a(n)=A000129(n)+A000129(n-6).
; Submitted by Christian Krause
; 0,1,2,5,12,29,70,170,410,990,2390,5770,13930,33630,81190,196010,473210,1142430,2758070,6658570,16075210,38808990,93693190,226195370,546083930,1318363230,3182810390,7683984010,18550778410,44785540830,108121860070
mov $2,... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
%>
<%docstring>wait4(pid, stat_loc, options, usage) -> str
Invokes the syscall wait4.
See 'man 2 wait4' for more information.
Arguments:
pid(pid_t): pid
stat_loc(WAIT_STATUS): stat_loc
options(int): options
usage... |
;ASTER 01/03/2009 1545
;TO BE ASSEMBLED IN KEIL MICROVISION V3.60
;ARTIFICIAL INTELLIGENCE
;MICROCOMPUTER A
;CODE BASE COMPLETED : 02/03/2009 2120
;REV 2 LAST UPDATED 02/03/2009 2300
;-----------------------------------------------------------------------------------------------------------
;SET THE ASSEMBLER FOR AT... |
; uchar __FASTCALL__ *zx_py2aaddr(uchar ycoord)
; aralbrec 06.2007
PUBLIC zx_py2aaddr
EXTERN HRG_LineStart
.zx_py2aaddr
ld a,l
rra
rra
rra
and $1f
ld b,a
ld hl,HRG_LineStart+2+32768
jr z,zrow
ld de,35
.rloop
add hl,de
djnz rloop
.zrow
ret
|
#include "../include/motion_manager/movement.hpp"
namespace motion_manager {
Movement::Movement(int type, int arm)
{
this->obj=objectPtr(new Object());
this->obj_init=objectPtr(new Object());
this->obj_eng=objectPtr(new Object());
this->pose = posePtr(new Pose());
this->type=type;
switch (ty... |
;PIT
GLOBAL pit_handler
GLOBAL call_pit
GLOBAL sti
GLOBAL cli
GLOBAL halt
GLOBAL keyboard_handler
EXTERN irqDispatcher
GLOBAL pic
GLOBAL getKey
GLOBAL int80handler
GLOBAL pageFaultHandler
GLOBAL int81handler
GLOBAL int82handler
GLOBAL int83handler
GLOBAL int84handler
GLOBAL getFlags
GLOBAL doubleFaultHandler
EXTERN sy... |
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1988 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: CommonDesktop/CUtil
FILE: cutilManager.asm
REVISION HISTORY:
Name Date Description
---- ---- -----------
brianc 8/89 Initial version
brianc... |
; A178681: a(n) = 6^n + 6.
; 7,12,42,222,1302,7782,46662,279942,1679622,10077702,60466182,362797062,2176782342,13060694022,78364164102,470184984582,2821109907462,16926659444742,101559956668422,609359740010502,3656158440062982,21936950640377862,131621703842267142,789730223053602822,4738381338321616902,284302880299297013... |
; You may customize this and other start-up templates;
; The location of this template is c:\emu8086\inc\0_com_template.txt
org 100h
K1 EQU 1
K2 EQU 2
K3 EQU 3
MOV AX, K1
ADD AX, K2
ADD AX, K3
MOV BX, AX
ret
|
SECTION code_fp_dai32
PUBLIC ___dai32_xacos
EXTERN xacos
defc ___dai32_xacos = xacos
|
; A273443: Number of active (ON,black) cells in n-th stage of growth of two-dimensional cellular automaton defined by "Rule 721", based on the 5-celled von Neumann neighborhood.
; 1,4,21,41,80,120,168,224,288,360,440,528,624,728,840,960,1088,1224,1368,1520,1680,1848,2024,2208,2400,2600,2808,3024,3248,3480,3720,3968,422... |
; A045471: Primes congruent to 4 mod 7.
; 11,53,67,109,137,151,179,193,263,277,347,389,431,487,557,571,599,613,641,683,739,809,823,907,977,991,1019,1033,1061,1103,1117,1187,1201,1229,1327,1439,1453,1481,1523,1579,1607,1621,1663,1733,1747,1789,1831,1873,1901,1999,2027,2069,2083,2111,2153,2237,2251,2293,2377,2447,2503,25... |
; A134287: Fifth column of triangle A103371 (without leading zeros).
; 1,30,315,1960,8820,31752,97020,261360,637065,1431430,3006003,5962320,11262160,20391840,35581680,60093504,98590905,157608990,246142435,376372920,564559380,832117000,1206913500,1724814000,2431508625,3384660006,4656410955,6336295840,8534602560,11386235... |
; A063758: a(0)=1, a(n) = 2*Fibonacci(n+4) - 6.
; Submitted by Jon Maiga
; 1,4,10,20,36,62,104,172,282,460,748,1214,1968,3188,5162,8356,13524,21886,35416,57308,92730,150044,242780,392830,635616,1028452,1664074,2692532,4356612,7049150,11405768,18454924,29860698,48315628,78176332,126491966,204668304,331160276,535828586,8... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x928e, %rsi
lea addresses_D_ht+0x80e, %rdi
clflush (%rdi)
nop
nop
nop
cmp $54098, %rbx
mov $103, %rcx
rep movsl
nop
nop
nop
nop
nop
sub %r12, %r12
lea addresses_D_ht+0x6db2, ... |
;
; interrups.asm
;
; Created on: Apr 18, 2010
; Author: anizzomc
;
GLOBAL _cli
GLOBAL _sti
GLOBAL picMasterMask
GLOBAL picSlaveMask
GLOBAL haltcpu
GLOBAL _irq00Handler
GLOBAL _irq01Handler
GLOBAL _irq02Handler
GLOBAL _irq03Handler
GLOBAL _irq04Handler
GLOBAL _irq05Handler
GLOBAL _int80Handler
EXTERN irqDispat... |
; A005066: Sum of squares of odd primes dividing n.
; Submitted by Jon Maiga
; 0,0,9,0,25,9,49,0,9,25,121,9,169,49,34,0,289,9,361,25,58,121,529,9,25,169,9,49,841,34,961,0,130,289,74,9,1369,361,178,25,1681,58,1849,121,34,529,2209,9,49,25,298,169,2809,9,146,49,370,841,3481,34,3721,961,58,0,194,130,4489,289,538,74,5041,9,... |
; A286690: Positions of 1 in A286688; complement of A286689.
; 5,11,19,25,33,39,45,53,59,67,73,79,87,93,101,107,115,121,127,135,141,149,155,161,169,175,183,189,197,203,209,217,223,231,237,243,251,257,265,271,277,285,291,299,305,313,319,325,333,339,347,353,359,367,373,381,387,395,401,407,415,421,429,435,441,449,455,463,... |
; A222947: Number of distinct sums i+j+k with |i|, |j|, |k|, |i*j*k| <= n and gcd(i,j,k) <= 1.
; 1,7,9,11,15,19,21,27,29,35,37,43,45,51,53,59,61,67,69,75,77,83,85,91,93,99,101,107,109,115,117,123,125,131,133,139,141,147,149,155,157,163,165,171,173,179,181,187,189,195,197,203,205,211,213,219,221,227,229,235,237,243,245,... |
; Moises Campos
; 11-05-2020
; Posicion de inicio de los datos de origen.
DATOS_NODOS: equ $1000
; Posicion de inicio de los datos de destino.
ORDEN: equ $1800
; Cantidad de nodos. N<250.
N: equ $10
; Cantidad de bits de offset para una direccion base de origen
; en los difere... |
BITS 32
%define MREMAP_FIXED 2
%define MREMAP_MAYMOVE 1
_start:
; munmap NULL to start of payload
mov eax, 91
mov ebx, 0 ; address
mov ecx, 0x42424242 ; length
int 0x80
; munmap from end of space to 0x80000000
mov eax, 91
mov ebx, 0x43434343 ; address
mov ecx, 0x44444444 ; length
int 0x80
; munmap from ... |
_zombie: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
int
main(void)
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: ff 71 fc pushl -0x4(%ecx)
a: 55 pus... |
; A086455: Sum of divisors of prime powers: sigma(p^e).
; Submitted by Christian Krause
; 1,3,4,7,6,8,15,13,12,14,31,18,20,24,31,40,30,32,63,38,42,44,48,57,54,60,62,127,68,72,74,80,121,84,90,98,102,104,108,110,114,133,156,128,255,132,138,140,150,152,158,164,168,183,174,180,182,192,194,198,200,212,224,228,230,234,240,24... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r15
push %r8
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x9077, %r10
dec %r8
mov (%r10), %rbp
nop
dec %rdi
lea addresses_UC_ht+0x72d5, %rbx
nop
nop
nop
sub $16276, %rdi
mov (%rbx), %edx
nop
dec %rbp
lea addresses_normal_ht... |
; A192753: Coefficient of x in the reduction by x^2->x+1 of the polynomial p(n,x) defined below in Comments.
; 0,1,8,20,43,82,148,257,436,728,1203,1974,3224,5249,8528,13836,22427,36330,58828,95233,154140,249456,403683,653230,1057008,1710337,2767448,4477892,7245451,11723458,18969028,30692609,49661764,80354504,130016403
... |
%include "sconst.inc"
INT_VECTOR_SYS_CALL equ 0x90
_NR_printx equ 0
_NR_sendrec equ 1
; 导出符号
global printx
global sendrec
bits 32
[section .text]
; -------------------------------------------------------------------------
; sendrec(int function, int src_dest, MESSAGE* msg);
; ---------------------------------------... |
#include "racescene.h"
RaceScene::RaceScene(QWidget *parent)
: QGraphicsScene(parent),
spritesheet("muybridge_spritesheet.png", 4, 4)
{
// adding items to the scene is delegated to the build() method
}
void RaceScene::build(QSizeF viewSize, float trackLength, int horseCount)
{
// trim view size to a... |
;------------------------------------------------------------------------------
; @file
; Transition from 16 bit real mode into 32 bit flat protected mode
;
; Copyright (c) 2008 - 2010, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the ... |
;preparations for every rendering phase
.enum prPrepareGenericTypes
cloud1 = 0
cloud2 = 1
cloud3 = 2
asteroid1 = 3
asteroid2 = 4
asteroid3 = 5
enemy = 6
explosion = 7
parachute = 8
bomb = 9
boss = 10
.ende
;Y - object type
.proc prPrepareGeneric
lda twidth,y
sta prObjWidth
lda theight,... |
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
c0
.text@150
lbegin:
ld a, 00
ldff(ff), a
ld b, 97
call lwaitly_b
ld a, b1
ldff(40), a
ld a, 07
ldff(4b), a
ld c, 41
ld a, ff
ldff(4a), a
ld a, 99
ldff(45), a
ld a, 40
ldff(c), a
xor a, a
ldff(0f), a
ld a, 02
ldff(ff), a
ei
.text@... |
#include "my_application.h"
#include <flutter_linux/flutter_linux.h>
#ifdef GDK_WINDOWING_X11
#include <gdk/gdkx.h>
#endif
#include "flutter/generated_plugin_registrant.h"
struct _MyApplication {
GtkApplication parent_instance;
char** dart_entrypoint_arguments;
};
G_DEFINE_TYPE(MyApplication, my_application, GT... |
PAGE 80,132 ;
TITLE DEBERR.ASM - DEBUGGER DISK ERROR HANDLER
;/*
; * Microsoft Confidential
; * Copyright (C) Microsoft Corporation 1991
; * All Rights Reserved.
; */
;******************* START OF SPECIFICATIONS *****************************
;
; MODULE ... |
; A235891: Number of (n+1) X (6+1) 0..3 arrays with the minimum plus the upper median equal to the lower median plus the maximum in every 2 X 2 subblock.
; 17152,18712,21928,28744,43912,80392,177928,471304,1451272,4984072,18341128,70221064,274644232,1086143752,4319755528,17229430024,68818582792,275076103432,10999080051... |
/*
Bullet Continuous Collision Detection and Physics Library
Copyright (c) 2003-2009 Erwin Coumans http://bulletphysics.org
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.
Permission is grant... |
SECTION code_clib
SECTION code_compress_aplib
PUBLIC __aplib_getgamma
EXTERN __aplib_getbit, __aplib_getbitbc
__aplib_getgamma:
ld bc,1
l0:
call __aplib_getbitbc
call __aplib_getbit
jr nz, l0
ret
|
; A128093: a(n) = smallest multiple of n which is >= 2^n.
; 2,4,9,16,35,66,133,256,513,1030,2057,4104,8203,16394,32775,65536,131087,262152,524305,1048580,2097165,4194322,8388629,16777224,33554450,67108886,134217729,268435468,536870939,1073741850,2147483677,4294967296,8589934617,17179869214,34359738385,68719476744,13743... |
/*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
// This is a GPU-backend specific test.
#include "tests/Test.h"
#include "include/gpu/GrBackendSurface.h"
#include "include/gpu/GrTexture.h"
#include "include/private/GrRend... |
// Commodore 64 PRG executable file
.file [name="signed-bytes.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"]
.segment Basic
:BasicUpstart(main)
.segment Code
main: {
.label ... |
;[]-----------------------------------------------------------------[]
;| STRNCMP.ASM -- compare one string to another |
;[]-----------------------------------------------------------------[]
;
; C/C++ Run Time Library - Version 10.0
;
; Copyright (c) 1991, 2000 by Inprise Corporation... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r14
push %r15
push %r8
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x6b73, %rdi
nop
nop
inc %r11
movw $0x6162, (%rdi)
nop
sub $21697, %r8
lea addresses_WC_ht+0x53a5, %r14
nop
nop
nop
add $33007, %r12
movw $0x6162, (%r14)
dec %r14
lea ... |
.assume adl = 0
unlock: ld a, $8c
out0 ($24), a
ld c, 4
in0 a, (6)
or c
out0 (6), a
out0 ($28), c
ret.l
lock: xor a, a
out0 ($28), a
in0 a, (6)
res 2, a
out0 (6), a
ld a, $88
out0 ($24), a
ret.l
.assume adl = 1 |
;
; ZX81 Tape save routine
;
;
; Musamy Save
;
; Internal routine for Musamy style turbo tape
; Save data ! ...set custom speed in (SAVE_SPEED+1)
;
;
; $Id: musamy_save.asm,v 1.2 2012/01/09 16:02:36 stefano Exp $
;
;
; speed extimations:
; 3 = 4800 bps
; 9 = 3600 bps
; 20 = 2400 bps
; 40 = 1200 b... |
;
; PC6001 64/128 C Library
;
; puts_cons
;
; Stefano Bodrato - 2013
;
;
; $Id: puts_cons.asm,v 1.3 2016/05/15 20:15:46 dom Exp $
;
SECTION code_clib
PUBLIC puts_cons_native
;
; Entry: hl = points text
;
.puts_cons_native
pop bc
pop hl
push hl
push bc
JP 30CFh ; Print string in (HL)
|
musicChan3RumiaTheme::
setRegisters $80, $40, $40, $00, $00
.loop:
repeat 4
setFrequency NOTE_F / 4, $80
wait QUAVER
setFrequency NOTE_F / 4, $80
wait QUAVER
setFrequency NOTE_C / 2, $80
wait CROTCHET
continue
repeat 4
setFrequency NOTE_Db / 4, $80
wait QUAVER
setFrequency NOTE_Db / 4, $80
wait QUAVER
s... |
#include <iostream>
using namespace std ;
int main ()
{
int n ;
cin >> n ;
int arr[n] ;
for (int i=0 ; i< n ; i++)
cin >> arr[i] ;
for (int i=0 ; i< n ; i++)
if (arr[i]<38)
arr[i] = arr[i];
else {
int c = ( arr[i] /5 ) + 1 ;
if ((c*5)-... |
/*
* Copyright 2021 IBM Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... |
; A025713: Index of 6^n within sequence of numbers of form 3^i*6^j.
; 1,3,7,12,19,28,38,50,64,79,96,114,134,156,179,204,231,259,289,320,353,388,424,462,502,543,586,631,677,725,774,825,878,932,988,1046,1105,1166,1228,1292,1358,1425,1494,1565,1637,1711,1787,1864,1943,2023,2105,2189
mov $19,$0
mov $21,$0
add $21,1
lpb $2... |
; Copyright (c) 2004, Intel Corporation
; All rights reserved. This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution... |
; A188295: [nr]-[nr-r], where r=1/sqrt(2), [ ]=floor.
; 0,1,1,0,1,1,0,1,1,1,0,1,1,0,1,1,1,0,1,1,0,1,1,0,1,1,1,0,1,1,0,1,1,1,0,1,1,0,1,1,0,1,1,1,0,1,1,0,1,1,1,0,1,1,0,1,1,1,0,1,1,0,1,1,0,1,1,1,0,1,1,0,1,1,1,0,1,1,0,1,1,0,1,1,1,0,1,1,0,1,1,1,0,1,1,0,1,1,1,0
mov $2,$0
mov $4,2
lpb $4
mov $0,$2
sub $4,1
add $0,$4
... |
00000000 B013 mov al,13h
00000002 CD10 int 10h
00000004 C537 lds si,[bx]
00000006 1E push ds
00000007 07 pop es
00000008 31D2 xor dx,dx
0000000A 0940C7 or [bx+si-39h],ax
0000000D 00B95701 add [bx+di+0157h],bh
00000011 4B ... |
// Licensed under the Apache License, Version 2.0.
// Author: Jin Qing (http://blog.csdn.net/jq0123)
#include <grpc_cb_core/common/status.h>
namespace grpc_cb_core {
const Status& Status::OK = Status();
const Status& Status::CANCELLED = Status(GRPC_STATUS_CANCELLED, "Cancelled");
const Status& Status::UNIMPLEMENTED ... |
; A009441: a(n) is the concatenation of n and 7n.
; 17,214,321,428,535,642,749,856,963,1070,1177,1284,1391,1498,15105,16112,17119,18126,19133,20140,21147,22154,23161,24168,25175,26182,27189,28196,29203,30210,31217,32224,33231,34238,35245,36252,37259,38266,39273,40280,41287,42294,43301,44308,45315,46322,47329,48336,4934... |
.text
.abicalls
.section .mdebug.abi32,"",@progbits
.nan legacy
.file "gobmk.owl_vital_apat.autohelperowl_vital_apat34.ll"
.text
.hidden autohelperowl_vital_apat34
.globl autohelperowl_vital_apat34
.align 2
.type autohelperowl_vital_apat34,@function
.set nomicromips
.set nomips16
.ent autohelperowl_vital_a... |
; void flockfile(FILE *file)
SECTION code_clib
SECTION code_stdio
PUBLIC flockfile
EXTERN asm_flockfile
flockfile:
push hl
pop ix
jp asm_flockfile
|
#include <boost/config.hpp>
#if defined(BOOST_MSVC)
#pragma warning(disable: 4786) // identifier truncated in debug info
#pragma warning(disable: 4710) // function not inlined
#pragma warning(disable: 4711) // function selected for automatic inline expansion
#pragma warning(disable: 4514) // unreferenced inline re... |
dnl PowerPC-32/VMX and PowerPC-64/VMX mpn_and_n, mpn_andn_n, mpn_nand_n,
dnl mpn_ior_n, mpn_iorn_n, mpn_nior_n, mpn_xor_n, mpn_xnor_n -- mpn bitwise
dnl logical operations.
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; yo... |
//n^2-n+2
#include<bits/stdc++.h>
using namespace std;
int t,n;
int main(){
cin>>t;
while(t--){
cin>>n;
if(n==0){
cout<<1<<endl;
continue;
}
cout<<n*n-n+2<<endl;
}
return 0;
}
|
;; @file
; This is the assembly code for transferring to control to OS S3 waking vector
; for X64 platform
;
; Copyright (c) 2006 - 2012, 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 Lic... |
setBufferMode:
bx lr |
#include "lib/mainwindow.h"
#include <QApplication>
#include <time.h>
#define return w->popFunctionCall(evens.toString()); return;
MainWindow* w = nullptr;
void allEvens(Array& evens, Array& array, int evenSize, int arraySize){
NOTIFY_START("allEvens", evens, array, evenSize, arraySize)
int n = arr... |
/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <CoreLights/EditorDirectionalLightComponent.h>
#include <Atom/RPI.Edit/Common/ColorUtils... |
/****************************************************************************
*
* Copyright (c) 2016, 2021 PX4 Development Team. 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. Re... |
###############################################################################
# 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... |
// Copyright (c) 2013-2015 The XRJV1 Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/test/unit_test.hpp>
#include "base58.h"
#include "key.h"
#include "uint256.h"
#include "util.h"
#include "util... |
; A092246: Odd "odious" numbers (A000069).
; 1,7,11,13,19,21,25,31,35,37,41,47,49,55,59,61,67,69,73,79,81,87,91,93,97,103,107,109,115,117,121,127,131,133,137,143,145,151,155,157,161,167,171,173,179,181,185,191,193,199,203,205,211,213,217,223,227,229,233,239,241,247,251,253,259,261,265,271,273,279,283,285,289,295,299,30... |
lc r4, 0x00800000
lc r5, 0xfffffff4
eq r6, r4, r5
halt
#@expected values
#r4 = 0x00800000
#r5 = 0xfffffff4
#r6 = 0x00000000
#pc = -2147483628
#e0 = 0
#e1 = 0
#e2 = 0
#e3 = 0
|
; **********************************************************************
; Append 16-bit decimal number out outputBuffer
;
; On entry, tempAddr=number to print
; pad=0 or pad character (eg '0' or ' ')
; On entry at PrDec16Lp1,
; Y=(tempAddrber of digits)*2-2, eg 8 for 5 digits
; On exit, A,X,Y,tem... |
global expression
global term
global factor
section .text
; `factor(char *p, int *i)`
; Evaluates "(expression)" or "number" expressions
; @params:
; p -> the string to be parsed
; i -> current position in the string
; @returns:
; the result of the parsed expression
factor:
push ebp
mov ebp, esp
... |
;
;/*
; * FreeRTOS Kernel V10.1.0
; * Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
; *
; * Permission is hereby granted, free of charge, to any person obtaining a copy of
; * this software and associated documentation files (the "Software"), to deal in
; * the Software without res... |
db "MAGNET@" ; species name
dw 303, 1320 ; height, weight
db "When many"
next "MAGNETON gather"
next "together, the"
page "resulting magnetic"
next "storm disrupts"
next "radio waves.@"
|
; A061885: n + largest triangular number less than or equal to n.
; 0,2,3,6,7,8,12,13,14,15,20,21,22,23,24,30,31,32,33,34,35,42,43,44,45,46,47,48,56,57,58,59,60,61,62,63,72,73,74,75,76,77,78,79,80,90,91,92,93,94,95,96,97,98,99,110,111,112,113,114,115,116,117,118,119,120,132,133,134,135,136,137,138,139,140,141,142,143,1... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x1005a, %rsi
lea addresses_normal_ht+0x53c0, %rdi
nop
nop
xor $38265, %r13
mov $105, %rcx
rep movsw
sub %r11, %r11
lea addresses_D_ht+0x3218, %rax
nop
nop
nop
and $62109, %r12
mov $0x61... |
.MODEL SMALL
.STACK 100H
.DATA
A DB 'EQUAL$'
B DB 'NOT EQUAL$'
.CODE
MAIN PROC
MOV AX, @DATA
MOV DS, AX
MOV AH,1
INT 21H
MOV BL,AL
CMP BL,049
JE EQUAL ; JE means Jump if Equal
JNE NEQUAL ; JNE means Jump not Equal
EQUAL:
LEA DX,A
... |
; @@@ int mikeos_check_for_key(void);
%include "os_vector.inc"
section .text
use16
global _mikeos_check_for_key
_mikeos_check_for_key:
mov bx, os_check_for_key
call bx
xor ah, ah
ret
|
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
using namespace std;
vector<string> cutUp(const string &s, const string &delim=" ") {
int lastPos = 0, pos = 0;
vector<string> ret;
while (pos+deli... |
#include <stdio.h>
#include <string.h>
#define N 51
void minus(char a[],char b[],char c[]);
void main()
{
char a[N],b[N],c[N];
int m,n,i,flag;
while (scanf("%s%s",a,b)==2)
{
m=strlen(a);
n=strlen(b);
flag=1;
if (m<n)
printf("are you crazy?\n");
else i... |
SECTION code_stdio
PUBLIC __stdio_scanf_sm_string
PUBLIC __stdio_scanf_sm_string_write
EXTERN asm_isspace
__stdio_scanf_sm_string:
; STRING STATE MACHINE
;
; Qualify function for STDIO_MSG_EATC
;
; set-up: hl = state machine function address
; bc = void *buffer (0 = assignment suppression... |
; A158254: 289n^2 + 2n.
; 291,1160,2607,4632,7235,10416,14175,18512,23427,28920,34991,41640,48867,56672,65055,74016,83555,93672,104367,115640,127491,139920,152927,166512,180675,195416,210735,226632,243107,260160,277791,296000,314787,334152,354095,374616,395715,417392,439647,462480,485891,509880,534447,559592,585315,611... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r8
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0xf27e, %rsi
lea addresses_WT_ht+0x11b66, %rdi
nop
nop
nop
nop
nop
cmp %rdx, %rdx
mov $81, %rcx
rep movsq
nop
nop
nop
xor %rbx, %rbx
lea addresses_UC_ht+0x12e56, %rdx
nop
nop
n... |
;******************************************************************************
;* x86-optimized vertical line scaling functions
;* Copyright (c) 2011 Ronald S. Bultje <rsbultje@gmail.com>
;* Kieran Kunhya <kieran@kunhya.com>
;*
;* This file is part of Libav.
;*
;* Libav is free software; you can red... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r15
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0xa466, %rsi
lea addresses_WC_ht+0x19466, %rdi
clflush (%rsi)
nop
inc %rax
mov $115, %rcx
rep movsw
nop
nop
nop
sub %r11, %r11
lea addresses_A_ht+0x3c66, %rsi
lea addresses_WT_ht+0xf9f6, ... |
#ifndef GATES_HPP
#define GATES_HPP
#include "Components.hpp"
// Everything is built from NAND gates.
// NAND gates are the only gate that directly manipulate bits.
class NAND : public Component
{
public:
// NAND has two inputs and a single output
NAND() : Component(2, 1) {}
void process();
};
// A... |
#ifndef STAN_MATH_PRIM_MAT_FUN_DIAG_MATRIX_HPP
#define STAN_MATH_PRIM_MAT_FUN_DIAG_MATRIX_HPP
#include <stan/math/prim/mat/fun/Eigen.hpp>
namespace stan {
namespace math {
/**
* Return a square diagonal matrix with the specified vector of
* coefficients as the diagonal values.
*
* @tparam T type of elements in t... |
extern m7_ippsGFpMethod_p256sm2:function
extern n8_ippsGFpMethod_p256sm2:function
extern y8_ippsGFpMethod_p256sm2:function
extern e9_ippsGFpMethod_p256sm2:function
extern l9_ippsGFpMethod_p256sm2:function
extern n0_ippsGFpMethod_p256sm2:function
extern k0_ippsGFpMethod_p256sm2:function
extern ippcpJumpIndexForMergedLib... |
9F_Header:
sHeaderInit ; Z80 offset is $D2D4
sHeaderPatch 9F_Patches
sHeaderTick $01
sHeaderCh $01
sHeaderSFX $80, $05, 9F_FM5, $17, $04
9F_FM5:
sPatFM $00
ssModZ80 $06, $01, $58, $97
dc.b nC0, $06
9F_Loop1:
dc.b nE0, $09
saVolFM $0E
sLoop $00, $06, 9F_Loop1
sStop
9F_Patches:
; Patch $00
; $F2... |
SFX_Snare9_3_Ch1:
unknownnoise0x20 0, 130, 38
endchannel
|
// Unit test of the sparse linear algebra routines.
#include "LibCMatrix.hpp"
int main(int argc, char **argv) {
INTEGER NumThreads = String2Integer(argv[1]);
#ifdef USE_OPENBLAS
openblas_set_num_threads(NumThreads);
#elif defined USE_OPENMP
omp_set_num_threads(NumThreads);
#else
NumThreads = 1; // To avoid c... |
; void __CALLEE__ *realloc_callee(void *p, unsigned int size)
; 12.2006 aralbrec
XLIB realloc_callee
XDEF ASMDISP_REALLOC_CALLEE
LIB HeapRealloc_callee
XREF _heap, ASMDISP_HEAPREALLOC_CALLEE
.realloc_callee
pop hl
pop bc
ex (sp),hl
.asmentry
; hl = void *p
; bc = size
ld de,_heap
jp HeapR... |
;------------------------------------------------------------------------------ ;
; Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
; Module Name:
;
; SmmInit.nasm
;
; Abstract:
;
; Functions for relocating SMBASE's for all processors
;
;------... |
; float __fszero (float number) __z88dk_fastcall
SECTION code_clib
SECTION code_math
PUBLIC asm_fszero
EXTERN m32_fszero_fastcall
; return a legal zero
;
; enter : stack = ret
; DEHL = sccz80_float number
;
; exit : DEHL = sccz80_float(0)
;
; uses : af, bc, de, hl
DEFC ... |
#include <torch/csrc/jit/runtime/interpreter.h>
#include <ATen/Parallel.h>
#include <ATen/core/ivalue.h>
#include <ATen/record_function.h>
#include <c10/core/thread_pool.h>
#include <c10/util/Exception.h>
#include <torch/csrc/autograd/edge.h>
#include <torch/csrc/autograd/grad_mode.h>
#include <torch/csrc/autograd/pro... |
#pragma once
#include <string>
#include "Action.hpp"
namespace CraftWorld::Actions {
class GetWorldAction :
public Action {
friend boost::serialization::access;
/**
* Serializes the Action.
* @tparam ArchiveType The type of archive used for serialization.
* @param archive The archive used for s... |
// Copyright 2022 Eidos-Montreal / Eidos-Sherbrooke
// 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... |
;Testname=test; Arguments=-fbin -oiftoken.txt; Files=stdout stderr iftoken.txt
%define ZMACRO
%define NMACRO 1
%define TMACRO 1 2
db 'N "":'
%iftoken
db ' token'
%else
db ' ntoken'
%endif
%ifempty
db ' empty'
%else
db ' nempty'
%endif
db 10
db 'C "":'
%iftoken ; With a comment!
db ' token'
%else
db ' ntoke... |
dnl AMD64 mpn_lshift -- mpn left shift, optimised for Atom.
dnl Contributed to the GNU project by Torbjorn Granlund.
dnl Copyright 2011, 2012 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 modify
dnl it und... |
/*
* 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.