text stringlengths 1 1.05M |
|---|
preset_allbosspkdr_crateria_ceres_elevator:
dw #$0000
dl $7E078B : db $02 : dw $0000 ; Elevator Index
dl $7E078D : db $02 : dw $AB58 ; DDB
dl $7E078F : db $02 : dw $0000 ; DoorOut Index
dl $7E079B : db $02 : dw $DF45 ; MDB
dl $7E079F : db $02 : dw $0006 ; Region
dl $7E07C3 : db $02 : dw $E2... |
#pragma once
#include "ImageVisitor.hpp"
class JPGVisitor : public ImageVisitor
{
public:
JPGVisitor(){};
~JPGVisitor(){};
void save(CatImage* image) override { std::cout << "Saving CatImage.jpg" << std::endl; };
void save(DogImage* image) override { std::cout << "Saving DogImage.j... |
; A014253: a(n) = b(n)^2, where b(n) = b(n-1)^2 + b(n-2)^2 (A000283).
; Submitted by Christian Krause
; 0,1,1,4,25,841,749956,563696135209,317754178344723197077225,100967717855888389973004528722798800700252204356,10194480049026283217304918048014173896648364893322762109171869301365366992922226561465025859561,10392742346... |
; stars.asm
SetupStars proc
ld a, BrightWhiteBlackP ; Custom colour for ClsAttr.
call ClsAttr.WithCustomColour ; Alternate entry point without setting colour.
ei
halt
di
Rand... |
version https://git-lfs.github.com/spec/v1
oid sha256:c23e65869d1fa64503739590ef02dad32b3c540bb68ef98df20a03c12f9c87d3
size 4392
|
; A068079: Decimal expansion of 355 / 113.
; Submitted by Jon Maiga
; 3,1,4,1,5,9,2,9,2,0,3,5,3,9,8,2,3,0,0,8,8,4,9,5,5,7,5,2,2,1,2,3,8,9,3,8,0,5,3,0,9,7,3,4,5,1,3,2,7,4,3,3,6,2,8,3,1,8,5,8,4,0,7,0,7,9,6,4,6,0,1,7,6,9,9,1,1,5,0,4,4,2,4,7,7,8,7,6,1,0,6,1,9,4,6,9,0,2,6,5
mov $2,10
pow $2,$0
mul $2,1420
div $2,452
mov $0... |
/********************* */
/*! \file SparseUnsortedList.cpp
** \verbatim
** Top contributors (to current version):
** Guy Katz
** This file is part of the Marabou project.
** Copyright (c) 2017-2019 by the authors listed in the file AUTHORS
** in the top-lev... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r15
push %r8
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x1d832, %r10
nop
nop
dec %r8
mov (%r10), %bx
nop
nop
nop
nop
nop
sub %r9, %r9
lea addresses_A_ht+0xa98a, %r15
nop
nop
sub %rax, %rax
movups (%r15), %xmm4
vp... |
;-----------------------------------------------------------
; Filename: header.asm
; Long name: Header Defines and Equates
; Author: Kerm Martian aka Christopher Mitchell
; Last Update: June 2, 2006
;
;Please consult license.txt for the fair use agreement
;implicitly binding by you continuing to read past this
;p... |
###############################################################################
# Copyright 2019 Intel Corporation
# All Rights Reserved.
#
# If this software was obtained under the Intel Simplified Software License,
# the following terms apply:
#
# The source code, information and material ("Material") containe... |
; A125833: Numbers whose base 5 representation is 333333.......3.
; 0,3,18,93,468,2343,11718,58593,292968,1464843,7324218,36621093,183105468,915527343,4577636718,22888183593,114440917968,572204589843,2861022949218,14305114746093,71525573730468,357627868652343
mov $1,5
pow $1,$0
div $1,4
mul $1,3
|
//============================================================================
// Name : ToolKitTest.cpp
// Author : xzl
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#inc... |
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,m;cin>>n>>m;
int arr[n][m];
for(int i=0;i<n;i++)
{
for(int j=0;j<m;j++)
{
cin>>arr[i][j];
}
}
int **dp;
dp=new int*[n];
for(int i=0;i<n;i++)
dp[i]=new int[m];
for(in... |
; A256888: Terms of the continued fraction expansion of 1 + sqrt(64 / 37).
; 2,3,5,1,3,1,3,1,5,3,2,3,5,1,3,1,3,1,5,3,2,3,5,1,3,1,3,1,5,3,2,3,5,1,3,1,3,1,5,3,2,3,5,1,3,1,3,1,5,3,2,3,5,1,3,1,3,1,5,3,2,3,5,1,3,1,3,1,5,3,2,3,5,1,3,1,3,1,5,3,2,3,5,1,3,1,3,1,5,3
pow $0,2
lpb $0
mov $2,$0
mod $2,10
lpb $0
div $0,90... |
[org 0x7c00]
mov bp,0x8000
mov sp,bp
push 'A'
push 'B'
push 'C'
mov ah,0x0e
mov al,[0x8000]
int 0x10
pop bx
mov al,bl
int 0x10
pop bx
mov al,bl
int 0x10
pop bx
mov al,bl
... |
; unsigned char esx_f_chmod(unsigned char *filename, uint8_t attr_mask, uint8_t attr)
INCLUDE "config_private.inc"
SECTION code_esxdos
PUBLIC asm_esx_f_chmod
EXTERN error_znc
EXTERN __esxdos_error_mc
asm_esx_f_chmod:
; enter : hl = char *filename
; c = attr bits to change
; b = attr
... |
// 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/sync/base/user_selectable_type.h"
#include <type_traits>
#include "base/notreached.h"
#include "build/chromeos_buildflags.h"
#inclu... |
; L0411.asm top of tower
; Generated 10.20.2000 by mlevel
; Modified 10.20.2000 by Abe Pralle
INCLUDE "Source/Defs.inc"
INCLUDE "Source/Levels.inc"
FIRST_HOLE EQU 32
;---------------------------------------------------------------------
SECTION "Level0411Section",ROMX
;----------------------------------------------... |
#include <fstream>
#include <bitset>
#include <vector>
#define x first
#define y second
using namespace std;
ifstream fin("mesaj4.in");
ofstream fout("mesaj4.out");
int a, b, n, m, sol;
pair <int, int> s[100010];
vector <int> l[100010];
bitset <100010> viz;
void DFS(int nod){
viz[nod]=1;
for(int i=0; i<l... |
// Distributed under the MIT License.
// See LICENSE.txt for details.
#include <deque>
#include <forward_list>
#include <future>
#include <list>
#include <map>
#include <memory>
#include <queue>
#include <set>
#include <stack>
#include <tuple>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#inclu... |
; A277757: a(n) = 2^(6n+1).
; 2,128,8192,524288,33554432,2147483648,137438953472,8796093022208,562949953421312,36028797018963968,2305843009213693952,147573952589676412928,9444732965739290427392,604462909807314587353088,38685626227668133590597632
mov $1,64
pow $1,$0
mul $1,2
mov $0,$1
|
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2022 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... |
object_const_def ; object_event constants
Route207_MapScripts:
db 0 ; scene scripts
db 0 ; callback
Route207_BikerScript:
jumptextfaceplayer .Text
.Text:
text "That slope's too"
line "slippery."
para "You'll need a BIKE"
line "to get up."
para "You don't have a"
line "BICYCLE? There's a"
cont "CYCLE SHO... |
; A111144: a(n) = n*(n+13)*(n+14)/6.
; 0,35,80,136,204,285,380,490,616,759,920,1100,1300,1521,1764,2030,2320,2635,2976,3344,3740,4165,4620,5106,5624,6175,6760,7380,8036,8729,9460,10230,11040,11891,12784,13720,14700,15725,16796,17914,19080,20295,21560,22876,24244,25665,27140,28670,30256,31899,33600,35360,37180,39061,410... |
; ==========================================
; pmtest7.asm
; 编译方法:nasm pmtest7.asm -o pmtest7.com
; ==========================================
%include "pm.inc" ; 常量, 宏, 以及一些说明
PageDirBase equ 200000h ; 页目录开始地址: 2M
PageTblBase equ 201000h ; 页表开始地址: 2M + 4K
org 0100h
jmp LABEL_BEGIN
[SECTION .gdt]
; GDT
; ... |
// Copyright (c) 2011-2018 The Bitcoin Core developers
// Copyright (c) 2014-2017 The Dash Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <qt/bitcoinaddressvalidator.h>
#include <base58.h>
/* Base58 c... |
dir:
{sample sample0,756}
{sample sample1,0}
{sample sample2,0}
{sample sample3,1080}
{sample sample4,828}
{sample sample5,0}
{sample sample6,0}
{sample sample7,0}
{sample 0,0}
{sample 0,0}
{sample 0,0}
{sample 0,0}
{sample 0,0}
{sample 0,0}
{sample 0,0}
{sample 0,0}
{sample sample16,0... |
;
; Sharp OZ family functions
;
; ported from the OZ-7xx SDK by by Alexander R. Pruss
; by Stefano Bodrato - Oct. 2003
;
; Serial libraries
; buffered serial input
;
; ------
; $Id: ozclearserialbuffer.asm,v 1.1 2003/10/21 17:15:21 stefano Exp $
;
XLIB ozclearserialbuffer
LIB serial_int
XREF Serial... |
// Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
/*******************************************************************************
Copyright (c) 2017, Honda Research Institute Europe GmbH.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. R... |
#include <torch/csrc/jit/ir/irparser.h>
#include <torch/csrc/jit/frontend/lexer.h>
#include <torch/csrc/jit/frontend/parse_string_literal.h>
#include <torch/csrc/jit/frontend/schema_type_parser.h>
#include <torch/csrc/jit/ir/ir.h>
#include <string>
#include <vector>
namespace torch {
namespace jit {
struct VarWithTy... |
; A080277: Partial sums of A038712.
; Submitted by Jon Maiga
; 1,4,5,12,13,16,17,32,33,36,37,44,45,48,49,80,81,84,85,92,93,96,97,112,113,116,117,124,125,128,129,192,193,196,197,204,205,208,209,224,225,228,229,236,237,240,241,272,273,276,277,284,285,288,289,304,305,308
mov $2,$0
mov $3,$0
lpb $2
mov $0,$3
sub $2,1
... |
***************
* Parallax star field
* 14 bytes free.
****************
include <includes/hardware.inc>
include <macros/help.mac>
;;; ROM sets this address
screen0 equ $2000
first equ $00 ; zero after ROM
cur_z equ $01
frame equ 2
rng_zp_high equ $20 ; non-zero after ROM (important!!)
rng_zp_low equ $21
sta... |
;*****************************************************************************
;* x86-optimized functions for scene SAD
;*
;* Copyright (C) 2018 Marton Balint
;*
;* Based on vf_blend.asm, Copyright (C) 2015 Paul B Mahol
;*
;* This file is part of FFmpeg.
;*
;* FFmpeg is free software; you can redistribute it and/or
;* ... |
// Copyright (c) 2020 ETH Zurich
//
// SPDX-License-Identifier: BSL-1.0
// 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)
int report_errors_hpx();
int main(int argc, char** argv)
{
return report_errors_hpx()... |
BITS 32
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
; allocate 16 byte aligned stack space for the packed values
lea ecx, [esp-33]
and ecx, 0xfffffff0
; load a 128 bit value into xmm0
mov DWORD [ecx], 0x55555555
mov DWORD [ecx+4], 0x14530451
mov DWORD [ecx+8], 0x1badb002
mov DWORD [... |
; A136258: a(n) = 2*a(n-1) - 2*a(n-2), with a(0)=1, a(1)=5.
; 1,5,8,6,-4,-20,-32,-24,16,80,128,96,-64,-320,-512,-384,256,1280,2048,1536,-1024,-5120,-8192,-6144,4096,20480,32768,24576,-16384,-81920,-131072,-98304,65536,327680,524288,393216,-262144,-1310720,-2097152,-1572864,1048576
mov $1,1
mov $2,2
lpb $0
sub $0,1
... |
;
; Copyright (c) 2010 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... |
_ls: file format elf32-i386
Disassembly of section .text:
00000000 <fmtname>:
#include "user.h"
#include "fs.h"
char*
fmtname(char *path)
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 53 push %ebx
4: 83 ec 24 sub $0x24,%esp
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r15
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0xd2c0, %rbp
nop
nop
add %r12, %r12
movb $0x61, (%rbp)
nop
nop
sub $24681, %rdx
lea addresses_WC_ht+0x19230, %rsi
lea addresses_WC_ht+0x15db0, %rdi
nop
sub %rbp, %rbp
mov $23, ... |
;--- alloc memory (max 64 kB)
;--- DosAllocSeg(wSize, lpwSelector, wFlags);
.286
public DOS16PALLOCSEG
_TEXT segment byte public 'CODE'
DOS16PALLOCSEG proc far pascal uses bx cx wSize:word, lpwSelector:far16 ptr word, wFlags:word
mov BX,wSize
add BX,0Fh
shr BX,4
or BX,BX
jne @F
mov BX,01000h
@... |
; A133037: Squares of members of the Padovan sequence A000931.
; 1,0,0,1,0,1,1,1,4,4,9,16,25,49,81,144,256,441,784,1369,2401,4225,7396,12996,22801,40000,70225,123201,216225,379456,665856,1168561,2050624,3598609,6315169,11082241,19448100,34128964,59892121,105103504,184443561,323676081
seq $0,931 ; Padovan sequence (or ... |
@1
mov right down
swp
mov acc right
mov acc down
mov up acc
mov acc down
sav
@2
mov 0 left
top:
mov left left
jmp top
|
; A010637: Decimal expansion of cube root of 67.
; Submitted by Jon Maiga
; 4,0,6,1,5,4,8,1,0,0,4,4,5,6,7,9,7,8,9,0,8,2,0,6,1,5,8,5,7,9,9,2,2,5,9,6,6,4,1,9,0,5,8,5,3,7,6,6,8,8,5,9,9,8,0,6,3,4,5,0,4,0,3,5,4,1,4,1,4,2,2,0,0,6,9,0,3,3,2,7,2,2,1,9,1,5,3,6,9,2,6,0,9,5,0,3,0,0,5,3
mov $3,$0
mul $3,2
lpb $3
add $6,$2
add... |
section .text
global _start
_start:
mov eax, 45 ; sys_brk
xor ebx, ebx
int 80h
add eax, 16384 ; jumlah dari byte yang disediakan
mov ebx, eax
mov eax, 45
int 80h
cmp eax, 0
jl exit ; keluar jika error
mov edi, eax ; EDI = address yang paling tinggi
sub edi... |
; A083318: a(0) = 1; for n>0, a(n) = 2^n + 1.
; 1,3,5,9,17,33,65,129,257,513,1025,2049,4097,8193,16385,32769,65537,131073,262145,524289,1048577,2097153,4194305,8388609,16777217,33554433,67108865,134217729,268435457,536870913,1073741825,2147483649,4294967297,8589934593,17179869185,34359738369,68719476737,137438953473,27... |
; A145976: Expansion of 1/(1-x*(1-7*x)).
; 1,1,-6,-13,29,120,-83,-923,-342,6119,8513,-34320,-93911,146329,803706,-220597,-5846539,-4302360,36623413,66739933,-189623958,-656803489,670564217,5268188640,574239121,-36303081359,-40322755206,213798814307,496058100749,-1000533599400,-4472940304643,2530794891157,33841377023658... |
SYS_EXIT equ 1
SYS_READ equ 3
SYS_WRITE equ 4
STDIN equ 0
STDOUT equ 1
segment .data
pesan_input db 'masukkan angka ', 0xA, 0xD
panjang_pesan_input equ $- pesan_input
pesan_input2 db 'masukkan angka kedua ', 0xA, 0xD
panjang_pesan_input2 equ $- pesan_input2
pesan_hasil db 'h... |
;
; Copyright (c) Microsoft. All rights reserved.
; Licensed under the MIT license. See LICENSE file in the project root for full license information.
;
#include "ksarm.h"
#include "asmconstants.h"
IMPORT FuncEvalHijackWorker
IMPORT FuncEvalHijackPersonalityRoutine
IMPORT ExceptionHijackWorker
IMPORT... |
;;
;; Copyright (c) 2012-2022, Intel Corporation
;;
;; Redistribution and use in source and binary forms, with or without
;; modification, are permitted provided that the following conditions are met:
;;
;; * Redistributions of source code must retain the above copyright notice,
;; this list of conditions and... |
// Copyright (c) YugaByte, 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 writ... |
; ECDSA signature
; In: KECCAKS hash state, PRIVK private key
; Out: ECX r, ECV s, A v
ECDSAS: CALL KECCAK
LD DE,KECCAKS
LD HL,ECDSAZ + 0x20
LD B,0x20
ECDSAL1:LD A,(DE) ; Save Z
INC E
DEC L
LD (HL),A
DJNZ ECDSAL1
LD HL,PRIVK
LD C,0x20
LDIR ; Concatenate Z and Pk
LD L,E
LD H,D
LD (KECCAKP),HL
INC E
LD ... |
SECTION code_fp_mbf32
PUBLIC ___mbf32_FPEXP
EXTERN FPEXP
defc ___mbf32_FPEXP = FPEXP
|
; A024700: a(n) = (prime(n+2)^2 - 1)/3.
; 8,16,40,56,96,120,176,280,320,456,560,616,736,936,1160,1240,1496,1680,1776,2080,2296,2640,3136,3400,3536,3816,3960,4256,5376,5720,6256,6440,7400,7600,8216,8856,9296,9976,10680,10920,12160,12416,12936,13200,14840,16576,17176,17480,18096,19040,19360,21000,22016,23056,24120,24480,... |
#include <bee/net/endpoint.h>
#if defined(_WIN32)
# include <Ws2tcpip.h>
#else
# include <netdb.h>
# include <sys/un.h>
# include <arpa/inet.h>
# ifndef UNIX_PATH_MAX
# define UNIX_PATH_MAX (sizeof(sockaddr_un::sun_path) / sizeof(sockaddr_un::sun_path[0]))
# endif
#endif
#include <bee/utility/format.h... |
; A208087: Number of 6 X (n+1) 0..1 arrays with every 2 X 2 subblock having the same number of equal edges as its horizontal neighbors and a different number from its vertical neighbors, and new values 0..1 introduced in row major order.
; 72,168,402,1032,2664,6954,18168,47544,124434,325752,852792,2232618,5845032,15302... |
.MODEL small
.STACK
.DATA
.CODE
mov ax,-3
mov bx,-4
sub ax,bx
end |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>recvfrom(fd, buf, n, flags, addr, addr_len) -> str
Invokes the syscall recvfrom.
See 'man 2 recvfrom' for more information.
Arguments:
fd(int): fd
buf(void*): buf
n(size_t): n
flags(int)... |
; A094838: The longest subsequence length that provides an example for A094837.
; 1,1,2,2,2,3,4,4,5,6,6,7,7,8,8,9,9,10,10,11,12,12,13,13,14
mul $0,2
trn $0,3
mov $2,2
lpb $0
mul $2,2
sub $0,$2
trn $0,1
add $1,1
mov $2,$1
trn $2,$0
mul $2,2
add $2,1
lpe
add $1,1
|
/*
* Copyright (c) 2014 Ambroz Bizjak
* All rights reserved.
*
* 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 conditio... |
INCLUDE "clib_cfg.asm"
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_ERROR
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; verbose mode
SECTION code_clib
SECTION code_error
PUBLIC error_einval_zc
EXTERN error_einval_mc
pop hl
pop hl
pop hl
error_einval_zc:
; set hl = ... |
; A075110: Concatenation of n-th prime and n in decimal notation.
; Coded manually by Simon Strandgaard.
; 21,32,53,74,115,136,177,198,239,2910,3111,3712,4113,4314,4715,5316,5917,6118,6719,7120,7321,7922,8323,8924,9725,10126,10327,10728,10929,11330,12731,13132,13733,13934,14935,15136,15737,16338,16739,17340,17941,18142... |
; A084102: Inverse binomial transform of A084101.
; Submitted by Christian Krause
; 1,2,-2,0,4,-8,8,0,-16,32,-32,0,64,-128,128,0,-256,512,-512,0,1024,-2048,2048,0,-4096,8192,-8192,0,16384,-32768,32768,0,-65536,131072,-131072,0,262144,-524288,524288,0,-1048576,2097152,-2097152,0,4194304,-8388608,8388608,0,-16777216,3355... |
; A113264: Partial sums of Catalan numbers A000108 multiplied by powers of -5.
; Submitted by Christian Krause
; 1,-4,46,-579,8171,-123079,1939421,-31576204,527017546,-8969076204,155054361296,-2715355794954,48068823892546,-858791527669954,15464694800455046,-280398494896810579,5114753787818033171,-93796371395287435579,1... |
// This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
#include "switch_multi_bool_ops.h"
switch_multi_bool_ops_t::switch_multi_bool_ops_t(kaitai::kstream* p__io, kaitai::kstruct* p__parent, switch_multi_bool_ops_t* p__root) : kaitai::kstruct(p__io) {
m__parent = p__pa... |
%include "io.inc"
section .text
global CMAIN
CMAIN:
mov ebp, esp; for correct debugging
;cele doua numere se gasesc in eax si ebx
mov eax, 4
mov ebx, 5
; TODO: aflati minimul
cmp eax, ebx
jl print
xchg eax, ebx
print:
PRINT_DEC 4, eax ; afiseaza minimul
NEWLINE
re... |
; A276879: Sums-complement of the Beatty sequence for 1 + sqrt(2).
; 1,6,11,18,23,30,35,40,47,52,59,64,69,76,81,88,93,100,105,110,117,122,129,134,139,146,151,158,163,170,175,180,187,192,199,204,209,216,221,228,233,238,245,250,257,262,269,274,279,286,291,298,303,308,315,320,327,332,339,344,349,356,361,368,373,378,385,39... |
/*!
* \class StV0Mc
* \author Gene Van Buren
*
* Monte Carlo V0 micro dst class
*
*/
#ifndef STAR_StV0Mc
#define STAR_StV0Mc
#include "StV0I.hh"
#include "StStrangeMuDst.hh"
class StMcVertex;
class StMcTrack;
class StV0Mc : public StStrangeMuDst, public virtual StV0I {
public:
StV0Mc();
S... |
;
; Z88 Graphics Functions - Small C+ stubs
;
; Written around the Interlogic Standard Library
;
; Compute the line coordinates and put into a vector
; Basic concept by Rafael de Oliveira Jannone (calculate_side)
;
; Stefano Bodrato - 13/3/2009
;
;
; $Id: w_stencil_add_side.asm,v 1.3 2016-04-23 20:37:... |
#include "kerberos.h"
#include <stdlib.h>
#include <errno.h>
#include "worker.h"
#include "kerberos_context.h"
#ifndef ARRAY_SIZE
# define ARRAY_SIZE(a) (sizeof((a)) / sizeof((a)[0]))
#endif
void die(const char *message) {
if(errno) {
perror(message);
} else {
printf("ERROR: %s\n", message);
}
exit(1... |
; size_t strrspn(const char *str, const char *cset)
SECTION code_clib
SECTION code_string
PUBLIC strrspn_callee
EXTERN asm_strrspn
strrspn_callee:
IF __CPU_GBZ80__
pop bc
pop de
pop hl
push bc
call asm_strrspn
ld d,h
ld e,l
ret
ELSE
pop hl
pop de
ex (sp),hl
jp asm_strrspn
ENDIF... |
########################################
#
# Retroputer Kernel : Trap Mapping
#
########################################
.namespace ktrapmap {
.namespace rtc {
.const root 0x80
.const change 0x80 # rtc clock changed
.const timer-0 0x81 # timer-0 expired... |
; A130329: A059268 * A130321.
; Submitted by Christian Krause
; 1,5,2,21,10,4,85,42,20,8,341,170,84,40,16,1365,682,340,168,80,32,5461,2730,1364,680,336,160,64,21845,10922,5460,2728,1360,672,320,128,87381,43690,21844,10920,5456,2720,1344,640,256
seq $0,130328 ; Triangle of differences between powers of 2, read by rows.... |
// btlmt_channelpoolconfiguration.t.cpp -*-C++-*-
// ----------------------------------------------------------------------------
// NOTICE
//
// This component is not up to date with current BDE coding standards, and
// should not be used as an example f... |
/**
* Swaggy Jenkins
* Jenkins API clients generated from Swagger / Open API specification
*
* OpenAPI spec version: 1.1.1
* Contact: blah@cliffano.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually... |
/*******************************************************************************
Copyright (c) 2020, Fabio Muratore, Honda Research Institute Europe GmbH, and
Technical University of Darmstadt.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted prov... |
#include <Il2CppModLoader/interception_macros.h>
namespace
{
// Noop these, we don't want to upload rando races.
//STATIC_IL2CPP_INTERCEPT(Moon.Race.Networking, WebService, void, PostReplay, (app::String* race_name, app::ReplayData* replay)) {
//
//}
STATIC_IL2CPP_INTERCEPT(Moon.Race.Networking, W... |
/*! \file
\brief A dictionary building tool.
Copyright (C) 2019-2022 kaoru https://www.tetengo.org/
*/
#include <algorithm>
#include <any>
#include <cassert>
#include <clocale>
#include <cstdint>
#include <exception>
#include <filesystem>
#include <fstream> // IWYU pragma: keep
#include <functi... |
// seed 3
lbi r0, 186 // icount 0
slbi r0, 16 // icount 1
lbi r1, 249 // icount 2
slbi r1, 181 // icount 3
lbi r2, 94 // icount 4
slbi r2, 112 // icount 5
lbi r3, 125 // icount 6
slbi r3, 213 // icount 7
lbi r4, 175 // icount 8
slbi r4, 181 // icount 9
lbi r5, 255 // icount 10
slbi r5, 171 // icount 11
lbi r6, 30 // ic... |
; void zx_scroll_up_attr(uchar rows, uchar attr)
SECTION code_clib
SECTION code_arch
PUBLIC _zx_scroll_up_attr_callee
EXTERN asm0_zx_scroll_up_attr
_zx_scroll_up_attr_callee:
pop hl
ex (sp),hl
ld e,l
ld d,0
ld l,h
jp asm0_zx_scroll_up_attr
|
// Copyright Joyent, Inc. and other Node contributors.
//
// 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, modi... |
; A080962: 5th binomial transform of the periodic sequence (1,6,1,1,6,1...).
; Submitted by Jamie Morken(s3)
; 1,11,86,596,3896,24656,153056,938816,5714816,34616576,209010176,1259303936,7576795136,45544656896,273603485696,1642963091456,9863147257856,59200358383616,355288049647616,2132071895269376,12793805761150976,7676... |
; uchar zx_aaddr2px(void *attraddr)
SECTION code_clib
SECTION code_arch
PUBLIC zx_aaddr2px
EXTERN asm_zx_aaddr2px
defc zx_aaddr2px = asm_zx_aaddr2px
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _zx_aaddr2px
defc _zx_aaddr2px = zx_aaddr2px
ENDIF
|
; A133600: Row sums of triangle A133599.
; 1,4,7,16,28,64,112,256,448,1024,1792,4096,7168,16384,28672,65536,114688,262144,458752,1048576,1835008,4194304,7340032,16777216,29360128,67108864,117440512,268435456,469762048,1073741824,1879048192
sub $0,1
mov $1,2
pow $1,$0
gcd $0,2
add $0,6
mul $0,$1
div $0,6
mul $0,3
add $... |
#Testing forwarding for execute using execute result and memory result together
#Just to start us off, do addi
addi $1, $1, 8
addi $2, $2, 16
addi $6, $6, 12
addi $16, $16, 159
#Arithmetic
add $1, $1, $2
sw $1, 0($0)
sub $2, $1, $2
sw $2, 4($0)
#R1=24, R2=8
#need mult to get a 64 bit result (a 1 somew... |
; A074324: a(2n+1) = 3^n, a(2n) = 4*3^(n-1) except for a(0) = 1.
; 1,1,4,3,12,9,36,27,108,81,324,243,972,729,2916,2187,8748,6561,26244,19683,78732,59049,236196,177147,708588,531441,2125764,1594323,6377292,4782969,19131876,14348907,57395628,43046721,172186884,129140163,516560652,387420489,1549681956,1162261467,464904586... |
; A017555: (12n+2)^11.
; 2048,4049565169664,3670344486987776,238572050223552512,4882812500000000000,52036560683837093888,364375289404334925824,1903193578437064103936,8007313507497959524352,28531167061100000000000
mul $0,12
add $0,2
pow $0,11
|
; A276039: Numbers using only digits 1 and 7.
; Submitted by Jon Maiga
; 1,7,11,17,71,77,111,117,171,177,711,717,771,777,1111,1117,1171,1177,1711,1717,1771,1777,7111,7117,7171,7177,7711,7717,7771,7777,11111,11117,11171,11177,11711,11717,11771,11777,17111,17117,17171,17177,17711,17717,17771,17777,71111,71117,71171,71177... |
// Copyright (c) 2019 Google LLC
//
// 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 ... |
#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
std::ios_base::sync_with_stdio(false);
cin.tie(0); cout.tie(0);
unsigned long int test=1;
cin>>test;
while(test--)
{
long long int num;
cin>>num;
long long int arr[num];
... |
// Copyright 2019 Peter Dimov.
//
// 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
#include <boost/mp11/set.hpp>
#include <boost/mp11/list.hpp>
#include <boost/core/lightweight_test_trait.hpp>
#include <type_t... |
; ***************************************************************************
; ***************************************************************************
;
; lzsa1_6502.s
;
; NMOS 6502 decompressor for data stored in Emmanuel Marty's LZSA1 format.
;
; This code is written for the ACME assembler.
;
; Optional code is ... |
###############################################################################
# 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... |
// Copyright 2021 The Fuchsia 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/ui/scenic/lib/input/touch_source.h"
#include <lib/async/cpp/time.h>
#include <lib/async/default.h>
#include <lib/syslog/cpp/macros.h>
#inclu... |
; A195142: Concentric 10-gonal numbers.
; 0,1,10,21,40,61,90,121,160,201,250,301,360,421,490,561,640,721,810,901,1000,1101,1210,1321,1440,1561,1690,1821,1960,2101,2250,2401,2560,2721,2890,3061,3240,3421,3610,3801,4000,4201,4410,4621,4840,5061,5290,5521,5760,6001,6250,6501,6760,7021,7290,7561,7840,8121,8410,8701,9000,93... |
; Enhanced BASIC to assemble under 6502 simulator, $ver 2.22
; $E7E1 $E7CF $E7C6 $E7D3 $E7D1 $E7D5 $E7CF $E81E $E825
; 2.00 new revision numbers start here
; 2.01 fixed LCASE$() and UCASE$()
; 2.02 new get value routine done
; 2.03 changed RND() to galoise method
; 2.04 fixed SPC()
; 2.05 new get value rou... |
#include <catch2/catch.hpp>
#include <cstddef>
#include <cstdint>
#include <mgs/codecs/concepts/byte_type.hpp>
#include <mgs/config.hpp>
using namespace mgs::codecs;
TEST_CASE("byte_type")
{
static_assert(!is_byte_type<int>::value, "");
static_assert(!is_byte_type<void>::value, "");
static_assert(!is_byte_typ... |
; A002807: a(n) = Sum_{k=3..n} (k-1)!*C(n,k)/2.
; 0,0,0,1,7,37,197,1172,8018,62814,556014,5488059,59740609,710771275,9174170011,127661752406,1904975488436,30341995265036,513771331467372,9215499383109573
sub $0,1
mov $2,$0
lpb $0,1
trn $1,$0
sub $0,1
mul $2,$0
add $2,$0
add $1,$2
lpe
div $1,2
|
section .data
array: dq 0,1,2,3,4,5
array_length: dq 6
message: db "The sum of array is %ld", 10, 0
section .text
global main
extern printf
main:
push rbp
mov rbp, rsp
;rdi = &array
mov rdi, array
;i = 0
xor rcx, rcx
;sum = 0
xor rax, rax
;array_length = 6
mov rbx, [array_l... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r14
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0xb7fb, %rsi
lea addresses_A_ht+0x92fb, %rdi
and $2014, %r14
mov $41, %rcx
rep movsw
nop
nop
inc %rcx
lea addresses_normal_ht+0x2c63, %rcx
nop
add $32889, %r12
mov $0x616263646... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.