text stringlengths 1 1.05M |
|---|
; A101089: Second partial sums of fourth powers (A000583).
; 1,18,116,470,1449,3724,8400,17172,32505,57838,97812,158522,247793,375480,553792,797640,1125009,1557354,2120020,2842686,3759833,4911236,6342480,8105500,10259145,12869766,16011828,19768546,24232545,29506544,35704064,42950160,51382177,61150530,72419508,85368102,... |
global start
extern long_mode_start
section .text
bits 32
start:
mov esp, stack_top
call check_multiboot
call check_cpuid
call check_long_mode
call set_up_page_tables
call enable_paging
;load the 64-bit GDT
lgdt [gdt64.pointer]
jmp gdt64.code:long_mode_start
; print `OK` to... |
; A186949: a(n) = 2^n - 2*(binomial(1,n) - binomial(0,n)).
; 1,0,4,8,16,32,64,128,256,512,1024,2048,4096,8192,16384,32768,65536,131072,262144,524288,1048576,2097152,4194304,8388608,16777216,33554432,67108864,134217728,268435456,536870912,1073741824,2147483648,4294967296,8589934592,17179869184,34359738368,68719476736,13... |
;;
;; Copyright (c) 2019-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... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1989 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: GrObj/Attr
FILE: attrStyle.asm
AUTHOR: jon
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
----... |
; A021183: Decimal expansion of 1/179.
; Submitted by Jon Maiga
; 0,0,5,5,8,6,5,9,2,1,7,8,7,7,0,9,4,9,7,2,0,6,7,0,3,9,1,0,6,1,4,5,2,5,1,3,9,6,6,4,8,0,4,4,6,9,2,7,3,7,4,3,0,1,6,7,5,9,7,7,6,5,3,6,3,1,2,8,4,9,1,6,2,0,1,1,1,7,3,1,8,4,3,5,7,5,4,1,8,9,9,4,4,1,3,4,0,7,8
add $0,1
mov $3,1
lpb $0
sub $0,1
add $2,$3
div $... |
; int fputc_unlocked(int c, FILE *stream)
SECTION code_stdio
PUBLIC _fputc_unlocked
EXTERN asm_fputc_unlocked
_fputc_unlocked:
pop af
pop de
pop ix
push hl
push de
push af
jp asm_fputc_unlocked
|
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.16384
//
//
///
//
// Input signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// POSITION 0 xyzw 0 NONE float xyzw
//
/... |
/*
* Copyright © <2010>, Intel Corporation.
*
* 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, including
* without limitation the rights to use, copy, modify, merge,... |
*PROCESS DUPALIAS
*
* Compiled by DCC Version 2.25.07 Mar 6 2021 08:51:07
* on Fri Apr 30 15:35:23 2021
*
WXTRN @@ZARCH#
*
*
*
* Code Section
*
@CODE ALIAS X'7CD9C4D2C1C6D2C16DC1E4E7'
@CODE CSECT
@CODE AMODE ANY
@CODE RMODE ANY
@DATA ALIAS X'7C998492818692816D81A4A7'
__assert ALI... |
// N64 Header
db $80
db $37
db $12
db $40
// Clock Rate
dw $0000000F
dw Start
dw $1444
db "CRC1"
db "CRC2"
dd 0
db "Double Buffer 640x480 "
// "123456789012345678901234567"
db $00 // Dev Id
db $00 // Cart Id
db $00
db $00
db $00 |
; A044235: Numbers n such that string 6,0 occurs in the base 8 representation of n but not of n-1.
; 48,112,176,240,304,368,384,432,496,560,624,688,752,816,880,896,944,1008,1072,1136,1200,1264,1328,1392,1408,1456,1520,1584,1648,1712,1776,1840,1904,1920,1968,2032,2096,2160,2224,2288,2352
mov $5,$0
add $5,1
mov $7,$0
lp... |
#ifndef MAINWINDOW_HPP
#define MAINWINDOW_HPP
#include <QStandardPaths>
#include <QCloseEvent>
#include <QListWidget>
#include <QMainWindow>
#include <QStringList>
#include <QFileDialog>
#include <QMessageBox>
#include <QDateTime>
#include <QComboBox>
#include <QSettings>
#include <QDebug>
#include <QTimer>
#include... |
#pragma once
#include <tdc/code/coder.hpp>
namespace tdc {
namespace code {
/// \brief Binary code.
template<size_t bits_ = 64ULL>
class BinaryCoder : public Coder {
public:
/// \brief Default constructor.
inline BinaryCoder() {
}
BinaryCoder(const BinaryCoder& other) = default;
BinaryCoder(Bina... |
jmp start
ret_a:
mov edx, ebx
jmp end
ret_b:
mov edx, ecx
jmp end
set_a:
mov eax, ebx
sub eax, ecx
mov ebx, eax
jmp euklid
set_b:
mov eax, ecx
sub eax, ebx
mov ecx, eax
jmp euklid
euklid:
cmp ebx, 0
je ret_b
e_loop:
cmp ecx, 0
je ret_b
cmp ebx, ecx
jg set_a
jle set_b
ret
jmp set_a
ret
... |
#include "Geom1d.h"
Geom1d::Geom1d() {
}
Geom1d::~Geom1d() {
}
Geom1d::Geom1d(const Geom1d& copy) {
fNodeIndices = copy.fNodeIndices;
}
Geom1d& Geom1d::operator=(const Geom1d& copy) {
fNodeIndices = copy.fNodeIndices;
return *this;
}
void Geom1d::Shape(const VecDouble& xi, VecDouble& phi, MatrixDouble... |
lda {m2}
sec
sbc {m3}
sta {m1}
lda {m2}+1
sbc {m3}+1
sta {m1}+1
|
/* Copyright © 2018 Apple Inc. All rights reserved.
*
* Use of this source code is governed by a BSD-3-clause license that can
* be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
*/
#ifndef UNITY_TOOLKITS_NEURAL_NET_MODEL_SPEC_HPP_
#define UNITY_TOOLKITS_NEURAL_NET_MODEL_SPEC_HPP_... |
; add.asm
; Adds a few numbers (no screen output)
;
; zmac add.asm
; trs80gp -b main zout/add.bds
org $5200
num defb 2
main:
; 8-bit math
ld a,5 ; a = 5
inc a ; a = 6
dec a ; a = 5
ld a,(num) ; load 2 from num into a
inc a ; a = 3
dec a ; a = 2
ld c,10 ; c = 10
add c ... |
; This file contains code used to switch CPU modes
[bits 16]
; Swtich to protected mode
switch_to_pm:
cli ; Turn off interrupts
lgdt [gdt_descriptor] ; load GDT, which defines segments
mov eax, cr0 ;
or eax, 0x1 ; Switch to protected mode ... |
; A138970: Positions of the primes congruent to 1 mod 4 when all primes except 2 are listed in order.
; 2,5,6,9,11,12,15,17,20,23,24,25,28,29,32,34,36,39,41,43,44,49,50,52,54,56,58,59,61,64,65,67,69,70,73,76,77,78,79,81,83,86,87,88,96,97,99,101,103,105,107,109,111,112,115,118,120,121,122,125,126,129,133,134,135
seq $0... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x3fc1, %r10
nop
and $30028, %rsi
mov (%r10), %r12
nop
nop
nop
cmp %rdi, %rdi
lea addresses_UC_ht+0x169a5, %r10
nop
nop
xor %r9, %r9
mov $0x6162636465666768, %rax
movq %rax, %xmm... |
/** \file */
#ifndef _CUCKOOHASH_CONFIG_HH
#define _CUCKOOHASH_CONFIG_HH
#include <cstddef>
#include <limits>
//! The default maximum number of keys per bucket
constexpr size_t LIBCUCKOO_DEFAULT_SLOT_PER_BUCKET = 4;
//! The default number of elements in an empty hash table
constexpr size_t LIBCUCKOO_DEFAULT_SIZE =
... |
; A080424: a(n) = 3*a(n-1) + 18*a(n-2), a(0)=0, a(1)=1.
; 0,1,3,27,135,891,5103,31347,185895,1121931,6711903,40330467,241805655,1451365371,8706597903,52244370387,313451873415,1880754287211,11284396583103,67706766919107,406239439253175,2437440122303451,14624630273467503,87747813021864627,526486783988008935,3158920986357... |
; A077444: Numbers k such that (k^2 + 4)/2 is a square.
; 2,14,82,478,2786,16238,94642,551614,3215042,18738638,109216786,636562078,3710155682,21624372014,126036076402,734592086398,4281516441986,24954506565518,145445522951122,847718631141214,4940866263896162,28797478952235758,167844007449518386,978266565744874558,570175... |
// seed 1
lbi r0, 35 // icount 0
slbi r0, 75 // icount 1
lbi r1, 226 // icount 2
slbi r1, 227 // icount 3
lbi r2, 98 // icount 4
slbi r2, 188 // icount 5
lbi r3, 240 // icount 6
slbi r3, 222 // icount 7
lbi r4, 68 // icount 8
slbi r4, 120 // icount 9
lbi r5, 29 // icount 10
slbi r5, 75 // icount 11
lbi r6, 232 // icoun... |
; void *realloc_unlocked(void *p, size_t size)
SECTION code_clib
SECTION code_alloc_malloc
PUBLIC realloc_unlocked
EXTERN asm_realloc_unlocked
realloc_unlocked:
pop af
pop bc
pop hl
push hl
push bc
push af
jp asm_realloc_unlocked
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r8
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x5367, %rsi
lea addresses_UC_ht+0x17aeb, %rdi
nop
nop
cmp $55324, %r8
mov $66, %rcx
rep movsl
nop
dec %r11
lea addresses_D_ht+0x122e7, %r10
nop
dec %rcx
mov (%r10), %r11d
... |
include io.h
.model small
.Stack 200h
extrn MySum : far
extrn MyMul : far
.Data
num db 6 dup (?)
crlf db 10, 13, 0
.Code
;-------------------------------------------------------------
Main proc
mov ax, @Data
mov ds, ax
;---------------------------------------
clrscr
mov bx, 10
mov cx, 5
push bx
push cx
cal... |
.word x 0
.word y 0
.word z 0
main:
push bp
mov bp sp
add sp sp 16
mov r0 49
mov r2 x
ldr r1 r2
str r0 r2
mov r0 1
mov r2 y
ldr r1 r2
str r0 r2
mov r0 42
mov r2 z
ldr r1 r2
str r0 r2
mov r1 x
ldr r0 r1
mov r3 y
ldr r2 r3
add r0 r0 r2
mov r1 50
cmpi r0 r1
mov r0 0
mov.eq r0 1
cmpi r0 0
jmp.eq __and_false_1
mov r1 50
mov... |
db 0 ; species ID placeholder
db 20, 10, 55, 80, 15, 20
; hp atk def spd sat sdf
db WATER, WATER ; type
db 255 ; catch rate
db 20 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F0 ; gender ratio
db 100 ; unknown 1
db 5 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/magikarp/fro... |
_Squirtbottle:
ret
|
#include "SpeedControl.hpp"
uint8_t SpeedControl::getCounter()
{
return _counter;
}
void SpeedControl::setCounter(uint8_t counter)
{
_counter = counter;
}
uint8_t SpeedControl::getNumber()
{
return _number;
}
void SpeedControl::setNumber(uint8_t number)
{
_number = number;
}
uint8_t SpeedControl::getDurati... |
segment .text
extern printIntC
extern printCharC
extern printNLC
extern printFloatC
extern test3_addStuff
extern test3_idf
extern test3_id
global testlib_add
global testlib_sub
global testlib_test
global testlib_sum4
; Start function testlib_add
testlib_add:
sub esp, 0x4
mov dword [esp], ebp
mov dword ebp,... |
; A141419: Triangle read by rows: T(n, k) = A000217(n) - A000217(n - k) with 1 <= k <= n.
; 1,2,3,3,5,6,4,7,9,10,5,9,12,14,15,6,11,15,18,20,21,7,13,18,22,25,27,28,8,15,21,26,30,33,35,36,9,17,24,30,35,39,42,44,45,10,19,27,34,40,45,49,52,54,55,11,21,30,38,45,51,56,60,63,65,66,12,23,33,42,50,57,63,68,72,75,77,78,13,25,36,... |
; A052616: E.g.f. (3+2x)/(1-x^2).
; Submitted by Jamie Morken(s1)
; 3,2,6,12,72,240,2160,10080,120960,725760,10886400,79833600,1437004800,12454041600,261534873600,2615348736000,62768369664000,711374856192000,19207121117184000,243290200817664000
mov $2,$0
gcd $2,2
add $2,1
lpb $0
mul $2,$0
sub $0,1
lpe
mov $0,$2
|
; A153263: a(n) = A014217(n+3) - A014217(n).
; Submitted by Jon Maiga
; 3,5,9,13,23,35,59,93,153,245,399,643,1043,1685,2729,4413,7143,11555,18699,30253,48953,79205,128159,207363,335523,542885,878409,1421293,2299703,3720995,6020699,9741693,15762393,25504085,41266479,66770563
add $0,1
mov $1,1
mov $2,2
lpb $0
sub $0,2... |
// Datei : Intro.hpp
// --------------------------------------------------------------------------------------
//
// Klasse für das Hurrican Intro
//
// (c) 2006 Jörg M. Winterstein
//
// --------------------------------------------------------------------------------------
#ifndef _INTRO_HPP_
#define _INTRO_HPP_
//... |
; Eggrobo mappings
dc.w word_184F44-Map_EggRobo
dc.w word_184F46-Map_EggRobo
dc.w word_184F60-Map_EggRobo
dc.w word_184F6E-Map_EggRobo
dc.w word_184F8E-Map_EggRobo
dc.w word_184F96-Map_EggRobo
dc.w word_184F9E-Map_EggRobo
dc.w word_184FAC-Map_EggRobo
word_184F44: dc.w 0 ; DATA XREF: ROM:00184F34o
wor... |
/*
* Copyright (C) 2012 Google 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 of conditio... |
object_const_def ; object_event constants
const SEAFOAMGYM_BLAINE
const SEAFOAMGYM_GYM_GUY
SeafoamGym_MapScripts:
db 1 ; scene scripts
scene_script .DummyScene
db 0 ; callbacks
.DummyScene:
end
SeafoamGymBlaineScript:
faceplayer
opentext
checkflag ENGINE_VOLCANOBADGE
iftrue .FightDone
writetext BlaineIn... |
/* scheme/make_sob_vector.asm
* Takes V1, ..., Vn, n, on the stack. Places in R0 the address
* of a newly-allocated pointer to a Scheme vector.
*
* Programmer: Mayer Goldberg, 2010
*/
MAKE_SOB_VECTOR:
PUSH(FP);
MOV(FP, SP);
PUSH(R1);
PUSH(R2);
PUSH(R3);
MOV(R0, FPARG(0));
ADD(R0, IMM(2));
PUSH(R... |
; A211615: Number of ordered triples (w,x,y) with all terms in {-n,...-1,1,...,n} and -1<=w+x+y<=1.
; 0,6,24,60,114,186,276,384,510,654,816,996,1194,1410,1644,1896,2166,2454,2760,3084,3426,3786,4164,4560,4974,5406,5856,6324,6810,7314,7836,8376,8934,9510,10104,10716,11346,11994,12660,13344,14046
mov $1,$0
pow $0,2
trn ... |
; A045952: a(n) = 2^(2*n-1)*binomial(2*n,n) + 2^(4*n-1).
; Submitted by Christian Krause
; 1,12,176,2688,41728,653312,10280960,162332672,2569207808,40732459008,646621167616,10275491151872,163421593010176,2600786039144448,41413155926048768,659738836733001728,10514182345513238528,167619477382960775168,2673002515997023797... |
;; ZX-Trans Receiver (+3 Version)
;;
;; Load ZX Spectrum snapshot, via RS232 serial port, based
;; on output from zxtrans_sender application.
;;
;;
;; Copyright 2015 George Beckett, All Rights Reserved
;;
;; Redistribution and use in source and binary forms,
;; with or without modification, are pe... |
// Example program for the Commander X16
// Demonstrates some bank addressing calculations
.cpu _65c02
// Commodore 64 PRG executable file
.file [name="cx16-bankaddressing.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$... |
; A184619: a(n) = floor((n-h)*s+h), where s=2+sqrt(2) and h=1/3; complement of A184618.
; 2,6,9,12,16,19,23,26,29,33,36,40,43,46,50,53,57,60,64,67,70,74,77,81,84,87,91,94,98,101,105,108,111,115,118,122,125,128,132,135,139,142,146,149,152,156,159,163,166,169,173,176,180,183,186,190,193,197,200,204,207,210,214,217,221,22... |
; A121578: Values m of number pairs (m,n) which yield associated matching times on the clock with interchanged hour and minute hands for corresponding n in A121577.
; 0,12,24,36,48,60,72,84,96,108,120,132,1,13,25,37,49,61,73,85,97,109,121,133,2,14,26,38,50,62,74,86,98,110,122,134,3,15,27,39,51,63,75,87,99,111,123,135,4... |
BITS 32
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
; Lea32R1
mov eax, 0x21
mov edi, 0x8
;TEST_BEGIN_RECORDING
lea eax, [eax+edi+0x1]
;TEST_END_RECORDING
|
bits 16
cpu 8086
org 0x7c000
start:
; Point ES:BX to the offset of where we're going to jump to after reading a
; sector.
mov bx, cs
mov es, bx
mov bx, boot_code
mov ax, 0x0201 ; Subfunction 2, read 1 sector
mov cx, 0x0002 ; Cylinder 0, start read at sector 2
mov dx, 0x0000 ... |
; ba_stack_t *ba_stack_init(void *p, void *data, size_t capacity)
SECTION code_adt_ba_stack
PUBLIC _ba_stack_init
EXTERN _b_array_init
defc _ba_stack_init = _b_array_init
|
; A008455: 11th powers: a(n) = n^11.
; 0,1,2048,177147,4194304,48828125,362797056,1977326743,8589934592,31381059609,100000000000,285311670611,743008370688,1792160394037,4049565169664,8649755859375,17592186044416,34271896307633,64268410079232,116490258898219,204800000000000,350277500542221,584318301411328,95280975791392... |
// N64 Lesson 02 Simple Initialize
arch n64.cpu
endian msb
output "Video004.N64", create
// 1024 KB + 4 KB = 1028 KB
fill $0010'1000 // Set ROM Size
origin $00000000
base $80000000
include "../LIB/N64.INC"
include "../LIB/N64_GFX.INC"
include "N64_Header.asm"
insert "../LIB/N64_BOOTCODE.BIN"
Start: ... |
#ifndef _SPARAMETERBLOCK_HPP_INC_
#define _SPARAMETERBLOCK_HPP_INC_
#include <iostream>
#include <fstream>
#include <sstream>
#include <complex>
#include "CircuitElements/Component.hpp"
#include "Maths/DynamicMatrix.hpp"
#include "Maths/dft.hpp"
#include "Maths/ForceCausal.hpp"
#include <immintrin.h>
/// @brief a he... |
; A227380: Doubling the first two of every four nonnegative numbers.
; 0,2,2,3,8,10,6,7,16,18,10,11,24,26,14,15,32,34,18,19,40,42,22,23,48,50,26,27,56,58,30,31,64,66,34,35,72,74,38,39,80,82,42,43,88,90,46,47,96,98,50,51,104,106,54,55,112,114
mov $1,$0
bin $1,2
gcd $1,2
mul $0,$1
|
; A152993: a(n) = n - d(n) - pi(n) + 1.
; 1,0,0,0,1,0,2,1,3,3,5,2,6,5,6,6,9,6,10,7,10,11,13,8,14,14,15,14,18,13,19,16,19,20,21,17,24,23,24,21,27,22,28,25,26,29,31,24,32,30,33,32,36,31,36,33,38,39,41,32,42,41,40,40,44,41,47,44,47,44,50,41,51,50,49,50,53,50,56,49,55,57,59,50,59,60,61,58,64,55,64,63,66,67,68,61,71,68,69,6... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0xe7ac, %rsi
lea addresses_UC_ht+0x1256c, %rdi
nop
nop
nop
nop
nop
inc %r12
mov $100, %rcx
rep movsl
nop
nop
and $36520, %rsi
lea addresses_D_ht+0x1186c, %rdi
nop
nop
nop
nop
dec %r10
mov... |
/* 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... |
global _get_api_version
_get_api_version:
push bp
mov bp, sp
call os_get_api_version
pop bp
ret |
;
; Sharp OZ family functions
;
; ported from the OZ-7xx SDK by by Alexander R. Pruss
; by Stefano Bodrato - Oct. 2003
;
;
; gfx functions
;
; int ozputs(int x, int y, char *string);;
;
; ------
; $Id: ozputs_direct.asm,v 1.3 2016-06-28 14:48:17 dom Exp $
;
SECTION smc_clib
PUBLIC ozputs
PUBLIC _oz... |
%include 'UtilsLib\GasRoot.asm'
tryCatch Include, jmp
%include 'GIC\GIL.asm'
%include 'GIC\GIA.asm'
%include 'GIC\GAT.asm'
%include 'GIC\GIF.asm'
%include 'GIC\GICO.asm'
%include 'GIC\GIT.asm'
%include 'UtilsLib\Hydrogen.asm';string
%include 'UtilsLib\GasMath.asm'
%include 'UtilsLib\Argon.asm'
%include 'UtilsLib\Heliu... |
; A137224: Mix 4*n^2, 1+4*n^2, 1+(2n+1)^2, (2n+1)^2 (or A016742, A053755, A069894, A016754).
; 0,1,2,1,4,5,10,9,16,17,26,25,36,37,50,49,64,65,82,81,100,101,122,121,144,145,170,169,196,197,226,225,256,257,290,289,324,325,362,361,400,401,442,441,484,485,530,529,576,577,626,625,676,677,730,729,784,785,842,841,900,901,962,... |
; AMD64 Technology 128-Bit SSE5 Instruction Set
; didn't make the cut into FMA/F16c/XOP
compd
comps
comsd
comss
cvtph2ps
cvtps2ph
fmaddpd
fmaddps
fmaddsd
fmaddss
fmsubpd
fmsubps
fmsubsd
fmsubss
fnmaddpd
fnmaddps
fnmaddsd
fnmaddss
fnmsubpd
fnmsubps
fnmsubsd
fnmsubss
frczpd
frczps
frczsd
frczss
pcmov
pcomb
pcomd
pcomq
pc... |
/*------------------------------------------------------------------------
* Vulkan Conformance Tests
* ------------------------
*
* Copyright (c) 2016 The Khronos Group Inc.
* Copyright (c) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not us... |
; A004370: Binomial coefficient C(7n,n-2).
; 1,21,378,6545,111930,1906884,32468436,553270671,9440350920,161322559475,2761025887620,47325339895743,812325612855848,13961746143269400,240260199935164200,4139207762053520646
mov $1,7
mul $1,$0
add $1,14
bin $1,$0
mov $0,$1
|
#include "midgard/logging.h"
#include <algorithm>
#include <exception>
#include <vector>
#include "baldr/datetime.h"
#include "thor/map_matcher.h"
using namespace valhalla::baldr;
using namespace valhalla::sif;
namespace valhalla {
namespace thor {
struct interpolation_t {
baldr::GraphId edge; // edge id
floa... |
; A058749: a(n) = ceiling(n*exp(n)).
; 0,3,15,61,219,743,2421,7677,23848,72928,220265,658616,1953058,5751375,16836460,49035261,142177769,410634197,1181879445,3391163719,9703303909,27695130425,78868082615,224130479264,635738931117,1800122483435,5088969845150,14365302496249,40495197800162,114008694617178,320594237445734,... |
; A190978: a(n) = 8*a(n-1) - 6*a(n-2), with a(0)=0, a(1)=1.
; 0,1,8,58,416,2980,21344,152872,1094912,7842064,56167040,402283936,2881269248,20636450368,147803987456,1058613197440,7582081654784,54304974053632,388947302500352,2785748575681024,19952304790446080,142903946869482496,1023517746213183488
mov $1,1
mov $2,$0
lpb... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
; Module Name:
;
; ReadMm3.Asm
;
; Abstract:
;
; AsmReadMm3 function
;
; Notes:
;
;---------------------... |
;***************************************************************************
; DEFINE SECTION
;***************************************************************************
INCLUDE "VECTREX.I"
; start of vectrex memory with cartridge name...
ORG 0
;*******************************... |
// Copyright 2020 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/ash/arc/arc_demo_mode_delegate_impl.h"
#include <memory>
#include "chrome/browser/ash/login/demo_mode/demo_mode_test_helper.h"
... |
; A077897: Expansion of (1-x)^(-1)/(1+x-2*x^2-x^3).
; Submitted by Christian Krause
; 1,0,3,-1,8,-6,22,-25,64,-91,195,-312,612,-1040,1953,-3420,6287,-11173,20328,-36386,65870,-118313,213668,-384423,693447,-1248624,2251096,-4054896,7308465,-13167160,23729195,-42755049,77046280,-138827182,250164694,-450772777,812274984,-... |
;/****************************************************************************
; *
; * XVID MPEG-4 VIDEO CODEC
; * - 3dne Quantization/Dequantization -
; *
; * Copyright (C) 2002-2003 Peter Ross <pross@xvid.org>
; * 2002 Jaan Kalda
; *
; * This program is free software ; you can redistribute it ... |
; ===============================================================
; Mar 2014
; ===============================================================
;
; size_t b_array_push_back(b_array_t *a, int c)
;
; Append char to end of array, return index of appended char.
;
; =========================================================... |
// Copyright 2019 The Fuchsia 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 "src/modular/lib/modular_config/modular_config_xdr.h"
#include <fuchsia/modular/internal/cpp/fidl.h>
#include <fuchsia/modular/session/cpp/fidl.h... |
/*
* Copyright 2009-2015, Axel Dörfler, axeld@pinc-software.de.
* Copyright 2011, Philippe Saint-Pierre, stpere@gmail.com.
* Distributed under the terms of the MIT License.
*/
#include "CharacterWindow.h"
#include <stdio.h>
#include <string.h>
#include <Application.h>
#include <Button.h>
#include <Catalog.h>
#i... |
MOV AH, 9
LEA DX, TEXTO1
INT 21H
MOV AH, 9
LEA DX, TEXTO2
INT 21H
MOV AH, 9
LEA DX, TEXTO2
INT 21H
MOV AH, 9
LEA DX, TEXTO2
INT 21H
MOV AH, 9
LEA DX, TEXTO2
INT 21H
MOV AH, 9
LEA DX, TEXTO2... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r8
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x12c87, %rsi
lea addresses_D_ht+0xccc7, %rdi
inc %r9
mov $30, %rcx
rep movsl
cmp %r14, %r14
lea addresses_A_ht+0x4e07, %rsi
lea addresses_A_ht+0x3607, %rdi
clflush (%rsi)
and %r... |
; A033572: a(n) = (2*n+1)*(7*n+1).
; 1,24,75,154,261,396,559,750,969,1216,1491,1794,2125,2484,2871,3286,3729,4200,4699,5226,5781,6364,6975,7614,8281,8976,9699,10450,11229,12036,12871,13734,14625,15544,16491,17466,18469,19500,20559,21646,22761,23904,25075,26274,27501,28756,30039,31350,32689,34056,35451,36874,38325,39804... |
// Copyright (c) 2014-2019, AEON, The Monero Project
Copyright (c) 2022, Royal
// Copyright (c) 2022, Royal
//
// 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 o... |
;*********************************************************************
;* Title: W5100SEQU.asm
;*********************************************************************
;* Author: R. Allen Murphey
;*
;* License: Contributed 2021 by R. Allen Murphey to CoCoIO Development
;*
;* Description: WIZnet W5100S driver equates
;*
;... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2015 - 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 distr... |
; BSD
; int bcmp (const void *b1, const void *b2, size_t len)
SECTION code_clib
SECTION code_string
PUBLIC bcmp
EXTERN memcmp
defc bcmp = memcmp
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _bcmp
defc _bcmp = bcmp
ENDIF
|
#ifndef R_SFHEADERS_SF_UTILS_H
#define R_SFHEADERS_SF_UTILS_H
#include "geometries/utils/vectors/vectors.hpp"
#include "geometries/utils/lists/list.hpp"
#include "geometries/nest/nest.hpp"
#include "geometries/coordinates/dimensions.hpp"
namespace sfheaders {
namespace sf {
inline void id_length_check(
SEXP& i... |
%ifdef CONFIG
{
"RegData": {
"R15": "0x1A"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
%macro cfmerge 0
; Get CF
sbb r14, r14
and r14, 1
; Merge in to results
shl r15, 1
or r15, r14
%endmacro
mov rdx, 0xe0000000
mov rax, 0xFFFFFFFF80000000
mov [rdx + 8 * 0], rax
mov [rdx + 8 * 1], rax
m... |
; z_Windows_NT-586_asm.asm: - microtasking routines specifically
; written for IA-32 architecture and Intel(R) 64 running Windows* OS
; $Revision: 43373 $
; $Date: 2014-08-07 09:17:32 -0500 (Thu, 07 Aug 2014) $
;
;//===----------------------------------------------------------------------===//
;//
;// ... |
#include "math_util.h"
#include <math.h>
namespace dlib {
double hellinger(double* arr1, double* arr2, size_t length){
double cumSum = 0.;
double tmpFloat;
for(size_t index = 0; index < length; index++){
tmpFloat = abs(sqrt(arr1[index]) - sqrt(arr2[index]));
cumSum ... |
// Tencent is pleased to support the open source community by making ncnn available.
//
// Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
// in compliance with the License. You may obtain a copy ... |
; A206417: (5*F(n)+3*L(n)-8)/2.
; 0,3,7,14,25,43,72,119,195,318,517,839,1360,2203,3567,5774,9345,15123,24472,39599,64075,103678,167757,271439,439200,710643,1149847,1860494,3010345,4870843,7881192,12752039,20633235,33385278,54018517,87403799,141422320,228826123,370248447,599074574,969323025,1568397603,2537720632,4106118... |
_ltst6: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#endif // BENNY_MOOTEX
int
main(int argc, char **argv)
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 e4 f0 and $0xfffffff0,%esp
6: 83 ec 20 sub $0x... |
//%LICENSE////////////////////////////////////////////////////////////////
//
// Licensed to The Open Group (TOG) under one or more contributor license
// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
// this work for additional information regarding copyright ownership.
// Each contributor lice... |
// 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.
#include <net_processing.h>
#include <addrman.h>
#include <arith_uint256.h>
#inc... |
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r15
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x18a9, %rsi
clflush (%rsi)
nop
nop
nop
and $16685, %rax
movb (%rsi), %r14b
add %rdi, %rdi
lea addresses_WT_ht+0x172a9, %rsi
sub %rbx, %rbx
and $0xffffffffffffffc0, %rsi
movap... |
#include "ofxTCPServer.h"
#include "ofxTCPClient.h"
#include "ofUtils.h"
//--------------------------
ofxTCPServer::ofxTCPServer(){
connected = false;
idCount = 0;
port = 0;
str = "";
messageDelimiter = "[/TCP]";
bClientBlocking = false;
}
//--------------------------
ofxTCPServer::~ofxTCPServer(){
close()... |
#include "program.h"
#include <exception>
#include <vector>
namespace {
GLuint compileShader(GLenum shaderType, std::string shaderSource) {
const GLuint shader = glCreateShader(shaderType);
const GLchar *source = shaderSource.c_str();
glShaderSource(shader, 1, &source, 0);
glCompileShader(shader);
... |
db "EMANATION@" ; species name
db "They communicate"
next "with one another"
next "using their auras."
page "They are able to"
next "run all through"
next "the night.@"
|
@Assembly program to print 10 multiples of 5
.main:
addi x1, x0, 5
addi x2, x0, 1
addi x3, x0, 11
loop:
mul x4, x1, x2
.print x4
addi x2, x2, 1
bne x2, x3, loop
end |
; A210695: a(n) = 6*a(n-1) - a(n-2) + 6 with n>1, a(0)=0, a(1)=1.
; 0,1,12,77,456,2665,15540,90581,527952,3077137,17934876,104532125,609257880,3551015161,20696833092,120629983397,703083067296,4097868420385,23884127455020,139206896309741,811357250403432,4728936606110857,27562262386261716,160644637711459445,9363055638824... |
//
// Copyright (c) 2017 The Khronos Group Inc.
//
// 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 la... |
%define BPM 100
%include "../src/sointu.inc"
BEGIN_PATTERNS
PATTERN 80, HLD, HLD, HLD, HLD, HLD, HLD, HLD, HLD, HLD, HLD, 0, 0, 0, 0, 0
END_PATTERNS
BEGIN_TRACKS
TRACK VOICES(1),0
END_TRACKS
BEGIN_PATCH
BEGIN_INSTRUMENT VOICES(1) ; Instrument0
SU_ENVELOPE MONO,ATTAC(80),DECAY(80),SUSTAIN(64),R... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.