text stringlengths 1 1.05M |
|---|
#include "arguments.hpp"
#include "builtin/block_environment.hpp"
#include "builtin/class.hpp"
#include "builtin/compiled_code.hpp"
#include "builtin/constant_scope.hpp"
#include "builtin/exception.hpp"
#include "builtin/fixnum.hpp"
#include "builtin/jit.hpp"
#include "builtin/location.hpp"
#include "builtin/native_met... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: uiStartingGradientColorSelector.asm
AUTHOR: Jon Witort
METHODS:
Name Description
---- -----------
FUNCTIONS:
Scope Name Description
... |
; A015606: a(n) = 11*a(n-1) + 10*a(n-2).
; Submitted by Jamie Morken(s3)
; 0,1,11,131,1551,18371,217591,2577211,30525231,361549651,4282298471,50720779691,600751561311,7115474971331,84277740297751,998209892988571,11823086225851791,140036047414255411,1658627383815327431,19645261696111155851,232684152495375988671,27559782... |
; A239632: Number of parts in all palindromic compositions of n.
; 0,1,3,4,10,12,28,32,72,80,176,192,416,448,960,1024,2176,2304,4864,5120,10752,11264,23552,24576,51200,53248,110592,114688,237568,245760,507904,524288,1081344,1114112,2293760,2359296,4849664,4980736,10223616,10485760,21495808,22020096,45088768,46137344,94... |
; random - sets r to a pseudo random value
random_seed = %t
macro random r
{
random_seed = ((random_seed*214013+2531011) shr 16) and 0xffffffff
r = random_seed
}
; Use this only with procedures returning result in EAX
; or take care of preserving the EAX register otherwise
macro f_call callee
{
... |
PAGE 75, 132
TITLE Deep291 - Your Name - Current Date
COMMENT %
WordFind
--------------------
ECE291: MP1 - Deep 291
Prof. John W. Lockwood
Unversity of Illinois, Dept. of Electrical & Computer Engineering
Assistant Guest Authors: Pat Spizzo, Neil Kumar
... |
; A239284: a(n) = (15^n - (-1)^n)/16.
; 0,1,14,211,3164,47461,711914,10678711,160180664,2402709961,36040649414,540609741211,8109146118164,121637191772461,1824557876586914,27368368148803711,410525522232055664,6157882833480834961,92368242502212524414,1385523637533187866211,20782854562997817993164,311742818444967269897461... |
// Copyright 2017 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 "chromecast/browser/cast_web_view.h"
#include <utility>
#include "base/logging.h"
#include "base/threading/thread_task_runner_handle.h"
#includ... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %rbp
push %rcx
push %rdx
// Faulty Load
lea addresses_A+0x17b2d, %r12
nop
nop
nop
nop
nop
sub $14068, %rcx
mov (%r12), %rbp
lea oracles, %r12
and $0xff, %rbp
shlq $12, %rbp
mov (%r12,%rbp,1), %rbp
pop %r... |
.global s_prepare_buffers
s_prepare_buffers:
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x1505f, %rsi
lea addresses_WT_ht+0x1950f, %rdi
nop
nop
nop
sub $24834, %rbp
mov $126, %rcx
rep movsl
nop
nop
nop
nop
xor %rbp, %rbp
lea addresses_WC_ht+0xf133, %rsi
lea addresses_A_ht+0xe063, %rdi
clflush (... |
; A200998: Triangular numbers, T(m), that are three-quarters of another triangular number: T(m) such that 4*T(m)=3*T(k) for some k.
; 0,21,4095,794430,154115346,29897582715,5799976931385,1125165627105996,218276331681631860,42344483180609474865,8214611460706556491971,1593592278893891349967530,309148687493954215337208870... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r9
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x1aa01, %rdx
nop
nop
xor %r9, %r9
movb (%rdx), %bl
nop
and $53048, %rax
lea addresses_WT_ht+0x1c401, %r13
xor $55313, %r14
movw $0x6162, (%r13)
nop
nop
nop... |
; double scalbn(double x, int n)
SECTION code_clib
SECTION code_fp_math48
PUBLIC am48_scalbn
EXTERN am48_ldexp
; compute AC' * FLT_RADIX^n efficiently
;
; enter : AC' = double x
; HL = n
;
; exit : success
;
; AC' = x * 2^n
; carry reset
;
; ... |
#include <cstdio>
#include <algorithm>
#include <string>
#include <cassert>
bool is_digit(char chr) {
return static_cast<bool>(isdigit(chr));
}
bool is_minus(char chr) {
return chr == '-';
}
bool is_alpha(char chr) {
return static_cast<bool>(isalpha(chr));
}
bool is_sep(char chr) {
return static_cas... |
#ifndef SPIKINGSYNAPSES_H
#define SPIKINGSYNAPSES_H
class SpikingSynapses; // forward definition
#include "Synapses.hpp"
#include "Spike/Models/SpikingModel.hpp"
#include "Spike/Neurons/SpikingNeurons.hpp"
#include <vector>
namespace Backend {
class SpikingSynapses : public virtual Synapses {
public:
SPIKE_A... |
; A279561: Number of length n inversion sequences avoiding the patterns 101, 102, 201, and 210.
; 1,1,2,6,21,77,287,1079,4082,15522,59280,227240,873886,3370030,13027730,50469890,195892565,761615285,2965576715,11563073315,45141073925,176423482325,690215089745,2702831489825,10593202603775,41550902139551,163099562175851
... |
/*
* Copyright (C) 2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/test/unit_test/fixtures/device_fixture.h"
#include "gtest/gtest.h"
namespace NEO {
void DeviceFixture::SetUp() {
hardwareInfo = *defaultHwInfo;
SetUpImpl(&hardwareInfo);
}
void DeviceFixture::SetUpImpl(cons... |
lc r4, 0xfffff90a
lc r5, 0xffff8000
ges r6, r4, r5
halt
#@expected values
#r4 = 0xfffff90a
#r5 = 0xffff8000
#r6 = 0x00000001
#pc = -2147483632
#e0 = 0
#e1 = 0
#e2 = 0
#e3 = 0
|
ALIGN 2
public _prtt,_txtx,_txty,_prttcol
_txtx dw 0
_txty dw 0
_prttcol dw 0
public _font3x5
_font3x5 dw 0,0
truerowsadd dw 0
prtmacro MACRO
local prt41,prt42,prt43,prt44,prt45
push di
out dx,al
mov al,byte ptr cs:_prttcol
rcr bl,1
jnc prt41
mov es:[di],al
prt41: add di,cs:truerowsadd
rcr bh... |
PAGE ,132 ;
; SCCSID = @(#)SHARELNK.asm 1.0 87/05/11
TITLE SHARELNK LINK FIX ROUTINES - Routines to resolve SHARE externals
NAME SHARELNK
;/*
; * Microsoft Confidential
; * Copyright (C) Microsoft Corporation 1991
; * ... |
* ASSEMBLER SOURCE CODE ALIGNMENT CHECK 22JUL70 9300 ASSEMBLER 7011001
*********I/O AND FILE SET-UP
*****INPUT
* 1001-P: ASSEMBLER SOURCE DECK TO BE CHECKED
*****OUTPUT
* PRINTER: LISTING OF ALL CARDS NOT CONFORMING TO STANDARD
* ALIGNMENT RULES, WITH POSITION NUMBER IN... |
.data
result:.space 30
space:.asciiz " "
nl:.asciiz "\n"
.macro readInteger(%val)
li $v0,5
syscall
add %val,$v0,$zero
.end_macro
.macro printInteger(%val)
li $v0,1
add $a0,%val,$zero
syscall
.end_macro
.macro space()
li $v0,4
la $a0,space
syscall
.end_macro
.macro endl()
li $v0,4
la $a0,nl
syscall
.end_m... |
; A081477: Complement of A086377.
; 2,3,5,7,9,10,12,14,15,17,19,20,22,24,26,27,29,31,32,34,36,38,39,41,43,44,46,48,50,51,53,55,56,58,60,61,63,65,67,68,70,72,73,75,77,79,80,82,84,85,87,89,90,92,94,96,97,99,101,102,104,106,108,109,111,113,114,116,118,119,121,123,125,126,128,130,131,133,135,137,138,140,142,143,145,147,149... |
* spread Thu, 1992 Apr 30 15:47:09
* - macro window
include win1_mac_menu_long
include win1_keys_colour
include win1_keys_wman
include win1_keys_wwork
include win1_keys_wstatus
include win1_keys_wdef_long
white equ 7
red equ 2
green equ 4
black equ 0
cxs equ 6 ; character x-size
mxs equ 400 ; minimum ... |
; A180569: The Wiener index of the P_3 x P_n grid, where P_m is the path graph on m nodes. The Wiener index of a connected graph is the sum of distances between all unordered pairs of nodes in the graph.
; 4,25,72,154,280,459,700,1012,1404,1885,2464,3150,3952,4879,5940,7144,8500,10017,11704,13570,15624,17875,20332,2300... |
; pokemon ids
; indexes for:
; - PokemonNames (see data/pokemon/names.asm)
; - BaseData (see data/pokemon/base_stats.asm)
; - EvosAttacksPointers (see data/pokemon/evos_attacks_pointers.asm)
; - EggMovePointers (see data/pokemon/egg_move_pointers.asm)
; - PokemonCries (see data/pokemon/cries.asm)
; - MonMenuIcons (see ... |
; void __CALLEE__ *sp1_PreShiftSpr_callee(uchar flag, uchar height, uchar width, void *srcframe, void *destframe, uchar rshift)
; 02.2008 aralbrec, Sprite Pack v3.0
; zx81 hi-res version
XLIB sp1_PreShiftSpr_callee
XDEF ASMDISP_SP1_PRESHIFTSPR_CALLEE
.sp1_PreShiftSpr_callee
pop af
exx
pop bc
exx
pop i... |
; A037960: a(n) = (n+2)!*n*(3*n+1)/24.
; Submitted by Christian Krause
; 0,1,14,150,1560,16800,191520,2328480,30240000,419126400,6187104000,97037740800,1612798387200,28332944640000,524813313024000,10226013557760000,209144207720448000,4480594531725312000,100357207837286400000,2345925761384325120000,571367036620283904000... |
.code
main proc
; do check with ESI register
mov rax, gs:[30h]
mov rax, [rax+60h]
movzx rax, byte ptr [rax+2h]
test rax, rax
mov rbx, 0baadc0deh
mov rax, 0cafebabeh
cmove rbx, rax
xor rsi, rbx
; move back to 32 bit
call $+5
mov DWORD PTR [rsp+4h], 23h
add DWORD PTR [rsp], 0Dh
retf
main endp
end |
; A044833: Positive integers having more base-7 runs of even length than odd.
; 8,16,24,32,40,48,392,400,408,416,424,432,440,784,792,800,808,816,824,832,1176,1184,1192,1200,1208,1216,1224,1568,1576,1584,1592,1600,1608,1616,1960,1968,1976,1984,1992,2000,2008,2352
mov $2,$0
add $2,1
mov $3,$0
lpb $2,1
mov $0,$3
sub ... |
.MODEL SMALL
.STACK 100H
.DATA
;variables
.CODE
MAIN PROC
;initialize DS
MOV AX,@DATA
MOV DS,AX
; enter your code here
;setting counter as 0
mov cl , 0
mov ah , 2
mov dl , '*'
start:
cmp cl , 80 ;checking if counter reached 80
je finish
int 21h ;printing *
inc cl ;incrementing counter
j... |
; A154241: a(n) = ( (9 + sqrt(6))^n - (9 - sqrt(6))^n )/(2*sqrt(6)).
; Submitted by Jamie Morken(s4)
; 1,18,249,3132,37701,443718,5159349,59589432,685658601,7872647418,90283258449,1034650095732,11852457339501,135745474931118,1554484248297549,17799805849522032,203810186669080401,2333597921329294818,26718998583746276649,... |
; A178067: Triangle read by rows: T(n,k) = (n^2 + k)*(n - k + 1)/2.
; Submitted by Jamie Morken(w1)
; 1,5,3,15,11,6,34,27,19,10,65,54,42,29,15,111,95,78,60,41,21,175,153,130,106,81,55,28,260,231,201,170,138,105,71,36,369,332,294,255,215,174,132,89,45,505,459,412,364,315,265,214,162,109,55,671,615,558,500,441,381,320,25... |
.global s_prepare_buffers
s_prepare_buffers:
push %r8
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x9bcc, %rsi
lea addresses_WT_ht+0x39cc, %rdi
clflush (%rsi)
nop
nop
nop
nop
cmp %r8, %r8
mov $48, %rcx
rep movsw
nop
nop
nop
nop
nop
dec %rdi
pop %rsi
pop %rdi
pop %rcx
pop %r8
ret
.global s_faulty_load
s_faulty... |
SECTION code_driver
SECTION code_driver_terminal_output
PUBLIC cpm_00_output_cons_ochar_msg_putc
EXTERN __CPM_WCON
EXTERN asm_cpm_bdos_alt
cpm_00_output_cons_ochar_msg_putc:
; enter : c = char
; exit : carry set if error
; can use : af, bc, de, hl, af'
ld e,c
ld c,__CPM_WCON
call... |
; A253368: a(n) = F(12*n)/(12^2) with the Fibonacci numbers F = A000045.
; 1,322,103683,33385604,10750060805,3461486193606,1114587804280327,358893811492071688,115562692712642803209,37210828159659490561610,11981771104717643318035211,3858093084890921488916776332,1242293991563772001787883943693,400014807190449693654209713... |
/* file: gbt_classification_training_result.cpp */
/*******************************************************************************
* Copyright 2014-2019 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 obt... |
%ifndef EXE_LENGTH
%include "../UltimaPatcher.asm"
%include "include/uw1.asm"
%include "include/uw1-eop.asm"
defineAddress 12, 0x0018, tryHandlersInMainLoop
%endif
[bits 16]
startPatch EXE_LENGTH, \
call eop tryKeyAndMouseBindings to respond to multiple simultaneous keys
startBlockAt addr_tryHandlersInMain... |
#pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_SnowHitImpact_Emitter_classes.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Parameters
//------------------------------------------------... |
;generated via makeasms.bat
include raster.i
include rastlib.i
CGROUP group code
code segment dword 'CODE'
assume cs:CGROUP,ds:CGROUP
RASTMASK_JUMP pj__mask2blit RL_MASK2BLIT
code ends
end
|
#include "Platform.inc"
#include "FarCalls.inc"
#include "PowerOnReset.inc"
#include "TestFixture.inc"
radix decimal
BorPorBitsSetTest code
global testArrange
testArrange:
banksel PCON
clrf PCON
testAct:
fcall initialiseAfterPowerOnReset
testAssert:
banksel PCON
.assert "(pcon & 0x03) == 0x03, 'BOR / PO... |
// Copyright (c) 2012-2013 The Bitcoin Core developers
// Copyright (c) 2017 The PIVX developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "random.h"
#include "scheduler.h"
#if defined(HAVE_CONFIG_H)
#include "con... |
; A206545: Period length 16: repeat 1, 3, 5, 7, 9, 11, 13, 15, 15, 13, 11, 9, 7, 5, 3, 1.
; 1,3,5,7,9,11,13,15,15,13,11,9,7,5,3,1,1,3,5,7,9,11,13,15,15,13,11,9,7,5,3,1,1,3,5,7,9,11,13,15,15,13,11,9,7,5,3,1,1,3,5,7,9,11,13,15,15,13,11,9,7,5,3,1,1,3,5,7,9,11,13,15,15,13,11,9,7,5,3,1
mul $0,2
lpb $0
mov $1,$0
sub $1,... |
; A052994: Expansion of 2x(1-x)/(1-2x-x^2+x^3).
; 0,2,2,6,12,28,62,140,314,706,1586,3564,8008,17994,40432,90850,204138,458694,1030676,2315908,5203798,11692828,26273546,59036122,132652962,298068500,669753840,1504923218,3381531776,7598232930,17073074418
seq $0,106803 ; Expansion of x*(1-x)/(1-2*x-x^2+x^3).
mul $0,2
|
%ifdef CONFIG
{
"RegData": {
"MM0": ["0x8000000000000000", "0x4007"],
"MM1": ["0x8000000000000000", "0x4006"],
"MM2": ["0x8000000000000000", "0x4005"],
"MM3": ["0x8000000000000000", "0x4004"],
"MM4": ["0x8000000000000000", "0x4003"],
"MM5": ["0x8000000000000000", "0x4002"],
"MM6": [... |
object_const_def ; object_event constants
const KARENSROOM_KAREN
KarensRoom_MapScripts:
db 2 ; scene scripts
scene_script .LockDoor ; SCENE_DEFAULT
scene_script .DummyScene ; SCENE_FINISHED
db 1 ; callbacks
callback MAPCALLBACK_TILES, .KarensRoomDoors
.LockDoor:
prioritysjump .KarensDoorLocksBehindYou
end
... |
// Copyright 2008-present Contributors to the OpenImageIO project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/OpenImageIO/oiio/blob/master/LICENSE.md
#include "py_oiio.h"
#include <memory>
#include <OpenImageIO/platform.h>
namespace PyOpenImageIO {
py::tuple
ImageBuf_getpixel(const ImageBuf&... |
SECTION code_fp_math48
PUBLIC atanh
EXTERN cm48_sccz80_atanh
defc atanh = cm48_sccz80_atanh
|
%include "common.inc"
global i.cpuvendor:function
global cpuinfo:function
global i.cpufeature_available:function
section .text
i.cpuvendor:
push rbx ; Save registers used to stack.
push rcx
push rdx
xor rax, rax ; Set RAX = 0.
cpuid ; CPUID with RAX = 0, get CPU vendor.
mov qword [rdi], rbx ; Record vendor to fi... |
//------------------------------------------------------------------------------
//
// Copyright 2018-2019 Fetch.AI Limited
//
// 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
//
// ... |
; double copysign(double x, double y)
SECTION code_fp_math48
PUBLIC cm48_sccz80_copysign
EXTERN am48_copysign, cm48_sccz80p_dparam2
cm48_sccz80_copysign:
call cm48_sccz80p_dparam2
; AC'= y
; AC = x
exx
jp am48_copysign
|
db 0 ; species ID placeholder
db 90, 90, 85, 100, 125, 90
; hp atk def spd sat sdf
db ELECTRIC, FLYING ; type
db 3 ; catch rate
db 216 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_UNKNOWN ; gender ratio
db 100 ; unknown 1
db 80 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/zap... |
; A071214: Number of labeled ordered trees with n nodes such that the root is smaller than all its children.
; Submitted by Jon Maiga
; 1,5,46,614,10716,230712,5903472,174942000,5890370400,222069752640,9265980286080,423888544154880,21094789126924800,1134492559101619200,65567415318776985600,4052502049455940147200,266725... |
; A138524: a(n) = Sum_{k=1..n} (2*k)!.
; Submitted by Jamie Morken(w3)
; 2,26,746,41066,3669866,482671466,87660962666,21010450850666,6423384156578666,2439325392333218666,1126440053169940898666,621574841786409380258666,403913035968392044964258666,305292257647682252546468258666,265558152069838740888854948258666,263396395... |
; A131973: Period 8: repeat 121, 242, 363, 484, 605, 726, 847, 968.
; 121,242,363,484,605,726,847,968,121,242,363,484,605,726,847,968,121,242,363,484,605,726,847,968,121,242,363,484,605,726,847,968,121,242,363,484,605,726,847,968,121,242,363,484,605,726,847,968
mov $1,$0
mod $1,8
mul $1,121
add $1,121
|
bits 64
default rel
section .text
global pal_execute_vmptrld
pal_execute_vmptrld :
vmptrld [rdi]
ret
|
#include <Switch/Switch>
using namespace System;
namespace Examples {
class Program {
public:
// The main entry point for the application.
static void Main() {
Array<Boolean > hasServiceCharges = {true, false};
double subtotal = 120.62;
double shippingCharge = 2.50;
double serviceC... |
; A198969: (11*9^n-1)/2.
; 5,49,445,4009,36085,324769,2922925,26306329,236756965,2130812689,19177314205,172595827849,1553362450645,13980262055809,125822358502285,1132401226520569,10191611038685125,91724499348166129,825520494133495165,7429684447201456489,66867160024813108405,601804440223317975649,5416239962009861780845,... |
; ==========================================================
; COMMODORE 64 - Examples in 6502 Assembly language
; © Digitsensitive; digit.sensitivee@gmail.com
; Snake
; ==========================================================
.include "src/include/constants.asm"
; --------------------------------------------------... |
;**********************************************************************
;Led headlamp
;PIC 16F616
;internal 8MHz
;------------------------------
; Jakub Kaderka
; jakub.kaderka@gmail.com
; 2015
;------------------------------
; pwm.asm
;------------------------------
; Pwm generator uses tmr0 interrupt which sets the p... |
copyright zengfr site:http://github.com/zengfr/romhack
003AEC lea (-$2,A1,D0.w), A1 [1p+28, boss+28, container+28, enemy+28, weapon+28]
003B06 bne $3b3a [1p+28, boss+28, container+28, enemy+28, weapon+28]
003B16 bpl $3b26 [1p+28, boss+28, container+28, enemy+28, weapon+28]
003B26 lea (-$2,A1,D0.w), ... |
#include "utils.hpp"
#include "mapnik_map.hpp"
#include "mapnik_image.hpp"
#if defined(GRID_RENDERER)
#include "mapnik_grid.hpp"
#endif
#include "mapnik_feature.hpp"
#include "mapnik_cairo_surface.hpp"
#ifdef SVG_RENDERER
#include <mapnik/svg/output/svg_renderer.hpp>
#endif
#include "mapnik_vector_tile.hpp"
#include "... |
// Copyright 2020 John Manferdelli, 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
// or in the the file LICENSE-2.0.t... |
; A211715: Number of (n+1) X (n+1) -11..11 symmetric matrices with every 2 X 2 subblock having sum zero and two or four distinct values.
; 34,58,106,202,394,778,1546,3082,6154,12298,24586,49162,98314,196618,393226,786442,1572874,3145738,6291466,12582922,25165834,50331658,100663306,201326602,402653194,805306378,16106127... |
.file 1 ""
.section .mdebug.abi32
.previous
.nan legacy
.module fp=32
.module nooddspreg
.abicalls
.text
.align 2
.globl main
.set nomips16
.set nomicromips
.ent main
.type main, @function
main:
.frame $fp,32,$31 # vars= 16, regs= 1/0, args= 0, gp= 8
.mask 0x40000000,-4
.fmask 0x00000000,0
.set noreo... |
// Copyright 2019 Google LLC.
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#include "tools/fiddle/examples.h"
// HASH=87176fc60914cbca9c6a20998a033c24
REG_FIDDLE(Rect_makeOutset, 256, 256, true, 0) {
void draw(SkCanvas* canvas) {
SkRect rect = { 10, 50, 20, 60... |
#include "ML_modules.hpp"
#include "dsp/digital.hpp"
#include <cmath>
#include <cstdlib>
struct ShiftRegister2 : Module {
enum ParamIds {
NUM_STEPS_PARAM,
PROB1_PARAM,
PROB2_PARAM,
MIX1_PARAM,
AUX_OFFSET_PARAM,
NUM_PARAMS
};
enum InputIds {
IN1_INPUT,
IN2_INPUT,
TRIGGER_INPUT,
NUM_STEPS_INPUT... |
// Copyright (c) 2019-2020 The BITCHAIN developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "qt/bitchain/dashboardwidget.h"
#include "qt/bitchain/forms/ui_dashboardwidget.h"
#include "qt/bitchain/sendconfirmdialo... |
// $Id: SegmentNodeTest.cpp 2344 2009-04-09 21:46:30Z mloskot $
//
// Test Suite for geos::noding::SegmentNode class.
#include <tut.hpp>
// geos
#include <geos/noding/SegmentNode.h>
#include <geos/noding/NodedSegmentString.h>
#include <geos/geom/Coordinate.h>
#include <geos/geom/CoordinateSequence.h>
#include <geos/g... |
; A029110: Expansion of 1/((1-x)(1-x^6)(1-x^7)(1-x^12)).
; 1,1,1,1,1,1,2,3,3,3,3,3,5,6,7,7,7,7,9,11,12,13,13,13,16,18,20,21,22,22,25,28,30,32,33,34,38,41,44,46,48,49,54,58,61,64,66,68,74,79,83,86,89,91,98,104,109,113,116,119
lpb $0
mov $2,$0
sub $0,6
seq $2,25788 ; Expansion of 1/((1-x)(1-x^7)(1-x^12)).
add $1... |
;*!
;* \copy
;* Copyright (c) 2009-2013, Cisco Systems
;* 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 abo... |
; A254601: Numbers of n-length words on alphabet {0,1,...,6} with no subwords ii, where i is from {0,1,2}.
; Submitted by Jamie Morken(s2)
; 1,7,46,304,2008,13264,87616,578752,3822976,25252864,166809088,1101865984,7278432256,48078057472,317582073856,2097804673024,13857156333568,91534156693504,604633565495296,3993938019... |
; A348845: allocated for Wolfdieter Lang
; Submitted by Simon Strandgaard
; 11,35,59,83,107,131,155,179,203,227,251,275,299,323,347,371,395,419,443,467,491,515,539,563,587,611,635,659,683,707,731,755,779,803,827,851,875,899,923,947,971,995,1019,1043,1067
mul $0,24
add $0,11
|
;--------------------------------------------------------------------------------
; OnLoadOW
;--------------------------------------------------------------------------------
;OnLoadMap:
; LDA $7EF2DB ; thing we wrote over
;RTL
;--------------------------------------------------------------------------------
OnPrepFile... |
#include "SDLWrapper.h"
bool SDLWrapper::init(int width, int height, int up) {
upscale = up;
screenWidth = width * upscale;
screenHeight = height * upscale;
if (SDL_Init(SDL_INIT_VIDEO) < 0) {
printf("SDL could not initialize! SDL_Error: %s\n", SDL_GetError());
return false;
} else {
// Create window
win... |
/**
* 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... |
; A023504: Greatest exponent in prime-power factorization of prime(n) - 1.
; 0,1,2,1,1,2,4,2,1,2,1,2,3,1,1,2,1,2,1,1,3,1,1,3,5,2,1,1,3,4,2,1,3,1,2,2,2,4,1,2,1,2,1,6,2,2,1,1,1,2,3,1,4,3,8,1,2,3,2,3,1,2,2,1,3,2,1,4,1,2,5,1,1,2,3,1,2,2,4,3,1,2,1,4,1,1,6,3,2,1,1,1,5,2,1,1,2,3,2,3
seq $0,40976 ; a(n) = prime(n) - 2.
seq $0... |
SECTION code_clib
SECTION code_fp_math48
PUBLIC _log10
EXTERN cm48_sdcciy_log10
defc _log10 = cm48_sdcciy_log10
|
; A046897: Sum of divisors of n that are not divisible by 4.
; 1,3,4,3,6,12,8,3,13,18,12,12,14,24,24,3,18,39,20,18,32,36,24,12,31,42,40,24,30,72,32,3,48,54,48,39,38,60,56,18,42,96,44,36,78,72,48,12,57,93,72,42,54,120,72,24,80,90,60,72,62,96,104,3,84,144,68,54,96,144,72,39,74,114,124,60,96,168,80,18,121,126,84,96,108,13... |
// Copyright (c) 2012 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/renderer/loadtimes_extension_bindings.h"
#include <math.h>
#include "base/time/time.h"
#include "content/public/renderer/document_s... |
# Example program to showcase assembler syntax
# This example doesn't actually do anything useful!
# constants
FOO = 42
BAR = FOO * 2
ADDR = 0x20000000
# basic labels, jumping, and branching
start:
addi t0, zero, BAR
jal zero, end
middle:
beq t0, zero, main
addi t0, t0, -1
end:
jal zero, middle
#... |
//
// Copyright 2019 The Abseil Authors.
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ... |
// Original test: ./tschaefe/hw4/problem6/j_0.asm
// Author: tschaefe
// Test source code follows
// j test 0
// Jump instruction should move on to add, effectively doing nothing
j 0x0
add r1, r2, r3
halt
|
/**
* VKTS - VulKan ToolS.
*
* The MIT License (MIT)
*
* Copyright (c) since 2014 Norbert Nopper
*
* 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 with... |
; A005586: a(n) = n(n+4)(n+5)/6.
; 0,5,14,28,48,75,110,154,208,273,350,440,544,663,798,950,1120,1309,1518,1748,2000,2275,2574,2898,3248,3625,4030,4464,4928,5423,5950,6510,7104,7733,8398,9100,9840,10619,11438,12298,13200,14145,15134,16168,17248,18375,19550,20774,22048,23373,24750,26180,27664,29203,30798,32450,34160,3592... |
; A017642: a(n) = (12*n+10)^2.
; 100,484,1156,2116,3364,4900,6724,8836,11236,13924,16900,20164,23716,27556,31684,36100,40804,45796,51076,56644,62500,68644,75076,81796,88804,96100,103684,111556,119716,128164,136900,145924,155236,164836,174724,184900,195364,206116,217156,228484,240100,252004,264196,276676,289444,302500,3... |
; A274009: 1's distance from a number in its binary expansion.
; 1,0,2,1,2,1,3,2,2,1,3,2,3,2,4,3,2,1,3,2,3,2,4,3,3,2,4,3,4,3,5,4,2,1,3,2,3,2,4,3,3,2,4,3,4,3,5,4,3,2,4,3,4,3,5,4,4,3,5,4,5,4,6,5,2,1,3,2,3,2,4,3,3,2,4,3,4,3,5,4,3,2,4,3,4,3,5,4,4,3
mov $4,$0
div $4,2
mov $3,$4
mov $5,1
add $5,$0
mov $6,1
lpb $6,1
sub $6... |
/*
This file is part of the sample code for the article,
"Processing XML with Xerces and the DOM" by Ethan McCallum (2005/09/08)
Published on ONLamp.com (http://www.onlamp.com/)
http://www.onlamp.com/pub/a/onlamp/2005/09/08/xerces_dom.html
*/
#include "helper-classes.h"
#include<list>
#include<iterator>
#include<a... |
; A058031: a(n) = n^4 - 2*n^3 + 3*n^2 - 2*n + 1, the Alexander polynomial for reef and granny knots.
; 1,1,9,49,169,441,961,1849,3249,5329,8281,12321,17689,24649,33489,44521,58081,74529,94249,117649,145161,177241,214369,257049,305809,361201,423801,494209,573049,660969,758641,866761,986049,1117249,1261129,1418481,159012... |
; ===============================================================
; Dec 2013
; ===============================================================
;
; void *calloc(size_t nmemb, size_t size)
;
; Allocate nmemb * size bytes from the current thread's heap and
; initialize that memory to 0.
;
; Returns 0 if nmemb*size == 0 ... |
;--------------------------------------------------------------------------------
PreOverworld_LoadProperties_ChooseMusic:
; A: scratch space (value never used)
; Y: set to overworld animated tileset
; X: set to music track/command id
JSL.l FixFrogSmith ; Just a convenient spot to install this hook
... |
; A093132: Third binomial transform of Fibonacci(3n+2).
; 1,8,60,440,3200,23200,168000,1216000,8800000,63680000,460800000,3334400000,24128000000,174592000000,1263360000000,9141760000000,66150400000000,478668800000000,3463680000000000,25063424000000000,181360640000000000,1312337920000000000,9496166400000000000,687149056... |
; A315247: Coordination sequence Gal.5.87.3 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,10,15,19,25,31,35,40,44,50,56,60,65,69,75,81,85,90,94,100,106,110,115,119,125,131,135,140,144,150,156,160,165,169,175,181,185,190,194,200... |
;******************************************************************************
.define dir_reg, 0x00
.define port_reg, 0x01
.define pin_reg, 0x02
.define prescaler_l, 0x03
.define prescaler_h, 0x04
.define count_ctrl, 0x05
.define uart_baud, 0x0A
.defin... |
*
* PROGRAM: ZFAM040
* AUTHOR: Rich Jackson and Randy Frerking
* COMMENTS: zFAM - z/OS File Access Manager
*
* This program is executed as the Query Mode DELETE
* service called by zFAM001 control program.
*
* This program will delete primary column index and
... |
#include <code/include/CustomView.hpp>
#include <code/include/Game.hpp>
#include <QDebug>
#include <QScrollBar>
CustomView::CustomView(QGraphicsScene *scene, QWidget *parent)
: QGraphicsView(scene, parent)
{
setTransformationAnchor(QGraphicsView::NoAnchor);
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysO... |
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
c0
.text@150
lbegin:
ld a, 00
ldff(ff), a
ld a, 30
ldff(00), a
ld a, 01
ldff(4d), a
stop, 00
ld c, 41
ld b, 02
ld d, 03
lbegin_waitm2:
ldff a, (c)
and a, d
cmp a, b
jrnz lbegin_waitm2
ld a, 08
ldff(c), a
ld a, 02
ldff(ff), a
ei
ld ... |
object_const_def ; object_event constants
const BATTLETOWER1F_RECEPTIONIST
const BATTLETOWER1F_YOUNGSTER
const BATTLETOWER1F_COOLTRAINER_F
const BATTLETOWER1F_BUG_CATCHER
const BATTLETOWER1F_GRANNY
BattleTower1F_MapScripts:
db 2 ; scene scripts
scene_script .Scene0 ; SCENE_DEFAULT
scene_script .Scene1 ; SCENE... |
%include '../util.asm'
default rel
section .text
global _main
;
;rótulo no código é como se fosse funçao
;rótulo na área de dados é nome de variável
;
_main: ;rotulo inicio do programa
MOV rcx, 10
inicio:
push rcx ; pois readint usa o rcx
call readint
pop rcx
; aqui compara
s... |
TITLE DIRCALL - Directory manipulation internal calls
NAME DIRCALL
; $MKDIR
; $CHDIR
; $RMDIR
.xlist
INCLUDE DOSSEG.ASM
CODE SEGMENT BYTE PUBLIC 'CODE'
ASSUME SS:DOSGROUP,CS:DOSGROUP
.xcref
INCLUDE DOSSYM.ASM
INCLUDE DEVSYM.ASM
.cref
.list
ifndef Kanji
Kanji equ 0
endif
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.