text stringlengths 1 1.05M |
|---|
// 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 "bindings/core/v8/V8DOMActivityLogger.h"
#include "bindings/core/v8/V8Binding.h"
#include "platform/weborigin/KURL.h"
#include "wtf/HashMap.h"
#... |
.global s_prepare_buffers
s_prepare_buffers:
push %r9
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0xf699, %rsi
lea addresses_WC_ht+0x3299, %rdi
nop
nop
add $58285, %rdx
mov $86, %rcx
rep movsb
sub $8236, %rbp
lea addresses_WT_ht+0x19699, %r9
nop
nop
nop
nop
nop
inc %rbx
vmo... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
; Module Name:
;
; SetJump.Asm
;
; Abstract:
;
; Implementation of SetJump() on x64.
;
;-----------... |
; A130755: Binomial transform of periodic sequence (3, 1, 2).
; 3,4,7,15,32,65,129,256,511,1023,2048,4097,8193,16384,32767,65535,131072,262145,524289,1048576,2097151,4194303,8388608,16777217,33554433,67108864,134217727,268435455,536870912,1073741825,2147483649,4294967296,8589934591,17179869183,34359738368,68719476737,1... |
#include "IBlock.h"
namespace CryptoNote {
IBlock::~IBlock() {
}
}
|
/// @file
/// C64 DTV version 2 Registers and Constants
///
/// Sources
/// (J) https://www.c64-wiki.com/wiki/C64DTV_Programming_Guide
/// (H) http://dtvhacking.cbm8bit.com/dtv_wiki/images/d/d9/Dtv_registers_full.txt
// Commodore 64 PRG executable file
.file [name="c64dtv-blittermin.prg", type="prg", segments="Progra... |
// Copyright (C) 2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#include <bitset>
#include <cassert>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <stdexcept>
#include <utility>
#include "modules/timer/include/timer.h"
#include "hebench/api_bridge/api.h"
#inclu... |
; A021046: Decimal expansion of 1/42.
; 0,2,3,8,0,9,5,2,3,8,0,9,5,2,3,8,0,9,5,2,3,8,0,9,5,2,3,8,0,9,5,2,3,8,0,9,5,2,3,8,0,9,5,2,3,8,0,9,5,2,3,8,0,9,5,2,3,8,0,9,5,2,3,8,0,9,5,2,3,8,0,9,5,2,3,8,0,9,5,2,3,8,0,9,5,2,3,8,0,9,5,2,3,8,0,9,5,2,3
add $0,2
mov $1,10
pow $1,$0
mul $1,4
div $1,1680
mod $1,10
mov $0,$1
|
; A096182: Index of first occurrence of n in A095773.
; 1,2,4,6,8,10,13,16,19,22,26,30,34,38,42,46,51,56,61,66,71,76,82,88,94,100,106,112,118,124,130,136,142,148,155,162,169,176,183,190,197,204,211,218,225,232,240,248,256,264,272,280,288,296,304,312,320,328,336
mov $7,$0
mov $9,$0
add $9,1
lpb $9
clr $0,7
mov $0,$... |
/*************************************************************************/
/* variant.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
;
; jidctint.asm - accurate integer IDCT (MMX)
;
; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
; Copyright (C) 2016, 2020, D. R. Commander.
;
; Based on the x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYASAKA Masaru.
; For conditions of distribution and use, see copyright notic... |
CODE SEGMENT
ASSUME CS:CODE,DS:CODE
ORG 100H
MAIN: MOV AX,CS
MOV DS,AX
MOV SI,0
MOV DI,0
MOV BX,0
JMP L2
L1: INC SI
L2: MOV AL,A1[SI]
MOV CL,A2[DI]
MUL CL
ADD DL,AL
ADD DI,N
CMP DI,9; number of total elements of input matrix
JL L1
MOV B1[BX],DL
MOV DL,0
... |
#include <string>
#include "common/runtime/runtime_impl.h"
#include "common/runtime/uuid_util.h"
#include "test/test_common/test_base.h"
namespace Envoy {
TEST(UUIDUtilsTest, mod) {
uint64_t result;
EXPECT_TRUE(UuidUtils::uuidModBy("00000000-0000-0000-0000-000000000000", result, 100));
EXPECT_EQ(0, result);
... |
#include<iostream>
using namespace std;
int main(){
int
data[5] = {1,2,5,8,10},
total = 0;
for (int count : data) {
cout << data[count] << endl;
}
cout << total << endl;
}
|
; A141413: Inverse binomial transform of A140962.
; 0,-1,1,-3,9,-27,81,-243,729,-2187,6561,-19683,59049,-177147,531441,-1594323,4782969,-14348907,43046721,-129140163,387420489,-1162261467,3486784401,-10460353203,31381059609,-94143178827,282429536481,-847288609443,2541865828329,-7625597484987,22876792454961,-68630377364... |
; A010513: Decimal expansion of square root of 60.
; 7,7,4,5,9,6,6,6,9,2,4,1,4,8,3,3,7,7,0,3,5,8,5,3,0,7,9,9,5,6,4,7,9,9,2,2,1,6,6,5,8,4,3,4,1,0,5,8,3,1,8,1,6,5,3,1,7,5,1,4,7,5,3,2,2,2,6,9,6,6,1,8,3,8,7,3,9,5,8,0,6,7,0,3,8,5,7,4,7,5,3,7,1,7,3,4,7,0,3,5
mov $1,1
mov $2,1
mov $3,$0
add $3,8
mov $4,$0
add $4,3
mul $4,2
m... |
; A052295: a(n) = (n*(n+1)/2)!.
; Submitted by Jon Maiga
; 1,1,6,720,3628800,1307674368000,51090942171709440000,304888344611713860501504000000,371993326789901217467999448150835200000000,119622220865480194561963161495657715064383733760000000000,12696403353658275925965100847566516959580321051449436762275840000000000000
... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1993 -- All Rights Reserved
PROJECT:
MODULE:
FILE: prefcompSerialValue.asm
AUTHOR: Adam de Boor, Jan 19, 1993
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date ... |
#include <json.hpp>
#include "Version.h"
#include "VersionEndPoint.h"
using json = nlohmann::json;
API::VersionEndPoint::VersionEndPoint (const std::string& inPath) :
HTTP::EndPoint (inPath)
{
}
API::VersionEndPoint::~VersionEndPoint () = default;
void API::VersionEndPoint::Get (const HTTP::Request& inReques... |
//===- ELFAttributeValue.cpp ----------------------------------------------===//
//
// The MCLinker Project
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------------------... |
; Accept digit (from 1-9), display serires from num1 to num2
.MODEL SMALL
.STACK 100
.DATA
p1 DB "Enter 1st digit: $"
p2 DB "Enter 2nd digit: $"
NL DB 13, 10, "$"
d1 DB ?
d2 DB ?
CHAR DB ?
.CODE
MAIN PROC
MOV AX,@DATA
MOV DS,AX
MOV AH, 09H
LEA DX, p1
INT 21H
MOV AH,... |
; A292246: Base-2 expansion of a(n) encodes the steps where numbers of the form 3k+2 are encountered when map x -> A253889(x) is iterated down to 1, starting from x=n.
; 0,1,0,2,3,0,4,1,2,14,5,12,6,7,8,2,1,0,0,9,26,22,3,20,6,5,16,10,29,10,4,11,30,2,25,60,56,13,28,54,15,48,24,17,44,8,5,12,38,3,30,26,1,24,20,1,18,6,19,62... |
; A235963: n appears (n+1)/(1 + (n mod 2)) times.
; 0,1,2,2,2,3,3,4,4,4,4,4,5,5,5,6,6,6,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,8,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13
mov $2,$0
mul $2,2
lpb $2,1
add $1,1
lpb $1,1
add $3,$0
mov $1,$3
... |
include \masm32\include\masm32rt.inc
.data
Node STRUCT
value DWORD ? ; value of the node
next DWORD ? ; pointer to the next node
Node ENDS
Queue STRUCT
head DWORD ? ; first out (Node*)
tail DWORD ? ; last in (Node*)
count DWORD ? ; guess (unsigned int)
Queue ENDS
Stack STRUCT
pointer DWORD ? ; Node*
count D... |
; A315519: Coordination sequence Gal.6.332.5 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,11,17,22,27,33,38,43,49,54,60,66,71,77,82,87,93,98,103,109,114,120,126,131,137,142,147,153,158,163,169,174,180,186,191,197,202,207,213,2... |
LKS_Fade_in:
lda LKS_FADE +_fdphase
cmp #0
beq +
rtl
+:
lda LKS_FADE +_fdbrg
sta INIDISP
ldy LKS_FADE +_fdtimer
cpy #2
bne +
ina
stz LKS_FADE +_fdtimer
bra ++
+:
inc LKS_FADE +_fdtimer
++:
cmp #$10
bne +
lda #$0F
sta INIDISP
inc LKS_FADE +_fdphase
stz LKS_FADE +_fdtimer
rtl
+... |
; A054488: Expansion of (1+2*x)/(1-6*x+x^2).
; 1,8,47,274,1597,9308,54251,316198,1842937,10741424,62605607,364892218,2126747701,12395593988,72246816227,421085303374,2454265004017,14304504720728,83372763320351,485932075201378,2832219687887917
mov $1,1
mov $2,1
lpb $0,1
sub $0,1
add $2,1
add $2,$1
add $2,$1
ad... |
;BellossomBaseStats: ; 388ae (e:48ae)
db DEX_BELLOSSOM ; pokedex id
db 75 ; base hp
db 80 ; base attack
db 95 ; base defense
db 50 ; base speed
db 100 ; base special
db GRASS ; species type 1
db GRASS ; species type 2
db 46 ; catch rate
db 184 ; base exp yield
INCBIN "pic/ymon/bellossom.pic",0,1 ; 77, sprite dimensions... |
dnl X86-64 mpn_com optimised for AMD Zen.
dnl Copyright 2012 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of either:
dnl
dnl * the GNU Lesser General Public License as publi... |
; A131136: Denominator of (exponential) expansion of log((x/2-1)/(x-1)).
; 1,2,4,4,8,4,8,8,16,4,8,8,16,8,16,16,32,4,8,8,16,8,16,16,32,8,16,16,32,16,32,32,64,4,8,8,16,8,16,16,32,8,16,16,32,16,32,32,64,8,16,16,32,16,32,32,64,16,32,32,64,32,64,64,128,4,8,8,16,8,16,16,32,8,16,16
mov $2,$0
mov $0,0
mov $3,$2
mul $2,2
lpb $... |
BankOfMom:
ldh a, [hInMenu]
push af
ld a, $1
ldh [hInMenu], a
xor a
ld [wJumptableIndex], a
.loop
ld a, [wJumptableIndex]
bit 7, a
jr nz, .done
call .RunJumptable
jr .loop
.done
pop af
ldh [hInMenu], a
ret
.RunJumptable:
ld a, [wJumptableIndex]
ld e, a
ld d, 0
ld hl, .dw
add hl, de
add hl, de
ld ... |
; A080540: Number of neutrons in longest known radioactive decay series ending with Lead 209, reversed.
; 127,126,128,130,132,134,136,137,139,141,142,144,145,147,149,151,153,155,157,159,161,163
mov $1,3
mov $2,2
mov $3,6
mov $6,$0
lpb $0
sub $3,$1
add $2,$3
sub $0,$2
trn $0,1
mov $1,1
mov $2,$5
lpe
add $3,... |
;Disp 'Help us' until Step-Key pushed:
ORG 1800H
LD IX,Help
Disp CALL Scan
CP 13H ;Key-Step
JR NZ,Disp
HALT
ORG 1820H
Help DEFB 0AEH ;'S'
DEFB 0B5H ;'U'
DEFB 01FH ;'P'
DEFB 085H ;'L'
DEFB 08FH ;'E'
DEFB 037H ;'H'
;
Scan EQU 05FEH
END |
; A067869: Numbers n such that n and 2^n end with the same 5 digits.
; 48736,148736,248736,348736,448736,548736,648736,748736,848736,948736,1048736,1148736,1248736,1348736,1448736,1548736,1648736,1748736,1848736,1948736,2048736,2148736,2248736,2348736,2448736,2548736
mul $0,100000
add $0,48736
|
; size_t getdelim(char **lineptr, size_t *n, int delimiter, FILE *stream)
INCLUDE "config_private.inc"
SECTION code_clib
SECTION code_stdio
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $02
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC _getdelim
EXTERN asm_getdelim
_getdelim:
pop af
pop hl
pop d... |
; A246780: Strictly increasing terms of the sequence A246778: a(1)= A246778(1) and for n>0 a(n+1) is next term greater than a(n) after that a(n) appears in A246778 for the first time.
; 2,3,4,6,8,9,11,12,13,14,15,16,17,18,19,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52... |
;---------------------------------------------------------------;
; ;
; Banchor ;
; Enemy AI Scripts ;
; ... |
_wc: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
printf(1, "%d %d %d %s\n", l, w, c, name);
}
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: ... |
; A113925: a(1)=0. a(1)=1. a(n+2) = gcd(a(n+1) + a(n), n).
; Submitted by Jon Maiga
; 0,1,1,2,3,1,1,2,1,1,1,2,1,3,1,2,3,1,1,2,1,1,1,2,1,3,1,2,3,1,1,2,1,1,1,2,1,3,1,2,3,5,1,6,1,1,1,2,1,3,1,2,3,1,1,2,1,1,1,2,1,3,1,2,3,1,1,2,1,1,1,2,1,3,1,2,3,1,1,2,1,1,1,2,1,3,1,2,3,1,1,2,1,1,1,2,1,3,1,2
mov $1,$0
mov $2,1
mov $4,1
lpb $... |
.include "defines.asm"
.RAMSECTION "Render Vars" SLOT "RAM"
wPlayerX: dw ; Player X in 8.8 fixed point
wPlayerY: dw ; Player Y in 8.8 fixed point
wPlayerFacingAngle: db ;the scale of this is decided by the FOV
wPlayerFacingQuadrant: db ;where 0 is top-right, 1 is bottom-right, 2 is bottom-left, 3 is top-left
wRayAngl... |
/*
* Copyright 2019 Google 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... |
<%
from pwnlib.shellcraft.arm.linux import syscall
%>
<%page args="timer"/>
<%docstring>
Invokes the syscall time. See 'man 2 time' for more information.
Arguments:
timer(time_t): timer
</%docstring>
${syscall('SYS_time', timer)}
|
; A325282: Maximum adjusted frequency depth among integer partitions of n.
; 0,1,2,3,4,4,4,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7
mov $2,$0
sub $2,$0
lpb $0
sub $0,$2
div $0,7
add $0,2
mul... |
// 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 <cert.h>
#include <certdb.h>
#include <pk11pub.h>
#include <algorithm>
#include "base/bind.h"
#include "base/file_util.h"
#include "base/fi... |
;;
; Copyright (C) 2021 The KripayaOS Project Authors.
; + Contributed by Ashwin Paudel <ashwonixer123@gmail.com>
;
; Use of this source code is governed by a BSD-style license that can be
; found in the LICENSE file.
;;
[org 0x7c00]
[bits 16]
%define ENDL 0x0d, 0x0A
; BIOS Parameter Block
jmp short entry
nop... |
; Origin set to 00200H, EOF = 00250H
ORG 00200H
; CPU Type:
CPU 1805
; Labels:
R0203 EQU 0203H
R0204 EQU 0204H
R0215 EQU 0215H
R021C EQU 021CH
R0229 EQU 0229H
R0238 EQU 0238H
; Unused or indirect labels:
; S0230
; S0245
; Register Definitions:
R0 EQU 0
R1 EQU 1
R2 EQU 2
R3 EQU 3
R4 EQU 4
R5 EQU 5
R6 EQU... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>statfs(file, buf) -> str
Invokes the syscall statfs.
See 'man 2 statfs' for more information.
Arguments:
file(char*): file
buf(statfs*): buf
Returns:
int
</%docstring>
<%page args="file=0, b... |
; A143855: Ulam's spiral (ESE spoke).
; 1,10,51,124,229,366,535,736,969,1234,1531,1860,2221,2614,3039,3496,3985,4506,5059,5644,6261,6910,7591,8304,9049,9826,10635,11476,12349,13254,14191,15160,16161,17194,18259,19356,20485,21646,22839,24064,25321,26610,27931,29284,30669,32086,33535,35016,36529,38074,39651,41260,42901,4... |
;Program to display given string at given screen position
.model small
.stack 100h
.data
i db 0 ;loop control variable
x1 db 16 ;stored value for row number
y1 db 36 ;stored value for column number
len db 0 ;length of entered string
str db 100 dup(0) ;entered string
msg1 db 'Enter the s... |
; A082662: Numbers k such that the odd part of k is less than sqrt(2k).
; 1,2,4,6,8,12,16,20,24,28,32,40,48,56,64,72,80,88,96,104,112,120,128,144,160,176,192,208,224,240,256,272,288,304,320,336,352,368,384,400,416,432,448,464,480,496,512,544,576,608,640,672,704,736,768,800,832,864,896,928,960,992,1024,1056,1088,1120,11... |
// See the file "COPYING" in the main distribution directory for copyright.
#include "TunnelEncapsulation.h"
#include "util.h"
#include "Conn.h"
EncapsulatingConn::EncapsulatingConn(Connection* c, BifEnum::Tunnel::Type t)
: src_addr(c->OrigAddr()), dst_addr(c->RespAddr()),
src_port(c->OrigPort()), dst_port(c->R... |
class Solution {
public:
ListNode* XXX(ListNode* l1, ListNode* l2)
{
if(l1==NULL)
return l2;
if(l2==NULL)
return l1;
if(l1->val+l2->val <10)
{
ListNode* t = new ListNode(l1->val+l2->val);
t->next = XXX(l1->next, l2->next);
... |
; A022469: Expansion of 1/((1-x)*(1-5*x)*(1-8*x)*(1-9*x)).
; Submitted by Jon Maiga
; 1,23,350,4450,51231,554433,5756260,58034900,572630861,5558653243,53279890170,505596134550,4759287370891,44506489496453,413949260130080,3832708325439400,35351885537967321,325028008388124063,2980145152236043990,27260474825925725450,2488... |
ORG $1000
RELOCATE_START
ASSERT 2 * relocate_count == relocate_size
ASSERT 19 == relocate_count
dw relocate_count
dw relocate_size
STRUCT st1
b BYTE $12
w WORD absolute1
relInit WORD reloc1 ; the default init value should be relocated
noRel WORD ... |
INCLUDE "graphics/grafix.inc"
SECTION code_graphics
PUBLIC pointxy
EXTERN pixeladdress
;
; $Id: pointxy.asm $
;
; ******************************************************************
;
; Check if pixel at (x,y) coordinate is set or not.
;
; Design & programming by Gunther Strube, C... |
//////////////////////////////////////////////////////////////////////////
//
// pgScript - PostgreSQL Tools
//
// Copyright (C) 2002 - 2013, The pgAdmin Development Team
// This software is released under the PostgreSQL Licence
//
//////////////////////////////////////////////////////////////////////////
#include "p... |
segment .data
array times 100 dd 0
segment .text
global kmp
extern strlen
kmp:
push ebp
mov ebp, esp
mov ecx, [ebp+12] ;ecx = address of search string
mov edx, [ebp+8] ;edx = address of text
xor esi, esi ;si=0
mov edi, 1 ;di = 1
mov dword [array], 0
prefix:
mov ah, [ecx+esi] ;ah = search_string[esi]
... |
db WARTORTLE ; 008
db 59, 63, 80, 58, 65, 80
; hp atk def spd sat sdf
db WATER, WATER ; type
db 45 ; catch rate
db 143 ; 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/wartortle/front.dim... |
lda {c1}+1,x
cmp {m1}+1
bne !+
lda {c1},x
cmp {m1}
beq {la1}
!:
bcc {la1}
|
page 78,132
;
; Copyright (c) Microsoft Corporation. All rights reserved.
;
; You may only use this code if you agree to the terms of the Windows Research Kernel Source Code License agreement (see License.txt).
; If you do not agree to the terms, do not use the code.
;
;
; Module Name:
;
; ke\i3... |
; A017042: a(n) = (7*n + 5)^2.
; 25,144,361,676,1089,1600,2209,2916,3721,4624,5625,6724,7921,9216,10609,12100,13689,15376,17161,19044,21025,23104,25281,27556,29929,32400,34969,37636,40401,43264,46225,49284,52441,55696,59049,62500,66049,69696,73441,77284,81225,85264,89401,93636,97969,102400,106929,111556,116281,121104,1... |
PROGRAM 6
LDGADDR 4
LDCCH 'Z'
STORE2B
LDCSTR "Enter 2 characters: "
PUTSTR
LDGADDR 0
GETCH
STORE2B
LDGADDR 2
GETCH
STORE2B
PUTEOL
LDCSTR "c1 = "
PUTSTR
LDGADDR 0
LOAD2B
PUTCH
PUTEOL
LDCSTR "c2 = "
PUTSTR
LDGADDR 2
LOAD2B
PUTCH
PUTEOL
LDCSTR "... |
###############################################################################
# Copyright 2018 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... |
; char *_strrstrip_(const char *s)
SECTION code_string
PUBLIC __strrstrip_
EXTERN asm__strrstrip
__strrstrip_:
pop af
pop hl
push hl
push af
jp asm__strrstrip
|
; A162615: Triangle read by rows in which row n lists n terms, starting with n, such that the difference between successive terms is equal to n^3 - 1 = A068601(n).
; Submitted by Christian Krause
; 1,2,9,3,29,55,4,67,130,193,5,129,253,377,501,6,221,436,651,866,1081,7,349,691,1033,1375,1717,2059,8,519,1030,1541,2052,256... |
ALASKA_X = 2
ALASKA_Y = 2
ALASKA_VRAM = VRAM_START + (ALASKA_X + ALASKA_Y*32) * 16
ALASKA_NEXT_LINE = 32*16
alaska:
; map text bank
lda #bank(alaska.dat)
tam #page(alaska.dat)
; copy data to vram
lda #MEMCPY_SRC_INC_DEST_ALT
sta _hrdw_memcpy_mode
stw #alaska.dat, _hrdw_mem... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2017-2021, Intel Corporation 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 s... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0xa94c, %rsi
lea addresses_WC_ht+0x1994c, %rdi
clflush (%rsi)
nop
nop
nop
nop
nop
cmp $39850, %r12
mov $36, %rcx
rep movsl
nop
nop
nop
nop
dec %r11
pop %rsi
pop %rdi
pop %rcx
pop %r12
pop %r11
ret
... |
;
; jcphuff-sse2.asm - prepare data for progressive Huffman encoding
; (64-bit SSE2)
;
; Copyright (C) 2016, 2018, Matthieu Darbois
;
; Based on the x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYASAKA Masaru.
; For conditions of distribution and use, see copyright notice in jsimdext.inc
;
; This... |
/**
* @file /src/examples/console_streams.cpp
*
* @brief Demo for the console streams.
*
* @date October 2009
**/
/*****************************************************************************
** Includes
*****************************************************************************/
#include <iostream>
#include... |
; A166593: Partial sums of A166592.
; Submitted by Simon Strandgaard
; 0,1,4,6,9,10,10,9,6,4,1,0,0,1,4,6,9,10,10,9,6,4,1,0,0,1,4,6,9,10,10,9,6,4,1,0,0,1,4,6,9,10,10,9,6,4,1,0,0,1,4,6,9,10,10,9,6,4,1,0,0,1,4,6,9,10,10,9,6,4,1,0,0,1,4,6,9,10,10,9,6,4,1,0,0,1,4,6,9,10,10,9,6,4,1,0,0
mov $2,$0
mov $3,$0
lpb $3
mov $0,$2... |
pop_register
stack
|
; A052881: E.g.f.: log(1/(1-x))*x/(1-x).
; Submitted by Jamie Morken(s2)
; 0,0,2,9,44,250,1644,12348,104544,986256,10265760,116915040,1446526080,19323757440,277238626560,4251984710400,69426608025600,1202482800691200,22021300630425600,425162773111910400,8631302936352768000,183811908771993600000,4097385837163745280000,95... |
#include <list>
#include <memory>
#include <algorithm>
#include <vector>
#include <iterator>
#include <cassert>
#include <tuple>
#include <array>
#include <thread>
#include <future>
#include <atomic>
#include <cmath>
#include <cstring>
#include "basedefs.h"
#include "face.h"
#include "hgt_optimizer.h"
#include "binary_... |
dnl AMD64 mpn_sublsh1_n -- rp[] = up[] - (vp[] << 1)
dnl Copyright 2003, 2005, 2006, 2007 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 ... |
#pragma once
#include <functional>
/**
* Represent a 24-bit rgb color.
*/
struct Color {
unsigned char r, g, b;
bool operator==(const Color& c) const noexcept { return r == c.r && g == c.g && b == c.b; }
bool operator!=(const Color& c) const noexcept { return !(c == *this); }
};
/**
* Hash function ... |
; float __fsmul_callee(float a1, float a2)
SECTION code_fp_math48
PUBLIC cm48_sdccixp_dsmul_callee
EXTERN cm48_sdccixp_dcallee2, am48_dmul, cm48_sdccixp_m482d
cm48_sdccixp_dsmul_callee:
; multiply two sdcc floats
;
; enter : stack = sdcc_float a2, sdcc_float a1, ret
;
; exit : dehl = sdcc_float(a1... |
global malloc, free, realloc, calloc
; these are global but you should never modify them.
; should only by touched once by start.asm for initialization.
global __malloc_beg, __malloc_end, __malloc_align
segment text
; void *_align(void *ptr, u64 align)
; align value must be a power of 2
_align:
mov rax, rdi
... |
; A170289: Number of reduced words of length n in Coxeter group on 40 generators S_i with relations (S_i)^2 = (S_i S_j)^41 = I.
; 1,40,1560,60840,2372760,92537640,3608967960,140749750440,5489240267160,214080370419240,8349134446350360,325616243407664040,12699033492898897560,495262306223057004840,19315229942699223188760
... |
;
; Word: negate
; Dictionary: (a - a)
; Date: 1st February 2018
; Macro: Yes
; Notes:
;
pop ix
xor a
ld l,a
ld h,a
sbc hl,de
ex de,hl
jp (ix) |
/*
* 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 ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x7ff5, %rsi
lea addresses_WT_ht+0x18ff5, %rdi
nop
nop
nop
nop
nop
inc %rbp
mov $34, %rcx
rep movsl
nop
xor $17457, %r12
lea addresses_A_ht+0xe675, %r12
clflush (%r12)
nop
nop
... |
#include "core.h"
#include "vertexBuffer.h"
#include <GL/glew.h>
namespace P3D::Graphics {
VertexBuffer::VertexBuffer() : Bindable(0) {
Log::debug("Created empty vertex buffer");
};
VertexBuffer::VertexBuffer(const BufferLayout& layout, const void* data, size_t sizeInBytes, GLFLAG mode) : Bindable(), currentCapac... |
; A339308: Partial sums of products of proper divisors of n (A007956).
; 1,2,3,5,6,12,13,21,24,34,35,179,180,194,209,273,274,598,599,999,1020,1042,1043,14867,14872,14898,14925,15709,15710,42710,42711,43735,43768,43802,43837,323773,323774,323812,323851,387851,387852,461940,461941,463877
lpb $0
mov $2,$0
sub $0,1
... |
#include <occa/lang/expr/binaryOpNode.hpp>
#include <occa/lang/expr/emptyNode.hpp>
#include <occa/lang/expr/identifierNode.hpp>
#include <occa/lang/loaders/attributeLoader.hpp>
#include <occa/lang/loaders/variableLoader.hpp>
#include <occa/lang/parser.hpp>
#include <occa/lang/statementContext.hpp>
#include <occa/lang/t... |
section reset_vector
dw 0 ; 0
dw 0 ; 1
dw 0 ; 2
dw 0 ; 3
dw 0 ; 4
dw 0 ; 5
dw 0 ; 6
dw 0 ; 7
dw 0 ; 8
dw 0 ; 9
dw 0 ; 10
dw 0 ; 11
dw 0 ; 12
dw 0 ; 13
dw 0 ; 14
dw reset_handler ; 15 = reset
section code
reset_handler:
mov.w #0x980, sp ; setup stack pointer
call #main_main ; Enter main
call #bsp_ex... |
.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 a, ff
ldff(45), a
ld b, 96
call lwaitly_b
ld a, 80
ldff(68), a
ld a, ff
ld c, 69
ldff(c), a
ldff(c), a
ldff(c), a
ldff(c), a
ldff(c), a... |
; SPIR-V
; Version: 1.0
; Generator: Khronos Glslang Reference Front End; 10
; Bound: 306
; Schema: 0
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %4 "main" %287
OpExecutionMode %4 Origin... |
; =============================================================================
; Ultima Underworld Hacks -- main
; -----------------------------------------------------------------------------
; by John Glassmyer
; github.com/JohnGlassmyer/UltimaHacks
; assuming that overlay 117 was expanded and moved to the end of t... |
; A010381: Squares mod 19.
; Submitted by Christian Krause
; 0,1,4,5,6,7,9,11,16,17
lpb $0
mov $2,$0
sub $0,1
seq $2,56113 ; Most significant digit of n-th primorial A002110.
add $1,$2
lpe
div $1,2
mov $0,$1
|
/*
* 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; either version 3 of the License, or
* (at your option) any later version.
*
* Written (W) 1999-2009 Soeren Sonnenburg
* Copyright (C) 19... |
; sort list of pointers
include win1_mac_oli
section utility
xdef ut_sortlst
;+++
; sort list of string pointers
;
; Entry Exit
; d1.l 0 or nr. of elements
; a1 ptr to list
;
; errors: imem
; cc set
;+++
ut_sortlst subr a0-a3/d1-d3
tst.l d1
bne.s nr_known
xjsr ut_cntlst ; count nr of elements
nr_known... |
/*
* FreeRTOS Kernel V10.3.1
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. 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, includ... |
// Boost.Geometry (aka GGL, Generic Geometry Library)
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
// Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
// Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
// Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r8
push %rax
push %rcx
push %rdx
push %rsi
lea addresses_normal_ht+0xef6, %rdx
nop
nop
nop
nop
sub %r8, %r8
mov (%rdx), %rsi
nop
sub %rax, %rax
lea addresses_D_ht+0x1c5fc, %r10
nop
cmp $53059, %rcx
mov $0x6162636465666768, %r11
movq %r11, %xmm6
vmov... |
/*
* yosys -- Yosys Open SYnthesis Suite
*
* Copyright (C) 2012 Clifford Wolf <clifford@clifford.at>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in ... |
; A090816: a(n) = (3*n+1)!/((2*n)! * n!).
; 1,12,105,840,6435,48048,352716,2558160,18386775,131231100,931395465,6580248480,46312074900,324897017760,2272989850440,15863901576864,110487596768703,768095592509700,5330949171823275,36945070220658600,255702514854135195,1767643865751234240,12206272254777946800,8420558830832322... |
;******************************************************************************
;* Copyright (c) 2010 David Conrad
;*
;* This file is part of FFmpeg.
;*
;* FFmpeg 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 F... |
;*******************************************************************************
; *
; Microchip licenses this software to you solely for use with Microchip *
; products. The software is owned by Microchip and/or its licensors, an... |
//
// ScriptCache.cpp
// libraries/metavoxels/src
//
// Created by Andrzej Kapolka on 2/4/14.
// Copyright 2014 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include <cmath>
#include <QNetw... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.