text stringlengths 1 1.05M |
|---|
; Copyright (c) 2004, 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. The full text of the license may be found at ... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006 - 2008, 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 distributi... |
; A237588: Sigma(n) - 2n + 1.
; 0,0,-1,0,-3,1,-5,0,-4,-1,-9,5,-11,-3,-5,0,-15,4,-17,3,-9,-7,-21,13,-18,-9,-13,1,-27,13,-29,0,-17,-13,-21,20,-35,-15,-21,11,-39,13,-41,-3,-11,-19,-45,29,-40,-6,-29,-5,-51,13,-37,9,-33,-25,-57,49,-59,-27,-21,0
mov $1,$0
add $1,1
add $1,$0
cal $0,203 ; a(n) = sigma(n), the sum of the divis... |
; A022531: Nexus numbers (n+1)^15 - n^15.
; Submitted by Jon Maiga
; 1,32767,14316139,1059392917,29443836301,439667406451,4277376525367,30436810578889,170706760005817,794108867905351,3177248169415651,11229773405170717,35778871439504389,104382202543721467,282325794823047151,715027614225987601,1709501546902968817,3884217... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE415_Double_Free__new_delete_int_11.cpp
Label Definition File: CWE415_Double_Free__new_delete.label.xml
Template File: sources-sinks-11.tmpl.cpp
*/
/*
* @description
* CWE: 415 Double Free
* BadSource: Allocate data using new and Deallocae data using delete
... |
//Seventh refinement of Adaptive Exterior Light and Speed Control System
//Adaptive cruise control and distance warning
//from SCS-18 to SCS-26
module CarSystem007AdaptiveCruiseC
import ../../StandardLibrary
import ../CarSystem006/CarSystem006Functions
export *
signature:
// DOMAINS
enum domain RangeRadarState = {R... |
.data
ok: .asciiz "data is ok" # if checkParity return 0
bad: .asciiz "data has been corrupted" # if checkParity return 1
fout: .asciiz "input.txt"
size: .word 1
buffer: .space 100
buffer2: .space 100
#"The quick brown fox jumped over the lazy river." length 47
.text
##############################################... |
; A244842: a(n) = (10^n - 1)*(10^n - 10)/90.
; 0,99,10989,1109889,111098889,11110988889,1111109888889,111111098888889,11111110988888889,1111111109888888889,111111111098888888889,11111111110988888888889,1111111111109888888888889,111111111111098888888888889,11111111111110988888888888889,1111111111111109888888888888889,11... |
BITS 32
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
; LAHF
;TEST_BEGIN_RECORDING
lahf
;TEST_END_RECORDING
|
; ===============================================================
; Jan 2014
; ===============================================================
;
; int fseek(FILE *stream, long offset, int whence)
;
; Move to new position in file indicated by the signed value
; offset.
;
; If whence is:
;
; STDIO_SEEK_SET (0) : offset... |
; uint in_LookupKey(uchar c)
SECTION code_clib
PUBLIC in_LookupKey
PUBLIC _in_LookupKey
EXTERN in_keytranstbl
; enter: L = ascii character code
; exit : L = scan row
; H = mask
; else: L = scan row, H = mask
; bit 7 of L set if SHIFT needs to be pressed
; bit 6 of L set if CTRL... |
// Copyright (c) 2011-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 "bitcoinunits.h"
#include <QStringList>
BitcoinUnits::BitcoinUnits(QObject *parent):
QAbstractListModel(par... |
asl {m1}
rol {m1}+1
asl {m1}
rol {m1}+1
|
//
// Copyright (C) 2003-2021 greg Landrum and other RDKit contributors
//
// @@ All Rights Reserved @@
// This file is part of the RDKit.
// The contents are covered by the terms of the BSD license
// which is included in the file license.txt, found at the root
// of the RDKit source tree.
//
#include <RDBoost/p... |
TSS_ADDR equ 0x00007100
PAGE_SIZE equ 0x00001000
SLT_K_CODE equ 0x08 ; 内核代码段选择子
[bits 32]
EXTERN intr_exit
GLOBAL switch_to
;void swich_to( pcb_t *from, pcb_t *to )
switch_to :
push esi
push edi
push ebx
push ebp
mov eax, [esp+20] ; from -> eax
;cmp eax, 0 ... |
#include "MyGUI_OpenGLESTexture.h"
#include "MyGUI_OpenGLESRenderManager.h"
#include "MyGUI_OpenGLESDiagnostic.h"
#include "MyGUI_OpenGLESPlatform.h"
#include "MyGUI_OpenGLESRTTexture.h"
#include <GLES3/gl3.h>
//#include <GLES3/gl2ext.h>
#include "platform.h"
namespace MyGUI
{
OpenGLESTexture::OpenGLESTexture(const... |
; A083099: a(n) = 2*a(n-1) + 6*a(n-2), a(0) = 0, a(1) = 1.
; 0,1,2,10,32,124,440,1624,5888,21520,78368,285856,1041920,3798976,13849472,50492800,184082432,671121664,2446737920,8920205824,32520839168,118562913280,432250861568,1575879202816,5745263575040,20945802366976,76363186184192,278401186570240,1014981490245632,37003... |
#include <torch/script.h>
#include <gtest/gtest.h>
#include <test/cpp/api/support.h>
using namespace torch::autograd;
using namespace torch::test;
namespace {
torch::Tensor functional_op(torch::Tensor& x) {
return x * x;
}
void inplace_op(torch::Tensor& x) {
x.mul_(1);
}
torch::Tensor view_op(torc... |
#include "p16f873.inc"
c1 equ 0x20 ; for delays
c2 equ 0x21 ; for delays
LCDTemp equ 0x22 ; Yo keep LCD data tempararily
LCDPORT equ PORTB
LCDTRIS equ TRISB
button_pressed equ 0x25 ; to store the pressed button
KEYPORT equ PORTC
KEYTRIS equ TRISC
e1 equ 0x40
VALUE equ 0x30... |
; A011548: Decimal expansion of sqrt(2) rounded to n places.
; Submitted by Christian Krause
; 1,14,141,1414,14142,141421,1414214,14142136,141421356,1414213562,14142135624,141421356237,1414213562373,14142135623731,141421356237310,1414213562373095,14142135623730950,141421356237309505,1414213562373095049,1414213562373095... |
.include "io.inc65"
.include "macros_65C02.inc65"
.zeropage
.smart on
.autoimport on
.case on
.debuginfo off
.importzp sp, sreg, regsave, regbank
.importzp tmp1, tmp2, tmp3, tmp4, ptr1, ptr2, ptr3, ptr4
.macpack longbranch
.export _ym_write_data
.export _ym_write_reg
.export _ym_write_data_A1
.export _ym_write_re... |
; void heap_free_unlocked(void *heap, void *p)
SECTION code_alloc_malloc
PUBLIC _heap_free_unlocked
EXTERN asm_heap_free_unlocked
_heap_free_unlocked:
pop af
pop de
pop hl
push hl
push de
push af
jp asm_heap_free_unlocked
|
// Copyright 2014 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 "ipc/message_filter.h"
#include "base/memory/ref_counted.h"
#include "ipc/ipc_channel.h"
namespace IPC {
MessageFilter::MessageFilter() {}
vo... |
; Sameboy CGB bootstrap ROM
; Todo: use friendly names for HW registers instead of magic numbers
SECTION "BootCode", ROM0[$0]
Start:
; Init stack pointer
ld sp, $fffe
; Clear memory VRAM
ld hl, $8000
.clearVRAMLoop
ldi [hl], a
bit 5, h
jr z, .clearVRAMLoop
; Init Audio
ld a, $80
ldh [$26]... |
; A092436: a(n) = 1/2 + (-1)^n*(1/2 - A010060(floor(n/2))).
; 0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,0,1
lpb $0,1
sub $0,1
add $1,$0
div $0,2
lpe
... |
.code
EXTERN GetSyscallAddress: PROC
EXTERN SW2_GetSyscallNumber: PROC
SyscallNotFound PROC
mov eax, 0C0000225h
ret
SyscallNotFound ENDP
NtOpenProcess PROC
push rcx
push rdx
push r8
push r9
sub rsp, 028h
call GetSyscallAddress
add rsp, 028h
push rax
sub rsp, 028h
mov ecx, 0CD9B2A0Fh
call SW2_GetSyscallN... |
; A263919: Triangle read by rows giving successive states of cellular automaton generated by "Rule 163" initiated with a single ON (black) cell.
; 1,1,0,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,0,1,0,1... |
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
80
.text@150
lbegin:
ld b, 90
call lwaitly_b
ld hl, fe00
ld(hl), 00
ld c, 41
ld b, 03
lbegin_waitm3:
ldff a, (c)
and a, b
cmp a, b
jrnz lbegin_waitm3
ld a, 20
ldff(c), a
xor a, a
ldff(0f), a
ld a, 02
ldff(ff), a
ei
.text@1000
lstatin... |
; A000204: Lucas numbers (beginning with 1): L(n) = L(n-1) + L(n-2) with L(1) = 1, L(2) = 3.
; 1,3,4,7,11,18,29,47,76,123,199,322,521,843,1364,2207,3571,5778,9349,15127,24476,39603,64079,103682,167761,271443,439204,710647,1149851,1860498,3010349,4870847,7881196,12752043,20633239,33385282,54018521,87403803,141422324,228... |
;
; Fast background save
;
; PC6001 version
;
;
; $Id: bksave.asm,v 1.4 2016/07/02 09:01:36 dom Exp $
;
SECTION code_clib
PUBLIC bksave
PUBLIC _bksave
EXTERN pixeladdress
.bksave
._bksave
push ix ;save caller
ld hl,4
add hl,sp
ld e,(hl)
inc hl
... |
;HEX to BCD
.model small
.data
m1 db 10, 13, "Equivalent BCD no. is: $"
no dw 0ffffh
.code
Disp macro xx
mov ah, 09
lea dx, xx
int 21h
endm
.startup
Disp m1
mov cl, 0
mov ax, no
mov bx, 0ah
back:
mov dx, 0... |
;; xOS Kernel API Reference
;; As of API version 1
XOS_WM_CREATE_WINDOW = 0x0000
XOS_YIELD = 0x0001
XOS_WM_PIXEL_OFFSET = 0x0002
XOS_WM_REDRAW = 0x0003
XOS_WM_READ_EVENT = 0x0004
XOS_WM_READ_MOUSE = 0x0005
XOS_WM_GET_WINDOW = 0x0006
XOS_WM_DRAW_TEXT = 0x0007
XOS_WM_CLEAR = 0x0008
XOS_MALLOC = 0x0009
X... |
;******************************************************************************
;* AAC Spectral Band Replication decoding functions
;* Copyright (C) 2012 Christophe Gisquet <christophe.gisquet@gmail.com>
;*
;* This file is part of FFmpeg.
;*
;* FFmpeg is free software; you can redistribute it and/or
;* modify it under ... |
;
;==================================================================================================
; EASY Z80 STANDARD CONFIGURATION
;==================================================================================================
;
; THE COMPLETE SET OF DEFAULT CONFIGURATION SETTINGS FOR THIS PLATFORM ARE ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r14
push %r15
push %r8
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x196d0, %r10
clflush (%r10)
nop
and $45317, %rdi
movb (%r10), %r15b
nop
nop
sub %r14, %r14
lea addresses_D_ht+0x174d0, %rsi
nop
nop
nop
dec %r13
movl $0x61626364, (%rsi)
nop
no... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: GeoDex/Database
FILE: dbRecord.asm
AUTHOR: Ted H. Kim
ROUTINES:
Name Description
---- -----------
BinarySearch Performs binary search on... |
; A215005: a(n) = a(n-2) + a(n-1) + floor(n/2) + 1 for n > 1 and a(0)=0, a(1)=1.
; 0,1,3,6,12,21,37,62,104,171,281,458,746,1211,1965,3184,5158,8351,13519,21880,35410,57301,92723,150036,242772,392821,635607,1028442,1664064,2692521,4356601,7049138,11405756,18454911,29860685,48315614,78176318,126491951,204668289,331160260... |
.global s_prepare_buffers
s_prepare_buffers:
push %r15
push %r8
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x13eef, %rsi
lea addresses_WT_ht+0xd9df, %rdi
nop
nop
nop
nop
nop
cmp %rdx, %rdx
mov $9, %rcx
rep movsl
nop
and %r8, %r8
lea addresses_normal_ht+0x10e6f, %rax
xor $61451, ... |
; A320565: a(n) = ((1 + sqrt(4*n^2 + 1))^n - (1 - sqrt(4*n^2 + 1))^n)/(2^n * sqrt(4*n^2 + 1)).
; Submitted by Jon Maiga
; 0,1,1,10,33,701,4033,132301,1089921,48460114,520210801,29215223489,386721507745,26250621340841,413242502386337,32899021525375426,600383148312628737,54846079150716441949,1138470675779123657425,117372... |
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 4.0.3 #11868 (Linux)
;--------------------------------------------------------
; Processed by Z88DK
;--------------------------------------------------------
EXTERN __divschar
EXTERN __divsc... |
///FunctionCalls\SimpleFunction\SimpleFunction.asm ///
(SimpleFunction.test)
@0
D=A
@SP
A=M
M=D
@SP
M=M+1
@0
D=A
@SP
A=M
M=D
@SP
M=M+1
@0
D=A
@LCL
A=M+D
D=M
@SP
A=M
M=D
@SP
M=M+1
@1
D=A
@LCL
A=M+D
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
AM=M-1
D=M
@SP
A=M-1
M=M+D
@SP
A=M-1
M=!M
@0
... |
; ensures we jump into kmain
[bits 32] ; this code runs in PM
[extern kmain] ; reference for the linker (main is defined elsewhere)
call kmain
jmp $ ; this should not run. Just in case, hang.
|
SET A, 0
SET [xmax], [xsize]
SUB [xmax], 2
SET [ymax], [ysize]
SUB [ymax], 2
JSR clearScreen
:main
IFE A, 0x0300
JSR update
ADD A, 1
SET PC, main
:update
SET B, ballData
SET C, 0
:ballLoop
JSR moveBall
ADD B, [ballSize]
ADD C, 1
IFG [numBalls], C
SET PC, ballLoop
SET PC, POP
:mov... |
_cat: file format elf32-i386
Disassembly of section .text:
00000000 <cat>:
char buf[512];
void
cat(int fd)
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 ec 28 sub $0x28,%esp
int n;
while((n = read(fd, buf, sizeof(buf))) > 0)
6: eb 1b ... |
; A063229: Dimension of the space of weight 2n cuspidal newforms for Gamma_0( 69 ).
; 3,12,18,26,32,42,46,56,62,70,76,86,90,100,106,114,120,130,134,144,150,158,164,174,178,188,194,202,208,218,222,232,238,246,252,262,266,276,282,290,296,306,310,320,326,334,340,350,354,364
mov $2,$0
mov $4,$0
add $0,1
mul $0,2
div $0,3
... |
;; Copyright (C) 2016 Ben Kurtovic <ben.kurtovic@gmail.com>
;; Released under the terms of the MIT License. See LICENSE for details.
; ----- CRATER UNIT TESTING SUITE ---------------------------------------------
; 03-headers2.asm
; Header/directive test using non-default values
.rom_size "64 KB"
.rom_header $7FF0
.... |
#include "DummyObject.h"
TDummyObject::TDummyObject(std::string name) : TObjectOfObservation(name) {
properties.insert(
{"Property1", new TProperties({{"Property1", 2}}, false, "Property1")});
properties.insert(
{"Property2", new TProperties({{"Property2", 5}}, true, "Property2"... |
/*
* Copyright (c) 2021, Linus Groh <linusg@serenityos.org>
* Copyright (c) 2021, David Tuin <davidot@serenityos.org>
*
* SPDX-License-Identifier: MIT
*/
#include "GlobalObject.h"
#include <AK/Format.h>
#include <AK/JsonObject.h>
#include <AK/Result.h>
#include <AK/String.h>
#include <AK/Vector.h>
#include <LibCo... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: splineAttrs.asm
AUTHOR: Chris Boyke
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ---- -... |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "networkrequest.h"
#include "captiveportal/captiveportal.h"
#include "constants.h"
#include "hawkauth.h"
... |
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ident "$Id$"
/*======
This file is part of PerconaFT.
Copyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved.
PerconaFT is free software: you can redistribute it and/or modif... |
dnl PowerPC-64 mpn_and_n, mpn_andn_n, mpn_nand_n, mpn_ior_n, mpn_iorn_n,
dnl mpn_nior_n, mpn_xor_n, mpn_xnor_n -- mpn bitwise logical operations.
dnl Copyright 2003, 2004, 2005 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl The GNU MP Library is free software; you can redistribu... |
<%
from pwnlib.shellcraft.powerpc.linux import syscall
%>
<%page args="old, new"/>
<%docstring>
Invokes the syscall rename. See 'man 2 rename' for more information.
Arguments:
old(char): old
new(char): new
</%docstring>
${syscall('SYS_rename', old, new)}
|
// Copyright (c) 2011-2015 The Bitcoin Core developers
// Copyright (c) 2014-2019 The Dash Core developers
// Copyright (c) 2019 The Umbru Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H... |
; A158249: 256n^2 - 2n.
; 254,1020,2298,4088,6390,9204,12530,16368,20718,25580,30954,36840,43238,50148,57570,65504,73950,82908,92378,102360,112854,123860,135378,147408,159950,173004,186570,200648,215238,230340,245954,262080,278718,295868,313530,331704,350390,369588,389298,409520,430254,451500,473258,495528,518310,54160... |
;
; Old School Computer Architecture - interfacing FLOS
; Stefano Bodrato, 2011
;
; $Id: get_pen.asm,v 1.2 2012/03/08 07:16:46 stefano Exp $
;
INCLUDE "flos.def"
XLIB get_pen
get_pen:
call kjt_get_pen
ld h,0
ld l,a
ret
|
; A290061: a(n) = (1/24)*(n + 3)*(3*n^3 + 5*n^2 - 6*n + 16).
; 3,10,31,77,162,303,520,836,1277,1872,2653,3655,4916,6477,8382,10678,13415,16646,20427,24817,29878,35675,42276,49752,58177,67628,78185,89931,102952,117337,133178,150570,169611,190402,213047,237653,264330,293191,324352,357932,394053,432840,474421,518927,56649... |
; A281362: a(0) = 1, a(1) = 2; for n>1, a(n) = a(n-1) + a(n-2) + floor(n/2).
; 1,2,4,7,13,22,38,63,105,172,282,459,747,1212,1966,3185,5159,8352,13520,21881,35411,57302,92724,150037,242773,392822,635608,1028443,1664065,2692522,4356602,7049139,11405757,18454912,29860686,48315615,78176319,126491952,204668290,331160261,535... |
; A106505: Ordered and uniqued length of side common to the two angles, one being the double of the other, of a primitive integer-sided triangle.
; 5,7,9,11,13,15,16,17,19,21,23,24,25,27,29,31,32,33,35,37,39,40,41,43,45,47,48,49,51,53,55,56,57,59,61,63,64,65,67,69,71,72,73,75,77,79,80,81,83,85,87,88,89,91,93,95,96,97,9... |
; A188295: [nr]-[nr-r], where r=1/sqrt(2), [ ]=floor.
; 0,1,1,0,1,1,0,1,1,1,0,1,1,0,1,1,1,0,1,1,0,1,1,0,1,1,1,0,1,1,0,1,1,1,0,1,1,0,1,1,0,1,1,1,0,1,1,0,1,1,1,0,1,1,0,1,1,1,0,1,1,0,1,1,0,1,1,1,0,1,1,0,1,1,1,0,1,1,0,1,1,0,1,1,1,0,1,1,0,1,1,1,0,1,1,0,1,1,1,0,1,1,0,1,1,0,1,1,1,0,1,1,0,1,1,1,0,1,1,0,1,1,0
mov $22,$0
mov $2... |
global _start, _kmain, __morestack
extern kmain, start_ctors, end_ctors, start_dtors, end_dtors
%define MULTIBOOT_HEADER_MAGIC 0x1BADB002
%define MULTIBOOT_HEADER_FLAGS 0x00000003
%define CHECKSUM -(MULTIBOOT_HEADER_MAGIC + MULTIBOOT_HEADER_FLAGS)
;-- Entry point
_start:
jmp start
__morestack:
;-- Multiboo... |
/*
Copyright (c) 2003, 2014 Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed in... |
; DV3 PC Compatible Floppy Disk Write Sector 1993 Tony Tebby
section dv3
xdef fd_wphys ; write sector (physical layer)
xref fd_cmd_rw
xref fd_stat
xref fd_fint
xref.l fdc_stat
xref.l fdc_data
xref.s fdc.intl
include 'dev8_keys_err'
include 'dev8_dv3_keys'
include 'dev8_dv3_fd_keys'
include 'dev... |
;
; Spectrum C Library
;
; ANSI Video handling for ZX Spectrum
;
; BEL - chr(7) Beep it out
;
;
; Stefano Bodrato - Apr. 2000
;
;
; $Id: f_ansi_bel.asm,v 1.3 2016-06-12 16:06:43 dom Exp $
;
SECTION code_clib
PUBLIC ansi_BEL
; A fine double frequency beep for BEL
.ansi_BEL
ld a,(23624... |
; A021560: Decimal expansion of 1/556.
; Submitted by Christian Krause
; 0,0,1,7,9,8,5,6,1,1,5,1,0,7,9,1,3,6,6,9,0,6,4,7,4,8,2,0,1,4,3,8,8,4,8,9,2,0,8,6,3,3,0,9,3,5,2,5,1,7,9,8,5,6,1,1,5,1,0,7,9,1,3,6,6,9,0,6,4,7,4,8,2,0,1,4,3,8,8,4,8,9,2,0,8,6,3,3,0,9,3,5,2,5,1,7,9,8,5
seq $0,83811 ; Numbers n such that 2n+1 is the d... |
//===- lli.cpp - LLVM Interpreter / Dynamic compiler ----------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
; A133386: Number of forests of labeled rooted trees with n nodes, containing exactly 2 trees of height one, all others having height zero.
; Submitted by Jon Maiga
; 0,0,0,0,12,120,750,3780,16856,69552,272250,1026300,3762132,13498056,47615750,165683700,570024240,1942538592,6566094450,22038141420,73510278380,2438547073... |
/*
Copyright (C) 2011 Joseph A. Adams (joeyadams3.14159@gmail.com)
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 ... |
; A021412: Decimal expansion of 1/408.
; 0,0,2,4,5,0,9,8,0,3,9,2,1,5,6,8,6,2,7,4,5,0,9,8,0,3,9,2,1,5,6,8,6,2,7,4,5,0,9,8,0,3,9,2,1,5,6,8,6,2,7,4,5,0,9,8,0,3,9,2,1,5,6,8,6,2,7,4,5,0,9,8,0,3,9,2,1,5,6,8,6,2,7,4,5,0,9,8,0,3,9,2,1,5,6,8,6,2,7
add $0,1
mov $1,10
pow $1,$0
mul $1,7
div $1,2856
mod $1,10
mov $0,$1
|
bin/app.elf: file format elf32-littlearm
Disassembly of section .text:
c0d00000 <main>:
// command has been processed, DO NOT reset the current APDU transport
return 1;
}
/** boot up the app and intialize it */
__attribute__((section(".boot"))) int main(void) {
c0d00000: b5b0 push {r4, r5, r7, lr... |
; A083337: a(n) = 2*a(n-1) + 2*a(n-2); a(0)=0, a(1)=3.
; 0,3,6,18,48,132,360,984,2688,7344,20064,54816,149760,409152,1117824,3053952,8343552,22795008,62277120,170144256,464842752,1269974016,3469633536,9479215104,25897697280,70753824768,193303044096,528113737728,1442833563648,3941894602752,10769456332800,29422701871104,... |
;===============================================================================
; Copyright 2015-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") co... |
extern kmain
[bits 32]
_start:
call kmain |
; @file irq_stubs.asm
; @author Konstantin Tcholokachvili
; @date 2014, 2016
;
; Interrupt Requests (IRQs)
section .text
; The address of the table of handlers (defined in irq.c)
[extern x86_irq_handler_array]
; The address of the table of wrappers (defined below, and shared with irq.c)
[global x86_irq_wrapper_array... |
%define BPM 100
%include "../src/sointu.inc"
BEGIN_PATTERNS
PATTERN 64, HLD, HLD, HLD, HLD, HLD, HLD, HLD, 0, 0, 0, 0, 0, 0, 0, 0
END_PATTERNS
BEGIN_TRACKS
TRACK VOICES(1),0
END_TRACKS
BEGIN_PATCH
BEGIN_INSTRUMENT VOICES(1) ; Instrument0
SU_LOADVAL MONO,VALUE(0)
SU_OUTAUX MONO,OUTGAI... |
; A250661: Number of (7+1) X (n+1) 0..1 arrays with nondecreasing x(i,j)-x(i,j-1) in the i direction and nondecreasing min(x(i,j),x(i-1,j)) in the j direction.
; 639,1150,1789,2556,3451,4474,5625,6904,8311,9846,11509,13300,15219,17266,19441,21744,24175,26734,29421,32236,35179,38250,41449,44776,48231,51814,55525,59364,6... |
; A017193: a(n) = (9*n + 2)^9.
; 512,2357947691,512000000000,14507145975869,165216101262848,1119130473102767,5416169448144896,20711912837890625,66540410775079424,186940255267540403,472161363286556672,1093685272684360901,2357947691000000000,4785448563124474679,9223372036854775808,17001416405572203977,3014225239463317145... |
;
;
; ZX Maths Routines
;
; 8/12/02 - Stefano Bodrato
;
; $Id: pow.asm,v 1.1 2003/03/24 09:17:40 stefano Exp $
;
;double pow(double x,double y)
;y is in the FA
;x is on the stack +8 (+2=y)
;
IF FORzx
INCLUDE "#zxfp.def"
ELSE
INCLUDE "#81fp.def"
ENDIF
XLIB pow
... |
; A038154: a(n) = n! * Sum_{k=0..n-2} 1/k!.
; 0,0,2,12,60,320,1950,13692,109592,986400,9864090,108505100,1302061332,16926797472,236975164790,3554627472060,56874039553200,966858672404672,17403456103284402,330665665962403980,6613313319248079980,138879579704209680000
lpb $0
sub $0,1
add $1,$0
add $2,$0
mul $2,$0
... |
/*
Copyright 2013-present Barefoot Networks, 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 agreed to in w... |
; A017034: a(n) = (7*n + 4)^6.
; 4096,1771561,34012224,244140625,1073741824,3518743761,9474296896,22164361129,46656000000,90458382169,164206490176,282429536481,464404086784,735091890625,1126162419264,1677100110841,2436396322816,3462825991689,4826809000000,6611856250609,8916100448256,11853911588401,15557597153344,201791... |
; Spectravideo SVI CRT0 stub
;
; Stefano Bodrato - Apr. 2001
;
; $Id: svi_crt0.asm,v 1.6 2007/06/27 20:49:28 dom Exp $
;
MODULE svi_crt0
;
; Initially include the zcc_opt.def file to find out lots of lovely
; information about what we should do..
;
INCLUDE "zcc_opt... |
; A206608: Fibonacci sequence beginning 13, 10.
; 13,10,23,33,56,89,145,234,379,613,992,1605,2597,4202,6799,11001,17800,28801,46601,75402,122003,197405,319408,516813,836221,1353034,2189255,3542289,5731544,9273833,15005377,24279210,39284587,63563797,102848384,166412181,269260565,435672746,704933311,1140606057,1845539368... |
; DV3 Standard Hard Disk Control Procedures V1.03 1999 Tony Tebby
; win_chk xref'd V1.05 (wl) march 2020
; Q40 WIN_DRIVE may use name for QXL.WIN file V1.04 W. Lenerz 2017 Nov 21
section exten
xdef hd_thing
xdef hd_tname
xdef hdt_doact
xdef hd_byte
xref thp_ostr
xref... |
; $Id: fabsf.asm 69111 2017-10-17 14:26:02Z vboxsync $
;; @file
; IPRT - No-CRT fabsf - AMD64 & X86.
;
;
; Copyright (C) 2006-2017 Oracle Corporation
;
; This file is part of VirtualBox Open Source Edition (OSE), as
; available from http://www.virtualbox.org. This file is free software;
; you can redistribute it and/o... |
#pragma once
#include <algorithm>
#include <cstdint>
#include <cstring>
// Based on https://github.com/vog/sha1
/*
Original authors:
Steve Reid (Original C Code)
Bruce Guenter (Small changes to fit into bglibs)
Volker Grabsch (Translation to simpler C++ Code)
Eugene Hopkinson (Safety improvements)
Vincent Falco (beast... |
/*
* Copyright (C) 2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/compiler_interface/compiler_options/compiler_options.h"
#include "opencl/test/unit_test/offline_compiler/mock/mock_offline_compiler.h"
#include "opencl/test/unit_test/offline_compiler/offline_compiler_tests.h"... |
[BITS 32]
[global _start]
[ORG 0x100000]
;If using '-f bin' we need to specify the
;origin point for our code with ORG directive
;multiboot loaders load us at physical
;address 0x100000
MULTIBOOT_AOUT_KLUDGE equ 1 << 16
;FLAGS[16] indicates to GRUB we are not
;an ELF executable and the fields
;header address, loa... |
; Don't even think of reading this code
; It was automatically generated by md5-586.pl
; Which is a perl program used to generate the x86 assember for
; any of elf, a.out, BSDI, Win32, gaswin (for GNU as on Win32) or Solaris
; eric <eay@cryptsoft.com>
;
TITLE md5-586.asm
.386
.model FLAT
_TEXT ... |
/* Copyright (c) 2010-2018, Delft University of Technology
* All rigths reserved
*
* This file is part of the Tudat. Redistribution and use in source and
* binary forms, with or without modification, are permitted exclusively
* under the terms of the Modified BSD license. You should have received
*... |
; A053133: One half of binomial coefficients binomial(2*n-8,9).
; 5,110,1001,5720,24310,83980,248710,653752,1562275,3453450,7153575,14024400,26225628,47071640,81505820,136719440,222945905,354465254,550858165,838553320,1252716850,1839537700,2658968130,3787984200,5324436975,7391571330,10143295635,13770292256,18507065720,... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r8
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x15c87, %r10
inc %r8
movb (%r10), %r11b
nop
sub %rsi, %rsi
lea addresses_normal_ht+0x179d7, %rbp
sub %r8, %r8
mov (%rbp), %edi
nop
nop
add $61209, %rbp
lea addresses_WT_ht+0x1... |
; A168420: a(n) = 4 + 10*floor(n/2).
; 4,14,14,24,24,34,34,44,44,54,54,64,64,74,74,84,84,94,94,104,104,114,114,124,124,134,134,144,144,154,154,164,164,174,174,184,184,194,194,204,204,214,214,224,224,234,234,244,244,254,254,264,264,274,274,284,284,294,294,304,304,314,314,324,324,334,334,344,344,354,354,364,364,374,374,3... |
// 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... |
SPDPointsViewerColourTable* createColourTabBGRY()
{
float rgbVals[256][3] = {
{0,0,0},
{0,0,2},
{0,0,4},
{0,0,6},
{0,0,8},
{0,0,10},
{0,0,12},
{0,0,14},
{0,0,16},
{0,0,18},
{0,0,20},
{0,0,22},
{0,0,25},
{... |
// Hash_Map_With_Allocator_T.cpp
// Hash_Map_With_Allocator_T.cpp,v 4.1 1999/06/26 19:54:04 marina Exp
#ifndef ACE_HASH_MAP_WITH_ALLOCATOR_T_CPP
#define ACE_HASH_MAP_WITH_ALLOCATOR_T_CPP
#include "ace/Hash_Map_With_Allocator_T.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA... |
;/*!
; @file
;
; @ingroup fapi
;
; @brief DosQPathInfo DOS wrapper
;
; (c) osFree Project 2022, <http://www.osFree.org>
; for licence see licence.txt in root directory, or project website
;
; This is Family API implementation for DOS, used with BIND tools
; to link required API
;
; @author Yuri Prokushe... |
copyright zengfr site:http://github.com/zengfr/romhack
0029B2 move.w D1, ($6,A4)
0029B6 move.w D1, ($8,A4)
002ACE cmp.w ($8,A4), D0 [base+28E, base+2AE, base+2CE]
002B84 cmp.w ($8,A4), D0 [base+28E, base+2AE, base+2CE]
002B9E move.w (A0)+, D1 [base+28E, base+2AE, base+2CE]
002DD4 move.w ($6,A4), D0
00... |
.386
.model flat,C
PUBLIC dosexterr
include dpmi32.inc
EXTRN __WDOSXRmRegs:RmCallStruc
.code
dosexterr proc near
push ebx
push edi
mov __WDOSXRmRegs._ah,59h
mov __WDOSXRmRegs._bx,0
sub ecx,ecx
lea edi,__WDOSXRmRegs
mov bl,21h
mov eax,300h
int 31h
pop edi
pop ebx
mov edx,[esp+4]
mov eax,__WDOSXRmRe... |
%include 'src/include/functions.asm'
SECTION .data
listening db 'listening on port 9001', 0h
response db 'HTTP/1.1 200 OK', 0Dh, 0Ah, 'Content-Type: text/html', 0Dh, 0Ah, 'Content-Length: 16', 0Dh, 0Ah, 0Dh, 0Ah, 'Hello World :)', 0Dh, 0Ah, 0h
SECTION .bss
buffer resb 255 ; place to store headers
SECTION... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.