text stringlengths 1 1.05M |
|---|
;
; ZX Spectrum specific routines
; by Stefano Bodrato, 2018
;
; int __FASTCALL__ zx_line(int line);
;
; Execute a single BASIC program line.
; Returns with BASIC error code.
; 0=OK,... -1=no program lines found
;
; $Id: zx_line.asm $
;
SECTION code_clib
PUBLIC zx_line
PUBLIC _zx_line
; ROM interposer does not work h... |
; A070631: n^5 mod 48.
; 0,1,32,3,16,5,0,7,32,9,16,11,0,13,32,15,16,17,0,19,32,21,16,23,0,25,32,27,16,29,0,31,32,33,16,35,0,37,32,39,16,41,0,43,32,45,16,47,0,1,32,3,16,5,0,7,32,9,16,11,0,13,32,15,16,17,0,19,32,21,16,23,0,25,32,27,16
pow $0,5
mod $0,48
|
; A258384: a(n) = n^(n-1) * (n+1)^n.
; 2,18,576,40000,4860000,914838624,246727835648,90275517038592,43046721000000000,25937424601000000000,19271723592631858495488,17310672267004940730236928,18492034350245752657180811264,23170856660867919150000000000000,33657152197069740441600000000000000
add $0,1
mov $1,1
add $1,$0
mu... |
; A064724: A Beatty sequence for 2^sqrt(2).
; 1,3,4,6,8,9,11,12,14,16,17,19,20,22,24,25,27,28,30,32,33,35,36,38,40,41,43,44,46,48,49,51,52,54,56,57,59,60,62,64,65,67,68,70,72,73,75,76,78,80,81,83,84,86,88,89,91,92,94,96,97,99,100,102,104,105,107,108,110,112,113,115,116,118,120,121,123,124,126,128,129,131,132,134,136,13... |
; A198954: Expansion of the rotational partition function for a heteronuclear diatomic molecule.
; 1,3,0,5,0,0,7,0,0,0,9,0,0,0,0,11,0,0,0,0,0,13,0,0,0,0,0,0,15,0,0,0,0,0,0,0,17,0,0,0,0,0,0,0,0,19,0,0,0,0,0,0,0,0,0,21,0,0,0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0,0,0,0,25,0,0,0,0,0,0,0,0,0,0,0,0,27,0,0,0,0,0,0,0,0,0,0,0,0,0,29... |
//////////////////////////////////////////////////////////////////////////////
/// Copyright 2003 and onward LASMEA UMR 6602 CNRS/U.B.P Clermont-Ferrand
/// Copyright 2009 and onward LRI UMR 8623 CNRS/Univ Paris Sud XI
///
/// Distributed under the Boost Software License, Version 1.0
/// ... |
#include <QMetaObject>
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "starter.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainWindow::on_startButton_toggled(bool checked)
{
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r15
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x457d, %rsi
lea addresses_UC_ht+0x7af1, %rdi
clflush (%rsi)
nop
nop
nop
sub $25213, %r9
mov $27, %rcx
rep movsl
nop
nop
xor %rax, %rax
lea addresses_A_ht+0x781d, %r15
nop
nop
nop
nop
no... |
// --- Predefined References --
define GC_ALLOC 10001h
define HOOK 10010h
define INVOKER 10011h
define INIT_RND 10012h
define CALC_SIZE 1001Fh
define GET_COUNT 10020h
define THREAD_WAIT 10021h
define GC_ALLOCPERM 10031h
define COR... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r8
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x27bd, %r11
clflush (%r11)
nop
nop
nop
nop
nop
add %r12, %r12
mov $0x6162636465666768, %r8
movq %r8, (%r11)
nop
add %rdi, %rdi
lea addresses_WT_ht+0xcbd, %r9
nop
nop
nop
add $3... |
#include "common/pruning/pruning_irep.hpp"
std::unique_ptr<ICoverageState> IREP::prune(IThresholdsSubset& thresholdsSubset, IPartition& partition,
ConditionList& conditions, const AbstractPrediction& head) const {
ConditionList::size_type numConditions = conditions.getN... |
processor 6502
include "vcs.h"
include "macro.h"
NTSC = 0
PAL60 = 1
IFNCONST SYSTEM
SYSTEM = NTSC
ENDIF
; ----------------------------------
; constants
#if SYSTEM = NTSC
; NTSC Colors
WHITE = $0f
BLACK = 0
WALL_COLOR = $A0
BALL_COLOR = $2C
#else
; PAL Colors
WHITE = $0E
BLACK = 0
WALL_COLOR = ... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dms/model/CancelReplicationTaskAssessmentRunRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::DatabaseMigrationService::Model;
using na... |
; A255645: Partial sums of A134660.
; 1,5,9,13,17,33,37,45,49,65,81,85,89,105,113,129,133,149,165,181,197,261,265,273,277,293,309,317,325,357,373,405,409,425,441,457,473,537,553,585,601,665,729,733,737,753,761,777,781,797,813,829,845,909,917,933,941,973,1005,1021,1037,1101,1133,1197
lpb $0
mov $2,$0
sub $0,1
seq... |
global main
extern printf
section .text
main:
push rsp
xor r8, r8
mov r9, 2
mov r10, 1
mov r12, 0x3D0900 ; 4million
.fibby:
cmp r9, r12
jge .end
test r9, 1
jnz .odd
add r8, r9
.odd:
mov r11, r10
mov r10, r9
add r9, r11
jmp .fibby
.end:
mov rdi,... |
; A275995: Denominators of coefficients in the asymptotic expansion of the logarithm of the central binomial coefficient.
; 8,192,640,14336,18432,180224,425984,15728640,8912896,79691776,176160768,3087007744,3355443200,28991029248,62277025792,4260607557632,1133871366144,9620726743040,20340965113856,343047627866112,36063... |
;
; Copyright (c) 2013 The WebM 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 in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing proje... |
; A047286: Numbers that are congruent to {1, 2, 3, 6} mod 7.
; 1,2,3,6,8,9,10,13,15,16,17,20,22,23,24,27,29,30,31,34,36,37,38,41,43,44,45,48,50,51,52,55,57,58,59,62,64,65,66,69,71,72,73,76,78,79,80,83,85,86,87,90,92,93,94,97,99,100,101,104,106,107,108,111,113,114,115,118,120,121,122,125,127,128,129,132,134,135,136,139,... |
;
; I used this Website/Document as a reference to create "main.asm".
;
; GB ASM Programming Tutorial: Hello World!
; https://eldred.fr/gb-asm-tutorial/hello-world.html
;
; The Cycle-Accurate Game Boy Docs (p25: 7. Joypad)
; https://github.com/AntonioND/giibiiadvance/blob/master/docs/TCAGBD.pdf
;
INCLUDE "hardware.in... |
// $1: periodic mode.
regwi 0, $1, 33;
regwi 0, $2, 1;
bitwi 0, $2, $2 << 16;
bitw 0, $1, $1 | $2;
// $4: non-periodic mode.
regwi 0, $4, 500;
regwi 1, $1, 100; // i
LOOP: setbi 7, 0, $4, 0;
loopnz 1, $1, @LOOP;
end;
|
#include "LongAccumulator.h"
#include <algorithm>
#include <chrono>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <pthread.h>
#include <random>
#include <thread>
#include <vector>
using namespace std;
// Floating-point specification constants
constexpr int EXPONENT_MIN_VALUE = -126;
constexpr in... |
// This file has been automatically generated by the Unreal Header Implementation tool
#include "FSplinePointData.h"
|
// Copyright 2015 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/inspector/v8-debugger-agent-impl.h"
#include <algorithm>
#include "../../third_party/inspector_protocol/crdtp/json.h"
#include "include/... |
; A238497: Cubefree Fibonacci numbers.
; 1,1,2,3,5,13,21,34,55,89,233,377,610,987,1597,4181,6765,10946,17711,28657,75025,121393,196418,317811,514229,1346269,2178309,3524578,5702887,9227465,24157817,39088169,63245986,102334155,165580141,433494437,701408733,1134903170,1836311903,2971215073,7778742049,12586269025,20365011... |
; A173267: a(n) = 121*n^2 + n.
; 122,486,1092,1940,3030,4362,5936,7752,9810,12110,14652,17436,20462,23730,27240,30992,34986,39222,43700,48420,53382,58586,64032,69720,75650,81822,88236,94892,101790,108930,116312,123936,131802,139910,148260,156852,165686,174762,184080,193640,203442,213486,223772,234300,245070,256082,2673... |
; A157855: 103680000n^2 - 46108800n + 5126401.
; 62697601,327628801,799920001,1479571201,2366582401,3460953601,4762684801,6271776001,7988227201,9912038401,12043209601,14381740801,16927632001,19680883201,22641494401,25809465601,29184796801,32767488001,36557539201,40554950401,44759721601,49171852801,53791344001,586181952... |
; A181294: Number of 0's in all 2-compositions of n. A 2-composition of n is a nonnegative matrix with two rows, such that each column has at least one nonzero entry and whose entries sum up to n.
; 0,2,10,46,198,816,3264,12776,49192,186976,703328,2623072,9712864,35746816,130873088,476961920,1731331200,6262393344,22580... |
; A083330: a(n) = (3*4^n - 2*3^n + 2^n)/2.
; 1,4,17,73,311,1309,5447,22453,91871,373789,1514327,6115333,24636431,99073069,397878407,1596280213,6399436991,25640729149,102691925687,411154861093,1645781181551,6586610462029,26356900104167
mov $1,1
mov $3,6
lpb $0,1
sub $0,1
add $4,$3
mov $2,$4
mul $2,2
mul $3,2
... |
; A090990: Number of meaningful differential operations of the n-th order on the space R^5.
; 5,9,16,29,52,94,169,305,549,990,1783,3214,5790,10435,18801,33881,61048,110009,198224,357194,643633,1159797,2089869,3765830,6785771,12227562,22033274,39702627,71541613,128913593,232294192,418579765,754254556,1359119894,24490492... |
/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, versionCode 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... |
; A227849: a(n) = 2 * floor( 3/14 * n^2) if n even, a(n) = 2 * round( 3/14 * n^2) -1 if n odd.
; 0,-1,0,3,6,9,14,21,26,33,42,51,60,71,84,95,108,123,138,153,170,189,206,225,246,267,288,311,336,359,384,411,438,465,494,525,554,585,618,651,684,719,756,791,828,867,906,945,986,1029,1070,1113,1158,1203,1248,1295,1344,1391,144... |
/*
* Copyright (C) 2015 The Android Open Source Project
*
* 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 app... |
; A047990: a(n+1) = a(n) + (n^2 + 1)*a(n-1).
; Submitted by Jon Maiga
; 1,2,4,14,54,292,1696,12500,97300,909800,8888400,100778200,1185163000,15798002000,217275712000,3329482106000,52433793018000,908110694260000,16113910669480000,311249886303980000,6144485548655740000,130955689956551720000,2846818302462388800000,6636032... |
/*=============================================================================
Copyright (c) 2011-2019 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
==... |
/**
SPDX-License-Identifier: MIT
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
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 l... |
; A001710: Order of alternating group A_n, or number of even permutations of n letters.
; 1,1,1,3,12,60,360,2520,20160,181440,1814400,19958400,239500800,3113510400,43589145600,653837184000,10461394944000,177843714048000,3201186852864000,60822550204416000
cal $0,142
mov $1,1
add $1,$0
div $1,2
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r14
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x4b0e, %r9
nop
nop
nop
nop
nop
add %r11, %r11
mov (%r9), %si
nop
nop
and %rcx, %rcx
lea addresses_WT_ht+0x132eb, %r13
clflush (%r13)
nop
nop
nop
nop
nop
inc %r12
mov $0x616263... |
lda {c1}
sta $fe
lda {c1}+1
sta $ff
lda ($fe),y |
; /////////////////////////////////////////////////////////////////////////////
; Znake (ZX Spectrum 48K)
; -----------------------------------------------------------------------------
; utils.asm
; -----------------------------------------------------------------------------
; Copyright (C) 2016, Chris Wyatt
; Al... |
// -*- C++ -*-
// Copyright (C) 2021 Dmitry Igrishin
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// i... |
; Platform specific colour transformation
;
; Entry: a = colour
; Exit: a = colour to use on screen
; Used: c,f
;
MODULE code_clib
PUBLIC conio_map_colour
EXTERN __CLIB_CONIO_NATIVE_COLOUR
conio_map_colour:
ld c,__CLIB_CONIO_NATIVE_COLOUR
rr c
ret c
and 7
... |
; A316357: Partial sums of A316316.
; 1,5,13,21,33,53,73,93,121,153,185,221,261,305,353,401,453,513,573,633,701,773,845,921,1001,1085,1173,1261,1353,1453,1553,1653,1761,1873,1985,2101,2221,2345,2473,2601,2733,2873,3013,3153,3301,3453,3605,3761,3921
mov $1,$0
mov $3,$0
lpb $0
sub $0,1
add $3,3
add $1,$3
lpe
add $... |
// Copyright (C) 2018-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "low_precision_transformations/concat_multi_channels.hpp"
#include <details/ie_cnn_network_tools.h>
#include <ie_common.h>
#include <algorithm>
#include <blob_factory.hpp>
#include <details/caseless.hpp>
#include <memory... |
// 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 "rpcprotocol.h"
#include "util.h"
#include <stdint.h>
#include <boost/algori... |
; A187332: Complement of A187331.
; 2,3,5,7,8,9,12,13,15,17,18,19,22,23,25,27,28,29,32,33,35,37,38,39,42,43,45,47,48,49,52,53,55,57,58,59,62,63,65,67,68,69,72,73,75,77,78,79,82,83,85,87,88,89,92,93,95,97,98,99,102,103,105,107,108
mov $1,$0
add $1,1
lpb $1
trn $1,2
add $0,$1
sub $0,1
trn $1,2
sub $0,$1
add ... |
#include once <printstr.asm>
#include once <stackf.asm>
#include once <const.asm>
__PRINTF: ; Prints a Fixed point Number stored in C ED LH
PROC
LOCAL RECLAIM2
LOCAL STK_END
STK_END EQU 5C65h
ld hl, (ATTR_T)
push hl ; Saves ATTR_T since BUG ROM changes it
ld hl, (STK_END)
push hl ; Stores STK_END
call __FP... |
//
// Copyright (c) 2008-2022 the Urho3D project.
//
// 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, m... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0xb3e, %rsi
lea addresses_WT_ht+0x138fe, %rdi
clflush (%rsi)
nop
and $50236, %rbx
mov $30, %rcx
rep movsw
xor $28186, %r9
lea addresses_D_ht+0x1e4ee, %rdx
nop
nop
nop
nop
n... |
aci -128 ; CE 80
aci 127 ; CE 7F
aci 255 ; CE FF
adc (hl) ; 8E
adc (ix) ; FD 8E 00
adc (ix+127) ; FD 8E 7F
adc (ix-128) ; FD 8E 80
adc (iy) ; ... |
/**
* @file MCP3xxx_Demo.cpp
*
* @author David Zemon
*
* @copyright
* The MIT License (MIT)<br>
* <br>Copyright (c) 2013 David Zemon<br>
* <br>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 t... |
; --COPYRIGHT--,BSD_EX
; Copyright (c) 2012, Texas Instruments Incorporated
; 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 ... |
/*
* Example Code: ICALL and IJMP
*
* ICALL - Indirect Call to Subroutine
*
* IJMP - Indirect Jump
*/
// NOTE: Table can not cross a 256 address boundry.
// If after the .equ, table lable is 0. MUST be before .equ reference.
// If you move this to below the .equ, the LDI in main() will load a 2 into ZL.
// Appe... |
// Copyright (c) 2021 - for information on the respective copyright owner
// see the NOTICE file and/or the repository https://github.com/boschglobal/locator_ros_bridge.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may o... |
; A070702: a(n) = n^7 mod 20.
; 0,1,8,7,4,5,16,3,12,9,0,11,8,17,4,15,16,13,12,19,0,1,8,7,4,5,16,3,12,9,0,11,8,17,4,15,16,13,12,19,0,1,8,7,4,5,16,3,12,9,0,11,8,17,4,15,16,13,12,19,0,1,8,7,4,5,16,3,12,9,0,11,8,17,4,15,16,13,12,19,0,1,8,7,4,5,16,3,12,9,0,11,8,17,4,15,16,13,12,19,0,1,8,7,4,5,16,3,12,9,0,11,8,17,4,15,16,13,... |
// Copyright 2020 ETH Zurich. All Rights Reserved.
#include "file_wrapper.h"
#include <mirheo/core/logger.h>
#include <mirheo/core/utils/strprintf.h>
namespace mirheo
{
FileWrapper::FileWrapper() = default;
FileWrapper::FileWrapper(const std::string& fname, const std::string& mode)
{
if (open(fname, mode) != Sta... |
GLOBAL _cli
GLOBAL _sti
GLOBAL picMasterMask
GLOBAL picSlaveMask
GLOBAL haltcpu
GLOBAL _hlt
GLOBAL _irq00Handler
GLOBAL _irq01Handler
GLOBAL _irq02Handler
GLOBAL _irq03Handler
GLOBAL _irq04Handler
GLOBAL _irq05Handler
GLOBAL _exception0Handler
GLOBAL _exception6Handler
GLOBAL _sysCallHandler
EXTERN irqDispatcher
EX... |
; ===============================================================
; Dec 2013
; ===============================================================
;
; size_t obstack_room(struct obstack *ob)
;
; Number of free bytes available in the obstack.
;
; ===============================================================
SECTION cod... |
Snd_MGZ1_Header:
smpsHeaderStartSong 3
smpsHeaderVoice Snd_MGZ1_Voices
smpsHeaderChan $06, $03
smpsHeaderTempo $01, $40
smpsHeaderDAC Snd_MGZ1_DAC
smpsHeaderFM Snd_MGZ1_FM1, $00, $0C
smpsHeaderFM Snd_MGZ1_FM2, $00, $0D
smpsHeaderFM Snd_MGZ1_FM3, $00, $0D
smpsHeaderFM ... |
; A091087: a(n) = floor(r*n) + floor(n/r), where r=sqrt(2).
; 0,1,3,6,7,10,12,13,16,18,21,22,24,27,28,31,33,36,37,39,42,43,46,48,49,52,54,57,58,61,63,64,67,69,72,73,75,78,79,82,84,85,88,90,93,94,97,99,100,103,105,108,109,111,114,115,118,120,123,124,126,129,130,133,135,136,139,141,144,145,147,150,151,154,156,159,160,162... |
; A140163: a(1)=1, a(n) = a(n-1) + n^5 if n odd, a(n) = a(n-1) + n if n is even.
; 1,3,246,250,3375,3381,20188,20196,79245,79255,240306,240318,611611,611625,1371000,1371016,2790873,2790891,5266990,5267010,9351111,9351133,15787476,15787500,25553125,25553151,39902058,39902086,60413235,60413265,89042416,89042448,128177841... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r15
push %r8
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x12cc5, %rsi
lea addresses_WC_ht+0x8b38, %rdi
nop
nop
dec %rdx
mov $30, %rcx
rep movsb
inc %rbp
lea addresses_WC_ht+0x17d0d, %rcx
nop
nop
nop
nop
nop
sub $29552, %r8
mov $0x61... |
; void SMS_nmi_isr(void)
SECTION code_clib
SECTION code_SMSlib
PUBLIC _SMS_nmi_isr
EXTERN asm_SMSlib_nmi_isr
defc _SMS_nmi_isr = asm_SMSlib_nmi_isr
|
; A052953: Expansion of 2*(1-x-x^2)/((1-x)*(1+x)*(1-2*x)).
; 2,2,4,6,12,22,44,86,172,342,684,1366,2732,5462,10924,21846,43692,87382,174764,349526,699052,1398102,2796204,5592406,11184812,22369622,44739244,89478486,178956972,357913942,715827884,1431655766,2863311532
mov $1,2
pow $1,$0
div $1,3
mul $1,2
add $1,2
|
; A168090: a(n) = (1 - (n mod 3) mod 2)*2^(floor(n/3) + (n mod 3)/2 ).
; 1,0,2,2,0,4,4,0,8,8,0,16,16,0,32,32,0,64,64,0,128,128,0,256,256,0,512,512,0,1024,1024,0,2048,2048,0,4096,4096,0,8192,8192,0,16384,16384,0,32768,32768,0,65536,65536,0,131072,131072,0,262144,262144,0,524288,524288,0,1048576,1048576,0,2097152,2097152... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x9589, %rsi
lea addresses_UC_ht+0x96d9, %rdi
nop
nop
nop
xor $14192, %rdx
mov $90, %rcx
rep movsb
nop
nop
nop
nop
xor $36796, %rdx
lea addresses_normal_ht+0x1ad19, %r10
no... |
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2012, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following... |
#pragma once
#include <cstdint>
#include "ZSTD_customMem.hpp"
#include "unknown_pthread_mutex_t_0.hpp"
namespace NWNXLib {
namespace API {
// Forward class declarations (defined in the source file)
struct ZSTD_CCtx_s;
struct ZSTDMT_CCtxPool
{
pthread_mutex_t_0 poolMutex;
uint32_t totalCCtx;
uint32_t a... |
; PROLOGUE(mpn_hamdist)
; AMD64 mpn_hamdist
; Copyright 2009 Jason Moxham
; 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 Software Foundation; either verdxo... |
; A155618: a(n) = 7^n+4^n-1^n.
; 1,10,64,406,2656,17830,121744,839926,5830336,40615750,283523824,1981521046,13858064416,96956119270,678491508304,4748635251766,33237225536896,232647693856390,1628482317387184,11399170063280086
mov $1,7
pow $1,$0
mov $2,4
pow $2,$0
add $1,$2
div $1,9
mul $1,9
add $1,1
|
.text
main:
la $a0, prompt #prompting user to input number 1
jal PromptInt
move $s0, $v0 # storing the result in $s0 for num1
la $a0, prompt2 # prompting user for number 2
jal PromptInt
move $s1, $v0 # storing the result in $s1 for num2
la $a0, prompt3 # prompting user to input number 3
jal PromptInt... |
#include <gtest/gtest.h>
#include <marnav/nmea/aam.hpp>
#include <marnav/nmea/nmea.hpp>
#include "type_traits_helper.hpp"
namespace
{
using namespace marnav;
class Test_nmea_aam : public ::testing::Test
{
};
TEST_F(Test_nmea_aam, contruction)
{
EXPECT_NO_THROW(nmea::aam aam);
}
TEST_F(Test_nmea_aam, properties)
{... |
; 6.1.0710 ALLOT
; Allocates n memory cells on the top of vocabulary
; D: n --
$CODE 'ALLOT',$ALLOT
POPDS EAX
ADD DWORD [VAR_DP + IMAGE_BASE],EAX
$NEXT
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r14
push %r15
push %rbp
push %rbx
push %rdx
lea addresses_D_ht+0x10d68, %r15
nop
nop
nop
cmp %r11, %r11
mov $0x6162636465666768, %rbp
movq %rbp, (%r15)
nop
nop
nop
inc %rdx
lea addresses_WT_ht+0x18f20, %r11
nop
nop
nop
cmp $27749, %r14
mov (%r11), %... |
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... |
_eraseInodeInfo: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
}
int
main(int argc, char *argv[])
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: ff 71 fc pushl -0x4(%ecx)
a: 55 push %eb... |
page ,132
TITLE C library emulation, not relying on MS-DOS.
;*****************************************************************************;
; ;
; FILE NAME: annaldiv.asm ;
; ;
; DESCRIPTION: C compiler long math library ;
; ;
; NOTES: ... |
; A097337: Integer part of the edge of a cube that has space-diagonal n.
; 0,1,1,2,2,3,4,4,5,5,6,6,7,8,8,9,9,10,10,11,12,12,13,13,14,15,15,16,16,17,17,18,19,19,20,20,21,21,22,23,23,24,24,25,25,26,27,27,28,28,29,30,30,31,31,32,32,33,34,34,35,35,36,36,37,38,38,39,39,40,40,41,42,42,43,43,44,45,45,46,46,47,47,48,49,49,50,5... |
#include <Storages/MergeTree/MergeTreeSequentialBlockInputStream.h>
#include <Storages/MergeTree/MergeTreeBlockReadUtils.h>
namespace DB
{
namespace ErrorCodes
{
extern const int MEMORY_LIMIT_EXCEEDED;
}
MergeTreeSequentialBlockInputStream::MergeTreeSequentialBlockInputStream(
const MergeTreeData & storage_,
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r15
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x10021, %rcx
nop
nop
lfence
movups (%rcx), %xmm3
vpextrq $0, %xmm3, %rbp
nop
nop
nop
nop
nop
xor %r14, %r14
lea addresses_WT_ht+0x19449, %rdx
nop
nop
cmp %rsi, %rsi
mov (... |
_init: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
char *argv[] = { "sh", 0 };
int
main(void)
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: ff 71 fc pushl -0x4(%ecx)
a: 55 push %ebp
... |
#include <fstream>
#include <iterator>
#include <iostream>
#include <string>
#include <sstream>
#include <filesystem>
#include <algorithm>
#include <map>
#include "Application.hpp"
//constexpr uint8_t Memory::bios[256];
Memory::~Memory()
{
if (initialized) {
freeBuffers();
}
}
void Memory::initialize()
{
// In... |
ldy #0
sty {m1}+2
sty {m1}+3
lda ({z2}),y
sta {m1}
iny
lda ({z2}),y
sta {m1}+1 |
ORG 100H
MOV AX, @DATA
MOV DS, AX
MOV SI, OFFSET ARR1
MOV DI, OFFSET ARR2
MOV CX, 0
INPUT:
MOV AH,1
INT 21H
CMP AL,13
JE L1
MOV [DI],AL
INC DI
INC CX
JMP INPUT
L1:
DEC DI
PUSH CX
MOV AH, 2
MOV DL, 0AH
INT 21H
MOV DL, 0DH
INT 21H
LX:
MOV BL, [DI]
MOV [SI], BL
INC SI
DEC DI
LOOP LX
POP CX
MOV SI, OFFSET ARR1
... |
lh $t1, 8($zero)
sw $t1, 12($zero) |
; A145133: Expansion of x/((1 - x - x^4)*(1 - x)^4).
; Submitted by Simon Strandgaard
; 0,1,5,15,35,71,132,231,386,622,974,1491,2241,3318,4852,7023,10080,14367,20359,28712,40332,56470,78853,109865,152797,212192,294321,407840,564697,781384,1080665,1493961,2064642,2852571,3940376,5442107,7515185,10376895,14327151,1977991... |
#include "gtest/gtest.h"
#include "zserio/CppRuntimeException.h"
#include "with_range_check_code/varint64_range_check/VarInt64RangeCheckCompound.h"
namespace with_range_check_code
{
namespace varint64_range_check
{
class VarInt64RangeCheckTest : public ::testing::Test
{
protected:
void checkVarInt64Value(int64_... |
/*
* 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 ... |
malon_goto_item:
lb t2, SONGS_AS_ITEMS
beqz t2, @@return ;if songs as items is not on then return normally
lw t3, 0x138(a2) ;overlay table entry
lw t3, 0x10(t3) ;overlay address
addiu t1, t3, 0x0ADC ;item actionFunc offset
@@return:
jr ra
sw t1, 0x0180(a2)
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r14
push %r8
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x4477, %r13
nop
cmp $49986, %r14
movb $0x61, (%r13)
nop
nop
nop
nop
sub %r12, %r12
lea addresses_UC_ht+0x7d9c, %r11
add $10115, %r8
movl $0x61626364, (%r11)
nop
nop
n... |
; A330064: Beatty sequence for cosh(x), where 1/x + sech(x) = 1.
; Submitted by Jamie Morken(s3)
; 2,5,7,10,13,15,18,20,23,26,28,31,34,36,39,41,44,47,49,52,55,57,60,62,65,68,70,73,75,78,81,83,86,89,91,94,96,99,102,104,107,110,112,115,117,120,123,125,128,130,133,136,138,141,144,146,149,151,154,157
mov $1,$0
mov $2,$0
m... |
/**
*
* 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 ... |
; Copyright 2015-2021 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 follo... |
; uint zx_bitmask2px(uchar bitmask)
SECTION code_clib
SECTION code_arch
PUBLIC zx_bitmask2px
EXTERN asm_zx_bitmask2px
defc zx_bitmask2px = asm_zx_bitmask2px
|
incbin "sprites.bin"
incbin "logo_sprites.bin" |
; A131030: Period 6: repeat [16, 7, 7, 16, 25, 25].
; 16,7,7,16,25,25,16,7,7,16,25,25,16,7,7,16,25,25,16,7,7,16,25,25,16,7,7,16,25,25,16,7,7,16,25,25,16,7,7,16,25,25,16,7,7,16,25,25,16,7,7,16,25,25,16,7,7,16,25,25,16,7,7,16,25,25,16,7,7,16,25,25,16,7,7,16,25,25,16
add $0,46084
lpb $0,1
add $0,1
mul $0,5
mod $0,6... |
; A143997: Rectangular array by antidiagonals: label each unit square in the first quadrant lattice by its northeast vertex (x,y) and mark squares for which (x,y) is congruent mod 4 to one of the following: (1,4), (2,2), (3,3), (4,1); then R(m,n) is the number of UNmarked squares in the rectangle [0,m]x[0,n].
; Submitt... |
INCLUDE "clib_cfg.asm"
SECTION code_clib
SECTION code_math
PUBLIC l_mulu_32_16x16
; compute: dehl = hl * de
; alters : af, bc, de, hl
IF __CLIB_OPT_IMATH <= 50
EXTERN l0_small_mul_32_32x32
l_mulu_32_16x16:
ld c,l
ld b,h
xor a
ld l,a
ld h,a
exx
push bc
push de... |
%include "include/u7si-all-includes.asm"
%include "../u7-common/patch-eop-canItemAcceptItems.asm"
|
; A189001: a(n) = Sum_{i=0..n} (i+1)*n^i.
; 1,3,17,142,1593,22461,380713,7526268,169826513,4303999495,120987654321,3734729768298,125562274081225,4566262891748481,178581127445062553,7473240118999870456,333189190735802745633,15766036084935301064139,789106509357850283000545,41650618738453700590785990,231209555678670360110... |
.thumb
.org 0x0
@new def getter; bxed to from 19250
push {r4-r5,r14}
mov r4,r0
ldr r1,Get_Equipped_Weapon
mov r14,r1
.short 0xF800
ldr r1,Get_Weapon_Def_Bonus
mov r14,r1
.short 0xF800
mov r5,r0
ldrb r0,[r4,#0x17]
add r5,r0
ldr r0,Is_Capture_Set
mov r14,r0
mov r0,r4
.short 0xF800
cmp r0,#0x0
beq GoBack
lsr ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.