text stringlengths 1 1.05M |
|---|
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <gtest/gtest.h>
#include <sstream>
#include "ProguardMap.h"
TEST(ProguardMapTest, empty) {
std::stringstream ss(
... |
;
; Copyright (c) 2010 The VP8 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 projec... |
; A313831: Coordination sequence Gal.6.328.5 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; 1,5,10,16,20,25,31,36,40,46,51,56,61,66,72,76,81,87,92,96,102,107,112,117,122,128,132,137,143,148,152,158,163,168,173,178,184,188,193,199,20... |
<%
from pwnlib.shellcraft.arm.linux import syscall
%>
<%page args="fd, addr, length"/>
<%docstring>
Invokes the syscall bind. See 'man 2 bind' for more information.
Arguments:
fd(int): fd
addr(CONST_SOCKADDR_ARG): addr
len(socklen_t): len
</%docstring>
${syscall('SYS_bind', fd, addr, length)}
|
#include "sendcoinsentry.h"
#include "ui_sendcoinsentry.h"
#include "guiutil.h"
#include "bitcoinunits.h"
#include "addressbookpage.h"
#include "walletmodel.h"
#include "optionsmodel.h"
#include "addresstablemodel.h"
#include <QApplication>
#include <QClipboard>
SendCoinsEntry::SendCoinsEntry(QWidget *parent) :
Q... |
SRAM_test_0/SRAM_test_0.elf: file format elf32-littlearm
Disassembly of section .text:
00000000 <hang-0x90>:
0: 00002000 .word 0x00002000
4: 000000a1 .word 0x000000a1
...
1c: 00000090 .word 0x00000090
20: 00000090 .word 0x00000090
24: 00000090 .word 0x00000090
28: 00000090 .word 0x00000090
... |
Sprite1_1:
db $10, $10, $10, $10, $10, $10, $10, $10, $10, $10, $10, $10, $10, $10, $10, $10;
db $10, $10, $10, $10, $10, $10, $10, $24, $24, $24, $24, $10, $10, $10, $10, $10;
db $10, $10, $10, $10, $10, $24, $24, $74, $74, $50, $50, $24, $10, $10, $10, $10;
db $10, $10, $10, $10, $24, $50, $74, $74, $74, $50,... |
; Top-hole Golf
; Copyright 2020-2021 Matthew Clarke
clubs_l_VZ_LO
!byte <8469
!byte <8186
!byte <7840
!byte <7460
!byte <6847
!byte <6406
!byte <5931
!byte <5579
!byte <5492
!byte <5379
!byte <4945
!byte <3888
!byte <1480
clubs_l_VZ_HI
!byte >8469
!byte >81... |
; in
trn $0,0
; out
max $0,0
|
;;
;; Copyright (c) 2019-2021, 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... |
; asm_isxdigit
PUBLIC asm_isxdigit
; determine whether ascii char is a hexadecimal digit
; enter : a = char
; exit : carry = not a hex digit
; uses : f
.asm_isxdigit
cp '0'
ret c
cp '9'+1
ccf
ret nc
cp 'A'
ret c
cp 'F'+1
ccf
ret nc
cp 'a'
ret c
cp 'f'+1
ccf
... |
_stressfs: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "fs.h"
#include "fcntl.h"
int
main(int argc, char *argv[])
{
0: f3 0f 1e fb endbr32
4: 8d 4c 24 04 lea 0x4(%esp),%ecx
8: 83 e4 f0 and $0xfffffff0,%esp
int fd, i;
char p... |
%include "../lib/syscall.inc"
section .data
message: db 'hello, world!', 10
section .text
global _start
_start:
mov rax, NR_WRITE
mov rdi, 1 ; argument #1: stdout
mov rsi, message ; argument #2: string address
mov rdx, 14 ; argument #3: string length in bytes
syscall
mov rax, NR_EXIT
... |
/*
Original Source:
https://github.com/ondradus/WinINet---Simple-GET-POST-request
License:
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim c... |
#include "screen_recorder_gdigrab.h"
#include <assert.h>
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <Windows.h>
#include <QElapsedTimer>
#pragma warning(disable:4819)
extern "C" {
#include <libavformat/avformat.h>
#include <libavdevice/avdevice.h>
}
#pragma comment(lib, "avdevice.lib")
... |
; A053367: Partial sums of A050494.
; 1,11,63,255,825,2277,5577,12441,25740,50050,92378,163098,277134,455430,726750,1129854,1716099,2552517,3725425,5344625,7548255,10508355,14437215,19594575,26295750,34920756,45924516,59848228,77331980,99128700,126119532,159330732,199952181,249357615,309126675,381068883,467249653,57001... |
; A253679: Numbers a(n) that are the starting terms in the sum of an odd number of consecutive cubes equal to a square.
; 23,118,333,716,1315,2178,3353,4888,6831,9230,12133,15588,19643,24346,29745,35888,42823,50598,59261,68860,79443,91058,103753,117576,132575,148798,166293,185108,205291,226890,249953,274528,300663,3284... |
; A317592: Lexicographically first sequence of different terms such that erasing the last two digits of a(n+1) and adding this new reshaped integer to a(n) gives back a(n+1).
; Submitted by Jon Maiga
; 99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128... |
; ===============================================================
; Feb 2014
; ===============================================================
;
; size_t p_queue_size(p_queue_t *q)
;
; Return number of items in queue. O(n).
;
; ===============================================================
SECTION code_adt_p_queue... |
.global s_prepare_buffers
s_prepare_buffers:
push %r15
push %r8
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x77f7, %r15
nop
add $58128, %r8
mov (%r15), %eax
nop
nop
nop
add %rcx, %rcx
lea addresses_UC_ht+0xb987, %rdx
and $27623, %r8
movb $0x61, (%rdx)
nop
nop
nop
nop
cmp %r15, %r15
l... |
; A040080: Continued fraction for sqrt(90).
; 9,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,18,2,... |
Route7Object:
db $f ; border block
db $5 ; warps
db $9, $12, $2, ROUTE_7_GATE
db $a, $12, $2, ROUTE_7_GATE
db $9, $b, $0, ROUTE_7_GATE
db $a, $b, $0, ROUTE_7_GATE
db $d, $5, $0, PATH_ENTRANCE_ROUTE_7
db $1 ; signs
db $d, $3, $1 ; Route7Text1
db $1 ; people
object SPRITE_BERRY_TREE, $F,$5, NONE, $ff, $2
... |
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//---------------------------------------------------------... |
# x mapeado em $s1
.text
.globl teste
teste:
addi $8, $zero, 0x1001
sll $8, $8, 16 # valor do adress para acessar a memória armazenado em $t0
lw $16, 0($8) # load de x para $s0
lw $17, 4($8) # load de z para $s1
nop # sll $zero, $zero, 0
add $9, $zero, 3 # $t1 = 0 + 3
sll $9, $9, 16
add $9, $9, 103392 # $9 = 300000... |
;**************************************************************************
;*
;* FILE timing.asm
;* Copyright (c) 2010 Daniel Kahlin <daniel@kahlin.net>
;* Written by Daniel Kahlin <daniel@kahlin.net>
;*
;* DESCRIPTION
;*
;******
processor 6502
TEST_NAME eqm "TIMING"
ifconst HARD_NTSC
TEST_REVISION eqm "R01N"
el... |
; A071252: a(n) = n*(n - 1)*(n^2 + 1)/2.
; 0,0,5,30,102,260,555,1050,1820,2952,4545,6710,9570,13260,17927,23730,30840,39440,49725,61902,76190,92820,112035,134090,159252,187800,220025,256230,296730,341852,391935,447330,508400,575520,649077,729470,817110,912420,1015835,1127802,1248780,1379240,1519665,1670550,1832402,2005... |
; A005836: Numbers n whose base 3 representation contains no 2.
; 0,1,3,4,9,10,12,13,27,28,30,31,36,37,39,40,81,82,84,85,90,91,93,94,108,109,111,112,117,118,120,121,243,244,246,247,252,253,255,256,270,271,273,274,279,280,282,283,324,325,327,328,333,334,336,337,351,352,354,355,360,361,363,364,729,730,732,733,738,739,741... |
; A164786: a(n) = 8^n-7.
; 1,57,505,4089,32761,262137,2097145,16777209,134217721,1073741817,8589934585,68719476729,549755813881,4398046511097,35184372088825,281474976710649,2251799813685241,18014398509481977,144115188075855865,1152921504606846969,9223372036854775801,73786976294838206457,590295810358705651705,4722366482... |
; A098879: a(n) = (2^n - 1)^5 - 2.
; Submitted by Christian Krause
; -2,-1,241,16805,759373,28629149,992436541,33038369405,1078203909373,34842114263549,1120413075641341,35940921946155005,1151514816750309373,36870975646169341949,1180231376725002502141,37773167607267111108605,1208833588708967444709373,3868415051066006316... |
; A049001: a(n) = prime(n)^2 - 2.
; 2,7,23,47,119,167,287,359,527,839,959,1367,1679,1847,2207,2807,3479,3719,4487,5039,5327,6239,6887,7919,9407,10199,10607,11447,11879,12767,16127,17159,18767,19319,22199,22799,24647,26567,27887,29927,32039,32759,36479,37247,38807,39599,44519,49727,51527,52439,54287,57119,58079,62999,66... |
/* The copyright in this software is being made available under the BSD
* License, included below. This software may be subject to other third party
* and contributor rights, including patent rights, and no such rights are
* granted under this license.
*
* Copyright (c) 2010-2012, ITU/ISO/IEC
* All rights... |
/**
* Copyright Soramitsu Co., Ltd. 2017 All Rights Reserved.
* http://soramitsu.co.jp
*
* 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/LICENS... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>pipe(pipedes) -> str
Invokes the syscall pipe.
See 'man 2 pipe' for more information.
Arguments:
pipedes(int*): pipedes
Returns:
int
</%docstring>
<%page args="pipedes=0"/>
<%
abi = pwnlib.a... |
/*
* 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... |
section .data
question db "What is your name? "
hello db "Hello, ",
section .bss
name resb 0x10
section .text
global _start
_start:
call _question
call _get_name
call _print_hello
call _print_name
mov rax, 0x3c
mov rdi, 0x00
syscall
_question:
mov rax, 1
mov rd... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0xb5fd, %rsi
lea addresses_WT_ht+0x1a695, %rdi
clflush (%rsi)
xor %r10, %r10
mov $47, %rcx
rep movsb
nop
nop
nop
nop
and %rsi, %rsi
lea addresses_normal_ht+0x3799, %rsi
lea addresses_D_... |
; A207846: Number of 3 X n 0..1 arrays avoiding 0 0 0 and 0 0 1 horizontally and 0 0 0 and 1 1 1 vertically.
; 6,36,72,180,432,1044,2520,6084,14688,35460,85608,206676,498960,1204596,2908152,7020900,16949952,40920804,98791560,238503924,575799408,1390102740,3356004888,8102112516,19560229920,47222572356,114005374632,27523... |
;;
;; Copyright (c) 2020-2021, 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... |
;;
;; Gramado MBR - Esse é o MBR que é montado no VHD na hora de sua criação.
;; Será o primeiro setor do disco.
;; Essa rotina carrega o BM.BIN na memória e passa o comando para ele. Além de
;; passar argumentos.
;; (c) Copyright 2017 - Fred Nora.
;;
;; É um VHD de 32MB. A primeira partição é a partição do sistema e e... |
/*
Copyright (c) 2007 Cyrus Daboo. 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
... |
/*
* Copyright (c) 2008, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this l... |
#include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
int a = 0;
int b = 10;
int c = 4;
// if (a > b && a > c){
// cout << "a es mayor que b o mayor que c";
// }
// while(a > b){
// a--;
// if (a = 20){
// break;
// }
// }
while(true){
while(true)... |
; A226783: If n=0 (mod 5) then a(n)=0, otherwise a(n)=5^(-1) in Z/nZ*.
; Submitted by Stefano Spezia
; 0,1,2,1,0,5,3,5,2,0,9,5,8,3,0,13,7,11,4,0,17,9,14,5,0,21,11,17,6,0,25,13,20,7,0,29,15,23,8,0,33,17,26,9,0,37,19,29,10,0,41,21,32,11,0,45,23,35,12,0,49,25,38,13,0,53,27,41,14,0,57,29,44,15,0,61,31,47,16,0,65,33,50,17,0... |
; A062278: a(n) = floor(3^n / n^3).
; 3,1,1,1,1,3,6,12,27,59,133,307,725,1743,4251,10509,26285,66430,169450,435848,1129505,2947131,7737583,20430377,54226471,144621405,387420489,1042127936,2813988985,7625597484,20733556989,56549688380,154689054917,424312581408,1166916503766,3217048938978,8889580200402,24618233665129,683... |
// --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... |
; A047446: Numbers that are congruent to {0, 1, 3, 5, 6} mod 8.
; 0,1,3,5,6,8,9,11,13,14,16,17,19,21,22,24,25,27,29,30,32,33,35,37,38,40,41,43,45,46,48,49,51,53,54,56,57,59,61,62,64,65,67,69,70,72,73,75,77,78,80,81,83,85,86,88,89,91,93,94,96,97,99,101,102,104,105,107,109,110,112,113,115,117,118,120,121,123,125,126,128,... |
/**********************************************************************
Audacity: A Digital Audio Editor
CommonTrackControls.cpp
Paul Licameli split from TrackControls.cpp
**********************************************************************/
#include "CommonTrackControls.h"
#include "TrackButtonHandles.h"
#incl... |
; A173633: a(n) = a(n-2) + a(n-3) - [a(n-3)/4] - [a(n-4)/2] - [a(n-5)/4].
; 1,1,1,2,2,3,4,4,6,6,7,8,8,10,10,11,12,12,14,14,15,16,16,18,18,19,20,20,22,22,23,24,24,26,26,27,28,28,30,30,31,32,32,34,34,35,36,36,38,38,39
mul $0,2
lpb $0
trn $0,4
add $1,4
mov $2,$0
trn $0,1
add $3,6
add $2,$3
lpe
add $0,$1
add $... |
; A028738: Nonsquares mod 25.
; 2,3,5,7,8,10,12,13,15,17,18,20,22,23
mul $0,5
div $0,3
add $0,2
|
# SYNTAX TEST "Packages/Assembly-6809/Assembly-6809.sublime-syntax"
# <- source.mc6809
; Binary numbers (Prefixed with a "%" or suffixed with a "b" or "B")
lda #%00001111
# ^ keyword.operator.immediate
# ^ punctuation.definition.numeric.binary
# ^^^^^^^^^ constant.numeric.binary
lda #0000... |
; A171523: a(n) = n*(n-th nonprime number).
; 1,8,18,32,45,60,84,112,135,160,198,240,273,308,360,400,442,486,532,600,672,726,782,840,900,988,1053,1120,1218,1320,1395,1472,1584,1666,1750,1836,1924,2052,2145,2240,2337,2436,2580,2728,2835,2944,3055,3168,3332
mov $2,$0
add $0,1
add $2,1
cal $0,176100 ; Even numbers that a... |
#ifndef PYTHONIC_INCLUDE_OPERATOR_INV__HPP
#define PYTHONIC_INCLUDE_OPERATOR_INV__HPP
#include "pythonic/operator_/invert.hpp"
namespace pythonic
{
namespace operator_
{
FPROXY_DECL(pythonic::operator_, __inv__, invert);
}
}
#endif
|
/*
* Copyright (C) 2012 Open Source Robotics Foundation
*
* 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 appl... |
; ----------------------------------------------------------------
; Z88DK INTERFACE LIBRARY FOR NIRVANA+ ENGINE - by Einar Saukas
;
; See "nirvana+.h" for further details
; ----------------------------------------------------------------
; void NIRVANAM_printC(unsigned int ch, unsigned char *attrs, unsigned int lin, ... |
; A164514: 1 followed by numbers that are not squares.
; 1,2,3,5,6,7,8,10,11,12,13,14,15,17,18,19,20,21,22,23,24,26,27,28,29,30,31,32,33,34,35,37,38,39,40,41,42,43,44,45,46,47,48,50,51,52,53,54,55,56,57,58,59,60,61,62,63,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79
mov $2,$0
lpb $0
add $1,$2
mov $2,1
add $3,2
... |
/*=============================================================================
Copyright (c) 2005 2006 Joel de Guzman
http://spirit.sourceforge.net/
Use, modification and distribution is subject to the Boost Software
License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
htt... |
SECTION code_user
PUBLIC _fix_command_line
EXTERN _PATH
_fix_command_line:
ld de,_PATH
ld a,h
or l
jr z, terminate
loop:
ld a,(hl)
or a
jr z, terminate
cp ':'
jr z, terminate
cp 0x0d
jr z, terminate
ldi
jr loop
terminate:
xor a
ld (de),a
ld hl,_... |
# reads a character inserted by the terminal
# and checks if it corresponds to "b"
#
.data
request: .asciiz " print a letter! quick! "
isb: .asciiz " \n yes! is the 'b' \n "
notb: .asciiz " \n no! is not the 'b'\n "
.text
main:
li $v0, 4
la $a0, request
syscall # print the request string
li $v0, 12 ... |
; ssize_t read(int fd, void *buf, size_t nbyte)
SECTION code_clib
SECTION code_fcntl
PUBLIC _read
EXTERN l0_read_callee
_read:
pop af
pop hl
pop de
pop bc
push bc
push de
push hl
push af
jp l0_read_callee
|
db 0 ; species ID placeholder
db 75, 125, 70, 115, 125, 70
; hp atk def spd sat sdf
db PSYCHIC, PSYCHIC ; type
db 3 ; catch rate
db 255 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_UNKNOWN ; gender ratio
db 80 ; step cycles to hatch
INCBIN "gfx/pokemon/azelf/front.dimensions"
db GROWTH_SLOW ;... |
// Copyright 2013 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/policy/configuration_policy_handler_list_factory.h"
#include <limits.h>
#include <stddef.h>
#include <utility>
#include "base/... |
; int bv_priority_queue_push(bv_priority_queue_t *q, int c)
SECTION code_clib
SECTION code_adt_bv_priority_queue
PUBLIC bv_priority_queue_push
EXTERN asm_bv_priority_queue_push
bv_priority_queue_push:
pop af
pop bc
pop hl
push hl
push bc
push af
jp asm_bv_priority_queue_push
; SDCC b... |
/*
Copyright Oliver Kowalke 2009.
Copyright Thomas Sailer 2013.
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)
*/
/***************************************************... |
// Copyright (c) 2018 The Dash Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "bls_worker.h"
#include "hash.h"
#include "serialize.h"
#include "util.h"
template <typename T>
bool VerifyVectorHelpe... |
db GEODUDE ; 074
db 40, 80, 100, 20, 30, 30
; hp atk def spd sat sdf
db ROCK, GROUND ; type
db 255 ; catch rate
db 86 ; base exp
db NO_ITEM, EVERSTONE ; items
db GENDER_F50 ; gender ratio
db 100 ; unknown 1
db 15 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/geodude/front.dimensi... |
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.1
*
* This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do... |
// Boost.Geometry (aka GGL, Generic Geometry Library)
// Unit Test
// Copyright (c) 2007-2011 Barend Gehrels, Amsterdam, the Netherlands.
// Copyright (c) 2008-2011 Bruno Lalande, Paris, France.
// Copyright (c) 2009-2011 Mateusz Loskot, London, UK.
// Parts of Boost.Geometry are redesigned from Geodan's Geographic L... |
//===- SeparateConstOffsetFromGEP.cpp -------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
_grep: file format elf32-i386
Disassembly of section .text:
00000000 <grep>:
char buf[1024];
int match(char*, char*);
void
grep(char *pattern, int fd)
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 ec 18 sub $0x18,%esp
int n, m;
c... |
; A040183: Continued fraction for sqrt(198).
; 14,14,28,14,28,14,28,14,28,14,28,14,28,14,28,14,28,14,28,14,28,14,28,14,28,14,28,14,28,14,28,14,28,14,28,14,28,14,28,14,28,14,28,14,28,14,28,14,28,14,28,14,28,14
pow $1,$0
sub $1,2
gcd $1,$0
mul $1,14
|
;
; file: asm_io.asm
; Assembly I/O routines
; To assemble for DJGPP
; nasm -f coff -d COFF_TYPE asm_io.asm
; To assemble for Borland C++ 5.x
; nasm -f obj -d OBJ_TYPE asm_io.asm
; To assemble for Microsoft Visual Studio
; nasm -f win32 -d COFF_TYPE asm_io.asm
; To assemble for Linux
; nasm -f elf -d ELF_TYPE a... |
// Copyright (c) 2013-2017 Sandstorm Development Group, Inc. and contributors
// Licensed under the MIT License:
//
// 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 restriction, inc... |
* FORTH Cross Compiler
*
* Addresses of various code words whose compilation addresses are needed
* by the FORTH cross compiler
*
* Last modified: 10 November 1986
*
code_address <'{branch}'>,branch_pf-2
code_address <'{?branch}'>,qbranch-2
... |
/*
* SpanningForest.cpp
*
* Created on: 06.09.2015
* Author: Henning
*/
#include <networkit/auxiliary/Log.hpp>
#include <networkit/graph/BFS.hpp>
#include <networkit/graph/GraphTools.hpp>
#include <networkit/graph/SpanningForest.hpp>
namespace NetworKit {
void SpanningForest::run() {
forest = GraphToo... |
; ===============================================================
; Dec 2013
; ===============================================================
;
; char *strdup(const char * s)
;
; Copy string s into an allocated block of memory and return
; a pointer to the newly allocated block. User must deallocate
; the returned ... |
INCLUDE "clib_cfg.asm"
SECTION code_driver
SECTION code_driver_terminal_output
PUBLIC cpm_01_output_dcio_iterm_msg_bs
EXTERN __CPM_DCIO
EXTERN asm_cpm_bdos_alt
cpm_01_output_dcio_iterm_msg_bs:
; backspace
; can use: af, bc, de, hl, ix
call backspace
ld c,__CPM_DCIO ; bdos direct console... |
; A030107: Base 8 reversal of n (written in base 10).
; Coded manually 2021-03-02 by Simon Strandgaard, https://github.com/neoneye
; 0,1,2,3,4,5,6,7,1,9,17,25,33,41,49,57,2,10,18,26,34,42,50,58,3,11,19,27,35,43,51,59,4,12,20,28,36,44,52,60,5,13,21,29,37,45,53,61,6,14,22,30,38,46,54,62,7,15,23,31,39,47,55,63,1,65,129,19... |
; A001020: Powers of 11: a(n) = 11^n.
; 1,11,121,1331,14641,161051,1771561,19487171,214358881,2357947691,25937424601,285311670611,3138428376721,34522712143931,379749833583241,4177248169415651,45949729863572161,505447028499293771,5559917313492231481,61159090448414546291,672749994932560009201,7400249944258160101211,81402... |
#
# Copyright 1999-2000 by the President and Fellows of Harvard College.
# See LICENSE.txt for license information.
#
#@ tests tlbse, expects failure.
# OK
lc r3, 400 #TLB index (out of range)
lch r4, 20 #the TLB entry itself
lch r5, 30
tlbse r3, r4
stop
|
<% from pwnlib.shellcraft import common %>
<% from pwnlib.shellcraft import amd64 %>
<% from socket import htons %>
<%page args="port = None"/>
<%docstring>
Args: port (defaults to any port)
Finds a socket, which is connected to the specified port.
Leaves socket in RDI.
</%docstring>
<%
findpeer = common.labe... |
; A212850: Number of n X 3 arrays with rows being permutations of 0..2 and no column j greater than column j-1 in all rows.
; 1,19,163,1135,7291,45199,275563,1666495,10038331,60348079,362442763,2175719455,13057505371,78354598159,470156286763,2821023814015,16926401164411,101559181827439,609357415487563,3656151466494175,... |
/* 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 agree... |
; A240068: Number of prime Lipschitz quaternions having norm prime(n).
; Submitted by Jamie Morken(s3)
; 24,32,48,64,96,112,144,160,192,240,256,304,336,352,384,432,480,496,544,576,592,640,672,720,784,816,832,864,880,912,1024,1056,1104,1120,1200,1216,1264,1312,1344,1392,1440,1456,1536,1552,1584,1600,1696,1792
mul $0,2
... |
db 0 ; species ID placeholder
db 100, 50, 50, 70, 86, 96
; hp atk def spd sat sdf
db NORMAL, FLYING ; type
db 90 ; catch rate
db 162 ; 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/noctowl/... |
/*
* Copyright 2006 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkImageDecoder.h"
#include "SkStream.h"
#include "SkColorPriv.h"
#include "SkTypes.h"
class SkICOImageDecoder : public SkImageDecoder {
public... |
/**********************************************************************************************************************
This file is part of the Control Toolbox (https://adrlab.bitbucket.io/ct), copyright by ETH Zurich, Google Inc.
Authors: Michael Neunert, Markus Giftthaler, Markus Stäuble, Diego Pardo, Farbod Farshi... |
extern m7_ippsGFpMethod_p256bn:function
extern n8_ippsGFpMethod_p256bn:function
extern y8_ippsGFpMethod_p256bn:function
extern e9_ippsGFpMethod_p256bn:function
extern l9_ippsGFpMethod_p256bn:function
extern n0_ippsGFpMethod_p256bn:function
extern k0_ippsGFpMethod_p256bn:function
extern ippcpJumpIndexForMergedLibs
exter... |
// This file is part of snark, a generic and flexible library for robotics research
// Copyright (c) 2011 The University of Sydney
// 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. Redistr... |
/***************************************************************************
*
* Copyright (c) 2015 Baidu, 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
*
... |
#include "color_helpers.h"
#include <whycpp/log.h>
duk_idx_t PutColor(duk_context *ctx, const RGBA &color) {
auto colors_idx = duk_push_array(ctx);
duk_push_number(ctx, color.red);
duk_put_prop_index(ctx, colors_idx, 0);
duk_push_number(ctx, color.green);
duk_put_prop_index(ctx, colors_idx, 1);
duk_push_nu... |
.size 8000
.text@48
ei
jp lstatint
.text@100
jp lbegin
.data@143
80
.text@150
lbegin:
ld c, 44
ld b, 90
lbegin_waitvblank:
ldff a, (c)
cmp a, b
jrnz lbegin_waitvblank
ld hl, 8000
xor a, a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
... |
.data
n_text: .asciiz "\nInsira valor de n: "
ans_text: .asciiz "Fib(n): "
.text
# Vinicius Gasparini
.globl main
main:
ori $v0, $zero, 4 # call code para print_str
la $a0, n_text # carregando str para arg da syscall
syscall
ori $v0, $zero, 5 # call code para read_int
syscall
move $a0, $v0 # ca... |
/*******************************************************************************
*
* Generic API for numerical domains.
*
* Author: Arnaud J. Venet (arnaud.j.venet@nasa.gov)
*
* Notices:
*
* Copyright (c) 2011 United States Government as represented by the
* Administrator of the National Aeronautics and Space ... |
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
; F-Zero Climax Translation by Normmatt
.align 4
StoryEpisode15PointerList:
.word Episode15_Line1
.word Episode15_Line2
.word Episode15_Line3
.word Episode15_Line4
.word Episode15_Line5
.word Episode15_Line6
.word Episode15_Line7
.word Episode15_Line8
.word Episode15_Line9
.word Episode15_Line10
.word Epis... |
; A127628: G.f. 1/(1-6*x*c(x)) where c(x) is the g.f. of A000108.
; Submitted by Jon Maiga
; 1,6,42,300,2154,15492,111492,802584,5778090,41600532,299517996,2156509416,15526797252,111792690600,804906480840,5795323452720,41726317225770,300429441596340,2163091823919900,15574260559056840,112134673904493420,8073696442354081... |
.data
arr: .word 5, 10, 1, 40
cmin: .word 50
.text
main:
la $a0, arr
li $a1, 4
la $a2, cmin
move $s0, $a2
jal find_min
lw $a0, 0($s0)
jal print_int
li $v0, 10
syscall
find_min:
addiu $sp, $sp, -4
sw $ra, 0($sp)
li $t0, 1
bne $a1, $t0, recurs
lw $t0, 0($a0)
lw $t1, 0($a2)
slt $t2, $t0, ... |
/*
* =====================================================================================
*
* Filename: TempestRemapper.hpp
*
* Description: Interface to the TempestRemap library to enable intersection and
* high-order conservative remapping of climate solution from
* ... |
#include <iostream>
#include <fstream>
#include <sstream>
#include <algorithm>
#include <stdexcept>
#include "cmdargs.h"
#include "rexjson/rexjson++.h"
#include "api/bitstampapi.h"
cmd_args g_args;
/*
* Cmd args spec:
* "argument name" "argument alias" "Help message"
*/
static cmd_arg_spec g_argspec[] = {
{"he... |
; A228310: The hyper-Wiener index of the hypercube graph Q(n) (n>=2).
; 10,72,448,2560,13824,71680,360448,1769472,8519680,40370176,188743680,872415232,3992977408,18119393280,81604378624,365072220160,1623497637888,7181185318912,31610959298560,138538465099776,604731395276800,2630031813640192
mov $1,25
mov $3,5
add $3,$0... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.