text stringlengths 1 1.05M |
|---|
.code
_Div128_64 proc
mov rax, rcx
idiv r8
mov [r9], rdx
ret
ret;
_Div128_64 endp
END |
#include<iostream>
using namespace std;
int main()
{
int n,a;
int r,s;
cin>>n;
for(int i=0;i<n;i++){
cin>>a;
r=a%10;
int sum=r+s;
cout<<sum<<"\n";
}
return 0;
}
|
; int creat(const char *path, mode_t mode)
SECTION code_fcntl
PUBLIC _creat
EXTERN asm_creat
_creat:
pop af
pop de
pop bc
push bc
push de
push af
jp asm_creat
|
; Dummy function to keep rest of libs happy
;
; $Id: writebyte.asm,v 1.5 2016-03-06 21:39:54 dom Exp $
;
SECTION code_clib
INCLUDE "target/test/def/test_cmds.def"
PUBLIC writebyte
PUBLIC _writebyte
.writebyte
._writebyte
pop de
pop hl
pop bc
push bc
push hl
push de
ld b,c
ld a,CMD_WRITE... |
_grep: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
}
}
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 push %ebp
b:... |
db 0 ; species ID placeholder
db 50, 100, 60, 80, 90, 60
; hp atk def spd sat sdf
db GRASS, DARK ; type
db 45 ; catch rate
db 181 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F50 ; gender ratio
db 100 ; unknown 1
db 15 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/shiftry/fro... |
; int putchar(int c)
INCLUDE "clib_cfg.asm"
SECTION code_stdio
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $02
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC _putchar
EXTERN _putchar_fastcall
_putchar:
pop af
pop hl
push hl
push af
jp _putchar_fastcall
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;... |
; A293544: a(n) is the integer k that minimizes |k/Fibonacci(n) - 1/3|.
; 0,0,0,1,1,2,3,4,7,11,18,30,48,78,126,203,329,532,861,1394,2255,3649,5904,9552,15456,25008,40464,65473,105937,171410,277347,448756,726103,1174859,1900962,3075822,4976784,8052606,13029390,21081995,34111385,55193380,89304765,144498146,233802911,3783... |
tileset: MACRO
dba \1GFX, \1Meta, \1Coll
dw \1Anim
dw NULL
dw \1PalMap
ENDM
; Associated data:
; - The *GFX, *Meta, and *Coll are defined in gfx/tilesets.asm
; - The *PalMap are defined in gfx/tileset_palette_maps.asm
; - The *Anim are defined in engine/tilesets/tileset_anims.asm
Tilesets::
; entries correspond t... |
#include "shapecircle.h"
#include "3rdParty/MathGeoLib/Math/float2.h"
ShapeCircle::ShapeCircle() : Shape(ShapeType::SHAPE_CIRCLE)
{
SetSize(float2(20, 20));
SetFillColor(QColor::fromRgb(255, 0, 0, 255));
SetStrokeThickness(4);
SetStrokeColor(QColor::fromRgb(0, 0, 0));
SetStrokeStyle(Qt::PenStyle:... |
; A192068: a(n) = Fibonacci(2*n) - (n mod 2).
; 0,3,7,21,54,144,376,987,2583,6765,17710,46368,121392,317811,832039,2178309,5702886,14930352,39088168,102334155,267914295,701408733,1836311902,4807526976,12586269024,32951280099,86267571271,225851433717,591286729878
mov $2,$0
mov $3,$0
lpb $2
mov $0,$3
sub $2,1
sub ... |
#include "CRC32.h"
IMPLEMENT_META( XE::CRC32 );
static unsigned int crc32_table[] = {
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f,
0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988,
0x09b64c2b, 0x7eb17cbd, 0xe7b82d07, 0x90bf1d91, 0x1db71064, 0x6ab020f2,
... |
; 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 ... |
# Times table lister
jmp .Main
ProcSpace:
PUSH 32
SYS 4
POP
RET
ProcCr:
PUSH 10
SYS 4
POP
RET
TwoTimes:
PUSH 2
STA T
RET
.Main:
CALL TwoTimes
CALL PrintTable
CALL ProcCr
HLT
PrintTable:
PUSH 1
STA A
PUSH 12
STA B
loop:
# Print A value to the console
LDA A... |
; A257531: If 2^(n-1) mod n = 1, then 1 else 0.
; 0,0,1,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,0,0,0,0,1,0,1,0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,1,0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0
seq $0,15910 ; a(n) = 2^n mod n.
mov $1,2
cmp $1,$0
mov $0,$1
|
; SPIR-V
; Version: 1.0
; Generator: Khronos Glslang Reference Front End; 10
; Bound: 648
; Schema: 0
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %4 "main" %12 %459
OpExecutionMode %4 Or... |
.MODEL SMALL
.STACK 100H
.DATA
INPUT_MSG DB 'Enter hex numbers: $'
BIT_MSG DB 0AH,0DH,'Entered number is:$'
.CODE
MAIN PROC
;making the DS to point to data segment
MOV AX,@DATA
MOV DS,AX
LEA DX,INPUT_MSG
MOV AH,9
INT 21H
XOR BX,BX
MOV CL,4
MOV AH,1
INT 21H
WHILE_:
... |
.segment "BSS"
temp_y_pos: .res 1
temp_x_pos: .res 1
temp_reg_x: .res 1
temp_reg_y: .res 1
temp_low: .res 1
temp_high: .res 1
temp_tile: .res 1 ; temp_tile storage
famitone_memory: .res 256 |
// Copyright Carl Philipp Reh 2006 - 2019.
// 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)
#ifndef SGE_OPENGL_STATE_CORE_BLEND_DEFAULT_CONTEXT_HPP_INCLUDED
#define SGE_OPENGL_STATE_CORE_BLEN... |
; A017525: (12n)^5.
; 0,248832,7962624,60466176,254803968,777600000,1934917632,4182119424,8153726976,14693280768,24883200000,40074642432,61917364224,92389579776,133827821568,188956800000,260919263232
pow $0,5
mul $0,248832
|
#include "cs.h"
/* y = A*x+y */
CS_INT cs_gaxpy(const cs* A, const CS_ENTRY* x, CS_ENTRY* y) {
CS_INT p, j, n, *Ap, *Ai;
CS_ENTRY* Ax;
if (!CS_CSC(A) || !x || !y) {
return (0);
} /* check inputs */
n = A->n;
Ap = A->p;
Ai = A->i;
Ax = A->x;
for (j = 0; j < n; j++) {
f... |
// Test of simple enum - multiple inline enum definitions
// Commodore 64 PRG executable file
.file [name="enum-5.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
:... |
; A239447: Partial sums of A030101.
; 0,1,2,5,6,11,14,21,22,31,36,49,52,63,70,85,86,103,112,137,142,163,176,205,208,227,238,265,272,295,310,341,342,375,392,441,450,491,516,573,578,615,636,689,702,747,776,837,840,875,894,945,956,999,1026,1085,1092,1131,1154,1209,1224,1271,1302,1365,1366,1431,1464,1561,1578,1659,1708,182... |
#pragma once
#include <boost/aura/base/allocation_tracker.hpp>
#include <boost/aura/base/check_initialized.hpp>
#include <boost/aura/base/cuda/safecall.hpp>
#include <boost/aura/platform.hpp>
#include <cuda.h>
namespace boost
{
namespace aura
{
namespace base_detail
{
namespace cuda
{
class device
{
public:
... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: trLargeSet.asm
AUTHOR: John Wedgwood, Feb 12, 1992
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date De... |
; A215960: First differences of A016759.
; 2186,75938,745418,3959426,14704202,43261346,108110858,239479298,483533066,907216802,1603736906,2698690178,4356837578,6789523106,10262737802,15105828866,21720853898,30592580258,42299129546,57523267202,77064337226,101850842018,132953667338,171599952386,219187605002,277300461986,... |
;;
;; Copyright (c) 2012-2022, 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... |
; A070657: n^6 mod 34.
; 0,1,30,15,16,19,8,9,4,21,26,25,2,33,32,13,18,17,18,13,32,33,2,25,26,21,4,9,8,19,16,15,30,1,0,1,30,15,16,19,8,9,4,21,26,25,2,33,32,13,18,17,18,13,32,33,2,25,26,21,4,9,8,19,16,15,30,1,0,1,30,15,16,19,8,9,4
pow $0,6
mod $0,34
mov $1,$0
|
db DEX_TYRANITAR ; pokedex id
db 100 ; base hp
db 134 ; base attack
db 110 ; base defense
db 61 ; base speed
db 95 ; base special
db ROCK ; species type 1
db DARK ; species type 2
db FULL_HEAL ; catch rate
db 177 ; base exp yield
INCBIN "pic/ymon/tyranitar.pic",0,1 ; 66, sprite dimensions
dw TyranitarPicFront
dw Tyrani... |
.model
.stack
.data
hex db "0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F";
msg db "The number is :$";
.code
mov ax,@data;
mov ds,ax;
mov Dx,offset msg
MOV AH,09H
INT 21H
mov ah,00110000b;
mov al,ah;
shr al,4
mov bl,al
mov al,ah;
shl al,4
shr al,4
mov cl,al
mov ch,0h;
mov ... |
; A053842: (Sum of digits of n written in base 7) modulo 7.
; 0,1,2,3,4,5,6,1,2,3,4,5,6,0,2,3,4,5,6,0,1,3,4,5,6,0,1,2,4,5,6,0,1,2,3,5,6,0,1,2,3,4,6,0,1,2,3,4,5,1,2,3,4,5,6,0,2,3,4,5,6,0,1,3,4,5,6,0,1,2,4,5,6,0,1,2,3,5,6,0,1,2,3,4,6,0,1,2,3,4,5,0,1,2,3,4,5,6,2,3,4,5,6,0,1,3,4,5,6,0,1,2,4,5,6,0,1,2,3,5,6,0,1,2,3,4,6,0,1,... |
; A070450: a(n) = n^2 mod 28.
; 0,1,4,9,16,25,8,21,8,25,16,9,4,1,0,1,4,9,16,25,8,21,8,25,16,9,4,1,0,1,4,9,16,25,8,21,8,25,16,9,4,1,0,1,4,9,16,25,8,21,8,25,16,9,4,1,0,1,4,9,16,25,8,21,8,25,16,9,4,1,0,1,4,9,16,25,8,21,8,25,16,9,4,1,0,1,4,9,16,25,8,21,8,25,16,9,4,1,0,1,4,9,16,25,8,21,8,25,16,9,4,1,0,1,4,9,16,25,8,21,8,25,... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r14
push %r8
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x1b613, %r11
nop
nop
add %rbp, %rbp
mov $0x6162636465666768, %r12
movq %r12, %xmm0
vmovups %ymm0, (%r11)
nop
nop
nop
cmp %rax, %rax
lea addresses_D_ht+0... |
; A138970: Positions of the primes congruent to 1 mod 4 when all primes except 2 are listed in order.
; Submitted by Jamie Morken
; 2,5,6,9,11,12,15,17,20,23,24,25,28,29,32,34,36,39,41,43,44,49,50,52,54,56,58,59,61,64,65,67,69,70,73,76,77,78,79,81,83,86,87,88,96,97,99,101,103,105,107,109,111,112,115,118,120,121,122,125... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r8
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0xabec, %rcx
nop
nop
nop
nop
nop
and $63217, %rsi
movb $0x61, (%rcx)
nop
nop
nop
nop
sub $51112, %r14
lea addresses_WT_ht+0x905c, %rsi
lea addresses_WT_ht+0x16055, %rdi
nop
... |
// Copyright (c) 2011-2016 The Bitcoin Core developers
// Copyright (c) 2017 The Marlin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "assetsdialog.h"
#include "sendcoinsdialog.h"
#include "ui_assetsdi... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r8
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x18739, %r11
inc %r13
mov $0x6162636465666768, %r8
movq %r8, %xmm7
movups %xmm7, (%r11)
nop
nop
nop
sub $37695, %r13
lea addresses_D_ht+0x165e0, %rsi
lea addresses_D_ht+0x12339... |
; Copyright © 2018, VideoLAN and dav1d authors
; Copyright © 2018, Two Orioles, LLC
; All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions are met:
;
; 1. Redistributions of source code must retain the above copy... |
; A166977: Jacobsthal-Lucas numbers A014551, except a(0) = 0.
; 0,1,5,7,17,31,65,127,257,511,1025,2047,4097,8191,16385,32767,65537,131071,262145,524287,1048577,2097151,4194305,8388607,16777217,33554431,67108865,134217727,268435457,536870911,1073741825,2147483647,4294967297,8589934591,17179869185,34359738367,68719476737... |
clr a ; vetor de power-up
jmp inicio
db 0,0,0,0 ; vetor de interrupcao
sel rb1 ; vetor de interrupcao
mov r2,a
mov a,#0A0h
mov t,a
mov a,r4
xrl a,#55h
jnz nreset ; em reset manda AA
mov r4,#0AAh
clr ... |
;
; jfsseflt.asm - floating-point FDCT (SSE)
;
; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
;
; Based on
; x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYASAKA Masaru.
; For conditions of distribution and use, see copyright notice in jsimdext.inc
;
; This file should ... |
#include "Platform.inc"
#include "FarCalls.inc"
#include "Motor.inc"
#include "TestFixture.inc"
radix decimal
udata
global expectedPORTC
global expectedTRISC
expectedPORTC res 1
expectedTRISC res 1
PortcTest code
global testArrange
testArrange:
banksel ANSEL
clrf ANSEL
banksel ANSELH
clrf ANSELH
tes... |
_tcpecho: file format elf32-i386-freebsd
Disassembly of section .text:
00000000 <main>:
#include "lwip/sockets.h"
#include "lwip/inet.h"
int main()
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: ff 71 fc pushl 0xfffffffc(%e... |
;------------------------------------------------------------------------------
;
; 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. Th... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r14
push %r15
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x1ccc5, %rax
clflush (%rax)
nop
nop
nop
cmp %r12, %r12
mov (%rax), %rcx
nop
nop
nop
nop
nop
cmp %r11, %r11
lea addresses_WT_ht+0x1c2af, %rsi
lea addresses_UC_ht+0x6c5, %rdi
c... |
;----------------------------------------------------------------------
; getw.asm - user-callable entry point to _getw() function.
;----------------------------------------------------------------------
;
; C/C++ Run Time Library - Version 10.0
;
; Copyright (c) 1996, 2000 by Inprise Corporation
; ... |
; void __CALLEE__ sp1_PrintAt_callee(uchar row, uchar col, uchar colour, uint tile)
; 03.2006 aralbrec, Sprite Pack v3.0
; sinclair spectrum version
PUBLIC sp1_PrintAt_callee
PUBLIC ASMDISP_SP1_PRINTAT_CALLEE
EXTERN sp1_GetUpdateStruct_callee
EXTERN ASMDISP_SP1_GETUPDATESTRUCT_CALLEE
.sp1_PrintAt_callee
pop af
... |
//===--- Requests.cpp -----------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
; A086936: Number of primes between n and p(n) inclusive.
; 1,2,2,2,3,3,4,4,5,6,7,7,8,8,9,10,11,11,12,12,13,14,15,15,16,17,18,19,20,20,21,21,22,23,24,25,26,26,27,28,29,29,30,30,31,32,33,33,34,35,36,37,38,38,39,40,41,42,43,43,44,44,45,46,47,48,49,49,50,51,52,52,53,53
mov $1,$0
cal $0,230980 ; Number of primes <= n, sta... |
.program:
ji i4
noop
DATA_SECTION_OFFSET[0..32]
DATA_SECTION_OFFSET[32..64]
lw $ds $is 1
add $$ds $$ds $is
lw $r0 $fp i73 ; load input function selector
lw $r1 data_2 ; load fn selector for comparison
eq $r1 $r0 $r1 ; function selector comparison
jnzi $r1 i17 ... |
decoration: MACRO
; type, name, command, event flag, tile/sprite
db \1, \2, \3
dw \4
db \5
ENDM
DecorationAttributes:
; entries correspond to deco constants
decoration DECO_PLANT, $00, $0, EVENT_TEMPORARY_UNTIL_MAP_RELOAD_1, $00
decoration DECO_PLANT, PUT_IT_AWAY, PUT_AWAY_... |
%include 'pe.inc'
PE32
; Data declarations here
BYTE Dll, "MSOWC-patched.DLL",0
; this will cause the exe to be as large as 1MB
; BYTE Empty_class[0x100000]
START
; instructions
push ecx
push edx
; mov ecx, VA(Empty_class)
; the following code is equivalent to this x64dbg command:
; eip = 3c7dc946; push 7fa... |
object_const_def ; object_event constants
const TRADECENTER_CHRIS1
const TRADECENTER_CHRIS2
TradeCenter_MapScripts:
db 2 ; scene scripts
scene_script .InitializeTradeCenter ; SCENE_DEFAULT
scene_script .DummyScene ; SCENE_FINISHED
db 1 ; callbacks
callback MAPCALLBACK_OBJECTS, .SetWhichChris
.InitializeTrade... |
; A308579: a(n) = (9*2^n - 6*n - 10)/2.
; 1,7,22,55,124,265,550,1123,2272,4573,9178,18391,36820,73681,147406,294859,589768,1179589,2359234,4718527,9437116,18874297,37748662,75497395,150994864,301989805,603979690,1207959463,2415919012,4831838113,9663676318,19327352731
mov $1,2
pow $1,$0
mul $1,3
sub $1,$0
sub $1,3
mul ... |
/* ****************************************************************** **
** OpenSees - Open System for Earthquake Engineering Simulation **
** Pacific Earthquake Engineering Research Center **
** **
** ... |
; A238384: Triangle of numbers related to A075535.
; 1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,2,2,1,1,1,1,2,3,2,1,1,1,1,2,3,3,2,1,1,1,1,2,3,4,3,2,1,1,1,1,2,3,4,4,3,2,1,1,1,1,2,3,4,6,4,3,2,1,1,1,1,2,3,4,6,6,4,3,2,1,1,1,1,2,3,4,6
seq $0,139040 ; Triangle read by rows: each row is an initial segment of the terms of A000930 foll... |
/* Copyright 2007-2016 QReal Research Group
*
* 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... |
//
// Copyright 2017 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trad... |
; QXL Receive data from port 2000 Tony Tebby
section spp
xdef spp_rxser
xref qxl_mess_prnext
xref iob_pbyt
xref iob_room
xref iob_eof
include 'dev8_smsq_qxl_keys'
include 'dev8_smsq_qxl_comm_keys'
include 'dev8_keys_serparprt'
;+++
; Receive data from port
;
; a4 c u pointer to message
;
;---
spp_... |
; $Id: ASMSetIDTR.asm $
;; @file
; IPRT - ASMSetIDTR().
;
;
; Copyright (C) 2006-2015 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 redistribute it and/or modify it under the terms of the GNU
; Gene... |
#define TIMING
#define DETAIL_TIMING
#define METRICS
#include <sam/GraphStore.hpp>
#include <sam/EdgeDescription.hpp>
#include <sam/SubgraphQuery.hpp>
#include <sam/ZeroMQPushPull.hpp>
#include <sam/VastNetflowGenerators.hpp>
#include <boost/program_options.hpp>
#include <string>
#include <vector>
#include <chrono>
#i... |
; A095843: Triangle read by rows: T(n,k) = (n-k)^((n-k+1)^2), n>=1, 1<=k<=n.
; Submitted by Christian Krause
; 0,1,0,512,1,0,43046721,512,1,0,1125899906842624,43046721,512,1,0,14551915228366851806640625,1125899906842624,43046721,512,1,0,134713546244127343440523266742756048896,14551915228366851806640625
seq $0,212012 ;... |
.text
# initialization
li t0, 0xdeadbeef
li t1, 0xaffed00f
sw t0, (gp)
sw t1, 4 (gp)
mv a1, gp
addi a1,a1,2
jal read_word_unaligned # a0 is output
mv s0, a0
li t2, 0xd00fdead # reference value
bne t2, s0, error_test
li a0, 5 #if program finishes with code 5 the unittest was successfully
li a7,93
ecall
error_... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r15
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x11fa1, %rdi
nop
inc %r9
movw $0x6162, (%rdi)
nop
nop
nop
nop
cmp $15870, %r12
lea addresses_A_ht+0x1b031, %r11
nop
nop
nop
nop
nop
add $20646, %r15
mov $0x6162636465666768, %r... |
#include "testing/testing.hpp"
#include "indexer/classificator_loader.hpp"
#include "indexer/drawing_rules.hpp"
#include "indexer/drules_struct.pb.h"
#include "indexer/map_style_reader.hpp"
namespace
{
double constexpr kMaxVisualScale = 4.;
double constexpr kMaxDashLength = 128 / kMaxVisualScale;
// Why 128? 7 bits ... |
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
80
.text@150
lbegin:
ld a, ff
ldff(45), a
ld b, 42
call lwaitly_b
ld a, 40
ldff(41), a
ld a, 02
ldff(ff), a
xor a, a
ldff(0f), a
ei
ld a, b
inc a
inc a
ldff(45), a
ld c, 0f
.text@1000
lstatint:
ld a, 08
ldff(41), a
xor a, a
.text@... |
; Play a little tune.
; Adapted from Simon's original to be
; less dependent on macro expansion
; Notes
C_ .equ 1
Cs .equ 2
D_ .equ 3
Ds .equ 4
E_ .equ 5
F_ .equ 6
Fs .equ 7
G_ .equ 8
Gs .equ 9
A_ .equ 10
As .equ 11
B_ .equ 12
; Octaves
O1 .equ 0*12
O2 .equ 1*12
O3 .equ 2*12
O4 .equ 3*12
O5 .equ 4*12
O6 .equ 5*12
O7 ... |
; A269539: Number of length-5 0..n arrays with no repeated value differing from the previous repeated value by other than one.
; 14,164,804,2648,6890,15324,30464,55664,95238,154580,240284,360264,523874,742028,1027320,1394144,1858814,2439684,3157268,4034360,5096154,6370364,7887344,9680208,11784950,14240564,17089164,2037... |
; size_t b_vector_erase_range(b_vector_t *v, size_t idx_first, size_t idx_last)
SECTION code_clib
SECTION code_adt_b_vector
PUBLIC _b_vector_erase_range
EXTERN _b_array_erase_range
defc _b_vector_erase_range = _b_array_erase_range
|
/*
* EDDL Library - European Distributed Deep Learning Library.
* Version: 1.0
* copyright (c) 2021, Universitat Politècnica de València (UPV), PRHLT Research Centre
* Date: November 2021
* Author: PRHLT Research Centre, UPV, (rparedes@prhlt.upv.es), (jon@prhlt.upv.es)
* All rights reserved
*/
#include <cstdio>
#incl... |
#include "protobuf_data_provider_reader.h"
#include "data_utils.h"
#include <catboost/libs/helpers/permutation.h>
using namespace NCatboostCuda;
inline TVector<ui64> GatherCompressed(const TVector<ui64>& order,
const TVector<ui64>& src, ui32 binCount) {
TVector<ui32> decompre... |
; unsigned char zx_tape_save_block(void *src, unsigned int len, unsigned char type)
SECTION code_clib
SECTION code_arch
PUBLIC _zx_tape_save_block
EXTERN l_zx_tape_save_block_callee
_zx_tape_save_block:
pop hl
pop bc
pop de
dec sp
pop af
push af
dec sp
push bc
push hl
jp l_zx_... |
.text
.syntax unified
.eabi_attribute 67, "2.09" @ Tag_conformance
.cpu arm1156t2f-s
.eabi_attribute 6, 8 @ Tag_CPU_arch
.eabi_attribute 8, 1 @ Tag_ARM_ISA_use
.eabi_attribute 9, 2 @ Tag_THUMB_ISA_use
.fpu vfpv2
.eabi_attribute 17, 1 @ Tag_ABI_PCS_GOT_use
.eabi_attribute 20, 1 @ Tag_ABI_FP_denormal
.eabi_att... |
_sh: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
return 0;
}
int
main(void)
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: ff 71 fc push -0x4(%ecx)
a: 55 push %ebp
... |
#include "compositegraphic.h"
using namespace Gautier::SFMLApp;
void CompositeGraphic::SetGraphicIsValid(const bool isValid)
{
}
void CompositeGraphic::BuildGraphics(const CollectionVisual graphics)
{
}
|
; A338546: For n > 0, a(n) is the number of 1's among the first T(n) terms of the sequence 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, ..., k 1's, k 0's, where T(n) is the n-th triangular number.
; Submitted by Jamie Morken(s2)
; 1,2,3,6,9,11,15,21,24,28,36,42,46,55,65,70,78,91,99,105,120,133,140,153,171,180,190,210,225,234,25... |
; A000466: a(n) = 4*n^2 - 1.
; -1,3,15,35,63,99,143,195,255,323,399,483,575,675,783,899,1023,1155,1295,1443,1599,1763,1935,2115,2303,2499,2703,2915,3135,3363,3599,3843,4095,4355,4623,4899,5183,5475,5775,6083,6399,6723,7055,7395,7743,8099,8463,8835,9215,9603,9999,10403,10815,11235,11663,12099,12543,12995,13455,13923,143... |
/*
* Copyright (c) 2008-2019, Hazelcast, Inc. 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 ... |
;
; Copyright (c) 2010 The WebM project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license
; that can be found in the LICENSE file in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing proje... |
[bits 32]
[section .text]
INT_VECTOR_SYS_CALL equ 0x80
_NR_GETPID EQU 12
global getpid
getpid:
mov eax, _NR_GETPID
int INT_VECTOR_SYS_CALL
ret |
/*
* light.c
*
* Copyright (C) 1989, 1991, Craig E. Kolb
* All rights reserved.
*
* This software may be freely copied, modified, and redistributed
* provided that this copyright notice is preserved on all copies.
*
* You may not distribute this software, in whole or in part, as part of
* any commercial produ... |
; A134582: a(n) = (2*n)^2 - 4.
; 0,12,32,60,96,140,192,252,320,396,480,572,672,780,896,1020,1152,1292,1440,1596,1760,1932,2112,2300,2496,2700,2912,3132,3360,3596,3840,4092,4352,4620,4896,5180,5472,5772,6080,6396,6720,7052,7392,7740,8096,8460
mul $0,2
mov $1,$0
add $1,4
mul $1,$0
|
// Copyright 2022 PingCAP, Ltd.
//
// 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 i... |
@Assembly code to perform 30<<2
.main:
addi x20, x0, 30
addi x21, x0, 2
sll x22, x20, x21
.print x22
end |
; A198271: Round(n*sqrt(13)).
; 0,4,7,11,14,18,22,25,29,32,36,40,43,47,50,54,58,61,65,69,72,76,79,83,87,90,94,97,101,105,108,112,115,119,123,126,130,133,137,141,144,148,151,155,159,162,166,169,173,177,180,184,187,191,195,198,202,206,209,213,216,220,224,227,231,234,238,242,245,249,252,256,260,263,267,270,274,278,281,285... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x13b10, %rsi
clflush (%rsi)
nop
nop
nop
nop
cmp $17796, %r10
mov (%rsi), %r8w
nop
nop
nop
nop
sub %r10, %r10
lea addresses_D_ht+0x7c84, %rsi
lea addresses_D_ht+0x984, %rdi
nop... |
; A104706: First terms in the rearrangements of integer numbers (see comments).
; 1,2,3,1,4,5,1,2,6,1,7,3,1,2,8,1,9,4,1,2,10,1,3,11,1,2,5,1,12,13,1,2,3,1,4,6,1,2,14,1,15,3,1,2,7,1,5,4,1,2,16,1,3,17,1,2,8,1,18,6,1,2,3,1,4,19,1,2,5,1,9,3,1,2,20,1,21,4,1,2,7,1,3,10,1,2,22,1,5,6,1,2,3,1,4,23,1,2,11,1
mul $0,2
add $0,1
mov... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r15
push %r8
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x18c71, %r12
nop
nop
nop
nop
inc %rcx
movl $0x61626364, (%r12)
nop
nop
dec %r15
lea addresses_UC_ht+0x3e99, %rcx
nop
cmp $31632, %r8
mov $0x6162636465666768, %r12
movq %r12, %... |
.global s_prepare_buffers
s_prepare_buffers:
push %r15
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x793b, %rsi
lea addresses_normal_ht+0x3230, %rdi
nop
nop
nop
nop
nop
add $24131, %r15
mov $111, %rcx
rep movsq
add $38296, %r8
lea addresses_A_ht+0x113bb, %r9
nop
add %r8, %r8
and $0xfff... |
.model small
.stack 64h
.data
pa equ 1c60h
cwr equ 1c63h
cw equ 82h
.code
call initds
call init8255
mov cx, 200h
mov al, 88h
clockwise:
call outpa
call delay
rol al, 1
loop clockwise
mov cx, 200h
mov al, 88h
anti_clockwise:
... |
; A138446: a(n) = ((n-th prime)^6-(n-th prime^2))/10.
; 6,72,1560,11760,177144,482664,2413728,4704552,14803536,59482248,88750272,256572504,475010256,632136120,1077921312,2216435832,4218053016,5152037064,9045837768,12810027888,15133422096,24308744928,32694036648,49698128304,83297199552,106152014040,119405228592,15007303... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r15
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x1b124, %rsi
lea addresses_WC_ht+0x16324, %rdi
nop
and $31312, %rbx
mov $2, %rcx
rep movsb
nop
nop
nop
nop
nop
dec %r11
lea addresses_WC_ht+0x1a54e, %rsi
lea addresses_WT_ht+... |
; A125257: Smallest prime divisor of 4n^2+3 that is of the form 6k+1.
; Submitted by Jon Maiga
; 7,19,13,67,103,7,199,7,109,13,487,193,7,787,7,13,19,433,1447,7,19,7,13,769,2503,2707,7,43,7,1201,3847,4099,1453,7,4903,7,5479,5779,2029,19,7,13,7,61,37,8467,8839,7,13,7,3469,31,11239,3889,7,12547,7,43,19,4801,14887,7,67,7,1... |
#include "hwObject.h"
#include "Windows.h"
#include <QDebug>
#include <QSysInfo>
#include <QSettings>
#include "JsonHandler.h"
#include <QTime>
#include <QFile>
#include <QDir>
#include <QProcess>
#include <QStandardPaths>
#include "RegisterHandler.h"
#include "Setting.h"
HWLevelInfo::HWLevelInfo(QObject *parent) : Q... |
_ps: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "user.h"
#include "fcntl.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 ... |
; A138692: Numbers of the form 86+p^2 (where p is a prime).
; Submitted by Jamie Morken(s3)
; 90,95,111,135,207,255,375,447,615,927,1047,1455,1767,1935,2295,2895,3567,3807,4575,5127,5415,6327,6975,8007,9495,10287,10695,11535,11967,12855,16215,17247,18855,19407,22287,22887,24735,26655,27975,30015
mul $0,2
max $0,1
seq ... |
; A099575: Number triangle T(n,k)=binomial(n+floor(k/2)+1,n+1), 0<=k<=n.
; Submitted by Christian Krause
; 1,1,1,1,1,4,1,1,5,5,1,1,6,6,21,1,1,7,7,28,28,1,1,8,8,36,36,120,1,1,9,9,45,45,165,165,1,1,10,10,55,55,220,220,715,1,1,11,11,66,66,286,286,1001,1001,1,1,12,12,78,78,364,364,1365,1365,4368,1,1,13,13,91,91,455,455,182... |
; A110659: a(n) = A028242(A110654(n)).
; 1,0,0,2,2,1,1,3,3,2,2,4,4,3,3,5,5,4,4,6,6,5,5,7,7,6,6,8,8,7,7,9,9,8,8,10,10,9,9,11,11,10,10,12,12,11,11,13,13,12,12,14,14,13,13,15,15,14,14,16,16,15,15,17,17,16,16,18,18,17,17,19,19,18,18,20,20,19,19,21,21,20,20,22,22,21,21,23,23,22,22,24,24,23,23,25,25,24,24,26
add $0,1
div $0... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) |
+---------... |
; A164028: The n-th composite minus 3.
; 1,3,5,6,7,9,11,12,13,15,17,18,19,21,22,23,24,25,27,29,30,31,32,33,35,36,37,39,41,42,43,45,46,47,48,49,51,52,53,54,55,57,59,60,61,62,63,65,66,67,69,71,72,73,74,75,77,78,79,81,82,83,84,85,87,88,89,90,91,92,93,95,96,97,99,101,102,103,105,107,108,109,111,112,113,114,115,116,117,118,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.