text stringlengths 1 1.05M |
|---|
; A131428: a(n) = 2*C(n) - 1, where C(n) = A000108(n) are the Catalan numbers.
; 1,1,3,9,27,83,263,857,2859,9723,33591,117571,416023,1485799,5348879,19389689,70715339,259289579,955277399,3534526379,13128240839,48932534039,182965127279,686119227299,2579808294647,9723892802903,36734706144303,139067101832007,5274959035007... |
;ATLAS CPU-16 Microcode v1.0
;Hayden Buscher - 2022
;PC_ST, OP1_ST, OP2_ST, IR_ST, MDR_ST, MEM_ST, REG1_ST, REG2_ST, SP_ST, STAT_ST
;F_DOUT, PC_DOUT, SWP_DOUT, WRD_DOUT, MDR_DOUT, MEM_DOUT, VECT_DOUT, REG1_DOUT, REG2_DOUT, SP_DOUT
;PC_AOUT, MAR_AOUT
;COND_N, COND_Z, COND_V, COND_C
;ALU_ADD, ALU_ADC, ALU_SUB, ALU_SBB, ... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
+---------... |
segment _TEXT class=CODE USE32 align=1 CPU=686
extern _entry
start:
mov ax, 0x18
mov ds, ax
mov es, ax
mov ss, ax
xor eax, eax
mov ax, 0x1234
shl eax, 4
add eax, 0x3000
mov esp, [eax]
call _entry
.infloop:
hlt
jmp .infloop
global _ret_16
_ret_... |
#include "guiutil.h"
#include "bitcoinaddressvalidator.h"
#include "walletmodel.h"
#include "bitcoinunits.h"
#include "util.h"
#include "init.h"
#include <QString>
#include <QDateTime>
#include <QDoubleValidator>
#include <QFont>
#include <QLineEdit>
#include <QUrl>
#include <QTextDocument> // For Qt::escape
#include ... |
; A161852: Solutions to the simultaneous equations m(n)+1=a(n)^2 and 7*m(n)+1=b(n)^2.
; Submitted by Jon Maiga
; 1,5,11,79,175,1259,2789,20065,44449,319781,708395,5096431,11289871,81223115,179929541,1294473409,2867582785,20630351429,45701395019,328791149455,728354737519,5240028039851,11607974405285,83511657488161,18499... |
//
// X509Certificate.cpp
//
// $Id: //poco/1.4/NetSSL_OpenSSL/src/X509Certificate.cpp#2 $
//
// Library: NetSSL_OpenSSL
// Package: SSLCore
// Module: X509Certificate
//
// Copyright (c) 2006-2009, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// Permission is hereby granted, free of charge, ... |
INCLUDE "graphics/grafix.inc"
XLIB drawb
LIB w_pixeladdress
; LIB l_cmp
;
; $Id: drawb.asm,v 1.1 2010/11/16 19:41:11 stefano Exp $
;
; ***********************************************************************
;
; drawbox Timex hires version
;
.PIXEL
DEFB 0
.drawb
ld ix,0
add ix,sp
ld l,(ix+8)
ld h,(ix+9); x... |
.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_D_ht+0x2280, %rsi
lea addresses_UC_ht+0xcf82, %rdi
xor $64083, %rbp
mov $82, %rcx
rep movsw
cmp $41437, %r15
lea addresses_normal_ht+0x1cf80, %r8
nop
nop
nop
nop
inc %rdx
mov $0x6162... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r8
push %r9
push %rbp
push %rbx
lea addresses_UC_ht+0x1eb2b, %r9
nop
dec %rbx
vmovups (%r9), %ymm6
vextracti128 $1, %ymm6, %xmm6
vpextrq $1, %xmm6, %rbp
cmp $41893, %r8
lea addresses_normal_ht+0x12c92, %r9
nop
xor %rbp, %rbp
movb $0x61, (%r9)
nop
nop
add $550... |
; A210062: Number of digits in 7^n.
; 1,1,2,3,4,5,6,6,7,8,9,10,11,11,12,13,14,15,16,17,17,18,19,20,21,22,22,23,24,25,26,27,28,28,29,30,31,32,33,33,34,35,36,37,38,39,39,40,41,42,43,44,44,45,46,47,48,49,50,50,51,52,53,54,55,55,56,57
mul $0,11
sub $0,1
div $0,13
mov $1,$0
add $1,1
|
;------------------------------------------------------------------------------
;
; 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 distr... |
; A136799: Last term in a sequence of at least 3 consecutive composite integers.
; 10,16,22,28,36,40,46,52,58,66,70,78,82,88,96,100,106,112,126,130,136,148,156,162,166,172,178,190,196,210,222,226,232,238,250,256,262,268,276,280,292,306,310,316,330,336,346,352,358,366,372,378,382,388,396,400,408,418,430,438,442,448,456,... |
; A164349: The limit of the string "0, 1" under the operation 'repeat string twice and remove last symbol'.
; 0,1,0,0,1,0,1,0,0,0,1,0,0,1,0,1,0,0,1,0,0,1,0,1,0,0,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,0,1,0,0,1,0,1,0,0,1,0,0,1,0,1,0,0,0,1,0,0,1,0,0,1,0,0,1,0,1,0,0,0,1,0,0,1,0,1,0,0,1,0,0,1,0,1,0,0,0,1,0,0,1,0,1,0,1,0,0,1,0,1,... |
C nettle, low-level cryptographics library
C
C Copyright (C) 2013 Niels Möller
C
C The nettle library is free software; you can redistribute it and/or modify
C it under the terms of the GNU Lesser General Public License as published by
C the Free Software Foundation; either version 2.1 of the License, or (at your
C opt... |
; A124203: a(n) = 2n + "reverse of n-written-in-binary" + 2.
; 2,5,7,11,11,17,17,23,19,29,27,37,29,39,37,47,35,53,47,65,47,65,59,77,53,71,65,83,65,83,77,95,67,101,87,121,83,117,103,137,87,121,107,141,103,137,123,157,101,135,121,155,117,151,137,171,121,155,141,175,137
mov $2,$0
mov $5,$0
lpb $2,1
sub $0,$4
div $2,2... |
// This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems"
// by Nisan and Schocken, MIT Press.
// File name: projects/04/Mult.asm
// Multiplies R0 and R1 and stores the result in R2.
// (R0, R1, R2 refer to RAM[0], RAM[1], and RAM[2], respectively.)
// Put your code here.
@R2
M=... |
SECTION code_fp_math16
PUBLIC mul10f16
EXTERN asm_f16_mul10
defc mul10f16 = asm_f16_mul10
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _mul10f16
EXTERN cm16_sdcc_mul10
defc _mul10f16 = cm16_sdcc_mul10
ENDIF
|
<%
from pwnlib.shellcraft.i386.linux import syscall
%>
<%page args=""/>
<%docstring>
Invokes the syscall getgid. See 'man 2 getgid' for more information.
Arguments:
</%docstring>
${syscall('SYS_getgid')}
|
/*
* Copyright Andrey Semashev 2017.
* 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)
*/
// Test if we can include system headers with -D_XOPEN_SOURCE=600
#undef _XOPEN_SOURCE
#... |
@Define start
{
mflr r0
stw r0,8(r1)
stwu r1,-56(r1)
}
@Define end
{
la r1,56(r1)
lwz r0,8(r1)
mtlr r0
blr
}
@Define nothing
{
nop
}
@main
_start
_nothing
_end
@Import CarbonLib
{
Debugger
} |
; test to check the "bit 6,a" pattern
bit 6,a
jp nz,loop
ld (hl), 1
loop:
jr loop
|
; A206913: Greatest binary palindrome <= n; the binary palindrome floor function.
; 0,1,1,3,3,5,5,7,7,9,9,9,9,9,9,15,15,17,17,17,17,21,21,21,21,21,21,27,27,27,27,31,31,33,33,33,33,33,33,33,33,33,33,33,33,45,45,45,45,45,45,51,51,51,51,51,51,51,51,51,51,51,51,63,63,65,65,65,65,65,65,65,65,73,73,73,73,73,73,73,73,73,73,73... |
; A168674: a(n) = 2*A001610(n).
; 0,4,6,12,20,34,56,92,150,244,396,642,1040,1684,2726,4412,7140,11554,18696,30252,48950,79204,128156,207362,335520,542884,878406,1421292,2299700,3720994,6020696,9741692,15762390,25504084,41266476,66770562,108037040,174807604,282844646,457652252,740496900,1198149154,1938646056,3136795212,... |
/* Copyright 2017 Andrey Goryachev
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... |
// Distributed under the MIT License.
// See LICENSE.txt for details.
#include "Framework/TestingFramework.hpp"
#include <limits>
#include "DataStructures/DataBox/DataBox.hpp"
#include "DataStructures/DataVector.hpp"
#include "DataStructures/Tensor/Tensor.hpp"
#include "Framework/TestHelpers.hpp"
#include "Helpers/D... |
; A337898: Number of achiral colorings of the 6 square faces of a cube or the 6 vertices of a regular octahedron using n or fewer colors.
; Submitted by Christian Krause
; 1,10,55,200,560,1316,2730,5160,9075,15070,23881,36400,53690,77000,107780,147696,198645,262770,342475,440440,559636,703340,875150,1079000,1319175,160... |
nop
add r1,r6,r10
begin:
sub r1,r1,r4
nop
sub r1,r1,r4
nop
bnez r1,begin
sw 0(r0),r2
nop
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1995 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Printer Drivers
FILE: customNoPCLReset.asm
AUTHOR: Dave Durran
ROUTINES:
Name Description
---- -----------
REVISION HISTO... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x1736e, %rsi
lea addresses_UC_ht+0x15c1e, %rdi
nop
nop
nop
sub %r11, %r11
mov $30, %rcx
rep movsl
nop
nop
and %r9, %r9
lea addresses_UC_ht+0x34de, %r13
nop
nop
nop
nop
nop
cmp ... |
copyright zengfr site:http://github.com/zengfr/romhack
00042A move.l D1, (A0)+
00042C dbra D0, $42a
004A20 move.w A0, ($6726,A5)
004A24 moveq #$17, D0 [base+6726]
004BEA movea.w ($6726,A5), A4
004BEE move.w A6, -(A4) [base+6726]
004BF0 move.w A4, ($6726,A5) [base+67AA, base+67AC, base+67AE, base+67... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r14
push %r15
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x102e, %r15
nop
nop
nop
xor $31689, %rsi
movups (%r15), %xmm0
vpextrq $1, %xmm0, %rdi
nop
add $16620, %r14
lea addresses_D_ht+0x172da, %r14
nop
and $46258, %rcx
movb $0x61, (... |
//===--------------------------------------------------------------------------------*- C++ -*-===//
// _ _
// | | | |
// __ _| |_ ___| | __ _ _ __ __ _
// / _` | __/ __| |/ _` | '_ \ / _` |
// | (_| | ... |
// Copyright (c) 2011-2017 The Cryptonote developers
// Copyright (c) 2017-2018 The Circle Foundation & Conceal Devs
// Copyright (c) 2018-2022 Conceal Network & Conceal Devs
//
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.... |
// Usage: tester [OPTIONS]
//
// You can pass the tester program one or more of the following options:
// u32, s32, u64, s64 or run it without arguments to test all four.
// The tester is multithreaded so it can test multiple cases simultaneously.
// The tester will verify the correctness of libdivide via a set of
// r... |
XLIB read_joypad1
;==============================================================
; int read_joypad1()
;==============================================================
; Reads the joystick 1
;==============================================================
.read_joypad1
in a, ($dc) ; Reads joystick 1
cpl a ; Inverts... |
; A243502: Permutation of even numbers: a(n) = 2 * A064216(n).
; 2,4,6,10,8,14,22,12,26,34,20,38,18,16,46,58,28,30,62,44,74,82,24,86,50,52,94,42,68,106,118,40,66,122,76,134,142,36,70,146,32,158,78,92,166,110,116,102,178,56,194,202,60,206,214,124,218,114,88,130,98,148,54,226,164,254,170,48,262,274,172,154,138,100,278,29... |
#include <ESP8266WiFi.h>
#include "hardware_esp8266.h"
const std::unordered_map<HWI::Pin, int, EnumHash > HardwareESP8266::pinMap = {
{ Pin::STEP, 4 },
{ Pin::DIR, 5 },
{ Pin::MOTOR_ENA, 14},
{ Pin::HOME, 13}
};
const std::unordered_map<HWI::PinState, int, EnumHash > HardwareESP8266::p... |
; A073553: Number of Fibonacci numbers F(k), k <= 10^n, which end in 5.
; 2,14,134,1334,13334,133334,1333334,13333334,133333334,1333333334,13333333334,133333333334,1333333333334,13333333333334,133333333333334,1333333333333334,13333333333333334,133333333333333334,1333333333333333334,13333333333333333334,1333333333333333... |
copyright zengfr site:http://github.com/zengfr/romhack
00042A move.l D1, (A0)+
00042C dbra D0, $42a
014936 move.w (A1)+, D2
014938 movem.w D0-D3, (A4) [base+6008, base+6020, base+6030, base+6110, base+6118, base+6188, base+6190, base+6198, base+61A0, base+61A8, base+61B0, base+6220, base+6230, base+62B8, b... |
/*
* Copyright (c) David Connet. All Rights Reserved.
*
* License: See License.txt
*/
/**
* @file
* @brief Global functions
* @author David Connet
*
* Revision History
* 2022-02-01 Added backup directory to CreateBackupFile.
* 2021-08-24 Make StackTracer work on non-Win32 platforms.
* 2019-08-15 Added GetA... |
; 8 位乘法
; 结果储存在 ax
mov al, 0xf0
mov ah, 0x02
mul ah
; 16 位乘法
; 结果储存在 dx:ax
mov ax, 0xf000
mov bx, 0x0002
mul bx
; 16 位除法
; 商存在 al 里, 余数存在 ah 里
mov ax, 0x0004
mov bl, 0x02
div bl
; 32 位除法
; 商存在 ax 里, 余数存在
mov dx, 0x0008
mov ax, 0x0006
mov cx, 0x0002
div cx
jmp $
times 510-($-$$) db 0
db 0x55, 0xaa |
// Copyright (c) 2016-2021 Antony Polukhin
//
// 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)
#ifndef PFR_IO_HPP
#define PFR_IO_HPP
#pragma once
#include <pfr/detail/config.hpp>
#include <pfr/detail/detectors.hpp... |
global gdt_ptr
gdt_ptr:
dw gdt.end - gdt - 1
dq gdt
gdt:
.null:
dq 0x0
.k_code_32:
dd 0x0
db 0x0
db 10011010b
db 00100000b
db 0x0
.k_data_32:
dd 0x0
db 0x0
db 10010010b
dw 0x0
.u_code_32:
dd 0x0
db 0x0
db 11111010b
db 00100000b
db 0x0... |
; A160139: Numerator of Hermite(n, 11/27).
; Submitted by Jon Maiga
; 1,22,-974,-85580,2377516,551407912,-5201117576,-4938141000848,-55556496038000,56376233721055072,1969289482873847584,-778641119029758302912,-48713569344985450216256,12551406492954971362990720,1199447936209863593384712064,-22981145473757987640690291123... |
; A202391: Indices of the smallest of four consecutive triangular numbers summing up to a square.
; 5,39,237,1391,8117,47319,275805,1607519,9369317,54608391,318281037,1855077839,10812186005,63018038199,367296043197,2140758220991,12477253282757,72722761475559,423859315570605,2470433131948079
mul $0,2
mov $1,5
mov $4,4
... |
else(8) JIP: 4 { align16 1Q };
else(8) JIP: 72 { align1 1Q };
else(16) JIP: 72 { align1 1H };
|
; A184527: Upper s-Wythoff sequence, where s=5n-2. Complement of A184526.
; 4,10,16,23,29,35,41,47,54,60,66,72,78,85,91,97,103,109,115,122,128,134,140,146,153,159,165,171,177,184,190,196,202,208,215,221,227,233,239,246,252,258,264,270,276,283,289,295,301,307,314,320,326,332,338
mov $1,13
mov $3,$0
mul $3,5
div $3,13
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r8
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x1228a, %rdx
nop
nop
nop
xor $18047, %r11
vmovups (%rdx), %ymm0
vextracti128 $1, %ymm0, %xmm0
vpextrq $0, %xmm0, %r12
nop
and %rsi, %rsi
lea addresses_WC_ht+0x68e2, %... |
IDD_DLGKEYWORDS equ 4000
IDC_CBOTHEME equ 4016
IDC_EDTTHEME equ 4027
IDC_BTNNEWTHEME equ 4028
IDC_BTNADDTHEME equ 4029
IDC_LSTKWCOLORS equ 4001
IDC_LSTKWACTIVE equ 4014
IDC_LSTKWHOLD equ 4013
IDC_LSTCOLORS equ 4015
IDC_BTNKWAPPLY equ 4002
IDC_BTNHOLD equ 4009
IDC_BTNACTIVE equ 4008
IDC_... |
//
// Copyright (c) 2013, ARM Limited. All rights reserved.
//
// 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 fo... |
; test for the new RSHIFT assembly instruction
start:
LODD d1:
RSHIFT 0
HALT ; AC has shifted value
LODD d2:
RSHIFT 3
HALT ; AC has shifted value
LODD d3:
RSHIFT 7
HALT ; AC has shifted value
LODD d4:
RSHIFT 15
HALT ; AC has shifted value
LODD d... |
/**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#include "integration/acceptance/fake_peer_fixture.hpp"
#include <rxcpp/operators/rx-filter.hpp>
#include <rxcpp/operators/rx-flat_map.hpp>
#include <rxcpp/operators/rx-observe_on.hpp>
#include <rxcpp/operators/rx-rep... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r14
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0xe7a3, %rsi
lea addresses_A_ht+0x13c91, %rdi
nop
nop
sub $156, %r8
mov $62, %rcx
rep movsl
sub $64258, %r14
lea addresses_WT_ht+0xea3, %rsi
lea addresses_A_ht+0x1e3a3, %rdi
cl... |
; A183136: a(n) = [1/r]+[2/r]+...+[n/r], where r = golden ratio = (1+sqrt(5))/2 and []=floor.
; 0,1,2,4,7,10,14,18,23,29,35,42,50,58,67,76,86,97,108,120,132,145,159,173,188,204,220,237,254,272,291,310,330,351,372,394,416,439,463,487,512,537,563,590,617,645,674,703,733,763,794,826,858
mov $3,$0
mov $4,$0
lpb $4
mov $... |
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// Copyright 1998 - 2003 Microsoft Corporation. All Rights Reserved.
//
/... |
; A052913: a(n+2) = 5*a(n+1) - 2*a(n), with a(0) = 1, a(1) = 4.
; 1,4,18,82,374,1706,7782,35498,161926,738634,3369318,15369322,70107974,319801226,1458790182,6654348458,30354161926,138462112714,631602239718,2881086973162,13142230386374,59948977985546,273460429154982,1247404189803818,5690100090709126
mov $1,1
lpb $0
s... |
;@DOES copy null-terminated string, with maximum copy amount
;@INPUT HL pointer to null-terminated string
;@INPUT DE pointer to destination
;@INPUT BC maximum bytes to copy
;@OUTPUT HL pointer to null-terminated string
strncpy:
xor a,a
.loop:
cp a,(hl)
ldi
ret po
jr nz,.loop
ex hl,de
add hl,bc
ret
|
aci -128 ; CE 80
aci 127 ; CE 7F
aci 255 ; CE FF
adc (hl) ; 8E
adc (ix) ; FD 8E 00
adc (ix+127) ; FD 8E 7F
adc (ix-128) ; FD 8E 80
adc (iy) ; ... |
; A042911: Denominators of continued fraction convergents to sqrt(987).
; Submitted by Jamie Morken(w3)
; 1,2,5,12,749,1510,3769,9048,564745,1138538,2841821,6822180,425816981,858456142,2142729265,5143914672,321065438929,647274792530,1615615023989,3878504840508,242082915135485,488044335111478,1218171585358441,2924387505... |
// Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
///////////////////////////////////////////////////////////////////////////////////////////////////
#include "test_utils.h"
#include <intel_gpu/primitives/input_layout.hpp>
#include <intel_gpu/primitives/lstm.hpp>
#include <intel_... |
;;
;; Copyright (c) 2020-2021, 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... |
[bits 64]
[org 0x007ffca29417b0]
; If this is defined the process will be forcefully terminated once a snapshot
; is taken.
; If this is _not_ defined, the thread which took the snapshot will spin
; forever in an infinite loop. This is a busy loop and thus allows for taking
; snapshots on another thread. Allowing for ... |
; A230631: a(n) = n + (sum of digits in base-4 representation of n).
; 0,2,4,6,5,7,9,11,10,12,14,16,15,17,19,21,17,19,21,23,22,24,26,28,27,29,31,33,32,34,36,38,34,36,38,40,39,41,43,45,44,46,48,50,49,51,53,55,51,53,55,57,56,58,60,62,61,63,65,67,66,68,70,72,65,67,69,71,70,72,74,76,75,77,79,81,80,82,84,86,82,84,86,88,87,8... |
#include "class_0.h"
#include "class_1.h"
#include "class_2.h"
#include "class_4.h"
#include "class_6.h"
#include "class_8.h"
#include <lib_5/class_1.h>
#include <lib_8/class_9.h>
#include <lib_17/class_0.h>
#include <lib_15/class_7.h>
#include <lib_46/class_3.h>
class_0::class_0() {}
class_0::~class_0() {}
|
// Illustrates how inline assembler use internal labels and external references
// Commodore 64 PRG executable file
.file [name="inline-asm-label.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [sta... |
/*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... |
; A285201: Stage at which Ken Knowlton's elevator (version 1) reaches floor n for the first time.
; 1,2,5,14,45,174,825,4738,32137,251338,2224157,21952358,238962581,2843085270,36696680241,510647009850,7619901954001,121367981060434,2055085325869813,36861997532438654,698193329457246653,13924819967953406654,29168397937637... |
// Copyright 2016 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 "chrome/browser/chromeos/display/touch_calibrator/touch_calibrator_controller.h"
#include <algorithm>
#include <vector>
#include "ash/shell.h"
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x796d, %rsi
lea addresses_A_ht+0xdced, %rdi
sub $16877, %r11
mov $67, %rcx
rep movsb
and %rdx, %rdx
lea addresses_normal_ht+0x16ed, %rsi
lea addresses_normal_ht+0x12ed, %rdi
c... |
int main() {
return 0;$
}
|
INCLUDE "graphics/grafix.inc"
SECTION code_clib
PUBLIC setxy
EXTERN __gfx_coords
;
; $Id: setxy.asm,v 1.7 2016-07-02 09:01:35 dom Exp $
;
; ******************************************************************
;
; Move current pixel coordinate to (x0,y0). Only legal coordinates
; are accepted.
;
; Design & p... |
// (C) Copyright Gennadiy Rozental 2001-2014.
// 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)
// See http://www.boost.org/libs/test for the library home page.
//
// *********************************... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2017 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 <txdb.h>
#include <chainparams.h>
#include <hash.h>
#include <random.h>... |
; A100155: Structured truncated octahedral numbers.
; 1,24,103,272,565,1016,1659,2528,3657,5080,6831,8944,11453,14392,17795,21696,26129,31128,36727,42960,49861,57464,65803,74912,84825,95576,107199,119728,133197,147640,163091,179584,197153,215832,235655,256656,278869,302328,327067,353120,380521,409304,439503,471152,5042... |
_sh: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
return 0;
}
int
main(void)
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: ff 71 fc pushl -0x4(%ecx)
a: 55 push %ebp
... |
l:
addi $s0,$0,12
addi $s1,$0,3
or $s0,$s1,$s0
ori $s0,$s1,4
sub $s0,$s0,$s1
nor $s0,$s0,$s1
j l |
<%
from pwnlib.shellcraft.arm.linux import syscall
%>
<%page args="fd, message, flags"/>
<%docstring>
Invokes the syscall recvmsg. See 'man 2 recvmsg' for more information.
Arguments:
fd(int): fd
message(msghdr): message
flags(int): flags
</%docstring>
${syscall('SYS_recvmsg', fd, message, flags)... |
#include "IRremote.h"
#include "IRremoteInt.h"
//+=============================================================================
// Gets one undecoded level at a time from the raw buffer.
// The RC5/6 decoding is easier if the data is broken into time intervals.
// E.g. if the buffer has MARK for 2 time intervals and S... |
// RUN: %clang -std=c++17 -g %s -o %t.out -lstdc++ -lOpenCL -lsycl
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
//==--------------- context.cpp - SYCL context test ------------------------==//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for licens... |
GET_KEY:
push hl
push de
push bc
di
ld hl,$F50004
ld (hl),8
inc hl
ld (hl),8
ld l,0
ld (hl),2
xor a
wait_for_keys:
cp (hl)
jr nz,wait_for_keys
ld ... |
#include "shipupgrade_shield.h"
#include "../modules/RGNDS_Engine/engine.h"
#include "shipstats.h"
ShipUpgrade_Shield::ShipUpgrade_Shield() { }
ShipUpgrade_Shield::~ShipUpgrade_Shield() { }
bool ShipUpgrade_Shield::init(ShipStats* shipstats, int* c, glImage* gfx) {
lifetime = 5000.0f;
lastHitTime = 0;
... |
; A222134: Decimal expansion of sqrt(5 + sqrt(5 + sqrt(5 + sqrt(5 + ... )))).
; Submitted by Jon Maiga
; 2,7,9,1,2,8,7,8,4,7,4,7,7,9,2,0,0,0,3,2,9,4,0,2,3,5,9,6,8,6,4,0,0,4,2,4,4,4,9,2,2,2,8,2,8,8,3,8,3,9,8,5,9,5,1,3,0,3,6,2,1,0,6,1,9,5,3,4,3,4,2,1,2,7,7,3,8,8,5,4,4,3,3,0,2,1,8,0,7,7,9,7,4,6,7,2,2,5,1,6
mov $1,4
mov $... |
; A030431: Primes of form 10n+3.
; Submitted by Christian Krause
; 3,13,23,43,53,73,83,103,113,163,173,193,223,233,263,283,293,313,353,373,383,433,443,463,503,523,563,593,613,643,653,673,683,733,743,773,823,853,863,883,953,983,1013,1033,1063,1093,1103,1123,1153,1163,1193,1213,1223,1283,1303,1373,1423,1433,1453,1483,149... |
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
while(cin >> n)
{
vector<int> defs;
int oneAgo = -1,counter = n;
bool x = false;
while(n --)
{
int tmp;
cin >> tmp;
if(x)
defs.push_back(abs(oneAgo ... |
.MODEL SMALL
.STACK 100
.DATA
VAL DB 4
.CODE
MAIN PROC
MOV AX,@DATA
MOV DS,AX
MOV AH, 02H
MOV DL, VAL
DEC DL
ADD DL, 30H
INT 21H
MOV DL, ','
INT 21H
INC DL
INT 21H
MOV DL, ','
INT 21H
INC DL
INT 21H
MOV AX,4C00H
INT 21H
... |
asm_mlu1:
PAequDustYIdxYmulQ:
; "ASM MLU1 : TESTGOOD"
; "Y1 = dustY[Y]hi and P.A = Y1 7bit * Q A = low, P = hi"
ld hl, varDustY ;
ld a, (regY) ;
add hl,a ;
add hl,a ;
; inc hl STICK TO Lo for now
ld a, (hl) ; a = dustY[a]
ld (varY1),a ; Y1 = a
and SignMask8Bit ;
ld d,a ; d = a
ld a,(varQ)
ld e,a... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r9
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x121d, %rdx
nop
nop
nop
cmp $50786, %rbp
movb $0x61, (%rdx)
nop
cmp $25084, %r13
lea addresses_UC_ht+0x1072d, %rsi
lea addresses_normal_ht+0x1506d, %rdi
nop
nop
sub %r9, %r9
m... |
; A073705: a(n) = Sum_{ d divides n } (n/d)^(2d).
; Submitted by Jamie Morken(s2)
; 1,5,10,33,26,182,50,577,811,1750,122,16194,170,18982,74900,135425,290,847127,362,2498178,4901060,4209430,530,78564226,9766251,67138102,387952660,542674914,842,4866184552,962,8606778369,31382832260,17179953862,6385992100,422091411267,137... |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
// This file is copied from LevelDB and modifed a little
// to add LevelDB style benchmark
#include <... |
; A023610: Convolution of Fibonacci numbers and {F(2), F(3), F(4), ...}.
; Submitted by Jon Maiga
; 1,3,7,15,30,58,109,201,365,655,1164,2052,3593,6255,10835,18687,32106,54974,93845,159765,271321,459743,777432,1312200,2211025,3719643,6248479,10482351,17562870,29391490,49132669,82048737,136884293,228160495,379975140,6322... |
53_Header:
sHeaderInit ; Z80 offset is $C58C
sHeaderPatch 53_Patches
sHeaderTick $01
sHeaderCh $01
sHeaderSFX $80, $C0, 53_PSG3, $00, $00
53_PSG3:
sNoisePSG $E7
saVolPSG $03
dc.b nG3, $10
sStop
53_Patches:
|
; A198276: 19*2^n-1.
; 18,37,75,151,303,607,1215,2431,4863,9727,19455,38911,77823,155647,311295,622591,1245183,2490367,4980735,9961471,19922943,39845887,79691775,159383551,318767103,637534207,1275068415,2550136831,5100273663,10200547327,20401094655,40802189311,81604378623,163208757247,326417514495,652835028991,13056700... |
SECTION code_fp_math48
PUBLIC expm1
EXTERN cm48_sccz80_expm1
defc expm1 = cm48_sccz80_expm1
|
/*
* FFI.cpp -
*
* Copyright (c) 2008 Higepon(Taro Minowa) <higepon@users.sourceforge.jp>
*
* 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 abov... |
; A109053: a(n) = lcm(n,12).
; 0,12,12,12,12,60,12,84,24,36,60,132,12,156,84,60,48,204,36,228,60,84,132,276,24,300,156,108,84,348,60,372,96,132,204,420,36,444,228,156,120,492,84,516,132,180,276,564,48,588,300,204,156,636,108,660,168,228,348,708,60,732,372,252,192,780,132,804,204,276,420,852,72,876,444,300,228,924,156,9... |
; A014689: a(n) = prime(n)-n, the number of nonprimes less than prime(n).
; 1,1,2,3,6,7,10,11,14,19,20,25,28,29,32,37,42,43,48,51,52,57,60,65,72,75,76,79,80,83,96,99,104,105,114,115,120,125,128,133,138,139,148,149,152,153,164,175,178,179,182,187,188,197,202,207,212,213,218,221,222,231,244,247,248,251,264,269,278,279,28... |
; A017535: a(n) = (12*n+1)^3.
; 1,2197,15625,50653,117649,226981,389017,614125,912673,1295029,1771561,2352637,3048625,3869893,4826809,5929741,7189057,8615125,10218313,12008989,13997521,16194277,18609625,21253933,24137569,27270901,30664297,34328125,38272753,42508549,47045881,51895117,57066625,62570773,68417929,74618461,... |
; A097730: Pell equation solutions (6*b(n))^2 - 37*a(n)^2 = -1 with b(n)=A097729(n), n >= 0.
; Submitted by Christian Krause
; 1,145,21169,3090529,451196065,65871534961,9616792908241,1403985893068225,204972323595052609,29924555258984612689,4368780095488158399985,637811969386012141785121,93116178750262284542227681,13594... |
#include "myfunc.H"
#include "myfunc_F.H"
void advance (MultiFab& phi_old,
MultiFab& phi_new,
Array<MultiFab, AMREX_SPACEDIM>& flux,
Real dt,
Geometry const& geom)
{
// Fill the ghost cells of each grid from the other grids
// includes periodic domain b... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.