text stringlengths 1 1.05M |
|---|
; void sp1_IterateUpdateArr(struct sp1_update **ua, void *hook)
; CALLER linkage for function pointers
XLIB sp1_IterateUpdateArr
LIB sp1_IterateUpdateArr_callee
XREF ASMDISP_SP1_ITERATEUPDATEARR_CALLEE
.sp1_IterateUpdateArr
pop bc
pop ix
pop hl
push hl
push hl
push bc
jp sp1_IterateUpdateArr_ca... |
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#incl... |
; A057057: Let R(i,j) be the rectangle with antidiagonals 1; 2,3; 4,5,6; ...; C(n,3) is in antidiagonal a(n).
; 1,3,4,6,8,11,13,15,18,21,24,27,30,33,37,40,44,48,52,55,60,64,68,72,76,81,85,90,95,100,104,109,114,119,125,130,135,141,146,152,157,163,168,174,180,186,192,198,204,210,216,223,229
add $0,3
bin $0,3
lpb $0
ad... |
; A294630: Partial sums of A294629.
; 4,20,48,104,172,292,424,616,844,1140,1448,1888,2340,2876,3488,4224,4972,5892,6824,7936,9140,10460,11792,13416,15092,16900,18816,20960,23116,25612,28120,30880,33764,36812,39968,43568,47180,50972,54904,59240,63588,68372,73168,78288,83676,89276,94888,101112,107404,114044,120856,128040... |
; epRISC development platform - BIOS UART control routines
;
; written by John C. Lemme, jclemme (at) proportionallabs (dot) com
; this file is part of the epRISC project, released under the epRISC license - see "license.txt" for details.
;
; These routines command the onboard I/O controller's UART. Will be retooled la... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x1d765, %rsi
lea addresses_WC_ht+0x58ff, %rdi
clflush (%rdi)
nop
nop
add %r11, %r11
mov $90, %rcx
rep movsq
nop
xor %rax, %rax
lea addresses_WC_ht+0x1115d, %r14
sub %rax, %rax
mov ... |
; uint in_KeyPressed(uint scancode)
SECTION code_clib
PUBLIC in_KeyPressed
PUBLIC _in_KeyPressed
EXTERN CLIB_KEYBOARD_ADDRESS
; Determines if a key is pressed using the scan code
; returned by in_LookupKey.
; enter : h = flags
; l = port
; exit : carry = key is pressed & HL = 1
; no carry = key not ... |
; A005259: Apery (Apéry) numbers: Sum_{k=0..n} (binomial(n,k)*binomial(n+k,k))^2.
; Submitted by Jon Maiga
; 1,5,73,1445,33001,819005,21460825,584307365,16367912425,468690849005,13657436403073,403676083788125,12073365010564729,364713572395983725,11111571997143198073,341034504521827105445,10534522198396293262825,3272593... |
; A067275: Number of Fibonacci numbers A000045(k), k <= 10^n, which end in 4.
; 0,1,7,67,667,6667,66667,666667,6666667,66666667,666666667,6666666667,66666666667,666666666667,6666666666667,66666666666667,666666666666667,6666666666666667,66666666666666667,666666666666666667,6666666666666666667,66666666666666666667,666666... |
#include "test_precomp.hpp"
using namespace cv;
using namespace std;
static SparseMat cvTsGetRandomSparseMat(int dims, const int* sz, int type,
int nzcount, double a, double b, RNG& rng)
{
SparseMat m(dims, sz, type);
int i, j;
CV_Assert(CV_MAT_CN(type) == 1);
f... |
# Constants / Macros defined in Rust code:
# XLENB
# LOAD
# STORE
.macro SAVE_ALL
# If coming from userspace, preserve the user stack pointer and load
# the kernel stack pointer. If we came from the kernel, sscratch
# will contain 0, and we should continue on the current stack.
csrrw sp, sscratch... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r9
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x9d19, %rsi
lea addresses_WT_ht+0x9819, %rdi
clflush (%rsi)
nop
nop
nop
nop
nop
dec %r12
mov $3, %rcx
rep movsq
nop
nop
nop
nop
add %r10, %r10
lea addresses_D_ht+0x13699, %rsi... |
; A136579: Triangle read by rows: A128174 * A136572.
; Submitted by Jon Maiga
; 1,0,1,1,0,2,0,1,0,6,1,0,2,0,24,0,1,0,6,0,120,1,0,2,0,24,0,720,0,1,0,6,0,120,0,5040,1,0,2,0,24,0,720,0,40320
lpb $0
add $2,1
sub $0,$2
lpe
add $1,1
add $2,1
lpb $0
mul $1,$0
sub $0,1
sub $2,1
lpe
mod $2,2
mul $2,$1
mov $0,$2
|
; A070609: a(n) = n^5 mod 25.
; 0,1,7,18,24,0,1,7,18,24,0,1,7,18,24,0,1,7,18,24,0,1,7,18,24,0,1,7,18,24,0,1,7,18,24,0,1,7,18,24,0,1,7,18,24,0,1,7,18,24,0,1,7,18,24,0,1,7,18,24,0,1,7,18,24,0,1,7,18,24,0,1,7,18,24,0,1,7,18,24,0,1,7,18,24,0,1,7,18,24,0,1,7,18,24,0,1,7,18,24,0,1,7,18,24,0,1,7,18,24,0,1,7,18,24,0,1,7,18,24,... |
// Copyright (c) 2012-2017 VideoStitch SAS
// Copyright (c) 2018 stitchEm
#pragma once
#include "core/rect.hpp"
#include "core/pyramid.hpp"
#include "gpu/buffer.hpp"
#include "gpu/stream.hpp"
#include "gpu/memcpy.hpp"
#include "gpu/uniqueBuffer.hpp"
#include "libvideostitch/status.hpp"
#include "libvideostitch/ptv.h... |
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007-2014, Image Engine Design Inc. All rights reserved.
// Copyright (c) 2012, John Haddon. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted pro... |
;
; Fast background save
;
; Generic version (just a bit slow)
;
; $Id: w_bksave.asm $
;
SECTION smc_clib
PUBLIC bksave
PUBLIC _bksave
EXTERN w_pixeladdress
.bksave
._bksave
push ix
ld hl,4
add hl,sp
ld e,(hl)
inc hl
ld d,(hl) ;sp... |
BethAskNumber1Text:
text "It's been a while"
line "since I lost…"
para "You're very good"
line "at battling."
para "We should battle"
line "again sometime."
para "By challenging a"
line "tough trainer like"
para "you, I think I can"
line "get better too."
para "So how about it?"
para "Would you give m... |
;------------------------------------------------------------------------------
;*
;* Copyright (c) 2016, 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 dist... |
;MATHEUS FIGUEIREDO
itint0 EQU 03H
state EQU 20H
CS EQU P0.7
END0 EQU P3.3;
END1 EQU P3.4;
ATRASO EQU 02H
ORG 0h
JMP INICIO
ORG itint0
JMP HANDLER
CLR END0
CLR END1
SETB CS
INICIO: MOV IE,#10000001B
SETB IT0
MOV state,#0H
MOV R0,#state
... |
#include "TicTacToeBoard.h"
const TicTacToeBoard TicTacToeBoard::makeMove(const TicTacToeMove& m) const {
if (!isLegal(m))
throw 1; // Illegal move
auto newDescription = d.editDescription(m.i, m.s);
TicTacToeBoard b(newDescription);
return b;
}
inline
bool TicTacToeBoard::isLegal(const TicTac... |
; A101202: Multiples of 142857.
; 142857,285714,428571,571428,714285,857142,999999,1142856,1285713,1428570,1571427,1714284,1857141,1999998,2142855,2285712,2428569,2571426,2714283,2857140,2999997,3142854,3285711,3428568,3571425,3714282,3857139,3999996,4142853,4285710,4428567,4571424,4714281,4857138,4999995,5142852,52857... |
//=================================================================================================
/*!
// \file src/mathtest/dmatdmatmult/DDaLDa.cpp
// \brief Source file for the DDaLDa dense matrix/dense matrix multiplication math test
//
// Copyright (C) 2012-2019 Klaus Iglberger - All Rights Reserved
//
// This... |
; A017201: a(n) = (9*n + 3)^5.
; 243,248832,4084101,24300000,90224199,254803968,601692057,1252332576,2373046875,4182119424,6956883693,11040808032,16850581551,24883200000,35723051649,50049003168,68641485507,92389579776,122298103125,159494694624,205236901143,260919263232,328080401001,408410100000,503756397099,61613266636... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r15
push %r8
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x10505, %r15
xor $286, %r13
mov (%r15), %r12d
nop
nop
cmp %rax, %rax
lea addresses_normal_ht+0xc276, %rsi
lea addresses_normal_ht+0x3cdc, %rdi
clflush (%rdi)
nop
cmp $54339, %... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r15
push %r8
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x185d6, %r15
nop
nop
and %r8, %r8
vmovups (%r15), %ymm4
vextracti128 $0, %ymm4, %xmm4
vpextrq $0, %xmm4, %rbx
nop
nop
nop
nop
nop
cmp %rbx, %rbx
lea addresses_D_ht+0x959e, %rs... |
; A253432: Number of (n+1) X (5+1) 0..1 arrays with every 2 X 2 subblock diagonal minus antidiagonal sum nondecreasing horizontally, vertically and ne-to-sw antidiagonally.
; 181,174,192,228,300,444,732,1308,2460,4764,9372,18588,37020,73884,147612,295068,589980,1179804,2359452,4718748,9437340,18874524,37748892,75497628... |
; void SMS_loadSTMcompressedTileMapArea(unsigned char x, unsigned char y, unsigned char *src, unsigned char width)
SECTION code_clib
SECTION code_SMSlib
PUBLIC _SMS_loadSTMcompressedTileMapArea
EXTERN asm_SMSlib_loadSTMcompressedTileMapArea
defc _SMS_loadSTMcompressedTileMapArea = asm_SMSlib_loadSTMcompressedTileMa... |
; A233481: Number of singletons (strong fixed points) in pair-partitions.
; Submitted by Christian Krause
; 0,1,4,21,144,1245,13140,164745,2399040,39834585,742940100,15374360925,349484058000,8654336615925,231842662751700,6679510641428625,205916703920928000,6762863294018456625,235719416966063530500,868988773641250274512... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r15
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x1d76, %rsi
lea addresses_UC_ht+0xa7f6, %rdi
nop
nop
nop
and $29408, %rbx
mov $62, %rcx
rep movsq
nop
nop
lfence
lea addresses_WT_ht+0xdbc6, %rsi
lea addresses_A_ht+0xcc66, %... |
*= $0801
.byte $4c,$16,$08,$00,$97,$32
.byte $2c,$30,$3a,$9e,$32,$30
.byte $37,$30,$00,$00,$00,$a9
.byte $01,$85,$02
jsr print
.byte 13
.text "(up)aneb"
.byte 0
lda #%00011011
sta db
lda #%11000110
st... |
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... |
BITS 32
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=FLAG_OF|FLAG_SF|FLAG_ZF|FLAG_AF|FLAG_PF|FLAG_CF
;TEST_FILE_META_END
; allocate 16 byte aligned stack space for the packed values
lea ecx, [esp-17]
and ecx, 0xfffffff0
; load 128 bit value into xmm0
mov DWORD [ecx], 0xae472f78
mov DWORD [ecx+4], 0x5... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r12
push %r14
push %r8
push %rax
push %rbx
// Store
lea addresses_WT+0x1e9d0, %r14
nop
nop
cmp %r8, %r8
movw $0x5152, (%r14)
nop
sub %rax, %rax
// Faulty Load
lea addresses_PSE+0x1ee50, %r14
nop
nop
cm... |
LDA 20F0
MVI B,00
MVI C,08
STC
CMC
ZONE: RAR
JNC TYPE
INR B
TYPE: DCR C
JNZ ZONE
MOV A,B
STA 20F1
RST 1
|
; A071229: a(n) = n*(14*n^2-21*n+13)/6.
; Submitted by Jamie Morken(s1.)
; 0,1,9,38,102,215,391,644,988,1437,2005,2706,3554,4563,5747,7120,8696,10489,12513,14782,17310,20111,23199,26588,30292,34325,38701,43434,48538,54027,59915,66216,72944,80113,87737,95830,104406,113479,123063,133172,143820,155021,166789,179138,192082... |
%include "include/u7bg-all-includes.asm"
%include "../u7-common/patch-eop-keepMoving.asm"
|
#BEGIN 0000H
MVI C,05
LXI H,C050
VOLTA: MOV A,M
ADD D
MOV D,A
INX H
DCR C
JNZ VOLTA
HLT
//EXAMPLE-> C050=85,C051=54
//Answer-> C052=7A,C053=AB
#ORG C050
#DB85H,54H |
; A266532: Total number of Y-toothpicks after n-th stage in the "outward" version of the cellular automaton of A160120.
; 0,1,4,7,16,19,28,37,58,61,70,79,100,109,130,151,196,199,208,217,238,247,268,289,334,343,364,385,430,451,496,541,634,637,646,655,676,685,706,727,772,781,802,823,868,889,934,979,1072,1081,1102,1123,11... |
#include<iostream>
using namespace std;
int main() {
int n, i;
bool num = false;
cout << "Enter a positive integer: ";
cin >> n;
for(i = 2; i <= n/2; ++i) {
if (checkPrime(i)) {
if (checkPrime(n - i)) {
cout << n << " = " << i << " + " << n-i << endl;
... |
; A308604: Number of (not necessarily maximal) cliques in the n X n fiveleaper graph.
; 2,5,10,17,34,73,126,193,274,369,478,601,738,889,1054,1233,1426,1633,1854,2089,2338,2601,2878,3169,3474,3793,4126,4473,4834,5209,5598,6001,6418,6849,7294,7753,8226,8713,9214,9729,10258,10801,11358,11929,12514,13113,13726,14353,14994,... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006 - 2016, 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 distributi... |
processor 6502
org $0801 ; sys2061
sysline:
.byte $0b,$08,$01,$00,$9e,$32,$30,$36,$31,$00,$00,$00
org $080d ; sys2061
lda #$80
sta $07f8
lda #$01
sta $d015
lda #$80
sta $d000
sta $d001
rts
org $2000
INCBIN "sprite1.spr"
|
.MODEL SMALL
.DATA
INPUT DB 10,13 , 'ENTER 8-BIT BINARY DATA : $'
OUTPUT DB 10,13, 'THE ASCII CHARACTER IS : $'
.CODE
.STARTUP
MOV AH,09H
MOV DX,OFFSET INPUT
INT 21H
MOV BL,00H
MOV CL,08H
INPUT1:
MOV AH,01H
INT 21H
SUB AL,30H
SHL BL,1
ADD BL,AL
LOOP INPUT1
MOV AH,09H
MOV DX,OFFSET OUTPUT... |
#include "Header.h"
string DealerWinState::stateName(){
return "DealerWinState";
}
GameState* DealerWinState::gameLoop(Player *player, Dealer *dealer, Screen* screen){
GameState* nextState = NULL;
//Update screen with win message
screen->message = "Dealer has won, Press Enter for a rematch or Escape to q... |
BITS 64
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=FLAG_CF|FLAG_OF|FLAG_SF|FLAG_ZF|FLAG_AF|FLAG_PF
;TEST_FILE_META_END
; IDIV16r
mov ax, 0xaa
mov bx, 0x4
mov dx, 0x1
;TEST_BEGIN_RECORDING
idiv bx
;TEST_END_RECORDING
|
// license:BSD-3-Clause
// copyright-holders:Charles MacDonald, Nicola Salmoria
/*****************************************************************************
FD1094 key dumper
This file is not part of MAME, it is a standalone program that reads 128MB of
data extracted from the FD1094 CPU and produces a 8KB keyfile, ... |
// BigNumber.cpp : Defines the entry point for the console application.
//
#include <iostream>
#include "bignumbr.h"
using namespace std;
int main()
{
BigNumber b1, b2, b3;
cout<<"Enter 1st number: ";
cin>>b1;
cout<<"Enter 2nd number: ";
cin>>b2;
b3 = b1 + b2;
cout<<endl<<"Sum = "<<b3;
... |
; A130553: Numerators of partial sums for a series for 2*Pi*sqrt(3)/9.
; Submitted by Christian Krause
; 1,7,6,169,1523,133,72623,87149,823077,15638477,46915441,13834041,224803169,6936783521,5587964507,4157445593923,12472336782289,170187831339,71785227258967,153825486983593,4905323862699739
mov $1,1
lpb $0
mov $2,$0... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 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... |
;
; $Id: 0x1e.asm,v 1.1.1.1 2016/03/27 08:40:12 raptor Exp $
;
; 0x1e explanation - from xchg rax,rax by xorpd@xorpd.net
; Copyright (c) 2016 Marco Ivaldi <raptor@0xdeadbeef.info>
;
; This was a weird one. First of all, the das instruction
; is not valid in 64-bit mode, therefore this snippet needs
; specific compile... |
; A133512: Accept F(1), reject F(1), accept F(2), reject F(2), accept F(3), ...,.
; 1,3,5,6,9,10,11,15,16,17,18,19,25,26,27,28,29,30,31,32,41,42,43,44,45,46,47,48,49,50,51,52,53,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,109,110,111,112,113,114,115,116,117,118
mov $1,$0
seq $1,87172 ; Greatest Fibo... |
; A177337: Partial sums of round(n^2/36).
; 0,0,0,0,0,1,2,3,5,7,10,13,17,22,27,33,40,48,57,67,78,90,103,118,134,151,170,190,212,235,260,287,315,345,377,411,447,485,525,567,611,658,707,758,812,868,927,988,1052,1119,1188,1260,1335,1413,1494,1578,1665,1755,1848,1945,2045,2148,2255,2365,2479,2596,2717,2842,2970,3102,3238,3... |
; A062020: Let P(n) = { 2,3,5,7,...,p(n) } where p(n) is n-th prime; then a(1) =0 and a(n) = Sum [mod{p(i) - p(j)}], for all i and j from 1 to n.
; 0,1,6,17,44,81,142,217,324,485,666,913,1208,1529,1906,2373,2936,3533,4238,5019,5840,6787,7822,8995,10360,11825,13342,14967,16648,18445,20662,23003,25536,28135,31074,34083,3... |
// Copyright (c) 2011-2016 The Bitcoin Core developers
// Copyright (c) 2017 The Pigeon Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "data/script_tests.json.h"
#include "core_io.h"
#include "key.h"
#... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r13
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x10236, %rdi
nop
nop
nop
nop
nop
xor $14378, %r11
mov $0x6162636465666768, %r10
movq %r10, %xmm1
vmovups %ymm1, (%rdi)
nop
nop
sub $61638, %r9
lea addresses_WC_ht+0x9536, ... |
;CELTIC major revision 3 by Rodger Weisman
;This software is licensed in accordance to the attached
;ReadMe file, however perverted it may be.
;Subroutines "standard" set
;Read and write all inputs and outputs from Op6
;ConvertTtoH: Converts text to hex
; Four digit hex number starting at Op6
; ... |
/*
SimpleXlsxWriter
Copyright (C) 2012-2020 Pavel Akimov <oxod.pavel@gmail.com>, Alexandr Belyak <programmeralex@bk.ru>
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 ... |
; A015464: q-Fibonacci numbers for q=7.
; Submitted by Jamie Morken(s4)
; 0,1,1,8,57,2801,139658,47216065,16477840107,38900937658402,95030370064332109,1569888180568718888123,26845297334664927227358264,3104208728255475471662060331653,371576574614065326331102018605110717,300764083354019611993924928162607993623488,2520121... |
;------------------------------------------------------------------------------
;
; EnableInterrupts() for ARM
;
; Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
; Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed... |
%ifndef X86_HELPERS_GUARD
%define X86_HELPERS_GUARD
BITS 64
default rel
%ifdef __YASM_MAJOR__
%error "We don't support YASM compilation anymore, see issue #63"
%endif
%include "nasm-utils/nasm-utils-inc.asm"
; aligns and declares the global label for the bench with the given name
; also potentally checks the ABI co... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x180fb, %r8
nop
nop
add $5581, %rdi
movb $0x61, (%r8)
nop
nop
nop
nop
inc %r10
lea addresses_WC_ht+0x13463, %rax
nop
nop
nop
nop
nop
sub %r13, %r13
movb $0x61, (%rax)
xor %r8, %... |
; A154879: Third differences of the Jacobsthal sequence A001045.
; 3,-2,4,0,8,8,24,40,88,168,344,680,1368,2728,5464,10920,21848,43688,87384,174760,349528,699048,1398104,2796200,5592408,11184808,22369624,44739240,89478488,178956968,357913944,715827880,1431655768,2863311528,5726623064,11453246120,22906492248,45812984488,... |
; A089010: a(n) = 1 if n is an exponent of the Weyl group W(E_8), 0 otherwise.
; 1,0,0,0,0,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0... |
; A001556: a(n) = 1^n + 2^n + ... + 9^n.
; Submitted by Christian Krause
; 9,45,285,2025,15333,120825,978405,8080425,67731333,574304985,4914341925,42364319625,367428536133,3202860761145,28037802953445,246324856379625,2170706132009733,19179318935377305,169842891165484965,1506994510201252425,13394131858832552133,11922332... |
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
namespace... |
; A172046: Partial sums of floor(n^2/7) (A056834).
; 0,0,0,1,3,6,11,18,27,38,52,69,89,113,141,173,209,250,296,347,404,467,536,611,693,782,878,982,1094,1214,1342,1479,1625,1780,1945,2120,2305,2500,2706,2923,3151,3391,3643,3907,4183,4472,4774,5089,5418,5761,6118,6489,6875,7276,7692,8124,8572,9036,9516,10013,10527,11058,1... |
;
; Philips P2000 Graphics Functions
;
; cls () -- clear screen
;
; Stefano Bodrato - Apr 2014
;
;
; $Id: clsgraph.asm,v 1.4 2017-01-02 22:57:58 aralbrec Exp $
;
SECTION code_clib
PUBLIC cleargraphics
PUBLIC _cleargraphics
EXTERN base_graphics
.cleargraphics
._... |
//--- Task for the determination of p and Lambda Yields in pp ---
//--- Author: Janik Ditzel; janik.ditzel@cern.ch ---
#include <iostream>
#include "TChain.h"
#include "TTree.h"
#include "TH1F.h"
#include "TH2F.h"
#include "AliAnalysisTask.h"
#include "AliAnalysisManager.h"
#include "AliMultSelection.h"
#inc... |
; A104879: Row sums of a sum-of-powers triangle.
; 1,2,4,8,17,40,106,316,1049,3830,15208,65072,297841,1449756,7468542,40555748,231335961,1381989882,8623700812,56078446616,379233142801,2662013133296,19362917622002,145719550012300,1133023004941273,9090156910550110,75161929739797520
mov $2,$0
add $2,1
mov $3,$0
lpb $2
... |
; A105939: a(n) = binomial(n+3,3)*binomial(n+6,3).
; 20,140,560,1680,4200,9240,18480,34320,60060,100100,160160,247520,371280,542640,775200,1085280,1492260,2018940,2691920,3542000,4604600,5920200,7534800,9500400,11875500,14725620
add $0,6
bin $0,6
mul $0,20
|
// Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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 re... |
// Copyright (c) 2013-2015 The LipCoin 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 "ut... |
; Z88 Small C+ Run time Library
; Moved functions over to proper libdefs
; To make startup code smaller and neater!
;
; 6/9/98 djm
;
; 22/3/99 djm Rewritten to be shorter..
XLIB l_asr
.l_asr
ex de,hl
.l_asr1
dec e
ret m
sra... |
#include <memory>
#include <zmq.hpp>
#include <gtest/gtest.h>
#include "lager/forwarder.h"
#include "lager/lager_utils.h"
class ForwarderTests : public ::testing::Test
{
protected:
virtual void SetUp()
{
}
virtual void TearDown()
{
}
std::shared_ptr<zmq::context_t> context;
};
TEST_F... |
; A169074: Number of reduced words of length n in Coxeter group on 13 generators S_i with relations (S_i)^2 = (S_i S_j)^25 = I.
; 1,13,156,1872,22464,269568,3234816,38817792,465813504,5589762048,67077144576,804925734912,9659108818944,115909305827328,1390911669927936,16690940039135232,200291280469622784
add $0,1
mov $3... |
#include "anagrams.h"
#include "gtest/gtest.h"
using anagrams::getNumberOfDeletionsToMakeAnagrams;
using std::string;
TEST(Anagrams, alreadyAnagrams) {
EXPECT_EQ(0, getNumberOfDeletionsToMakeAnagrams("abc", "acb"));
}
TEST(Anagrams, oneDeletion) {
EXPECT_EQ(1, getNumberOfDeletionsToMakeAnagrams("abc", "abcd"));
... |
#include "complex.hpp"
#include "arithmetic.hpp"
#include "Zaimoni.STL/var.hpp"
#include <memory>
namespace zaimoni {
namespace math {
complex::complex(const decltype(a)& re, const decltype(b)& im) : a(re), b(im) {
decltype(auto) R = get<_type<_type_spec::_R_SHARP_> >();
const zaimoni::math::type* domain;
if (!(do... |
; Dummy function to keep rest of libs happy
;
; $Id: open.asm,v 1.6 2016-03-06 21:39:54 dom Exp $
;
SECTION code_clib
INCLUDE "target/test/def/test_cmds.def"
PUBLIC open
PUBLIC _open
; char *name, int flags, mode_t mode)
.open
._open
pop af
pop bc
pop de
pop hl
push hl
push de
push bc
p... |
; Z88 Specific Maths Library
;
; Convert double to string
;
;void ftoa(x,prec,str)
;double x ; /* number to be converted */
;int prec ; /* # digits after decimal place */
;char *str ; /* output string */
XLIB ftoa
INCLUDE "#fpp.def"
.ftoa
ld ix,0
add ix,sp
exx
ld d,2 ... |
/**
* Touhou Community Reliant Automatic Patcher
* Main DLL
*
* ----
*
* Breakpoint entry point. Written for i686-w64-mingw32-as.
*/
.intel_syntax
.global _bp_entry, _bp_entry_localptr, _bp_entry_end
_bp_entry:
pusha
pushf
push %esp
_bp_entry_localptr:
push 0x12345678
/* Since we need to be posit... |
/*
MCH DA for online BP occupancy evolution
Contact: Laurent Aphecetche <laurent.aphecetche@subatech.in2p3.fr>
Link:
Run Type: PHYSICS STANDALONE
DA Type: MON
Inputs files: mchbpevo.conf
Number of events needed: all (or at least as much as possible...)
Reference Run: 233721
Link: 15000233721019.1104.root
Ou... |
; A202335: T(n,k)=Number of (n+1)X(k+1) binary arrays with consecutive windows of two bits considered as a binary number nondecreasing in every row and column
; Submitted by Jon Maiga
; 16,25,25,36,48,36,49,82,82,49,64,129,162,129,64,81,191,289,289,191,81,100,270,478,576,478,270,100,121,368,746,1052,1052,746,368,121,14... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 17.00.50727.1
include listing.inc
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
PUBLIC ?initialize_serial@@YAXXZ ; initialize_serial
PUBLIC ?write_serial@@YAXD@Z ; write_serial
PUBLIC ?debug_serial@@YAXPEAD@Z ; debug_serial
PUBLIC ?serial_handler@@YAX_... |
; A025716: Index of 6^n within sequence of numbers of form 6^i*7^j.
; 1,2,4,7,11,16,22,29,37,46,56,67,79,91,104,118,133,149,166,184,203,223,244,266,289,313,337,362,388,415,443,472,502,533,565,598,632,667,702,738,775,813,852,892,933,975,1018,1062,1107,1153,1200,1247,1295,1344,1394
mov $2,$0
add $2,1
mov $4,$0
lpb $2
... |
; A277228: Convolution of the even-indexed triangular numbers (A014105) and the squares (A000290).
; 0,0,3,22,88,258,623,1316,2520,4476,7491,11946,18304,27118,39039,54824,75344,101592,134691,175902,226632,288442,363055,452364,558440,683540,830115,1000818,1198512,1426278,1687423,1985488,2324256,2707760,3140291,3626406,4... |
.MODEL SMALL
.STACK 100H
.DATA
PROMPT_1 DB 'Enter The Binary Value : $'
PROMPT_2 DB 0DH,0AH,'SHR By 4 Bits: $'
.CODE
MAIN PROC
MOV AX, @DATA
MOV DS, AX
LEA DX, PROMPT_1
MOV AH, 9
INT 21H
XOR BL, BL
MOV CX, 8
MOV AH, 1
@INPUT:
... |
[BITS 64]
global fldl2t:function
section .text
; === [ FLDL2T ] ===============================================================
fldl2t:
fldl2t
ret
|
db "WEED@" ; species name
db "The smell from its"
next "drool-like syrup"
next "and the pollen on"
page "its petals is so"
next "bad, it may make"
next "opponents faint.@"
|
; char *strnchr(const char *s, size_t n, int c)
SECTION code_clib
SECTION code_string
PUBLIC strnchr_callee
EXTERN asm_strnchr
strnchr_callee:
pop hl
pop de
pop bc
ex (sp),hl
jp asm_strnchr
|
#ifndef POTHOS_MPL_MAP_AUX_CONTAINS_IMPL_HPP_INCLUDED
#define POTHOS_MPL_MAP_AUX_CONTAINS_IMPL_HPP_INCLUDED
// Copyright Aleksey Gurtovoy 2003-2004
//
// 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)
//
// See... |
;
; jdclrmmx.asm - colorspace conversion (MMX)
;
; 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 be assem... |
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... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "amount.h"
#include "tinyformat.h"
const std::string CURRENCY_UNIT = "... |
copyright zengfr site:http://github.com/zengfr/romhack
00FE54 move.b ($e,A2), ($5b,A0) [enemy+5C, etc+5C, item+5C]
00FE5A move.b ($f,A2), ($96,A0) [enemy+5B, etc+5B, item+5B]
copyright zengfr site:http://github.com/zengfr/romhack
|
; A246472: Number of order-preserving (monotone) functions from the power set of 1 = {0} to the power set of n = {0, ..., n-1}.
; 1,3,9,30,109,418,1650,6604,26589,107274,432934,1746484,7040626,28362324,114175812,459344920,1847008989,7423262554,29822432862,119766845860,480833598054,1929896415484,7744047734652,3106766511... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2016, 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... |
// Copyright (c) 2011-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <QApplication>
#include "paymentserver.h"
#include "guiconstants.h"
#include "ui_interface.h"
#include "util.h"
#i... |
#include "delegatemanager.h"
#include "net.h"
std::map<std::vector<unsigned char>, DelegateData> DelegateManager::delegate_data_map;
DelegateManager::DelegateManager()
{
}
std::vector<unsigned char> DelegateManager::store(bool is_delegate,
CNetAddr self,
CNetAddr other,
CScript destination,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.