text stringlengths 1 1.05M |
|---|
//+---------------------------------------------------------------------
//
// File: stdenum.cxx
//
// Contents: Standard implementations of common enumerators
//
//----------------------------------------------------------------------
#include "headers.hxx"
#pragma MARK_DATA(__FILE__)
#pragma MA... |
; A114805: Cumulative sum of quintuple factorial numbers n!!!!! (A085157).
; 1,2,4,7,11,16,22,36,60,96,146,212,380,692,1196,1946,3002,5858,11474,21050,36050,58226,121058,250226,480050,855050,1431626,3128090,6744794,13409690,24659690,42533546,96820394,216171626,442778090,836528090,1479986906,3488600282,8023947098,168615... |
; A198396: a(n) = 6^n-6*n.
; 1,0,24,198,1272,7746,46620,279894,1679568,10077642,60466116,362796990,2176782264,13060693938,78364164012,470184984486,2821109907360,16926659444634,101559956668308,609359740010382,3656158440062856,21936950640377730,131621703842267004,789730223053602678,4738381338321616752,2843028802992970122... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "chain.h"
/**
* CChain implementation
*/
void CChain::SetTip(CBlockIn... |
; A113225: a(2n) = A011900(n), a(2n+1) = A001109(n+1).
; Submitted by Jamie Morken(s3)
; 1,1,3,6,15,35,85,204,493,1189,2871,6930,16731,40391,97513,235416,568345,1372105,3312555,7997214,19306983,46611179,112529341,271669860,655869061,1583407981,3822685023,9228778026,22280241075,53789260175
mov $3,1
lpb $0
sub $0,1
... |
.APPTYPE GUI ; win32 gui
; include files, windows constants and structures
include 'inc\winconst.inc'
include 'inc\winstruct.inc'
; import functions from dll libraries
IMPORT ExitProcess, lib:"kernel32.dll", Name:"ExitProcess"
IMPORT MessageBoxA, lib:"user32.dll", Name:"MessageBoxA"
; Set up NIL constant... |
; A198643: a(n) = 5*3^n-1.
; 4,14,44,134,404,1214,3644,10934,32804,98414,295244,885734,2657204,7971614,23914844,71744534,215233604,645700814,1937102444,5811307334,17433922004,52301766014,156905298044,470715894134,1412147682404,4236443047214,12709329141644,38127987424934,114383962274804,343151886824414,1029455660473244,... |
; A057355: a(n) = floor(3*n/5).
; Submitted by Christian Krause
; 0,0,1,1,2,3,3,4,4,5,6,6,7,7,8,9,9,10,10,11,12,12,13,13,14,15,15,16,16,17,18,18,19,19,20,21,21,22,22,23,24,24,25,25,26,27,27,28,28,29,30,30,31,31,32,33,33,34,34,35,36,36,37,37,38,39,39,40,40,41,42,42,43,43,44,45,45,46,46,47,48,48,49,49,50,51,51,52,52,53,5... |
// Demonstrate problem with inline kasm clobbering memory
// And the ASM peephole optimizer not realizing this
// Commodore 64 PRG executable file
.file [name="inline-kasm-clobbermem.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Co... |
; A262183: a(0) = 0, a(n) = 10*a(n-1) + n*(n+1)*(n+2)/6.
; 0,1,14,150,1520,15235,152406,1524144,15241560,152415765,1524157870,15241578986,152415790224,1524157902695,15241579027510,152415790275780,1524157902758616,15241579027587129,152415790275872430,1524157902758725630,15241579027587257840,152415790275872580171,1524157... |
#include <iostream>
#include <string.h>
#include "array_test.h"
#include "string_test.h"
#include "enum_test.h"
#include "function_test.h"
#include "unique_ptr_test.h"
#include "polymorphism_test.h"
#include "friend_test.h"
#include "time_test.h"
#include "sort_test.h"
#include "struct_test.h"
using namespace std;
int... |
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
#include "infra/syntax/ProtoParser.hpp"
#include <cassert>
#include <cstdlib>
namespace infra
{
ProtoLengthDelimited::ProtoLengthDelimited(infra::DataInputStream inputStream, uint32_t length)
: limitedReader(inputStream.Reader(), length)
, input(limitedReader, inputStream.ErrorPolicy())
{
... |
; A202278: Right-truncatable Fibonacci numbers: every prefix is Fibonacci number.
; Submitted by Jamie Morken(s1)
; 0,1,2,3,5,8,13,21,34,55,89
add $0,1
mov $3,1
lpb $0
sub $0,1
div $2,23
add $2,$3
div $3,$2
mul $2,37
lpe
mov $0,$2
div $0,37
sub $0,1
|
// Copyright (c) 2011-2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <bench/bench.h>
#include <chainparams.h>
#include <coins.h>
#include <consensus/merkle.h>
#include <consensus/valida... |
; void *sp1_PreShiftSpr(uchar flag, uchar height, uchar width, void *srcframe, void *destframe, uchar rshift)
; CALLER linkage for function pointers
SECTION code_temp_sp1
PUBLIC sp1_PreShiftSpr
EXTERN asm_sp1_PreShiftSpr
sp1_PreShiftSpr:
ld hl,2
add hl,sp
ld c,(hl)
inc hl
inc hl
ld e,(hl)
inc ... |
; Sudoku
;
; References:
; https://www.youtube.com/watch?v=G_UYXzGuqvM
;
;###############################################################################
include 'format/format.inc'
FORMAT PE64 CONSOLE 6.0 at $10000 on "NUL"
SECTION '.flat' CODE READABLE WRITEABLE EXECUTABLE
POSTPONE
msvcrt_name db 'msvcr... |
; A182435: a(n) = 6*a(n-1) - a(n-2) - 2 with n>1, a(0)=0, a(1)=1.
; 0,1,4,21,120,697,4060,23661,137904,803761,4684660,27304197,159140520,927538921,5406093004,31509019101,183648021600,1070379110497,6238626641380,36361380737781,211929657785304,1235216565974041,7199369738058940,41961001862379597
mul $0,2
mov $1,3
mov $2,... |
.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, 91
call lwaitly_b
ld hl, fe00
ld d, 10
ld a, d
ld(hl++), a
ld a, 08
ld(hl++), a
inc l
inc l
ld a, d
ld(hl++), ... |
INCLUDE "clib_cfg.asm"
SECTION code_clib
SECTION code_math
PUBLIC l_fast_mulu_32_24x8, l0_fast_mulu_32_24x8
EXTERN l1_fast_mulu_24_16x8
l0_fast_mulu_32_24x8:
; enter : ehl = 24-bit multiplicand
; a = 8-bit multiplicand
ld d,e
ld e,a
ld a,d
l_fast_mulu_32_24x8:
; unsigned multipli... |
# 所有中断处理程序参数a0为scause,a1为sepc。
.section .text
.globl all_trap
.ALIGN 2
all_trap:
# 保存部分寄存器
addi sp, sp, -64
sw ra, 60(sp)
sw a0, 56(sp)
sw a1, 52(sp)
sw a2, 48(sp)
sw a3, 44(sp)
# 将scause读入a0
csrr a0, scause
# 如果不是中断(即scause >= 0),跳到后面读取非中断向量表。
bge a0, zero, no_inter
la a2, inter_vec_a
la a3, inter_vec_... |
;
; ZX Spectrum ZXMMC specific routines
; code by Alessandro Poppi
; ported to z88dk by Stefano Bodrato - Feb 2010
;
; $Id: mmc_wait_response.asm,v 1.3 2016-06-10 21:28:03 dom Exp $
;
;
;-----------------------------------------------------------------------------------------
; Waits for the MMC to respond. Returns ... |
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.20714
//
//
///
// Buffer Definitions:
//
// cbuffer $Globals
// {
//
// float4x4 WorldViewProjection; // Offset: 0 Size: 64
//
// }
//
//
// Resource Bindings:
//
// Name Type Format Dim Slot Elements... |
; A089123: Smallest prime factor of numbers of the form A^2 + 3.
; 2,7,2,19,2,3,2,67,2,103,2,3,2,199,2,7,2,3,2,13,2,487,2,3,2,7,2,787,2,3,2,13,2,19,2,3,2,1447,2,7,2,3,2,7,2,13,2,3,2,2503,2,2707,2,3,2,43,2,7,2,3,2,3847,2,4099,2,3,2,7,2,4903,2,3,2,5479,2,5779,2,3,2,19,2,7,2,3,2,7,2,61,2,3,2,8467,2,8839,2,3,2,13,2,7,2,3,2... |
; A005313: Number of triangular anti-Hadamard matrices of order n.
; 1,3,6,13,29,70,175,449,1164,3035,7931,20748,54301,142143,372114,974185,2550425,6677074,17480779,45765245,119814936,313679543,821223671,2149991448
mov $3,$0
add $0,1
mul $0,2
mov $1,6
mov $2,1
lpb $0,1
sub $0,2
add $1,2
add $1,$2
add $2,$1
lpe... |
/**
* @file diablo.cpp
*
* Implementation of the main game initialization functions.
*/
#include "all.h"
#include "../3rdParty/Storm/Source/storm.h"
#include "../DiabloUI/diabloui.h"
#include <config.h>
DEVILUTION_BEGIN_NAMESPACE
HWND ghMainWnd;
int glMid1Seed[NUMLEVELS];
int glMid2Seed[NUMLEVELS];
... |
ARCH_ARM equ 0
ARCH_MIPS equ 0
ARCH_X86 equ 0
ARCH_X86_64 equ 1
ARCH_PPC32 equ 0
ARCH_PPC64 equ 0
HAVE_EDSP equ 0
HAVE_MEDIA equ 0
HAVE_NEON equ 0
HAVE_MIPS32 equ 0
HAVE_MMX equ 1
HAVE_SSE equ 1
HAVE_SSE2 equ 1
HAVE_SSE3 equ 1
HAVE_SSSE3 equ 1
HAVE_SSE4_1 equ 1
HAVE_ALTIVEC equ 0
HAVE_VPX_PORTS equ 1
HAVE_STDINT_H equ ... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
; Module Name:
;
; WriteIdtr.Asm
;
; Abstract:
;
; AsmWriteIdtr function
;
; Notes:
;
;----------... |
; A158289: Period 18 zigzag sequence: repeat [0,1,2,3,4,5,6,7,8,9,8,7,6,5,4,3,2,1].
; 0,1,2,3,4,5,6,7,8,9,8,7,6,5,4,3,2,1,0,1,2,3,4,5,6,7,8,9,8,7,6,5,4,3,2,1,0,1,2,3,4,5,6,7,8,9,8,7,6,5,4,3,2,1,0,1,2,3,4,5,6,7,8,9,8,7,6,5,4,3,2,1,0,1,2,3,4,5,6,7,8,9,8,7,6,5,4,3,2,1,0,1,2,3,4,5,6,7,8,9,8,7,6,5,4,3,2,1,0,1,2,3,4,5,6,7,8,... |
db DEX_CHARMANDER ; pokedex id
db 39 ; base hp
db 52 ; base attack
db 43 ; base defense
db 65 ; base speed
db 50 ; base special
db FIRE ; species type 1
db FIRE ; species type 2
db 45 ; catch rate
db 65 ; base exp yield
INCBIN "pic/ymon/charmander.pic",0,1 ; 55, sprite dimensions
dw CharmanderPicFront
dw CharmanderPicB... |
dc.l $00000000
dc.l $00000000
dc.l $00000000
dc.l $00000000
dc.l $00000000
dc.l $00000000
dc.l $00000000
dc.l $00000000
dc.l $00111000
dc.l $01121100
dc.l $01333100
dc.l $01333100
dc.l $01131100
dc.l $00111000
dc.l $00121000
dc.l $00111000
dc.l $000... |
SECTION code_driver
PUBLIC disk_ioctl
EXTERN asm_disk_ioctl
;------------------------------------------------------------------------------
; Routines that talk with the IDE drive, these should be called from diskio.h
; extern DRESULT disk_ioctl (BYTE pdrv, BYTE cmd, void* buff);
;
; entry
; c = BYTE pdrv
; b = BYT... |
//using namespace std;
#include "FootSoldier.hpp"
class FootCommander: public FootSoldier
{
private:
public:
FootCommander(int player):FootSoldier(player)
{
this->health = 150;
this->affect_per_activity = 20;
this->full_health =150;
}
~FootCommander();
void attack(vector... |
/*****************************************************************************
Name : tasarestore.use.asm
Title : Secondary Attribute Restore Program
Author : PowerVR
Created : 10/05/2009
Copyright : 2008 by Imagination Technologies Limited. All rights reserved.
No part of this software, either mater... |
; Don't zero the counter $030D if we're jumping. This is used
; by the bug catching net to forward its animation. This counter
; used to be zeroed every frame that the $46 counter is not zero,
; which is always true for when Link is jumping.
ZeroCountersForStun:
LDA !IsJumping : BNE +
STZ $030D
+
ST... |
// This file automatically generated from 'HighLevelRASL.ref'
// Don't edit! Edit 'HighLevelRASL.ref' and recompile it
#include "refalrts.h"
#define cookie_ns cookie_ns_1508995057_1258557917
#define COOKIE1_ 1508995057U
#define COOKIE2_ 1258557917U
enum efunc {
efunc_u_u_Stepm_Drop = 0,
efunc_u_u_Metau_Mu = 1,
... |
; stdio_out_s
; 05.2008 aralbrec
XLIB stdio_out_s
LIB stdio_outchar, stdio_outpad, strlen
; output %s parameter
;
; enter : ix = FILE *
; a = precision (default 1)
; b = width (default 0)
; c = flags [-+ O#PLN]
; de = 16-bit parameter (most significant word ... |
;
; Generic pseudo graphics routines for text-only platforms
; Version for the 2x3 graphics symbols
;
; Written by Stefano Bodrato 19/12/2006
;
;
; Reset pixel at (x,y) coordinate.
;
;
; $Id: respixl.asm,v 1.8 2016-07-02 09:01:36 dom Exp $
;
INCLUDE "graphics/grafix.inc"
SECTION code_clib
P... |
%define C_BLACK 0
%define C_BLUE 1
%define C_GREEN 2
%define C_CYAN 3
%define C_RED 4
%define C_MAGENTA 5
%define C_BROWN 6
%define C_LIGHT_GRAY 7
%define C_DARK_GRAY ... |
.include "defines.inc"
.include "global.inc"
.segment "BANK0"
.proc IRQ_HANDLER
PHA
TYA
PHA
TXA
PHA
; handle irq
PLA
TAX
PLA
TAY
PLA
RTI
.endproc |
mktdisp_prices_page_marker DB "MarketPricesPG54"
mktdisp_boiler_text DW $0250,TextBuffer
DW $0220,name_expanded
DW $0B80,WordUnit
DW $0BB0,WordQuantity
DW $1308,WordProduct
DW $1360,WordUoM
DW $1380,WordPrice
DW $13B0,WordStock
DW $13E0,WordInv
;ch... |
; A111878: a(n) = denominator(digamma(n+7/2)/2 + log(2) + euler_gamma/2)/15; a(n)=denominator(f(n+2)/15) = A111877(n+1)/5.
; Submitted by Christian Krause
; 1,7,21,231,3003,3003,51051,969969,969969,22309287,111546435,334639305,9704539845,300840735195,300840735195,300840735195,11131107202215,11131107202215,4563753952908... |
; A282286: Least common multiple of 7*n+1 and 7*n-1.
; 1,24,195,220,783,612,1763,1200,3135,1984,4899,2964,7055,4140,9603,5512,12543,7080,15875,8844,19599,10804,23715,12960,28223,15312,33123,17860,38415,20604,44099,23544,50175,26680,56643,30012,63503,33540,70755,37264,78399,41184,86435,45300,94863,49612,103683,54120,112... |
; A122878: Periodic sequence of period 21 related to a simple scheduling problem.
; 12,12,12,12,13,13,13,23,23,23,23,12,12,12,13,13,13,13,23,23,23,12,12,12,12,13,13,13,23,23,23,23,12,12,12,13,13,13,13,23,23,23,12,12,12,12,13,13,13,23,23,23,23,12,12,12,13,13,13,13,23,23,23,12,12,12,12,13,13
seq $0,122879 ; Periodic seq... |
// 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... |
; Learn Multi platform Z80 Assembly Programming... With Vampires!
;Please see my website at www.chibiakumas.com/z80/
;for the 'textbook', useful resources and video tutorials
;File MSX Footer
;Version V1.0
;Date 2018/3/01
;Content Generic Footer
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;... |
/*=========================================================================
*
* Copyright NumFOCUS
*
* 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.or... |
; A187206: a(n) = 6*(24*n - 1).
; 138,282,426,570,714,858,1002,1146,1290,1434,1578,1722,1866,2010,2154,2298,2442,2586,2730,2874,3018,3162,3306,3450,3594,3738,3882,4026,4170,4314,4458,4602,4746,4890,5034,5178,5322,5466,5610,5754,5898,6042,6186,6330,6474,6618,6762,6906,7050,7194,7338,7482,7626,7770,7914,8058,8202,8346,84... |
; A292440: Expansion of (1 - x + sqrt(1 - 2*x - 3*x^2))/2 in powers of x.
; Submitted by Jon Maiga
; 1,-1,-1,-1,-2,-4,-9,-21,-51,-127,-323,-835,-2188,-5798,-15511,-41835,-113634,-310572,-853467,-2356779,-6536382,-18199284,-50852019,-142547559,-400763223,-1129760415,-3192727797,-9043402501,-25669818476,-73007772802,-208... |
/**
* Copyright (c) 2021 OceanBase
* OceanBase CE is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS... |
INCL "../inc/1802.inc"
STKSIZE EQU 256
ORG $1000
; Initialize SCRT routines
LDI HIGH SCINIT
PHI RF
LDI LOW SCINIT
PLO RF
SEP RF
DW STKPTR
; Main program
IDL
; Include... |
;================================================================================
; Randomize Catfish
;--------------------------------------------------------------------------------
!HEART_REDRAW = "$7F5000"
LoadCatfishItemGFX:
LDA.l CatfishItem_Player : STA !MULTIWORLD_SPRITEITEM_PLAYER_ID
LDA.l $1DE185 ; locat... |
#ifndef _FTK_UNDERDETERMINED_EIGEN_SOLVER_HH
#define _FTK_UNDERDETERMINED_EIGEN_SOLVER_HH
#include <ftk/ftk_config.hh>
#include <ftk/numeric/polynomial.hh>
#include <ftk/numeric/polynomial_solver.hh>
#include <algorithm>
namespace ftk {
// solve Ax + a = lambda * (Bx + b)
// return x[i] = P[i][lambda] / Q[lambda]
te... |
global main
extern printf
section .data
fmt: db 0x25, 0x77, 0x63, 0x00 ; "%wc"
section .text
main:
sub rsp, 58h
mov rax, qword [gs:abs 60h] ; PEB
mov rax, qword [rax+20h] ; PEB->ProcessParameters
mov qword [rsp+30h], rax
mov rax, qword [rsp+30h] ; RTL_USER_PROCESS_PARAMETE... |
; size_t w_array_size(w_array_t *a)
SECTION code_clib
SECTION code_adt_w_array
PUBLIC _w_array_size
EXTERN asm_w_array_size
_w_array_size:
pop af
pop hl
push hl
push af
jp asm_w_array_size
|
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... |
#pragma once
#include <string>
#define MAIN_SOCKET "d30138f2310a9fb9c54a3e0c21f58591"
#define JAVA_PACKAGE_NAME "com.brightsight.joker"
#define LOGFILE "/cache/magisk.log"
#define UNBLOCKFILE "/dev/.magisk_unblock"
#define SECURE_DIR "/data/adb"
#define MODULEROOT SECURE_DIR "/modules"
#define ... |
// Copyright 2015 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 "basic/test/test_macros.h"
#include "basic/lru/lru.h"
#include "basic/test/test_random.h"
#include "base/logging.h"
#include "testing/gtest/inc... |
;/**
; * @file
; *
; * Agesa library 32bit
; *
; * Contains AMD AGESA Library
; *
; * @xrefitem bom "File Content Label" "Release Content"
; * @e project: AGESA
; * @e sub-project: Lib
; * @e \$Revision: 17071 $ @e \$Date: 2009-07-30 10:13:11 -0700 (Thu, 30 Jul 2009) $
; */
;************************************... |
; encoding: utf-8
; ff3.h.asm:
; master include file for ff3 hacking
;==================================================================================================
;macros
.include "macro.h.asm"
;consts
.include "ff3_const.h.asm"
.include "ff3_charcode.h.asm"
.include "ff3_party_and_player.h.asm"
.i... |
//=========================================================================
// Copyright (C) 2012 The Elastos 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
//
// ... |
;------------------------------------------------------------------------------
;
; 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... |
xor a
ld hl, basescradr + #1031
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld hl, basescradr + #01ed
ld (hl), a
inc hl
ld (hl), a
inc hl
ld (hl), a
ld d,a
ld e,a
ld (basescradr + #02ed), de
ld hl, basescradr + #05ce
ld (hl), a
inc hl
ld (hl), a
inc hl
ld (hl), a
inc hl
... |
/*
* 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 <b... |
TITLE Data Definitions (DataDef.asm)
; Examples showing how to define data.
; Last update: 2/1/02
INCLUDE Irvine32.inc
; ----------------- Byte Values ----------------
.data
value1 BYTE 'A'
value2 BYTE 0
value3 BYTE 255
value4 SBYTE -128
value5 SBYTE +127
value6 BYTE ?
l... |
#include "Mcu.inc"
#include "FarCalls.inc"
#include "Ui.inc"
#include "../../UiStates.inc"
#include "../../../Platform/Lcd/IsLcdIdleStub.inc"
#include "../../PollAfterUiMock.inc"
#include "TestFixture.inc"
radix decimal
udata
global isLcdIdleResult
isLcdIdleResult res 1
NextPollInChainTest code
global te... |
; A155944: Jacobsthal numbers A001045, every second term incremented by 1.
; 0,2,1,4,5,12,21,44,85,172,341,684,1365,2732,5461,10924,21845,43692,87381,174764,349525,699052,1398101,2796204,5592405,11184812,22369621,44739244,89478485,178956972,357913941,715827884,1431655765,2863311532,5726623061,11453246124,22906492245
m... |
device zxspectrum48
; Compile from this file with sjasmplus !!!!!!!!!!!
DEBUG = 0
MACHINE = 9 ; 9k version with basic loader
; MACHINE = 16 ; 16k cartrige version
; MACHINE = 48 ; 48k full version
//--------------------------------------------------------------------------
include "code/struct... |
; Internal routine to write double at far pointer
; 31/3/00 GWL
; Entry: E'H'L'=far pointer
; FA->FA+5=double
;
; $Id: lp_pdoub.asm,v 1.4 2016/06/10 22:42:22 dom Exp $
;
SECTION code_clib
PUBLIC lp_pdoub
EXTERN fa
EXTERN farseg1,incfar
.lp_pdoub
ld a... |
<%
from pwnlib.shellcraft.arm.linux import syscall
%>
<%page args="fd, cmd, vararg"/>
<%docstring>
Invokes the syscall fcntl. See 'man 2 fcntl' for more information.
Arguments:
fd(int): fd
cmd(int): cmd
vararg(int): vararg
</%docstring>
${syscall('SYS_fcntl', fd, cmd, vararg)}
|
; SMLBOOT.ASM -- Small Booter Virus
; Created with Nowhere Man's Virus Creation Laboratory v1.00
; Written by Virucidal Maniac
virus_type equ 2 ; Spawning Virus
is_encrypted equ 0 ; We're not encrypted
tsr_virus equ 0 ; We're not TSR
code segment byte public
assume cs:code,ds:code,es:code,ss:code
org 0100h... |
//===----------------------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------... |
; A066449: Binomial(n, phi(n)), where phi(n) is the Euler totient function.
; 1,2,3,6,5,15,7,70,84,210,11,495,13,3003,6435,12870,17,18564,19,125970,293930,646646,23,735471,53130,9657700,4686825,30421755,29,5852925,31,601080390,573166440,2203961430,417225900,1251677700,37,33578000610,25140840660,62852101650,41,110581168... |
; Copyright Oliver Kowalke 2009.
; 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)
; ----------------------------------------------------------------------------------
; | 0 | 1 ... |
;*******************************************************************************
;* TMS320C55x C/C++ Codegen PC v4.4.1 *
;* Date/Time created: Sat Oct 06 06:37:59 2018 *
;****************************************************************************... |
; A302583: a(n) = ((n + 1)^n - (n - 1)^n)/2.
; 0,1,4,28,272,3376,51012,908608,18640960,432891136,11225320100,321504185344,10079828372880,343360783937536,12627774819845668,498676704524517376,21046391759976988928,945381827279671853056,45032132922921758270916,2267322327322331161821184
sub $0,1
mov $1,$0
mov $2,$0
add $2,... |
0x0000 (0x000000) 0x2118- f:00020 d: 280 | A = OR[280]
0x0001 (0x000002) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x0002 (0x000004) 0x2908- f:00024 d: 264 | OR[264] = A
0x0003 (0x000006) 0x3108- f:00030 d: 264 | A = (OR[264])
... |
;TOD-clock test #1b v0.1 (Cold Sewers)
;this one repeatedly starts tod at 0:00:00.0 with alarm-irq enabled
;when either the alarm is triggerd or tod ran for 1 second it will print out
;whether an alarm-irq occured or not.
;this version will set the clock to the power up state of 1:00:00.0 after every
;test that didn't ... |
db DEX_NIDORINA ; pokedex id
db 70 ; base hp
db 62 ; base attack
db 67 ; base defense
db 56 ; base speed
db 55 ; base special
db POISON ; species type 1
db POISON ; species type 2
db 120 ; catch rate
db 117 ; base exp yield
INCBIN "pic/ymon/nidorina.pic",0,1 ; 66, sprite dimensions
dw NidorinaPicFront
dw NidorinaPicBac... |
; A299259: Coordination sequence for 3D uniform tiling formed by stacking parallel layers of the 4.8.8 2D tiling (cf. A008576).
; 1,5,13,26,45,69,98,133,173,218,269,325,386,453,525,602,685,773,866,965,1069,1178,1293,1413,1538,1669,1805,1946,2093,2245,2402,2565,2733,2906,3085,3269,3458,3653,3853,4058,4269,4485,4706,4933... |
/*
* Copyright (C) 2006 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 requir... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Copyright (c) 2014-2017 The Expcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "base58.h"
#include "c... |
<%
from pwnlib.shellcraft.arm.linux import syscall
%>
<%page args="pid, stat_loc, options, usage"/>
<%docstring>
Invokes the syscall wait4. See 'man 2 wait4' for more information.
Arguments:
pid(pid_t): pid
stat_loc(WAIT_STATUS): stat_loc
options(int): options
usage(rusage): usage
</%docstring>
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r8
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x1c836, %r11
nop
add $20753, %r8
movw $0x6162, (%r11)
nop
and $23947, %rbx
lea addresses_UC_ht+0xe34c, %rsi
lea addresses_normal_ht+0x39b6, %rdi
cmp %r12, %r12
mov $99, %rcx
rep movsl
no... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r15
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x16c86, %rdi
nop
dec %r13
mov (%rdi), %r12w
nop
nop
nop
sub %r15, %r15
lea addresses_A_ht+0xb286, %rax
nop
nop
nop
nop
nop
inc %rsi
vmovups (%rax), %ymm4
vextracti128 $0, %ymm... |
;/**@file rfid_Handles.asm
;* @brief command handles for most of the EPC C1G2 protocol (Query/Ack/etc.)
;* @details each routine is called after the corresponding command was parsed. Each handle is highly timing sensitive
;*
;* @author Justin Reina, UW Sensor Systems Lab
;* @created 7-15-11
;* @last rev 7-25-11
;*
... |
#define IGNORE
int main() {
int N, X;
cin >> N >> X;
int64 loss = 0;
vector< int64 > A(N), B(N), C(N);
vector< int > ord;
for(int i = 0; i < N; i++) {
cin >> A[i] >> B[i] >> C[i];
loss += B[i] * A[i];
ord.emplace_back(i);
}
sort(begin(ord), end(ord), [&](int a, int b) {
return B[a] > B[... |
// Copyright 2019 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 "components/performance_manager/public/persistence/site_data/site_data_reader.h"
#include <utility>
#include "base/bind.h"
#include "base/callb... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r15
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x14942, %rax
nop
add %rbp, %rbp
movb (%rax), %r10b
nop
nop
nop
nop
nop
cmp $6450, %rcx
lea addresses_WT_ht+0x177c2, %r10
nop
nop
cmp $43361, %r15
mov $0x6162636465666768, %r11... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r9
push %rbp
push %rbx
push %rcx
push %rdx
lea addresses_D_ht+0x817d, %rdx
dec %rcx
vmovups (%rdx), %ymm1
vextracti128 $1, %ymm1, %xmm1
vpextrq $0, %xmm1, %r9
nop
nop
nop
nop
nop
inc %r10
lea addresses_D_ht+0xc71d, %rcx
nop
nop
nop
and %r13, %r13
mo... |
/*
;********************************************************************************************************
; uC/OS-III
; The Real-Time Kernel
;
; Copyright 2009-2020 Silicon Laboratories Inc. www.silabs.com
;
; ... |
; A086114: Number of 4 X n (0,1) matrices such that each row and each column is nondecreasing or nonincreasing.
; 8,64,216,528,1080,1968,3304,5216,7848,11360,15928,21744,29016,37968,48840,61888,77384,95616,116888,141520,169848,202224,239016,280608,327400,379808,438264,503216,575128,654480,741768,837504,942216,1056448
... |
; int feof(FILE *stream)
INCLUDE "clib_cfg.asm"
SECTION code_stdio
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $02
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC _feof
EXTERN _feof_fastcall
_feof:
pop af
pop hl
push hl
push af
jp _feof_fastcall
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
ELSE
;... |
<%
from pwnlib.shellcraft.arm.linux import syscall
%>
<%page args="fd, params"/>
<%docstring>
Invokes the syscall stty. See 'man 2 stty' for more information.
Arguments:
fd(int): fd
params(sgttyb): params
</%docstring>
${syscall('SYS_stty', fd, params)}
|
; A274139: a(n) = 2^A000265(n) = 2^numerator(n/2^n), a sequence related to Oresme numbers.
; 2,2,8,2,32,8,128,2,512,32,2048,8,8192,128,32768,2,131072,512,524288,32,2097152,2048,8388608,8,33554432,8192,134217728,128,536870912,32768,2147483648,2,8589934592,131072,34359738368,512,137438953472,524288,549755813888,32
mov $... |
#include <stdio.h>
#ifdef QUEX_DEMO_WITH_CONVERTER
# include "converter/Lexer"
# include "converter/lib/quex/converter/iconv/Converter_IConv"
# include "converter/lib/quex/converter/iconv/Converter_IConv.i"
# include "converter/lib/analyzer/adaptors/Feeder.i"
#else
# include "plain/Lexer"
# include "plain/... |
; A008505: 11-dimensional centered tetrahedral numbers.
; 1,13,91,455,1820,6188,18564,50388,125970,293930,646646,1352078,2704155,5200287,9657609,17383405,30419935,51889747,86474661,141070137,225666870,354523390,547707394,833099722,1248973544,1847282696,2697817448,3893413576,5556431725,7846758985,10971623663,15197557739... |
frame 1, 08
frame 2, 18
frame 3, 22
frame 2, 14
frame 1, 08
endanim
|
/*! @page build Building mlpack From Source
@section build_buildintro Introduction
This document discusses how to build mlpack from source. These build directions
will work for any Linux-like shell environment (for example Ubuntu, macOS,
FreeBSD etc). However, mlpack is in the repositories of many Linux distribution... |
#include "common/common/logger.h"
#include <cassert> // use direct system-assert to avoid cyclic dependency.
#include <cstdint>
#include <iostream>
#include <string>
#include <vector>
#include "common/common/lock_guard.h"
#include "spdlog/spdlog.h"
namespace Envoy {
namespace Logger {
#define GENERATE_LOGGER(X) Lo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.