text stringlengths 1 1.05M |
|---|
dnl AMD K6-2 mpn_rshift -- mpn right shift.
dnl Copyright 1999, 2000, 2002 Free Software Foundation, Inc.
dnl
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
dnl modify it under the terms of the GNU Lesser General Public License as
dnl publ... |
; A253476: Indices of centered triangular numbers (A005448) which are also centered heptagonal numbers (A069099).
; Submitted by Jamie Morken(s1)
; 1,15,70,1596,7645,175491,840826,19302360,92483161,2123084055,10172306830,233519943636,1118861268085,25685070715851,123064567182466,2825124258799920,13535983528803121,310737... |
; A127067: Define an array by d(m, 0) = 1, d(m, 1) = m; d(m, k) = (m - k + 1) d(m+1, k-1) - (k-1) (m+1) d(m+2, k-2). Sequence gives d(2,n).
; Submitted by Jon Maiga
; 1,2,0,-24,-60,720,5040,-40320,-589680,3628800,99792000,-479001600,-23740516800,87178291200,7682586912000,-20922789888000,-3281772285792000,64023737057280... |
; ------------------------------------------------------------------
; MikeOS Text Editor
; ------------------------------------------------------------------
BITS 16
%INCLUDE "mikedev.inc"
ORG 32768
start:
call setup_screen
cmp si, 0 ; Were we passed a filename?
je .no_param_passed
call... |
; A293476: a(n) = ((n + 1)/2)*(n + 2)*Pochhammer(n, 5) / 4!.
; Submitted by Jamie Morken(s1.)
; 0,15,180,1050,4200,13230,35280,83160,178200,353925,660660,1171170,1987440,3248700,5140800,7907040,11860560,17398395,25017300,35331450,49092120,67209450,90776400,121095000,159705000,208415025,269336340,344919330,437992800,551... |
/* Copyright 2015-2018 Egor Yusov
*
* 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
*
* THE SOFTWARE IS PROVIDED "AS IS", ... |
; A285270: a(n) = H_n(n), where H_n is the physicist's n-th Hermite polynomial.
; Submitted by Christian Krause
; 1,2,14,180,3340,80600,2389704,83965616,3409634960,157077960480,8093278209760,461113571640128,28784033772836544,1953535902100115840,143219579014652040320,11279408109860685024000,949705205977314865582336,8513... |
;;
;; 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... |
{
let r := 0
for { let i := 0 } lt(i, 1048576) { i := add(i, 1) } {
0xfdedc7f10142ff97
0xfbdfda0e2ce356173d1993d5f70a2b11
0xfdedc7f10142ff97
dup2 div dup2 div dup2 div dup2 div dup2 div dup2 div dup2 div dup2 div
dup2 div dup2 div dup2 div dup2 div dup2 div dup2 div dup2 div dup2 div
pop
dup2
dup2 d... |
; 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 hl
pop bc
ex (sp),hl
jp asm_bv_priority_queue_push
|
#abs.asb
.text
main : li $v0, 5
syscall
move $a0, $v0
bgtz $a0, affichage
neg $a0, $a0
j affichage
affichage:li $v0, 1
syscall
li $v0, 10
syscall |
org 0h
org 03h
setb p1.5
reti
org 13h
clr p1.5
reti
inicio:
mov tcon,#0ah
mov ie,#85h
main:
sjmp main |
/*
* This file is a part of the open source stm32plus library.
* Copyright (c) 2011,2012,2013,2014 Andy Brown <www.andybrown.me.uk>
* Please see website for licensing terms.
*/
#include "config/stm32plus.h"
#if defined(STM32PLUS_F4_HAS_MAC) || defined(STM32PLUS_F1_CL_E)
#include "config/net.h"
namespace stm32p... |
Name: ys_w64.asm
Type: file
Size: 22163
Last-Modified: '2016-05-13T04:50:38Z'
SHA-1: 5A3A00130CC3446808BF436D1E56424BC1E91049
Description: null
|
; void *obstack_int_grow_callee(struct obstack *ob, int data)
SECTION code_clib
SECTION code_alloc_obstack
PUBLIC _obstack_int_grow_callee
EXTERN asm_obstack_int_grow
_obstack_int_grow_callee:
pop af
pop hl
pop bc
push af
jp asm_obstack_int_grow
|
#include <nano/lib/config.hpp>
#include <nano/lib/tomlconfig.hpp>
#include <nano/node/cli.hpp>
#include <nano/node/common.hpp>
#include <nano/node/daemonconfig.hpp>
#include <nano/node/node.hpp>
namespace
{
void reset_confirmation_heights (nano::block_store & store);
bool is_using_rocksdb (boost::filesystem::path cons... |
; A254729: Number of numbers j + k*sqrt(2) of length n, where the length is the least number of steps to reach 0, the allowable steps being x -> x + 1 and x -> x*sqrt(2).
; 1,1,2,3,4,7,11,18,29,47,76,123,199,322,521,843,1364,2207,3571,5778,9349,15127,24476,39603,64079,103682,167761,271443,439204,710647,1149851,1860498,... |
CeladonPrizeRoom_h:
db LOBBY ; tileset
db CELADON_PRIZE_ROOM_HEIGHT, CELADON_PRIZE_ROOM_WIDTH ; dimensions (y, x)
dw CeladonPrizeRoomBlocks, CeladonPrizeRoomTextPointers, CeladonPrizeRoomScript ; blocks, texts, scripts
db $00 ; connections
dw CeladonPrizeRoomObject ; objects
|
; ---------------------------------------------------------------------------
; Sprite mappings - walls of the special stage
; ---------------------------------------------------------------------------
Map_SSWalls_internal:
dc.w byte_2C584-Map_SSWalls_internal
dc.w byte_2C58A-Map_SSWalls_internal
dc.w byte_2C590... |
; A188708: Number of 4 X n binary arrays without the pattern 0 0 diagonally or vertically.
; Submitted by Christian Krause
; 8,49,304,1876,11556,71152,438048,2696784,16602304,102209216,629233216,3873764352,23848153088,146816985344,903853103104,5564413613056,34256339608576,210893165924352,1298326906544128,79929226196951... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r14
push %r15
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x1026b, %rsi
lea addresses_D_ht+0x15989, %rdi
nop
nop
nop
dec %r10
mov $41, %rcx
rep movsw
nop
nop
nop
xor %r11, %r11
lea addresses_A_ht+0xc26b, %rsi
lea addresses_WT_ht+0x1d0... |
/*
* Copyright (c), Microsoft Open Technologies, 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 list... |
db #00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00
db #00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00
db #00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00
db #00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00
db #cc,#cc,#cc,#cc,#cc,#cc,#cc,#cc,#cc,#cc,#... |
;
; Initially include the zcc_opt.def file to find out lots of lovely
; information about what we should do..
;
IFNDEF CRT_ORG_CODE
defc CRT_ORG_CODE = 40000
ENDIF
defc TAR__clib_exit_stack_size = 32
defc TAR__register_sp = -1
INCLUDE "crt/classic/crt_r... |
INCLUDE "hardware.inc"
INCLUDE "header.inc"
;--------------------------------------------------------------------------
;- RESTART VECTORS -
;--------------------------------------------------------------------------
SECTION "RST_00",HOME[$0000]
ret ; Rese... |
; multi-segment executable file template.
include emu8086.inc
data segment
; add your data here!
msg1 db 10,13,"please enter a string:$"
str1 label byte
max1 db 40
len1 db ?
str1_1 db 40 dup('$')
msg2 db 10,13,"reverse is:$"
pkey db 10,13,"press any key...$"
ends
stack segment
... |
; BOTH -- define different names for functions so that
; FORMAT.C and FORMATN.ASM can coexist.
; Native names are formed by appending "N"
include w2.inc
include noxport.inc
include consts.inc
include structs.inc
; NOTEX... |
// Copyright 2020 VMware, Inc.
// SPDX-License-Identifier: Apache-2.0
//
#include "herald/default_sensor_delegate.h"
namespace herald {
DefaultSensorDelegate::DefaultSensorDelegate() {}
void
DefaultSensorDelegate::sensor(SensorType sensor, const TargetIdentifier& didDetect) {
};
void
DefaultSe... |
;
; Created by Drapegnik on 19.06.15.
;
.386
.model flat
.code
_func@8 proc
push ebp
mov ebp, esp
mov eax, dword ptr [ebp+8] ; n
mov ebx, dword ptr [ebp+12] ; a[]
;xor ecx,ecx
;mov edx,24
;mov [ebx][ecx*4],edx
pop ebp
ret 8
_func@8 endp
end |
###############################################################################
# Copyright 2019 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... |
#include "L1Trigger/TrackFindingTracklet/interface/FPGAWord.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
using namespace std;
using namespace trklet;
FPGAWord::FPGAWord() {}
FPGAWord::FPGAWord(int value, int nbits, bool positive, int line, const char* file) {
set(value, nbits, positive, line, file... |
;
; Small C+ Runtime Library
;
; Z88 Application functions
;
; *** Z88 SPECIFIC FUNCTION - probably no equiv for your machine! ***
;
; 11/4/99
;
; Read Mail
;
; int readmail(char *type, char *info, int length)
;
; Returns 0 on failure, 1 on success
PUBLIC ... |
; A016771: a(n) = (3*n)^7.
; 0,2187,279936,4782969,35831808,170859375,612220032,1801088541,4586471424,10460353203,21870000000,42618442977,78364164096,137231006679,230539333248,373669453125,587068342272,897410677851,1338925209984,1954897493193,2799360000000,3938980639167,5455160701056,7446353252589,10030613004288,133483... |
db DEX_DODRIO ; pokedex id
db 60 ; base hp
db 110 ; base attack
db 70 ; base defense
db 100 ; base speed
db 60 ; base special
db NORMAL ; species type 1
db FLYING ; species type 2
db 46 ; catch rate
db 158 ; base exp yield
INCBIN "pic/ymon/dodrio.pic",0,1 ; 77, sprite dimensions
dw DodrioPicFront
dw DodrioPicBack
; att... |
;; lux OS kernel
;; copyright (c) 2018 by Omar Mohammad
format elf64
use64
section '.text'
; void *memcpy(void *destination, const void *source, size_t count)
public memcpy
memcpy:
push rdi
mov rcx, rdx
cmp rcx, 128
jl .normal
test rsi, 0x0F
jnz .unaligned
test rdi, 0x0F
jnz .unaligned
.aligned:
push ... |
;******************************************************************
;* Main routine
;******************************************************************
org $2000
lds #STACK
jsr HW_INIT
jsr INIT
loc
loop_c`:
jsr MODO_CONFIG
tst NumVueltas
beq loop_c`
loop_m`:
brset PTH,$C0,race`
bclr PIEH,... |
#ifndef PATTERN_H
#define PATTERN_H
#include "defines.hpp"
#include "utils.hpp"
typedef struct s_pattern{
bitboard b_bits;
bitboard w_bits;
bitboard e_bits;
int color;
int r_shift = 0;
int c_shift = 0;
int start_r;
int start_c;
int end_r;
int end_c;
int direction;
int c_delta;
int r... |
/**
* @file
* @copyright defined in eos/LICENSE
*/
#pragma once
#include <appbase/application.hpp>
#include <eosio/chain/asset.hpp>
#include <eosio/chain/authority.hpp>
#include <eosio/chain/account_object.hpp>
#include <eosio/chain/block.hpp>
#include <eosio/chain/controller.hpp>
#include <eosio/chain/contract_ta... |
#include "Stream.h"
#include "Sample.h"
#include "soloud.h"
#include "soloud_wavstream.h"
#include <memory>
#include <set>
using namespace MX;
using namespace MX::Sound;
class StreamAllGatherer : public Singleton<StreamAllGatherer>
{
public:
void AddStream(Stream* stream)
{
//_streams.insert(stream);
... |
// 5min 2 WA
class Solution {
public:
vector<int> getRow(int rowIndex) {
vector<int> res;
res.push_back(1);
if (rowIndex <= 0) return res;
res.push_back(1);
if (rowIndex == 1) return res;
rowIndex -= 1;
while(rowIndex-- > 0)... |
; A220414: a(n) = 6*a(n-1) - a(n-2), with a(1) = 13, a(2) = 73.
; 13,73,425,2477,14437,84145,490433,2858453,16660285,97103257,565959257,3298652285,19225954453,112057074433,653116492145,3806641878437,22186734778477,129313766792425,753695865976073,4392861429064013,25603472708408005,149227974821384017,869764376219896097,5... |
#include <random>
#include <vector>
#include "gtest/gtest.h"
#include "simeng/Pool.hh"
namespace {
// Tests that memory is reused correctly
TEST(FixedPoolTest, MemoryReused) {
auto p = simeng::fixedPool_<10, 2>();
void* ptr = p.allocate();
void* ptr2 = p.allocate();
// The pool will grow by 4. Total size is ... |
; /*****************************************************************************
; * ugBASIC - an isomorphic BASIC language compiler for retrocomputers *
; *****************************************************************************
; * Copyright 2021 Marco Spedaletti (asimov@mclink.it)
; *
; * Licensed un... |
/**
* \file src/serialization/impl/extern_c_opr.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on ... |
; A227400: Decimal expansion of 5/(3*phi^2) where phi is the golden ratio.
; Submitted by Jon Maiga
; 6,3,6,6,1,0,0,1,8,7,5,0,1,7,5,2,5,2,9,9,2,3,5,5,2,7,6,0,5,7,2,6,9,8,0,3,7,9,9,4,8,4,7,0,0,3,2,3,7,2,8,5,6,3,1,0,7,5,8,5,6,2,8,8,2,4,5,6,5,8,9,5,3,0,1,8,2,9,2,5,0,4,8,7,9,8
add $0,2
mov $2,1
mov $3,$0
mul $3,4
lpb $3
... |
;
; CPM Library
;
; Fputc_cons
;
; Stefano Bodrato - Apr. 2000
;
;
; $Id: fputc_cons.asm,v 1.9 2016-05-15 20:15:45 dom Exp $
;
SECTION code_clib
PUBLIC fputc_cons_native
EXTERN __bdos
;
; Entry: hl = points to char
;
.fputc_cons_native
ld hl,2
add hl,sp
ld d,0
ld a,(hl)
ld e,a
cp... |
; ASM source file created by SevenuP v1.20
; SevenuP (C) Copyright 2002-2006 by Jaime Tejedor Gomez, aka Metalbrain
;GRAPHIC DATA:
;Pixel Size: ( 24, 32)
;Char Size: ( 3, 4)
;Sort Priorities: X char, Char line, Y char
;Data Outputted: Gfx
;Interleave: Sprite
;Mask: No
barbaro_idle:
DE... |
; A037504: Base-3 digits are, in order, the first n terms of the periodic sequence with initial period 1,2,0.
; 1,5,15,46,140,420,1261,3785,11355,34066,102200,306600,919801,2759405,8278215,24834646,74503940,223511820,670535461,2011606385,6034819155,18104457466,54313372400,162940117200,488820351601,1466461054805,4399383... |
push int32(6)
push int32(7)
mul
assert int32(42)
pop
push int8(2)
push int32(100000)
mul
assert int32(200000)
pop
push int16(3)
push float(1.50)
mul
assert double(4.5)
pop
exit
|
//=================================================================================================
/*!
// \file src/mathtest/operations/smatdmatschur/MCaM4x4a.cpp
// \brief Source file for the MCaM4x4a sparse matrix/dense matrix Schur product math test
//
// Copyright (C) 2012-2020 Klaus Iglberger - All Rights Rese... |
; ===============================================================
; Stefano Bodrato
; aralbrec: accommodate nmos z80 bug
; ===============================================================
;
; unsigned char z80_get_int_state(void)
;
; Retrieve the current ei/di status.
;
; ================================================... |
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or... |
/*
* Copyright (c) 2016, The OpenThread Authors.
* 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 copyright
* notice, this ... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
push %r14
push %r8
push %rcx
push %rdi
push %rsi
// REPMOV
lea addresses_normal+0x185e2, %rsi
lea addresses_normal+0xc9b4, %rdi
nop
nop
nop
nop
add $31824, %r11
mov $105, %rcx
rep movsw
nop
nop
nop
nop
nop
cm... |
#include <iostream>
using namespace std;
struct ListNode {
int val;
ListNode *next;
ListNode(int x) : val(x), next(NULL) {}
};
void append(ListNode **head, int val) {
if ((*head) == nullptr) {
(*head) = new ListNode(0);
(*head)->val = val;
(*head)->next = nullptr;
return;
}
ListNode *pno... |
; void *bit_play_tritone_di(void *song)
SECTION code_clib
SECTION code_sound_bit
PUBLIC _bit_play_tritone_di
EXTERN _bit_play_tritone_di_fastcall
_bit_play_tritone_di:
pop af
pop hl
push hl
push af
jp _bit_play_tritone_di_fastcall
|
assume cs:code,ds:data
data segment
x db 10h,20h,30h,40h,50h,60h,70h
n db $-x;
key db 20h
pass db "Element found at position:$"
fail db "Element not found$"
line db 0ah,0dh,"$"
data ends
code segment
digit_2 PROC
push bx
push cx
push dx
mov bl,al
mov cl,4
shr al,cl
mov dl,al
cmp dl, 9
... |
; A313259: Coordination sequence Gal.6.204.1 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.
; Submitted by Simon Strandgaard
; 1,4,9,15,20,25,31,36,41,47,52,56,60,65,71,76,81,87,92,97,103,108,112,116,121,127,132,137,143,148,153,159,16... |
; A194698: a(n) = floor((n - 1)/12) - floor((n^2 - 1)/(24*n)).
; 0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4
add $0,12
div $0,24
|
; Main driver for the Z80 tester.
;
; Copyright (C) 2012-2022 Patrik Rak (patrik@raxoft.cz)
;
; This source code is released under the MIT license, see included license.txt.
org 0
halt
ds 255
jp $8000
ds $7EFD
main: di ... |
#include "QtGuiTester.h"
QtGuiTester::QtGuiTester(QWidget *parent)
: QMainWindow(parent)
{
ui.setupUi(this);
connect(ui.pushButton, SIGNAL(clicked()), this, SLOT(exit()));
}
void QtGuiTester::exit()
{
QApplication::exit();
} |
;---------------------------------------------------------
;
; LZ4 block 68k depacker
; Written by Arnaud Carré ( @leonard_coder )
; https://github.com/arnaud-carre/lz4-68k
;
; LZ4 technology by Yann Collet ( https://lz4.github.io/lz4/ )
;
;---------------------------------------------------------
; Normal version: 18... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
; Module Name:
;
; ReadGdtr.Asm
;
; Abstract:
;
; AsmReadGdtr function
;
; Notes:
;
;-------------------... |
; A062158: a(n) = n^3 - n^2 + n - 1.
; -1,0,5,20,51,104,185,300,455,656,909,1220,1595,2040,2561,3164,3855,4640,5525,6516,7619,8840,10185,11660,13271,15024,16925,18980,21195,23576,26129,28860,31775,34880,38181,41684,45395,49320,53465,57836,62439,67280,72365,77700,83291,89144,95265,101660,108335,115296,122549,130100,1379... |
#include <cstdlib>
#include <iostream>
#include <array>
#include <vector>
#include <numeric>
#include <mpl/mpl.hpp>
template<typename I>
void print_range(const char *const str, I i1, I i2) {
std::cout << str;
while (i1 != i2) {
std::cout << (*i1);
++i1;
std::cout << ((i1 != i2) ? ' ' : '\n');
}
}
in... |
// 8 BIT MULTIPLICATION: PRODUCT 16-BIT
# ORG 2000H
# BEGIN 2000H
LHLD 2501
XCHG
LDA 2503
LXI H,0000
MVI C,08
LOOP: DAD H
RAL
JNC AHEAD
DAD D
AHEAD: DCR C
JNZ LOOP
SHLD 2504
HLT
# ORG 2501H
// LSB OF MULTIPLICAND, MSB OF MULTIPLICAND,MULTIPLIER
# DB 84H,00H,56H
//... |
; link in extensions 1988 Tony Tebby Qjump
section procs
xdef ut_procdef
xref ut_reassert
include 'dev8_keys_qlv'
;+++
; Links and re-asserts the procedures pointd to by a1.
;
; d2 s
; a1 c s pointer to procedure table
;---
ut_procdef
movem.l a1/a2,-(sp)
move.w sb.inipr,a2
jsr (a2)
movem.l (sp... |
; A213772: Principal diagonal of the convolution array A213771.
; 1,11,42,106,215,381,616,932,1341,1855,2486,3246,4147,5201,6420,7816,9401,11187,13186,15410,17871,20581,23552,26796,30325,34151,38286,42742,47531,52665,58156,64016,70257,76891,83930,91386,99271,107597,116376,125620,135341,145551,156262,167486,179235,19152... |
SECTION code_clib
SECTION code_fp_math48
PUBLIC asm_dfix8
EXTERN am48_dfix8
defc asm_dfix8 = am48_dfix8
|
// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
#include "CorePrivatePCH.h"
namespace UE4Delegates_Private
{
uint64 GNextID = 1;
}
uint64 FDelegateHandle::GenerateNewID()
{
// Just increment a counter to generate an ID.
// On the next-to-impossible event that we wrap round to 0, reset back to 1, beca... |
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the Qt Designer of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:GPL-EXCEPT$
** Commercial License Usage
** Licensees holding valid com... |
//base56 encoding and decoding routines:
//names are stored at $7e:2b00+, and each name is eight bytes long.
//this is not long enough for "Salamander", "Ice Dragon", "Thunderhawk", and "Fahrenheit"
//rather than attempting to migrate the names in both WRAM and SRAM, base56 is used.
//this allows for the storage of 11 ... |
// Copyright (c) 2019 Shahrzad Shirzad
// Copyright (c) 2019 Hartmut Kaiser
//
// 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)
#include <phylanx/phylanx.hpp>
#include <hpx/hpx_main.hpp>
#include <hpx/testing.hpp>
... |
; A315024: Coordination sequence Gal.6.196.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.
; Submitted by Jamie Morken(s3)
; 1,5,9,15,19,24,28,33,37,43,47,52,57,61,67,71,76,80,85,89,95,99,104,109,113,119,123,128,132,137,141,147,151,1... |
dnl Alpha mpn_invert_limb -- Invert a normalized limb.
dnl Copyright (C) 1996, 2000 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU Library General Public License as publi... |
;
; r0 - scon
; r1 - sbuf
; r2 - transnit test
; r3 - receive test
; r4 - pcon
;
ajmp start;
org 03h ;external interrupt 0
reti;
org 0bh ;t/c 0 interrupt
setb p3.1 ;
clr p3.1 ;
reti;
org 13h ;external interrupt 1
reti;
org 1bh ;t/c 1 interrupt
reti;
org 23h ;serial interface interrupt
clr scon.4... |
; A202330: Number of (n+1) X 4 binary arrays with consecutive windows of two bits considered as a binary number nondecreasing in every row and column.
; 36,82,162,289,478,746,1112,1597,2224,3018,4006,5217,6682,8434,10508,12941,15772,19042,22794,27073,31926,37402,43552,50429,58088,66586,75982,86337,97714,110178,123796,1... |
#pragma once
#include "../base_def.hpp"
namespace lol {
enum struct LolClashGameflowPhase {
ChampSelect_e = 5,
CheckedIntoTournament_e = 3,
EndOfGame_e = 12,
FailedToLaunch_e = 7,
GameStart_e = 6,
InProgress_e = 8,
Lobby_e = 1,
Matchmaking_e = 2,
None_e = 0,
PreEndOfGame_e =... |
; A086025: a(n) = Sum_{i=1..n} C(i+4,5)^2.
; 1,37,478,3614,19490,82994,296438,923702,2580071,6588075,15606084,34685508,72976852,146387476,281597860,521971876,936053677,1629533233,2761788434,4568378450,7391175350,11718183750,18235516650,27894475050,41997225075,62305185111,91174933032,131727226408,188055603304,2654820048... |
_testit: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
}
exit();
}
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 ... |
/* $Id: HostDnsServiceResolvConf.cpp $ */
/** @file
* Base class for Host DNS & Co services.
*/
/*
* Copyright (C) 2014 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 mo... |
SECTION code_fp_math16
PUBLIC ___h2sint
PUBLIC _f16_i16_f16
EXTERN cm16_sdcc___h2sint
defc ___h2sint = cm16_sdcc___h2sint
defc _f16_i16_f16 = cm16_sdcc___h2sint
|
INCLUDE "clib_cfg.asm"
SECTION code_clib
SECTION code_math
PUBLIC l_fast_mulu_8_8x8
EXTERN l_fast_mulu_16_8x8
; unsigned multiplication of two 8-bit
; multiplicands into a sixteen bit product
;
; error reported on overflow
;
; enter : l = 8-bit multiplicand
; e = 8-bit multiplicand
... |
/*
* 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 "EditorSelectionAccentSystemComponent.h"
#include <AzCore/Debug/Profiler.h>
#include <AzC... |
;
; jemul8 - JavaScript x86 Emulator
; Copyright (c) 2013 http://jemul8.com. All Rights Reserved.
;
; MODULE: Tests for CPU stack handling - x86 PUSH instruction
;
%include '../../tools.inc'
; Jump over data
jmp main
; --- Data ---
; Test descriptions
test1 db "should decrease SP by 2 when an 8-bit value is pushed"... |
; A038762: a(n) = 6*a(n-1) - a(n-2) for n >= 2, with a(0)=3, a(1)=13.
; 3,13,75,437,2547,14845,86523,504293,2939235,17131117,99847467,581953685,3391874643,19769294173,115223890395,671574048197,3914220398787,22813748344525,132968269668363,774995869665653,4517006948325555,26327045820287677,153445267973400507,894344562020... |
; A047334: Duplicate of A032775.
; 0,1,2,3,5,6,7,8,9,10,12,13,14,15,16,17,19,20,21,22,23,24,26,27,28,29
mov $1,$0
mul $1,7
add $1,2
div $1,6
|
; Copyright 2015-2021 Matt "MateoConLechuga" Waltz
;
; 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 follo... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: UnityEngine.MonoBehaviour
#include ... |
; A002548: Denominators of coefficients for numerical differentiation.
; Submitted by Christian Krause
; 1,1,12,6,180,10,560,1260,12600,1260,166320,13860,2522520,2702700,2882880,360360,110270160,2042040,775975200,162954792,56904848,2586584,1427794368,892371480,116008292400,120470149800,1124388064800,40156716600,3493634... |
; void *z180_otir(void *src, uint8_t port, uint8_t num)
SECTION code_clib
SECTION code_z180
PUBLIC z180_otir
EXTERN asm_z180_otir
z180_otir:
pop af
pop de
pop bc
pop hl
push hl
push bc
push de
push af
ld b,e
jp asm_z180_otir
|
; int ungetc(int c, FILE *stream)
INCLUDE "clib_cfg.asm"
SECTION code_stdio
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $02
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC ungetc
EXTERN asm_ungetc
ungetc:
pop af
pop ix
pop hl
push hl
push hl
push af
jp asm_ungetc
;;;;;;;;;;;... |
object_const_def ; object_event constants
const ROUTE36_YOUNGSTER1
const ROUTE36_YOUNGSTER2
const ROUTE36_WEIRD_TREE
const ROUTE36_LASS1
const ROUTE36_FISHER
const ROUTE36_FRUIT_TREE
const ROUTE36_ARTHUR
const ROUTE36_FLORIA
const ROUTE36_SUICUNE
Route36_MapScripts:
db 2 ; scene scripts
scene_script .Dummy... |
; FILE *freopen_callee(char *filename, char *mode, FILE *stream)
INCLUDE "clib_cfg.asm"
SECTION code_stdio
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $02
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC _freopen_callee
EXTERN asm_freopen
_freopen_callee:
pop af
pop hl
pop de
pop ix
push af... |
; A287393: Domination number for knight's graph on a 2 X n board.
; 0,2,4,4,4,4,4,6,8,8,8,8,8,10,12,12,12,12,12,14,16,16,16,16,16,18,20,20,20,20,20,22,24,24,24,24,24,26,28,28,28,28,28,30,32,32,32,32,32,34,36,36,36,36,36,38,40,40,40,40,40,42,44,44,44,44,44,46,48,48,48,48,48,50,52,52,52,52,52,54,56,56,56,56,56,58,60,60,6... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include <config/bitcoin-config.h>
#endif
#include <c... |
#include "Race.h"
#include <iostream>
/*
YOU MUST WRITE THE IMPLEMENTATIONS OF THE REQUESTED FUNCTIONS
IN THIS FILE. START YOUR IMPLEMENTATIONS BELOW THIS LINE
*/
Race::Race(std::string given_race_name): race_name {given_race_name},
average_laptime {Laptime(Utilizer::generateAverageLaptime())},
... |
add $r1 $r2 $r3
sub $r1 $r2 $r3
sub $r5 $r6 $r3
jal 0x3456
bne $r1 $r2 0x1234
lw $r1 4($r3)
sw $r1 4($r3) |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>get_mempolicy(mode, nodemask, maxnode, addr, flags) -> str
Invokes the syscall get_mempolicy.
See 'man 2 get_mempolicy' for more information.
Arguments:
mode(int*): mode
nodemask(unsigned*): nod... |
; A082910: a(n) = prime(prime(n+1)-prime(n)).
; 2,3,3,7,3,7,3,7,13,3,13,7,3,7,13,13,3,13,7,3,13,7,13,19,7,3,7,3,7,43,7,13,3,29,3,13,13,7,13,13,3,29,3,7,3,37,37,7,3,7,13,3,29,13,13,13,3,13,7,3,29,43,7,3,7,43,13,29,3,7,13,19,13,13,7,13,19,7,19,29,3,29,3,13,7,13
seq $0,46933 ; Number of composites between successive prim... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.