text stringlengths 1 1.05M |
|---|
; A295890: a(n) = 1 if binary weights of n and 3n have different parity, 0 otherwise; a(n) = A010060(n) XOR A010060(3n).
; 0,1,1,0,1,0,0,0,1,0,0,1,0,1,0,0,1,0,0,1,0,1,1,1,0,1,1,1,0,1,0,0,1,0,0,1,0,1,1,1,0,1,1,0,1,0,1,1,0,1,1,0,1,0,1,1,0,1,1,1,0,1,0,0,1,0,0,1,0,1,1,1,0,1,1,0,1,0,1,1,0,1,1,0,1,0,0,0,1,0,0,0,1,0,1,1,0,1,1... |
; A184119: Upper s(n)-Wythoff sequence, where s(n) = 2n - 1; complement of A136119.
; 2,6,9,12,16,19,23,26,30,33,36,40,43,47,50,53,57,60,64,67,70,74,77,81,84,88,91,94,98,101,105,108,111,115,118,122,125,129,132,135,139,142,146,149,152,156,159,163,166,170,173,176,180,183,187,190,193,197,200,204,207,210,214,217,221,224,22... |
GLOBAL _run_app
_run_app:
; Pulando para o endereços 0x2000
MOV EAX, 0x2000
;MOV EAX, 0x10AFB8
JMP EAX
global isr_config
isr_config:
;Configurando IRQ 0...15 [Reprogramando o PIC 8259A]
MOV AL,0x11
OUT 0xA0,AL
OUT 0x20,AL
;Configurando as IRQs 0x0...0x7 para 0x20...0x27
MOV AL,0x20
... |
// Copyright 2009 the V8 project 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/log-utils.h"
#include "src/assert-scope.h"
#include "src/base/platform/platform.h"
#include "src/objects-inl.h"
#include "src/string-stre... |
// -*- C++ -*-
//
// Package: ElectronProducers
// Class: ElectronSeedProducer
//
/**\class ElectronSeedProducer RecoEgamma/ElectronProducers/src/ElectronSeedProducer.cc
Description: EDProducer of ElectronSeed objects
Implementation:
<Notes on implementation>
*/
//
// Original Author: Ursula Berthon, ... |
// license:BSD-3-Clause
// copyright-holders:R. Belmont,Ryan Holtz,Fabio Priuli
/***********************************************************************************************************
Game Boy Advance cart emulation
We support carts with several kind of Save RAM (actual SRAM, Flash RAM or EEPROM)
*******... |
lda ({z2}),y
sta {m1}
iny
lda ({z2}),y
sta {m1}+1
cpx #0
beq !e+
!:
lda {m1}+1
cmp #$80
ror {m1}+1
ror {m1}
dex
bne !-
!e:
|
// --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... |
SECTION code_fp_math48
PUBLIC _log
EXTERN cm48_sdcciy_log
defc _log = cm48_sdcciy_log
|
;------------------------------------------------------------------------------
;
; Copyright (c) 2006, 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... |
; ===============================================================
; Jan 2014
; ===============================================================
;
; int vsprintf(char *s, const char *format, void *arg)
;
; As vfprintf but output is directed to a string.
;
; ==============================================================... |
; A066294: a(n) = A000203(n)^2 - A001157(n) - 2n = sigma(n)^2 - sigma_2(n) - 2n.
; Submitted by Jamie Morken(s3)
; -2,0,0,20,0,82,0,124,60,174,0,550,0,298,286,588,0,1030,0,1178,482,642,0,2702,260,862,726,2030,0,3824,0,2540,1018,1398,934,6298,0,1714,1358,5810,0,6632,0,4406,3628,2442,0,11870,700,5294,2182,5930,0,10192,19... |
;
; Sprite Rendering Routine
; original code by Patrick Davidson (TI 85)
; modified by Stefano Bodrato - Jan 2001
;
; VZ200/300 version
;
;
; $Id: putsprite.asm,v 1.5 2015/01/19 01:32:52 pauloscustodio Exp $
;
PUBLIC putsprite
EXTERN cpygraph
EXTERN pixeladdress
; coords: d,e (vert-horz)
; sprite: (ix)
.offse... |
#include "scientific_module.hpp"
#include <algorithm>
#include <iostream>
#include <math.h>
#include <random>
#include <thread>
namespace py = pybind11;
double compute_pi_cpp(int samples) {
// Take random x and y cartesian coordinates
auto xs = create_random_vector(samples);
auto ys = create_random_vector(sampl... |
#include "PID.h"
#include <iostream>
using namespace std;
/*
* TODO: Complete the PID class.
*/
PID::PID()
{
best_err = 10000.0;//std::numeric_limits<double>::max();
converged = false;
}
PID::~PID() {}
void PID::Init(double Kp, double Ki, double Kd) {
this->Kp = Kp;
this->Ki = Ki;
this->Kd = Kd;
p[0] = ... |
/*
* Copyright (c) 2020 - 2022 Samsung Electronics Co., Ltd. All rights reserved.
* 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 ri... |
; set cursor stuff:
ldi xr #0E ; Display on, cursor on, blink off : 00001110
stw xr #FE ; store to port B
ldi xr #0 ; clear RS/RW/E bits
stw xr #FF ; store to port A
ldw xr enable ; enable write to lcd
stw xr #FF ; store to port A
ldi xr #0 ; clear RS/RW/E bits
stw xr #FF ; store to port A
; en... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r8
push %r9
push %rbp
push %rbx
push %rdx
push %rsi
// Store
lea addresses_normal+0x3583, %r9
nop
nop
nop
nop
nop
cmp $40226, %r11
movw $0x5152, (%r9)
nop
sub $30780, %rdx
// Store
lea addresses_US+0x17903, %r11... |
//-----------------------------------------------------------------------------
// boost variant/static_visitor.hpp header file
// See http://www.boost.org for updates, documentation, and revision history.
//-----------------------------------------------------------------------------
//
// Copyright (c) 2002-2003
// E... |
; void SMS_setClippingWindow(unsigned char x0,unsigned char y0,unsigned char x1,unsigned char y1)
SECTION code_clib
SECTION code_SMSlib
PUBLIC SMS_setClippingWindow_callee
EXTERN asm_SMSlib_setClippingWindow
SMS_setClippingWindow_callee:
pop af
pop de
pop hl
ld h,e
pop bc
pop de
ld d,c
push... |
;******************************************************************************
.define uart_baud, 0x0A
.define uart_ctrl, 0x0B
.define uart_buffer, 0x0C
.define motor_control, 0x0D
.define motor_enable, 0x0E
.define motor_pwm0, 0x0F
.define motor_pwm1, 0x10
... |
/*
This file is part of Corrade.
Copyright © 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016,
2017, 2018, 2019, 2020 Vladimír Vondruš <mosra@centrum.cz>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation... |
; A038707: a(n) = floor(n*(n+1/2)/2).
; 0,0,2,5,9,13,19,26,34,42,52,63,75,87,101,116,132,148,166,185,205,225,247,270,294,318,344,371,399,427,457,488,520,552,586,621,657,693,731,770,810,850,892,935,979,1023,1069,1116,1164,1212,1262,1313,1365,1417,1471,1526,1582,1638,1696,1755,1815,1875,1937,2000,2064,2128,2194,2261,2329... |
#include <bits/stdc++.h>
#include <ext/pb_ds/tree_policy.hpp>
#include <ext/pb_ds/assoc_container.hpp>
using namespace std;
using namespace __gnu_pbds;
typedef long long ll;
typedef unsigned long long llu;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef vector<vi> vvi;
typedef pair<int, int> pii;
typedef pair<... |
//------------------------------------------------------------------------------
/*
This file is part of rippled: https://github.com/ripple/rippled
Copyright (c) 2012-2015 Ripple Labs Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby g... |
; A220700: a(0)=0, a(1)=0; for n>1, a(n) = a(n-1) + (n+3)*a(n-2) + 1
; Submitted by Jon Maiga
; 0,0,1,2,10,27,118,389,1688,6357,28302,117301,541832,2418649,11629794,55165477,276131564,1379441105,7178203950,37525908261,202624599112,1103246397377,6168861375178,34853267706981,201412524836788,1177304020632257,7018267240899... |
;
; z88dk RS232 Function
;
; OSCA version
;
; unsigned char rs232_init()
;
; $Id: rs232_init.asm,v 1.3 2016-06-23 20:15:37 dom Exp $
SECTION code_clib
PUBLIC rs232_init
PUBLIC _rs232_init
INCLUDE "target/osca/def/osca.def"
rs232_init:
_rs232_init:
xor a
out (sy... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r15
push %r8
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x12087, %rsi
lea addresses_WC_ht+0x19163, %rdi
clflush (%rdi)
nop
nop
nop
dec %r8
mov $31, %rcx
rep movsl
nop
nop
nop
dec %rbx
lea addresses_D_ht+0x12649, %rcx
clflush (%rcx)
n... |
<%
from pwnlib.shellcraft.powerpc.linux import syscall
%>
<%page args="fd, offset, count, flags"/>
<%docstring>
Invokes the syscall sync_file_range. See 'man 2 sync_file_range' for more information.
Arguments:
fd(int): fd
offset(off64_t): offset
count(off64_t): count
flags(unsigned): flags
</%doc... |
// Copyright 2016 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... |
MODULE __printf_get_flags_impl
SECTION code_clib
PUBLIC __printf_get_flags_impl
EXTERN atoi
EXTERN get_16bit_ap_parameter
__printf_get_flags_impl:
ld c,0
flags_again:
push hl ;save fmt
ld b,5
ld hl,flags
flag_loop:
cp (hl)
inc ... |
PalletTown_Script:
CheckEvent EVENT_GOT_POKEBALLS_FROM_OAK
jr z, .next
SetEvent EVENT_PALLET_AFTER_GETTING_POKEBALLS
.next
call EnableAutoTextBoxDrawing
ld hl, PalletTown_ScriptPointers
ld a, [wPalletTownCurScript]
jp CallFunctionInTable
PalletTown_ScriptPointers:
dw PalletTownScript0
dw PalletTownScript1
dw... |
/*********************************************************\
* File: Theme.cpp *
*
* Copyright (C) 2002-2013 The PixelLight Team (http://www.pixellight.org/)
*
* This file is part of PixelLight.
*
* Permission is hereby granted, free of charge, to any person obtaining a co... |
// Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The SFC licenses this file
// to you under the Apache License, Version 2.0 (the "License");
// you may... |
; A178525: The sum of the costs of all nodes in the Fibonacci tree of order n.
; 0,0,3,8,22,49,104,208,403,760,1406,2561,4608,8208,14499,25432,44342,76913,132808,228416,391475,668840,1139518,1936513,3283392,5555424,9381699,15815528,26618518,44733745,75073256,125827696,210642643
mov $2,$0
lpb $0,1
sub $0,1
add $3,$... |
; void *tshc_saddrpleft(void *saddr, uchar bitmask)
SECTION code_clib
SECTION code_arch
PUBLIC tshc_saddrpleft
EXTERN zx_saddrpleft
defc tshc_saddrpleft = zx_saddrpleft
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _tshc_saddrpleft
defc _tshc_saddrpleft = tshc_saddrpleft
ENDIF
|
; A022370: Fibonacci sequence beginning 2, 16.
; 2,16,18,34,52,86,138,224,362,586,948,1534,2482,4016,6498,10514,17012,27526,44538,72064,116602,188666,305268,493934,799202,1293136,2092338,3385474,5477812,8863286,14341098,23204384,37545482,60749866,98295348,159045214,257340562,416385776,673726338,1090112114,1763838452,28... |
; A165229: a(n) = 12*a(n-1) - 6*a(n-2), with a(0)=1, a(1)=6.
; Submitted by Jon Maiga
; 1,6,66,756,8676,99576,1142856,13116816,150544656,1727834976,19830751776,227602011456,2612239626816,29981263453056,344101723675776,3949333103390976,45327386898637056,520232644163298816,5970827408567763456,68528533037833368576,7865174... |
; A266155: Triangle read by rows giving successive states of cellular automaton generated by "Rule 19" initiated with a single ON (black) cell.
; 1,1,0,1,0,0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r8
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x1de10, %r9
nop
nop
nop
cmp $49453, %rdx
mov $0x6162636465666768, %r14
movq %r14, %xmm5
vmovups %ymm5, (%r9)
nop
nop
nop
nop
nop
and $63277, %r9
lea addresses_WT_ht+0x1572c, %rd... |
/*
* Copyright 2011-present Facebook, 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 law or a... |
; CRT0 stub for the Jupiter ACE
;
; Stefano Bodrato - Feb 2001
;
; $Id: ace_crt0.asm,v 1.10 2010/05/24 14:48:57 stefano Exp $
;
MODULE ace_crt0
;
; Initially include the zcc_opt.def file to find out lots of lovely
; information about what we should do..
;
INCLUDE "zcc_op... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 16.00.30319.01
TITLE C:\JitenderN\REBook\HelloWorld\HelloWorld\HelloWorld.cpp
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
CONST SEGMENT
$SG4677 DB 'hello, world', 0aH, 00H
CONST ENDS
PUBLIC _main... |
db 0 ; species ID placeholder
db 60, 85, 60, 55, 85, 60
; hp atk def spd sat sdf
db FIRE, FIGHTING ; type
db 45 ; catch rate
db 142 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F12_5 ; gender ratio
db 100 ; unknown 1
db 20 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/combus... |
; $Id: bit_open.asm,v 1.8 2016-06-16 19:33:59 dom Exp $
;
; ZX Spectrum 1 bit sound functions
;
; void bit_open();
;
; Stefano Bodrato - 28/9/2001
;
INCLUDE "games/games.inc"
SECTION code_clib
PUBLIC bit_open
PUBLIC _bit_open
EXTERN __snd_tick
.bit_open
._bit_open
ld a,(23... |
; 0xf0 = a
; 0xf1 = b
; ret to 0xff
udiv:
lda $0
sta 0xe0
.loop:
lda 0xf0
sub 0xf1
js .end ; a - b was negative, a < b
sta 0xf0 ; a -= b
lda 0xe0 ; out += 1
add $1
sta 0xe0
jmp .loop
.end:
lda 0xe0
jmp #0xff ; ret
|
; all of these should fail on i8080
add ix,bc ; #DD09
add ix,de ; #DD19
ld ix,#100 ; #DD210001
ld (#100),ix ; #DD220001
inc ix ; #DD23
inc ixh ; #DD24
dec ixh ; #DD25
ld ixh,0 ; #DD2600
add ... |
//door asm of bt/animal room during escape
arch snes.cpu
lorom
org $838BCC
db $20, $ff
org $8FFF20
LDA $7ED820 //loads event flags
BIT #$4000 //checks for escape flag set
BEQ quit
LDA #$0020
STA $7E0946 //stores 15 to escape timer in seconds
quit:
RTS |
//------------------------------------------------------------------------------
//
// Copyright (c) 2008 - 2009, Apple Inc. 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 di... |
#pragma once
// The sole purpose of this file is to give a clear and early error
// message to anyone trying to compile fs123 with a too-old compiler.
// It's #include-ed in a few source files that give wide coverage.
// See docs/Notes.compilers for more info
#if defined(__clang__)
# if __clang_major__ < 7
# err... |
; PROLOGUE(mpn_addmul_2)
; Copyright 2008 Jason Moxham
;
; Windows Conversion Copyright 2008 Brian Gladman
;
; This file is part of the MPIR Library.
; The MPIR Library is free software; you can redistribute it and/or modify
; it under the terms of the GNU Lesser General Public License as published
; by the Free... |
; int __CALLEE__ fputs(const char *s, FILE *stream)
; 07.2009 aralbrec
XLIB fputs_callee
XDEF ASMDISP_FPUTS_CALLEE
LIB strlen, l_jpix
LIB stdio_error_mc, stdio_success_znc, stdio_error_eacces_mc
INCLUDE "../stdio.def"
.fputs_callee
pop hl
pop ix
ex (sp),hl
.asmentry
; enter : hl = char *s
; ... |
dnl AMD64 mpn_addmul_1 and mpn_submul_1.
dnl Copyright 2003, 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU Lesser General Public License as publis... |
/**************************************************************************/
/* */
/* WWIV Version 5.x */
/* Copyright (C)1998-2022, WWIV Software Services */
/* ... |
SECTION code_clib
SECTION code_sound_bit
PUBLIC _bitfx_19
INCLUDE "config_private.inc"
_bitfx_19:
; blurp
ld b,255
blurp2:
push af
ld a,__SOUND_BIT_TOGGLE
ld h,0
ld l,b
and (hl)
ld l,a
pop af
xor l
INCLUDE "sound/bit/z80/output_bit_device_2.inc"
push af
ld ... |
// Copyright (c) 2009-2012, Andre Caron (andre.l.caron@gmail.com)
// 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
//... |
include "titlescreen/asm/layoutmacros.asm"
include "titlescreen/asm/dpcfix.asm"
include "titlescreen/titlescreen_layout.asm"
.titledrawscreen
title_eat_overscan
;bB runs in overscan. Wait for the overscan to run out...
clc
lda INTIM
bmi title_eat_overscan
jmp title_do_vertical_sync
title_do_vertical_sync
l... |
; A249997: Expansion of 1/((1-x)*(1+3*x)*(1-4*x)).
; Submitted by Jon Maiga
; 1,2,15,40,221,702,3355,11780,52041,193402,817895,3138720,12953461,50618102,206059635,813476860,3286192481,13047914802,52482224575,209057202200,838843897101,3347530323502,13413657088715,53584020970740,214547906035321,857556157684202
lpb $0
... |
; Licensed to the .NET Foundation under one or more agreements.
; The .NET Foundation licenses this file to you under the MIT license.
; See the LICENSE file in the project root for more information.
; ***********************************************************************
; File: PInvokeStubs.asm
;
; ****************... |
; A273692: a(n) is the denominator of 2*O(n+1) - O(n+2) where O(n) = n/2^n, the n-th Oresme number.
; Submitted by Jamie Morken(s3)
; 2,8,2,32,32,128,64,512,512,2048,128,8192,8192,32768,16384,131072,131072,524288,131072,2097152,2097152,8388608,4194304,33554432,33554432,134217728,16777216,536870912,536870912,2147483648,... |
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... |
; A134486: a(0)=1; for n>=1, a(n) = the largest prime dividing n*a(n-1) + 1.
; Submitted by Christian Krause
; 1,2,5,2,3,2,13,23,37,167,557,383,4597,29881,167,179,191,29,523,4969,211,277,53,61,293,37,107,17,53,769,23071,661,641,1511,137,109,157,83,631,107,1427,14627,122867,103,1511,191,101,1187,251,41,293,467,1619
mov... |
INCLUDE "graphics/grafix.inc"
SECTION code_graphics
PUBLIC respixel
EXTERN pixeladdress
EXTERN __gfx_coords
;
; $Id: respixl.asm,v 1.7 2016-07-02 09:01:35 dom Exp $
;
; ******************************************************************
;
; Reset pixel at (x,y) coordinate
;
; Des... |
; A331322: a(n) = (3*n + 1)!/(n!)^3.
; Submitted by Jon Maiga
; 1,24,630,16800,450450,12108096,325909584,8779605120,236637794250,6380456082000,172080900531540,4641917845743360,125235075213284400,3379123922914656000,91184624634161304000,2460769070127233057280,66411927755894739034170,1792432652235221330334000
mov $1,$0
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x157a1, %rax
nop
nop
nop
and $16397, %r14
mov (%rax), %r12
nop
nop
add %rsi, %rsi
lea addresses_WC_ht+0x14717, %rsi
lea addresses_WT_ht+0xa2fd, %rdi
nop
nop
nop
nop
and %rax, %rax
mov $... |
; PLAY68 Sine Wave
;
; by Robin Grosset
;
OUTCH equ $e1d1
INCH equ $e1ac
CONTRL equ $e0e3
OUT4HS equ $e0c8
OUT2HS equ $e0ca
LF equ $0a
CR equ $0d
MIKBUG equ $e0d0
PDATA1 equ $e07e
code
org $1EE0
ldx #GREET
jsr PDATA1 ; say hello... |
/*
* abstractAI.hpp
*
* Created on: 16.01.2015
* Author: helvete
*/
#ifndef ABSTRACTAI_HPP_
#define ABSTRACTAI_HPP_
#include <QObject>
using namespace bb::system;
//Auch wenn es eine abstrakte klasse ist, muss es von QObjects erben
class Ai : public QObject {
public:
virtual ~Ai() {}
virtual void... |
; A157325: a(n) = 1728*n + 24.
; 1752,3480,5208,6936,8664,10392,12120,13848,15576,17304,19032,20760,22488,24216,25944,27672,29400,31128,32856,34584,36312,38040,39768,41496,43224,44952,46680,48408,50136,51864,53592,55320,57048,58776,60504,62232,63960,65688,67416,69144,70872,72600,74328,76056,77784,79512,81240,82968,8469... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r15
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x197f8, %r10
nop
add $38741, %rcx
movups (%r10), %xmm0
vpextrq $1, %xmm0, %rsi
nop
and $40286, %r13
lea addresses_UC_ht+0xcff8, %rsi
lea addresses_WT_ht+0xcaa8, %rdi
dec %rdx... |
; void *p_list_front(p_list_t *list)
SECTION code_clib
SECTION code_adt_p_list
PUBLIC p_list_front
EXTERN asm_p_list_front
defc p_list_front = asm_p_list_front
|
; A022091: Fibonacci sequence beginning 0, 8.
; Submitted by Jon Maiga
; 0,8,8,16,24,40,64,104,168,272,440,712,1152,1864,3016,4880,7896,12776,20672,33448,54120,87568,141688,229256,370944,600200,971144,1571344,2542488,4113832,6656320,10770152,17426472,28196624,45623096,73819720,119442816
mov $3,1
lpb $0
sub $0,1
mo... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x31f2, %rdi
nop
dec %rax
vmovups (%rdi), %ymm0
vextracti128 $1, %ymm0, %xmm0
vpextrq $0, %xmm0, %rbx
nop
nop
nop
and %rdi, %rdi
lea addresses_WT_ht+0xf921, %rsi
nop
nop
nop
nop... |
; A097140: Interleave n and 1-n.
; 0,1,1,0,2,-1,3,-2,4,-3,5,-4,6,-5,7,-6,8,-7,9,-8,10,-9,11,-10,12,-11,13,-12,14,-13,15,-14,16,-15,17,-16,18,-17,19,-18,20,-19,21,-20,22,-21,23,-22,24,-23,25,-24,26,-25,27,-26,28,-27,29,-28,30,-29,31,-30,32,-31,33,-32,34,-33,35,-34,36,-35,37,-36,38,-37,39,-38,40,-39,41,-40,42,-41,43,-42,... |
/*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#include <o... |
;********************************************************************************************************
; uC/LIB
; CUSTOM LIBRARY MODULES
;
; (c) Copyright 2004-2011; Micrium, Inc.; Weston, FL
;
; ... |
format ELF executable 3
entry start
include 'procs.inc'
segment readable
fizz db 'fizz', 0h
buzz db 'buzz', 0h
segment readable executable
start:
mov esi, 0
mov edx, 0
mov ecx, 0
.nextNumber:
inc ecx
.checkFizz:
mov edx, 0
mov eax, ecx
mov ebx, 3
... |
// Copyright (C) 2015 SRG Technology, LLC
//
// 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, pu... |
; Copyright 2015-2020 Matt "MateoConLechuga" Waltz
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions are met:
;
; 1. Redistributions of source code must retain the above copyright notice,
; this list of conditions and the fol... |
; A267866: Triangle read by rows giving successive states of cellular automaton generated by "Rule 231" initiated with a single ON (black) cell.
; 1,1,1,0,1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1... |
;########################################################################
;
; Copyright 2019-2020 0x8BitDev ( MIT license )
;
;########################################################################
;
; Sprite related functions
;
.define SPR_BUFF_X_CHR_OFFSET $c080
.define SPR_BUFF_SIZE $ff
; *** push a... |
; A109106: a(n) = (1/sqrt(5))*((sqrt(5) + 1)*((15 + 5*sqrt(5))/2)^(n-1) + (sqrt(5) - 1)*((15 - 5*sqrt(5))/2)^(n-1)).
; Submitted by Jon Maiga
; 2,20,250,3250,42500,556250,7281250,95312500,1247656250,16332031250,213789062500,2798535156250,36633300781250,479536132812500,6277209472656250,82169738769531250,1075615844726562... |
; int ba_priority_queue_pop(ba_priority_queue_t *q)
SECTION code_adt_ba_priority_queue
PUBLIC _ba_priority_queue_pop
EXTERN _ba_priority_queue_pop_fastcall
_ba_priority_queue_pop:
pop af
pop hl
push hl
push af
jp _ba_priority_queue_pop_fastcall
|
;
; MIT License
;
; Copyright (c) 2020 Alexander Brandt
;
; 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, ... |
; A199689: 8*10^n+1
; 9,81,801,8001,80001,800001,8000001,80000001,800000001,8000000001,80000000001,800000000001,8000000000001,80000000000001,800000000000001,8000000000000001,80000000000000001,800000000000000001,8000000000000000001,80000000000000000001,800000000000000000001,8000000000000000000001,80000000000000000000001... |
POWERON_DELAY EQU 40 ; *20ms, for ps/2 keyboard initialization
MENU_ENTER_DELAY EQU 40 ; 400ms
MENU_LEAVE_DELAY EQU 2 ; 20ms
INPUT_REPEAT EQU 2
INPUT_REPEAT_FIRST EQU 11
INPUT_BEEP_DELAY EQU 255
MENU_HEADER_ATTR EQU #47
MENU_BODY_ATTR EQU #78
MENU_SELEC... |
/**
* Copyright (c) 2016-2017 Netflix, Inc. 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 require... |
###############################################################################
# Copyright 2019 Intel Corporation
# All Rights Reserved.
#
# If this software was obtained under the Intel Simplified Software License,
# the following terms apply:
#
# The source code, information and material ("Material") containe... |
/*
* Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
; A267802: Decimal representation of the n-th iteration of the "Rule 213" elementary cellular automaton starting with a single ON (black) cell.
; 1,3,19,115,499,2035,8179,32755,131059,524275,2097139,8388595,33554419,134217715,536870899,2147483635,8589934579,34359738355,137438953459,549755813875,2199023255539,8796093022... |
/*
* GridTools
*
* Copyright (c) 2014-2019, ETH Zurich
* All rights reserved.
*
* Please, refer to the LICENSE file in the root directory.
* SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
#include "../../common/hymap.hpp"
#include "../../meta.hpp"
#include "concept.hpp"
#include "delegate.hpp"
#include ... |
; stdio_longzeroonstream
; 05.2008 aralbrec
PUBLIC stdio_longzeroonstream
; more common code from %li and %lx scan converters
.stdio_longzeroonstream
; we've read a 0 but have no way of pushing it back on the stream
; so take care of things here rather than in the common code
xor a ... |
// Copyright (c) 2017 Samsung Electronics Co., LTD
// Distributed under the MIT License.
// See the LICENSE file in the project root for more information.
#include "metadata/modules.h"
#include <string>
#include <vector>
#include <list>
#include <unordered_set>
#include "metadata/typeprinter.h"
#include "platform.h"... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <algorithm>
#include <cinttypes>
#include <cmath>
#include <cstdlib>
#include <random>
#include <string>
// clang-format off
#ifdef ${BACKEND_NAME}_FLOAT_TOLERANCE_BITS
#define DEFAULT_FLOAT_TOLERANCE_BITS ${BACKEND_NAME}_... |
; A209721: 1/4 the number of (n+1) X 3 0..2 arrays with every 2 X 2 subblock having distinct clockwise edge differences.
; 3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,32769,49153,65537,98305,131073,196609,262145,393217,524289,786433,1048577,1572865,2097153... |
include raster.i
CGROUP group code
code segment dword 'CODE'
assume cs:CGROUP,ds:CGROUP
public pj_bli2
;extern void pj_bli2(Vscreen *dv, int w, int h, int sx, int sy, int dx, dy,
; UBYTE *sp, int sbpr, int color, int bcolor);
;Blit a bitplane into memory byte-a-pixel plane.
pj_bli2 proc near
bl... |
#include "FurSimApp.h"
#include "TextureLoader.h"
#define LOG(_log, ...) { printf(_log, __VA_ARGS__); }
FurSim::FurSim()
{
}
FurSim::~FurSim()
{
}
static inline float FloatRand()
{
return rand() / (float)RAND_MAX;
}
GLuint CreateNoiseText2D(int a_iW, int a_iH, GLint a_uiInternalFormat, bool a_bMipmap = false)
{... |
; A141827: a(n) = (n^3*a(n-1) - 1)/(n - 1) for n >= 2, with a(0) = 1, a(1) = 4.
; Submitted by Jon Maiga
; 1,4,31,418,8917,278656,12037939,688168846,50334635593,4586743668412,509638185379111,67832842473959674,10655922890454756061,1950921882527424922168,411794588127327229725307
mov $2,$0
add $2,1
mov $4,$0
lpb $2
sub... |
SECTION code_graphics
PUBLIC getmaxx
PUBLIC _getmaxx
EXTERN generic_console_get_mode
getmaxx:
_getmaxx:
call generic_console_get_mode
ld hl,255
cp 3
ret z
ld hl,511
cp 2
ret z
ld hl,1023
ret
|
; A177747: Convolution of A008805 (triangular numbers repeated) with itself.
; 1,2,7,12,27,42,77,112,182,252,378,504,714,924,1254,1584,2079,2574,3289,4004,5005,6006,7371,8736,10556,12376,14756,17136,20196,23256,27132,31008,35853,40698,46683,52668,59983,67298,76153,85008,95634,106260,118910,131560,146510,161460,179010,1... |
bits 32 ; assembling for the 32 bits architecture
; declare the EntryPoint (a label defining the very first instruction of the program)
global start
; declare external functions needed by our program
extern exit,printf,scanf ; tell nasm that exit exists even if we won't be defining it
import exi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.