text stringlengths 1 1.05M |
|---|
; A131808: Partial sums of A131378.
; 0,0,1,1,1,2,3,3,3,3,3,4,5,5,5,5,5,6,7,7,7,7,7,8,9,10,11,12,13,13,13,14,15,16,17,18,19,19,19,19,19,20,21,21,21,21,21,22,23,24,25,26,27,27,27,27,27,27,27,28,29,29,29,29,29,29,29,30,31,32,33,33,33,34,35,36,37,38
mov $2,$0
mov $3,$0
lpb $2
mov $0,$3
sub $2,1
sub $0,$2
sub $0,1... |
; size_t p_queue_size_fastcall(p_queue_t *q)
SECTION code_clib
SECTION code_adt_p_queue
PUBLIC _p_queue_size_fastcall
EXTERN asm_p_queue_size
defc _p_queue_size_fastcall = asm_p_queue_size
|
#include <KrisLibrary/Logger.h>
#include "LCP.h"
#include <errors.h>
#include <sstream>
#include <iostream>
using namespace Optimization;
using namespace std;
LemkeLCP::LemkeLCP(const Matrix& M,const Vector& q)
{
verbose = 1;
Assert(M.m == M.n);
Assert(M.m == q.n);
dictionary.resize(M.m,M.n+2);
dictionary.co... |
; A206351: a(n) = 7*a(n-1) - a(n-2) - 4 with a(1)=1, a(2)=3.
; 1,3,16,105,715,4896,33553,229971,1576240,10803705,74049691,507544128,3478759201,23843770275,163427632720,1120149658761,7677619978603,52623190191456,360684711361585,2472169789339635,16944503814015856,116139356908771353,796030994547383611,5456077604922913920,... |
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include <utility>
#include "vm/isolate.h"
#include "include/dart_api.h"
#include "include/dart_nativ... |
; A033131: Base-4 digits are, in order, the first n terms of the periodic sequence with initial period 1,1,0.
; 1,5,20,81,325,1300,5201,20805,83220,332881,1331525,5326100,21304401,85217605,340870420,1363481681,5453926725,21815706900,87262827601,349051310405,1396205241620,5584820966481,22339283865925,89357135463700,3574... |
IDEAL
ASSUME CS:SEG1, DS:SEG1, ES:SEG1, SS:SEG1
SEGMENT SEG1 PUBLIC
ORG 100h
start:
MOV AX, 1234h
ENDS
PUBLIC start
END start
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r15
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x542d, %rsi
lea addresses_normal_ht+0x1569f, %rdi
nop
nop
xor %r11, %r11
mov $39, %rcx
rep movsb
and %r15, %r15
lea addresses_A_ht+0x121a5, %rbx
nop
and $4016, %r13
movb $0x61, (%rbx)
... |
/****************************************************************************
**
** This file is part of the LibreCAD project, a 2D CAD program
**
** Copyright (C) 2010 R. van Twisk (librecad@rvt.dds.nl)
** Copyright (C) 2001-2003 RibbonSoft. All rights reserved.
**
**
** This file may be distributed and/or modified un... |
; Copyright © 2021, VideoLAN and dav1d authors
; Copyright © 2021, 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... |
;;
;; Copyright (c) 2012-2018, 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... |
BuildItemMessage:
ld hl, ItemNamePointers
ldh a, [$F1]
ld d, $00
ld e, a
add hl, de
add hl, de
ldi a, [hl]
ld h, [hl]
ld l, a
ld de, wCustomMessage
jp MessageCopyString
FoundItemForOtherPlayerPostfix:
db m" for another player", $ff
G... |
/* Copyright 2016 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 a... |
.module Things
Code:
; ==========================================================================
; SubSectorStack.Push
; --------------------------------------------------------------------------
; Pushes information about the subsector to draw to the stack.
; --------------------------------------------------... |
macro MainHash_Save lcopy, entr, key16, vvalue, bbounder, ddepth, mmove, eev
local dont_write_move, write_everything, write_after_move, done
;ProfileInc MainHash_Save
if vvalue eq edx
else if vvalue eq 0
xor edx, edx
else
err 'val argument of HashTable_Save is not edx or 0'
end if
... |
;=======================================
;
; MSU-1 Enhanced Audio Patch
; Zelda no Densetsu - Kamigami no Triforce
; Modified for VT Randomizer
;
; Author: qwertymodo
;
; Free space used: 0x77DDD-0x77F8A
;
;=======================================
!REG_MSU_STATUS = $2000
!REG_MSU_ID_0 = $2002
!REG_MSU_ID_1 = $2003
!RE... |
; A226695: Pell equation solutions (32*b(n))^2 - 41*(5*a(n))^2 = -1 with b(n) := A226694(n), n>=0.
; Submitted by Christian Krause
; 1,4097,16789505,68803387393,281956264747009,1155456704129855489,4735061291567883046913,19404280017388480596393985,79518734776196701916139503617,325867755708574067063859089428481,133540598... |
#ifndef BLOCK_ZERO_BREAKABLE_HPP
#define BLOCK_ZERO_BREAKABLE_HPP
#include <swapShop/SwapEntity.hpp>
class BlockZeroBreakable : public SwapEntity
{
public:
BlockZeroBreakable(const sf::Texture& texture);
private:
virtual void updateCurrent(sf::Time dt, Context context);
virtual void handleEventCurrent(c... |
; A163301: a(n) = Sum_{x=n-th even nonprime..n-th odd nonprime} -x*(-1)^x.
; Submitted by Jamie Morken(s1)
; 1,3,5,7,8,8,10,10,11,13,14,14,15,15,17,17,18,20,20,21,22,22,23,23,23,24,26,28,29,29,29,29,29,29,30,31,31,33,33,33,33,35,35,36,36,37,38,38,39,39,41,41,41,41,43,45,45,45,45,45,46,46,46,46,46,47,49,50,50,52,52
add... |
; A001077: Numerators of continued fraction convergents to sqrt(5).
; Submitted by Jon Maiga
; 1,2,9,38,161,682,2889,12238,51841,219602,930249,3940598,16692641,70711162,299537289,1268860318,5374978561,22768774562,96450076809,408569081798,1730726404001,7331474697802,31056625195209,131557975478638,557288527109761,2360712... |
--- FUNCTION SOURCE (SetFunctionName) id{0,0} ---
(g,h,i){
if((typeof(h)==='symbol')){
h="["+%SymbolDescription(h)+"]";
}
if((i===(void 0))){
%FunctionSetName(g,h);
}else{
%FunctionSetName(g,i+" "+h);
}
}
--- END ---
--- FUNCTION SOURCE (ToName) id{1,0} ---
(i){
return(typeof(i)==='symbol')?i:ToString(i);
}
--- END ---... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r8
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x1c4d1, %r11
clflush (%r11)
nop
add %r13, %r13
movups (%r11), %xmm7
vpextrq $1, %xmm7, %r12
nop
nop
and $22412, %r8
lea addresses_normal_ht+0xed11, %r12
nop
cmp %r11, %r11
mov... |
; A299261: Partial sums of A299255.
; 1,8,31,81,168,303,497,760,1103,1537,2072,2719,3489,4392,5439,6641,8008,9551,11281,13208,15343,17697,20280,23103,26177,29512,33119,37009,41192,45679,50481,55608,61071,66881,73048,79583,86497,93800,101503,109617,118152,127119,136529,146392,156719,167521,178808,190591,202881,215688,22... |
; A274979: Integers of the form m*(m + 7)/8.
; 0,1,15,18,46,51,93,100,156,165,235,246,330,343,441,456,568,585,711,730,870,891,1045,1068,1236,1261,1443,1470,1666,1695,1905,1936,2160,2193,2431,2466,2718,2755,3021,3060,3340,3381,3675,3718,4026,4071,4393,4440,4776,4825,5175,5226,5590,5643,6021,6076,6468,6525,6931,6990,7410... |
;RootDir: Dump Win-95 longnames (the brain-dead ~1 style) from the root directory of a floppy to stdout (a la DIR roughly) - will show ~1 name, space, long name (aka "dead name" ie "brain dead")
;Note: Dead names consist of Unicode characters. This program assumes that the high bytes are all 0, and dumps the low bytes ... |
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 4.1.4 #12246 (Mac OS X x86_64)
;--------------------------------------------------------
.module background_5
.optsdcc -mgbz80
;--------------------------------------------------------
; Pub... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: legendGeometry.asm
AUTHOR: Chris Boyke
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ----... |
; A144083: Triangle read by rows, partial sums from the right an A010892 subsequences decrescendo triangle
; 1,2,1,2,2,1,1,2,2,1,0,1,2,2,1,0,0,1,2,2,1,1,0,0,1,2,2,1,2,1,0,0,1,2,2,1,2,2,1,0,0,1,2,2,1,1,2,2,1,0,0,1,2,2,1,0,1,2,2,1,0,0,1,2,2,1,0,0,1,2,2,1,0,0,1,2,2,1
seq $0,25676 ; Exponent of 8 (value of i) in n-th numb... |
/*
Copyright 2020 The OneFlow 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 agre... |
; A224327: Number of idempotent n X n 0..2 matrices of rank n-1.
; 1,10,51,212,805,2910,10199,34984,118089,393650,1299067,4251516,13817453,44641030,143489055,459165008,1463588497,4649045850,14721978563,46490458660,146444944821,460255540910,1443528741991,4518872583672,14121476824025,44059007691010,137260754729739,427033... |
;++
;
; Copyright (c) Microsoft Corporation
;
; Module Name:
;
; blidt.asm
;
; Abstract:
;
; This module implements IDT functions for the boot loader.
;
; Environment:
;
; Boot loader.
;
;--
include bl.inc
.686p
.model flat
.code
assume ds:flat
assume es:flat
assume ss:flat
assume fs:flat
extrn ?BlTrapF... |
; A070389: a(n) = 5^n mod 43.
; 1,5,25,39,23,29,16,37,13,22,24,34,41,33,36,8,40,28,11,12,17,42,38,18,4,20,14,27,6,30,21,19,9,2,10,7,35,3,15,32,31,26,1,5,25,39,23,29,16,37,13,22,24,34,41,33,36,8,40,28,11,12,17,42,38,18,4,20,14,27,6,30,21,19,9,2,10,7,35,3,15,32,31,26,1,5,25,39,23,29,16,37,13,22,24,34,41,33,36,8
mov $1,1... |
ori $ra,$ra,0xf
ori $0,$0,35865
ori $6,$6,62202
srav $3,$0,$3
lb $6,13($0)
div $5,$ra
mfhi $4
divu $2,$ra
lb $4,2($0)
lui $5,9281
multu $1,$2
div $1,$ra
sll $5,$1,2
ori $1,$5,1232
div $4,$ra
multu $5,$4
mult $3,$0
mthi $5
srav $6,$6,$6
multu $1,$0
div $2,$ra
mflo $2
addiu $6,$6,17239
ori $4,$4,29743
multu $6,$4
mult $0... |
;*****************************************************************************
; AMD Generic Encapsulated Software Architecture
;
; Workfile: arch2008.asm $Revision: 37157 $ $Date: 2010-09-01 03:24:07 +0800 (Wed, 01 Sep 2010) $
;
; Description: ARCH2008.ASM - AGESA Architecture 2008 Wrapper Template
;
;********... |
; A250353: Number of length 4 arrays x(i), i=1..4 with x(i) in i..i+n and no value appearing more than 2 times.
; 16,75,235,581,1221,2287,3935,6345,9721,14291,20307,28045,37805,49911,64711,82577,103905,129115,158651,192981,232597,278015,329775,388441,454601,528867,611875,704285,806781,920071,1044887,1181985,1332145,149... |
; A025901: Expansion of 1/((1-x^6)(1-x^7)(1-x^12)).
; 1,0,0,0,0,0,1,1,0,0,0,0,2,1,1,0,0,0,2,2,1,1,0,0,3,2,2,1,1,0,3,3,2,2,1,1,4,3,3,2,2,1,5,4,3,3,2,2,6,5,4,3,3,2,7,6,5,4,3,3,8,7,6,5,4,3,9,8,7,6,5,4,10,9,8,7,6,5,11,10
mov $3,2
mov $5,$0
lpb $3
mov $0,$5
sub $3,1
add $0,$3
trn $0,1
seq $0,29110 ; Expansion of ... |
%include "defs.asm"
;************************* physseed64.asm **********************************
; Author: Agner Fog
; Date created: 2010-08-03
; Last modified: 2013-09-13
; Source URL: www.agner.org/optimize
; Project: asmlib.zip
; C++ prototype:
; extern "C" int PhysicalSeed(... |
; A122416: Numbers from an irrationality measure for e, with a(1) = 2.
; Submitted by Jamie Morken(s3)
; 2,3,4,5,6,4,8,5,7,6,12,5,14,8,6,7,18,7,20,6,8,12,24,5,11,14,10,8,30,6,32,9,12,18,8,7,38,20,14,6,42,8,44,12,7,24,48,7,15,11,18,14,54,10,12,8,20,30,60,6,62,32,8,9,14,12,68,18,24,8,72,7,74,38,11,20,12,14,80,7,10
add $... |
; A089820: Number of subsets of {1,..,n} containing at least one prime.
; Submitted by Jamie Morken(w4)
; 0,2,6,12,28,56,120,240,480,960,1984,3968,8064,16128,32256,64512,130048,260096,522240,1044480,2088960,4177920,8372224,16744448,33488896,66977792,133955584,267911168,536346624,1072693248,2146435072,4292870144,8585740... |
#include "ChordAlgSrc/chordalg_string.h"
#include <algorithm>
#include <cstring>
#include <iterator>
#include <sstream>
#include <string>
namespace chordalg {
// True iff str is a natural number
bool IsNum(const std::string& str) {
for (auto c : str) {
if (!std::isdigit(c)) {
return false;
... |
; A325517: a(n) = n*((2*n + 1)*(2*n^2 + 2*n + 3) - 3*(-1)^n)/24.
; 0,1,6,24,64,145,282,504,832,1305,1950,2816,3936,5369,7154,9360,12032,15249,19062,23560,28800,34881,41866,49864,58944,69225,80782,93744,108192,124265,142050,161696,183296,207009,232934,261240,292032,325489,361722,400920,443200
mov $15,$0
mov $17,$0
lpb ... |
///////////////////////////////////////////////////////////////////////////////////
/// OpenGL Mathematics (glm.g-truc.net)
///
/// Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)
/// Permission is hereby granted, free of charge, to any person obtaining a copy
/// of this software and associated documentatio... |
; A315745: Coordination sequence Gal.4.137.4 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,6,12,18,23,28,34,40,46,52,58,64,69,74,80,86,92,98,104,110,115,120,126,132,138,144,150,156,161,166,172,178,184,190,196,202,207,212,218,224,... |
; A024896: Numbers k such that 5*k - 2 is prime.
; 1,3,5,9,11,15,17,21,23,33,35,39,45,47,53,57,59,63,71,75,77,87,89,93,101,105,113,119,123,129,131,135,137,147,149,155,165,171,173,177,191,197,203,207,213,219,221,225,231,233,239,243,245,257,261,275,285,287,291,297,299,305,309,311,317,323,333,339,345,347,351,357,365,375,3... |
.data
str: .space 256
rev: .space 256
newLine: .byte '\n'
string: .asciiz "Enter string: "
revstring: .asciiz "Reversed string:"
.text
main:
la $a0,string
li $v0,4
syscall
la $a0,str
la $a1,6
li $v0,8
syscall
la $t3, str
li $t1,-1
lb $t4, newl
strloop:
add $t1,$t1,1
lb $t2, str+0($t1) #not the best method ... |
SECTION "Vblank", ROM0[$0040]
call VblankInt
reti
SECTION "LCDC", ROM0[$0048]
reti
SECTION "Timer", ROM0[$0050]
call TimerInt
reti
SECTION "Serial", ROM0[$0058]
call SerialInt
reti
SECTION "Joypad", ROM0[$0060]
reti
SECTION "Entry", ROM0[$100]
di
jp Start
SECTION "Header", ROM0[$104]
REPT $150-$1... |
#include <iostream>
#include<math.h>
#include<iomanip>
#include<cmath>
#include<fstream>
using namespace std;
float f(float x){
return (pow(x,0.1))*(1.2-x)*(1-pow(2.71828,20*(x-1)));
}
float trapezoidal(float a, float b, int n){
float x[10000];
for(int i=0; i<=n; i++){
x[i] = a + i*((b-a)/n);
... |
/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied w... |
;================================================================================
; insert kholdstare & trinexx shell gfx file
;--------------------------------------------------------------------------------
GFX_Kholdstare_Shell:
incbin shell.gfx
GFX_Trinexx_Shell:
incbin rocks.gfx
GFX_Trinexx_Shell2:
incbin rocks2.... |
; A264847: Pluritriangular numbers: a(0) = 0; a(n+1) = a(n) + the number of digits in terms a(0)..a(n).
; 0,1,3,6,10,16,24,34,46,60,76,94,114,137,163,192,224,259,297,338,382,429,479,532,588,647,709,774,842,913,987,1064,1145,1230,1319,1412,1509,1610,1715,1824,1937,2054,2175,2300,2429,2562,2699,2840,2985,3134,3287,3444,3... |
#include "tools.h"
#include <iostream>
using Eigen::VectorXd;
using Eigen::MatrixXd;
using std::vector;
using std::cout;
using std::endl;
Tools::Tools() {}
Tools::~Tools() {}
VectorXd Tools::CalculateRMSE(const vector<VectorXd> &estimations,
const vector<VectorXd> &ground_truth) {
//... |
;
; Y8950 MSX-AUDIO driver
;
; ports
MSXAudio_STATUS_PORT: equ 0C0H
MSXAudio_ADDRESS_PORT: equ 0C0H
MSXAudio_DATA_PORT: equ 0C1H
MSXAudio_CLOCK: equ 3579545
; registers
MSXAudio_TEST: equ 01H
MSXAudio_TIMER_1: equ 02H
MSXAudio_TIMER_2: equ 03H
MSXAudio_FLAG_CONTROL: equ 04H
MSXAudio_KEYBOARD_IN: equ 05H
MSXAudio_KEYB... |
; ----------------------------------------
; Command line interface program
; to test escape codes.
;
; ------------------------------------------------------... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; a minimal Commander X16 math library
;; Time-stamp: <2019-10-17 10:15:14 schol-r-lea>
.include "math.inc"
.export parsehex
.proc parsehex
tay
lsr a
lsr a
lsr a
lsr a
cmp #$0A
bcs letterhi
adc #$30
jmp outhi
letterhi:
adc #$36
... |
; A047240: Numbers that are congruent to {0, 1, 2} mod 6.
; 0,1,2,6,7,8,12,13,14,18,19,20,24,25,26,30,31,32,36,37,38,42,43,44,48,49,50,54,55,56,60,61,62,66,67,68,72,73,74,78,79,80,84,85,86,90,91,92,96,97,98,102,103,104,108,109,110,114,115,116,120,121,122,126,127,128,132,133,134,138,139,140,144,145,146,150,151,152,156,1... |
global _start
section .bss
res resb 1
section .text
_start:
sub ah, ah ; Set ah to 00H
mov al, '9' ; Getting '9' to al
sub al, '3' ; SUB al with '3', the value in al is 06H
aas ; ASCII Adjust After Subtract, the value in al is 06H
mov [res], ax ; Move 06H to [res]
; Print res
mov eax, 4
mov ebx, 1
mov ecx... |
; A022964: a(n) = 8-n.
; Submitted by Christian Krause
; 8,7,6,5,4,3,2,1,0,-1,-2,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-23,-24,-25,-26,-27,-28,-29,-30,-31,-32,-33,-34,-35,-36,-37,-38,-39,-40,-41,-42,-43,-44,-45,-46,-47,-48,-49,-50,-51
sub $0,8
mul $0,-1
|
; A028841: Iterated sum of digits of n is a Fibonacci number.
; 1,2,3,5,8,10,11,12,14,17,19,20,21,23,26,28,29,30,32,35,37,38,39,41,44,46,47,48,50,53,55,56,57,59,62,64,65,66,68,71,73,74,75,77,80,82,83,84,86,89,91,92,93,95,98,100,101,102,104,107,109,110,111,113,116,118,119,120,122,125,127,128,129,131,134,136,137,138,140,... |
// Tests calling into a function pointer with local variables
// Commodore 64 PRG executable file
.file [name="function-pointer-noarg-call-7.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAft... |
MOV Ix, 7
MOV Ac, 0
MOV Br, 10
Loop:
ADD Br
DEC Ix
JMP Loop -nz
HLT
|
; A217831: Triangle read by rows: label the entries T(0,0), T(1,0), T(0,1), T(2,0), T(1,1), T(0,2), T(3,0), ... Then T(n,k)=T(k,n), T(0,0)=0, T(1,0)=1, and for n>1, T(n,0)=0 and T(n,in+j)=T(n-j,j) (i,j >= 0, not both 0).
; 0,1,1,0,1,0,0,1,1,0,0,1,0,1,0,0,1,1,1,1,0,0,1,0,0,0,1,0,0,1,1,1,1,1,1,0,0,1,0,1,0,1,0,1,0,0,1,1,0... |
; uint16_t esx_f_read(unsigned char handle, void *dst, size_t nbytes)
SECTION code_esxdos
PUBLIC esx_f_read_callee
EXTERN asm_esx_f_read
esx_f_read_callee:
pop af
pop bc
pop hl
pop de
push af
ld a,e
jp asm_esx_f_read
|
; $Id: kLdrExeStub-os2.asm 29 2009-07-01 20:30:29Z bird $
;; @file
; kLdr - OS/2 Loader Stub.
;
; This file contains a 64kb code/data/stack segment which is used to kick off
; the loader dll that loads the process.
;
;
; Copyright (c) 2006-2007 Knut St. Osmundsen <bird-kStuff-spamix@anduin.net>
;
; Permission is hereb... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-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 "base58.h"
#include "init.h"
#include "main.h"
#include "net.h"
#include "netb... |
#include "vtkPistonScalarsColors.h"
#include "vtkObjectFactory.h"
#include "vtkScalarsToColors.h"
#include <vector>
vtkStandardNewMacro(vtkPistonScalarsColors);
vtkCxxSetObjectMacro(vtkPistonScalarsColors, LookupTable, vtkScalarsToColors);
//------------------------------------------------------------... |
// --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and ... |
; CALLER linkage for function pointers
XLIB l_bsearch
LIB l_bsearch_callee
XREF ASMDISP_L_BSEARCH_CALLEE
.l_bsearch
pop af
pop iy
pop hl
pop de
pop bc
push bc
push de
push hl
push hl
push af
jp l_bsearch_callee + ASMDISP_L_BSEARCH_CALLEE
|
INCLUDE "constants.asm"
INCLUDE "macros/wram.asm"
INCLUDE "vram.asm"
SECTION "OAM Buffer", WRAM0
; buffer for OAM data copied by DMA
wOAMBuffer::
; wOAMBufferSprite00 - wOAMBufferSprite39
; example for first sprite
; wOAMBufferSprite00::
; wOAMBufferSprite00YCoord:: db
; wOAMBufferSprite00XCoord:: db
; ... |
lui $1,40715
ori $1,$1,41822
lui $2,56157
ori $2,$2,44874
lui $3,63629
ori $3,$3,37838
lui $4,42879
ori $4,$4,25490
lui $5,48830
ori $5,$5,2525
lui $6,12447
ori $6,$6,44199
mthi $1
mtlo $2
sec0:
nop
nop
nop
beq $3,$2,yes0
nop
no0:addiu $k1,$k1,1
yes0:addiu $k0,$k0,1
sec1:
nop
nop
or $3,$4,$3
beq $3,$2,yes1
n... |
.global s_prepare_buffers
s_prepare_buffers:
push %r15
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x13315, %rsi
lea addresses_A_ht+0x918d, %rdi
nop
nop
nop
sub $42603, %r15
mov $123, %rcx
rep movsw
nop
nop
sub %rbp, %rbp
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r15
ret
.global s_faulty_load
s_... |
; A117940: a(0)=1, thereafter a(3n) = a(3n+1)/3 = a(n), a(3n+2)=0.
; Submitted by Christian Krause
; 1,3,0,3,9,0,0,0,0,3,9,0,9,27,0,0,0,0,0,0,0,0,0,0,0,0,0,3,9,0,9,27,0,0,0,0,9,27,0,27,81,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,3,9,0,9,27,0,0,0,0,9,27,0,27,81,0,0,0,0,0
mov $1,1
... |
lda #<{c1}
sta {m1}
lda #>{c1}
sta {m1}+1
lda {m2}
sta {m1}+2
lda {m2}+1
sta {m1}+3
|
/*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2017 - ROLI Ltd.
JUCE is an open source library subject to commercial or open-source
licensing.
By using JUCE, you agree to the terms of both the JUCE 5 End... |
; A215543: Number of standard Young tableaux of shape [3n,3].
; 0,5,48,154,350,663,1120,1748,2574,3625,4928,6510,8398,10619,13200,16168,19550,23373,27664,32450,37758,43615,50048,57084,64750,73073,82080,91798,102254,113475,125488,138320,151998,166549,182000,198378,215710,234023,253344,273700,295118,317625,341248,366014,... |
/**
* @file InputUtils.hpp
* @brief InputUtils class prototype.
* @author zer0
* @date 2020-03-22
*/
#ifndef __INCLUDE_LIBTBAG__LIBTBAG_IO_INPUTUTILS_HPP__
#define __INCLUDE_LIBTBAG__LIBTBAG_IO_INPUTUTILS_HPP__
// MS compatible compilers support #pragma once
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#prag... |
extern m7_ippsAESGetSize:function
extern n8_ippsAESGetSize:function
extern y8_ippsAESGetSize:function
extern e9_ippsAESGetSize:function
extern l9_ippsAESGetSize:function
extern n0_ippsAESGetSize:function
extern k0_ippsAESGetSize:function
extern ippcpJumpIndexForMergedLibs
extern ippcpSafeInit:function
segment .data
a... |
db MAROWAK ; pokedex id
db 60 ; base hp
db 80 ; base attack
db 110 ; base defense
db 45 ; base speed
db 50 ; base special
db GROUND ; species type 1
db GROUND ; species type 2
db 75 ; catch rate
db 124 ; base exp yield
INCBIN "pic/gsmon/marowak.pic",0,1 ; 66, sprite dimensions
dw MarowakPicFront
dw MarowakPicBack
; att... |
;
; CubicDoom
;
; by Oscar Toledo G.
;
; Creation date: Nov/21/2019.
; Revision date: Nov/22/2019. Now working.
; Revision date: Nov/23/2019. Optimized.
; Revision date: Nov/24/2019. Builds a world. Added evil cubes, and
; ... |
;===============================================================================
; Copyright 2015-2020 Intel Corporation
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apa... |
; A124395: Expansion of (1-2*x)/(1-2*x+2*x^3).
; Submitted by Jamie Morken(s4)
; 1,0,0,-2,-4,-8,-12,-16,-16,-8,16,64,144,256,384,480,448,128,-704,-2304,-4864,-8320,-12032,-14336,-12032,0,28672,81408,162816,268288,373760,421888,307200,-133120,-1110016,-2834432,-5402624,-8585216,-11501568,-12197888,-7225344,8552448,41500... |
PUBLIC plotpixel
EXTERN coords
;
; $Id: plotpixl.asm,v 1.11 2015/01/19 01:32:52 pauloscustodio Exp $
;
; ******************************************************************
;
; Plot pixel at (x,y) coordinate.
;
; ZX 81 version.
; 64x48 dots.
;
;
.plotpixel
ld a,h
cp 64
ret nc
ld a,l
;cp maxy
... |
; A055268: a(n) = (11*n + 4)*C(n+3, 3)/4.
; 1,15,65,185,420,826,1470,2430,3795,5665,8151,11375,15470,20580,26860,34476,43605,54435,67165,82005,99176,118910,141450,167050,195975,228501,264915,305515,350610,400520,455576,516120,582505,655095,734265,820401,913900,1015170,1124630,1242710,1369851,1506505,1653135,1810215,197... |
section .data
msg : db "hello "
len: equ $-msg
section .text
global _start
_start:
mov rax,01
mov rdi,01
mov rsi,msg
mov rdx,len
syscall
mov rax,60
mov rdi,00
syscall |
#if defined(Hiro_Canvas)
namespace hiro {
auto pCanvas::construct() -> void {
qtWidget = qtCanvas = new QtCanvas(*this);
qtCanvas->setMouseTracking(true);
pWidget::construct();
_rasterize();
qtCanvas->update();
}
auto pCanvas::destruct() -> void {
_release();
delete qtCanvas;
qtWidget = qtCanvas = n... |
bits 32
extern _trap
global _alltraps
_alltraps:
; Build trap frame.
push ds
push es
push fs
push gs
pushad
; Set up data segments.
mov ax, 10h ; SEG_KDATA << 3
mov ds, ax
mov es, ax
; Call trap(tf), where tf=%esp
push esp
call _trap
add esp, 4
; Return falls through to trapret...
global _tr... |
//main: funcdecl , ,
main:// Words: 0
addi $sp, 4
// Words: 1
move $sp, $rr
// Words: 2
addi $0, -1
// Words: 3
swn $ra, $sp, $rr
// Words: 4
addi $rr, -1
// Words: 5
swn $s0, $sp, $rr
// Words: 6
addi $rr, -1
// Words: 7
swn $s1, $sp, $rr
//: loadi tmp, , 5
// Words: 8
// Words: 9
ldi $t0, 5
//: ... |
; how to use cmpsb instruction to compare byte strings.
name "cmpsb"
org 100h
; set forward direction:
cld
; load source into ds:si,
; load target into es:di:
mov ax, cs
mov ds, ax
mov es, ax
lea si, str1
lea di, str2
; set counter to ... |
; this file is part of Release, written by Malban in 2017
;
;Note!
; the bevahour routines are ordered, that each one has a different "high" byte
; this is now used as "type" identification!
;
;
; this is the offset in the below defined "stack" structure after the initial pull has been done
u_offset1 = ... |
.text
.abicalls
.section .mdebug.abi32,"",@progbits
.nan legacy
.file "gcc.alias.get_frame_alias_set.ll"
.text
.globl get_frame_alias_set
.align 2
.type get_frame_alias_set,@function
.set nomicromips
.set nomips16
.ent get_frame_alias_set
get_frame_alias_set: # @get_frame_alias_set
.fram... |
; Multiplication Table program (subr.asm)
; Calls external C++ functions.
INCLUDE Irvine32.inc
askForInteger PROTO C
showInt PROTO C, value:SDWORD, outWidth:DWORD
OUT_WIDTH = 8
ENDING_POWER = 10
.data
intVal DWORD ?
.code
;---------------------------------------------
SetTextOutColor PROC C,
color:DWORD
;... |
; nasmfunc
bits 32
global io_hlt, io_cli, io_sti, io_stihlt
global io_in8, io_in16, io_in32
global io_out8, io_out16, io_out32
global io_load_eflags, io_store_eflags
global load_cr0, store_cr0
global load_gdtr, load_idtr, load_tr
global asm_inthandler20, asm_inthandler21, asm_inthandler2c
extern inthandler20,... |
; A086755: Sum_{k=1..n} (k(k+1))^2/2.
; 2,20,92,292,742,1624,3192,5784,9834,15884,24596,36764,53326,75376,104176,141168,187986,246468,318668,406868,513590,641608,793960,973960,1185210,1431612,1717380,2047052,2425502,2857952,3349984,3907552
add $0,1
cal $0,24166 ; a(n) = Sum_{1 <= i < j <= n} (j-i)^3.
mul $0,2
mov $1,$... |
; Z88 Small C+ Run time Library
; l_gint+l_gchar variant to be used sometimes by the peephole optimizer
;
PUBLIC l_gintspchar
.l_gintspchar
add hl,sp
inc hl
inc hl
ld a,(hl)
inc hl
ld h,(hl)
ld l,a
ld a,(hl)
ld l,a
rlca
sbc a,a
ld h,a
ret
|
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x19e1a, %rsi
lea addresses_A_ht+0x170ba, %rdi
nop
dec %rax
mov $90, %rcx
rep movsl
nop
sub $11138, %rdi
lea addresses_A_ht+0x8bba, %rsi
lea addresses_WC_ht+0x2cba, %rdi
xor %r12, %r12
mov $22, %rcx
rep mov... |
.data
msg: .asciiz "Give a number: "
.text
main:
li $v0, 4
la $a0, msg
syscall
li $v0, 5
syscall
add $a0, $v0, $zero
# if ($a0 < 2) goto exit;
blt $a0, 2, exit
prti 0
prtn
prti 1
prtn
jal fib
exit:
# Rusult
# add $a0, $v0, $zero
# li $v0, 1
# ... |
; A004939: Nearest integer to n*phi^4, where phi is the golden ratio, A001622.
; 0,7,14,21,27,34,41,48,55,62,69,75,82,89,96,103,110,117,123,130,137,144,151,158,164,171,178,185,192,199,206,212,219,226,233,240,247,254,260,267,274,281,288,295,302,308
mov $1,12
mul $1,$0
mul $1,2
mov $3,$0
add $0,$1
mul $0,2
add $0,14
div... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23506.0
include listing.inc
INCLUDELIB MSVCRT
INCLUDELIB OLDNAMES
PUBLIC __local_stdio_printf_options
PUBLIC _vfprintf_l
PUBLIC printf
PUBLIC func
PUBLIC main
EXTRN __imp___acrt_iob_func:PROC
EXTRN __imp___stdio_common_vfprintf:PROC... |
// Minimal struct - array of struct
// Commodore 64 PRG executable file
.file [name="struct-ptr-0.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"]
.segment Basic
:BasicUpstart(mai... |
/* $Id$ */
/*
* This file is part of OpenTTD.
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without... |
#include <glbinding/FunctionCall.h>
#include <glbinding/AbstractFunction.h>
#include <glbinding/AbstractValue.h>
#include <glbinding/CallbackMask.h>
namespace glbinding
{
FunctionCall::FunctionCall(const AbstractFunction * _function)
: function(_function)
, returnValue(nullptr)
{
if (function->isAnyEnabled(Ca... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.