text stringlengths 1 1.05M |
|---|
; ---------------------------------------------------------------------------
; Animation script - bubbles (LZ)
; ---------------------------------------------------------------------------
dc.w byte_129AA-Ani_obj64
dc.w byte_129B0-Ani_obj64
dc.w byte_129B6-Ani_obj64
dc.w byte_129BE-Ani_obj64
dc.w byte... |
#include "gps.h"
#include "libgpsmm.h" // GPS
#include "math.h"
#include <stdlib.h>
/*
* degrees: converts decimal angle to degree component.
*
*/
int gps::degrees(float angle) {
return abs((int)angle);
}
/*
* minutes: converts decimal angle to minutes component.
*
*/
int gps::minutes(float angle) {
int deg = degre... |
/*!
@file
Forward declares `boost::hana::union_`.
@copyright Louis Dionne 2013-2017
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_HANA_FWD_UNION_HPP
#define BOOST_HANA_FWD_UNION_HPP
#include <boo... |
#ifndef DIRECTED_GRAPH_HH
#define DIRECTED_GRAPH_HH
#include <string>
#include <vector>
#include <utility>
#include "Graph.hh"
#include "EdgeType.hh"
#include "Edge.hh"
#include "Vertex.hh"
using namespace std;
template <typename V>
class DirectedGraph : public Graph<V> {
protected:
vector< pair< Vertex*, vector... |
; A052760: Expansion of e.g.f.: x^2*(exp(x)-1)^2.
; 0,0,0,0,24,120,420,1260,3472,9072,22860,56100,134904,319176,745108,1719900,3931680,8912352,20053404,44825940,99613960,220200120,484441188,1061157900,2315254704,5033163600,10905189100,23555209860,50734299672,108984793512,233538844980,499289946300,1065151887424,22677427... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "dobbscoingui.h"
#include "dobbscoinunits.h"
#include "clientmodel.h"
#include "guiconstants.h"
#include "guiutil.h"... |
; A198264: Round(n*sqrt(10)).
; 0,3,6,9,13,16,19,22,25,28,32,35,38,41,44,47,51,54,57,60,63,66,70,73,76,79,82,85,89,92,95,98,101,104,108,111,114,117,120,123,126,130,133,136,139,142,145,149,152,155,158,161,164,168,171,174,177,180,183,187,190,193,196,199,202,206,209,212,215,218,221,225,228,231,234,237,240,243,247,250,253,... |
; A048691: a(n) = d(n^2), where d(k) = A000005(k) is the number of divisors of k.
; 1,3,3,5,3,9,3,7,5,9,3,15,3,9,9,9,3,15,3,15,9,9,3,21,5,9,7,15,3,27,3,11,9,9,9,25,3,9,9,21,3,27,3,15,15,9,3,27,5,15,9,15,3,21,9,21,9,9,3,45,3,9,15,13,9,27,3,15,9,27,3,35,3,9,15,15,9,27,3,27,9,9,3,45,9,9,9,21,3,45,9,15,9,9,9,33,3,15,15,25
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r14
push %r8
push %rax
push %rcx
lea addresses_WT_ht+0xf5cd, %r12
nop
nop
nop
nop
nop
and $46058, %rcx
mov (%r12), %r14w
nop
nop
nop
nop
nop
add $22589, %r8
lea addresses_D_ht+0x1defb, %r13
nop
nop
inc %r12
mov $0x6162636465666768, %rax
movq %rax, %... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x1c07f, %rsi
lea addresses_D_ht+0x2fbf, %rdi
clflush (%rdi)
nop
nop
cmp $5018, %r10
mov $11, %rcx
rep movsl
nop
nop
cmp $9200, %rsi
lea addresses_WC_ht+0x1081f, %rcx
clflush (%rcx)
nop
nop
nop
nop
xor... |
; A254896: Octagonal numbers (A000567) that are also centered square numbers (A001844).
; Submitted by Jon Maiga
; 1,481,8321,4617761,79897441,44339739841,767175219361,425750177334721,7366416376406081,4088053158428250401,70732329279075969601,39253486001477883014881,679171818371271083701921,376911968498137474280636161,6... |
; A157988: a(n)=16*n!/(253*43!).
; Submitted by Jamie Morken(s4)
; 5760,270720,12994560,636733440,31836672000,1623670272000,84430854144000,4474835269632000,241641104560128000,13290260750807040000,744254602045194240000,42422512316576071680000
mov $3,1
lpb $0
sub $0,1
mov $2,$3
mul $2,$0
mul $3,47
add $3,$2
lp... |
;/*
; * FreeRTOS V202011.00
; * 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 restrictio... |
; A176177: a(n) = 2*n*3^(n-1) - (3^n-1)/2.
; 0,1,8,41,176,689,2552,9113,31712,108257,364136,1210505,3985808,13020305,42249560,136314617,437641664,1399018433,4455335624,14140847849,44747066480,141214768241,444565011128,1396457152601,4377657815456,13697832519329,42788074776872,133447955987273,415595062931792,129253877370... |
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration... |
dnl PowerPC-32 mpn_lshiftc.
dnl Copyright 1995, 1998, 2000, 2002-2005, 2010 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 L... |
PrintItemDescription:
; Print the description for item [wCurSpecies] at de.
push de
ld hl, ItemDescriptions
ld a, [wCurSpecies]
dec a
ld c, a
ld b, 0
add hl, bc
add hl, bc
ld e, [hl]
inc hl
ld d, [hl]
pop hl
jp PlaceString
INCLUDE "data/items/descriptions.asm"
|
; 这段代码是演示loop循环的使用,用到了那些寄存器
; 用debug查看loop执行后,如何影响cx(减一),cs,ip(二者重新指向s处)的
assume cs:pow
pow segment
start:
mov ax, 2 ; 要计算的数据
mov cx, 0bh ; 计数器, 11 是计算2^12, 汇编中数据不能以字母开头,前边要加0
s: add ax, ax ; 要循环的代码块
loop s ; 循环完一次后,检查有没有下次循环,对应 [ (cx) = (cx)-1; if (cx) > 0 goto s else pass;]
mov ax, 4c0... |
; void *tshc_py2saddr(uchar y)
SECTION code_clib
SECTION code_arch
PUBLIC tshc_py2saddr
EXTERN zx_py2saddr
defc tshc_py2saddr = zx_py2saddr
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _tshc_py2saddr
defc _tshc_py2saddr = tshc_py2saddr
ENDIF
|
; void __CALLEE__ HeapSbrk_callee(void *heap, void *addr, unsigned int size)
; 12.2006 aralbrec
SECTION code_clib
PUBLIC HeapSbrk_callee
PUBLIC _HeapSbrk_callee
PUBLIC asm_HeapSbrk
EXTERN asm_HeapFree
.HeapSbrk_callee
._HeapSbrk_callee
pop af
pop bc
pop hl
pop de
push af
.asm_HeapSbrk
; Add a block... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x19bf7, %rsi
lea addresses_UC_ht+0xb221, %rdi
nop
cmp $34007, %rbx
mov $42, %rcx
rep movsw
nop
nop
nop
add %r12, %r12
lea addresses_normal_ht+0x5ee7, %r10
and $55384, %r9
movb (%r10), %... |
; A204164: Symmetric matrix based on f(i,j)=floor[(i+j)/2], by antidiagonals.
; 1,1,1,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,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,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7
mov $1,1
lpb $0,1
add $1,4
sub $0,$1
... |
.data
player: .byte 'B'
distance: .byte 3
size: .word 26
.align 2
state:
.byte 0 # bot_mancala (byte #0)
.byte 1 # top_mancala (byte #1)
.byte 6 # bot_pockets (byte #2)
.byte 6 # top_pockets (byte #3)
.byte 2 # moves_execut... |
; size_t wv_priority_queue_capacity_fastcall(wv_priority_queue_t *q)
SECTION code_clib
SECTION code_adt_wv_priority_queue
PUBLIC _wv_priority_queue_capacity_fastcall
EXTERN asm_wv_priority_queue_capacity
defc _wv_priority_queue_capacity_fastcall = asm_wv_priority_queue_capacity
|
_FRRsanity: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "types.h"
#include "stat.h"
#include "user.h"
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 ... |
#ifndef HPP_UTILITY_XML
#define HPP_UTILITY_XML
#include <string>
#include "../vendor/rapidxml.hpp"
// Allocate an XML node
rapidxml::xml_node<>* xml_node(rapidxml::xml_document<>& doc,
const std::string& name, const std::string& value = "",
rapidxml::node_type type = rapidxml::node_element);
// All... |
//
// Copyright (c) 2011, ARM Limited. All rights reserved.
//
// SPDX-License-Identifier: BSD-2-Clause-Patent
//
//
#include <AutoGen.h>
IMPORT PeiCommonExceptionEntry
EXPORT PeiVectorTable
PRESERVE8
AREA PrePeiCoreException, CODE, READONLY, CODEALIGN, ALIGN=5
//======================... |
#include "BaseLibInternals.h"
;------------------------------------------------------------------------------
;
; Copyright (c) 2006 - 2013, 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 Lice... |
; A250429: Number of (n+1)X(5+1) 0..1 arrays with nondecreasing sum of every two consecutive values in every row and column
; Submitted by Jon Maiga
; 256,1600,10000,40000,160000,490000,1500625,3841600,9834496,22127616,49787136,101606400,207360000,392040000,741200625,1317690000,2342560000,3958926400,6690585616,10837642... |
/*
Output "Hello world!" to standard output.
For Aarch64 (ARM64) architecture with GNU assembler, using Linux libc functions.
Assemble with :
as -o hello.o hello.aarch64.linux.libc.gas.asm &&
gcc -o hello hello.o
*/
.global main
.section .text
.balign 4
main:
stp x29, x30, [sp, -16]!
add x29, sp, 0
adrp x0, mes... |
; =============================================================================
; Pure64 -- a 64-bit OS loader written in Assembly for x86-64 systems
; Copyright (C) 2008-2014 Return Infinity -- see LICENSE.TXT
;
; INIT CPU
; =============================================================================
init_c... |
#include <iostream>
#include "CString.h"
using namespace std;
int main(){
CString s1("toto"), s2('q'), s3;
cout << s1.getString() << endl;
cout << s2.getString() << endl;
cout << "nbrChaines = " << CString::nbr_chaines() << endl; //afficher le nombre de chaines créées
s3 = s1.plus('w');
cout << "s3=" << s3.get... |
; A138749: a(n) = 2*a(n-1) - 5*a(n-2).
; Submitted by Jon Maiga
; -1,-7,-9,17,79,73,-249,-863,-481,3353,9111,1457,-42641,-92567,28071,518977,897599,-799687,-6087369,-8176303,14084239,69049993,67678791,-209892383,-758178721,-466895527,2857102551,8048682737,1811852719,-36619708247
add $0,1
mov $2,1
lpb $0
sub $0,1
a... |
dnl SPARC v9 mpn_mul_1 for T3/T4/T5.
dnl Contributed to the GNU project by David Miller and Torbjörn Granlund.
dnl Copyright 2013 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... |
; DV3 IDE Direct Sector Access Address V3.00 1998 Tony Tebby
; use per drive check for lba not per device V3.01 W. Lenerz 2017 Nov 18
section dv3
xdef id_diradd ; direct sector address
xref id_ident
xref dv3_dsector
include 'dev8_keys_err'
include 'dev8_dv3_keys'
include 'dev8_dv3_hd_keys'
inc... |
TITLE PRACTICE PROBLEM 7
.MODEL SMALL
.DATA
STR1 DB 'Enter 3 single digit umbers: $'
STR2 DB 'Sum = $'
.CODE
MAIN PROC
MOV DX, @DATA
MOV DS, DX
LEA DX, STR1 ;1st string
MOV AH, 9
INT 21h
MOV AH,1 ... |
; A266304: Total number of OFF (white) cells after n iterations of the "Rule 15" elementary cellular automaton starting with a single ON (black) cell.
; 0,1,5,6,14,15,27,28,44,45,65,66,90,91,119,120,152,153,189,190,230,231,275,276,324,325,377,378,434,435,495,496,560,561,629,630,702,703,779,780,860,861,945,946,1034,1035... |
include cmacros.inc
sBegin DATA
stacker_lbl db 'STACKER ' ;
oldDTAaddr dd 0
myDTA db 21 dup (0) ; reserved
db 0 ; attrib
dw 0 ; time
dw 0 ; date
dd 0 ; file size
volname db 13 dup (0) ; file name
db 5 dup (0) ; b... |
; A106149: Number of prime factors with multiplicity of the difference between consecutive primes.
; 0,1,1,2,1,2,1,2,2,1,2,2,1,2,2,2,1,2,2,1,2,2,2,3,2,1,2,1,2,2,2,2,1,2,1,2,2,2,2,2,1,2,1,2,1,3,3,2,1,2,2,1,2,2,2,2,1,2,2,1,2,2,2,1,2,2,2,2,1,2,2,3,2,2,2,2,3,2,3,2,1
add $0,1
seq $0,40 ; The prime numbers.
div $0,2
mul $0,... |
; position independent non-NULL shellcode
BITS 32
section .text
global _start
_start:
jmp start ; jump to program start (keeps PIC offsets from having NULLs)
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; get_address(1, 2, 3)
; [esp + 0xC] = (3) st... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Geoworks 1995 -- All Rights Reserved
GEOWORKS CONFIDENTIAL
PROJECT: Socket
MODULE: Modem Driver
FILE: modemParse.asm
AUTHOR: Jennifer Wu, Mar 16, 1995
ROUTINES:
Name Description
---- ---------... |
bin/kernel_nopage: file format elf32-i386
Disassembly of section .text:
00100000 <kern_entry>:
.text
.globl kern_entry
kern_entry:
# reload temperate gdt (second time) to remap all physical memory
# virtual_addr 0~4G=linear_addr&physical_addr -KERNBASE~4G-KERNBASE
lgdt REALLOC(__gdtdesc)
100000: ... |
/*
* Copyright (c) 2013 The WebRTC 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 contribut... |
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
c0
.text@150
lbegin:
ld a, 00
ldff(ff), a
ld b, 91
call lwaitly_b
ld a, b1
ldff(40), a
ld a, a5
ldff(4b), a
ld c, 41
ld b, 03
lbegin_waitm3:
ldff a, (c)
and a, b
cmp a, b
jrnz lbegin_waitm3
ld a, 20
ldff(c), a
xor a, a
ldff(0f), a
l... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
+---------... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 14.00.50727.42
TITLE c:\Documents and Settings\Michael\Desktop\bte_lighter\Demos\Demo11\SysCore\Kernel\mmngr_virtual.cpp
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
PUBLIC ?_cur_directory@@3PAUpdire... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x12446, %r9
nop
nop
nop
nop
and %rbx, %rbx
mov (%r9), %r12
xor %rcx, %rcx
lea addresses_normal_ht+0x6d5a, %rdx
nop
nop
nop
inc %r13
movl $0x61626364, (%rdx)
nop
add %rcx, %rcx... |
###############################################################################
# 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... |
// 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.
// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
#include "config.h"
#include "IDBObjectStoreParameters.h"
namesp... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x1c230, %rsi
lea addresses_WT_ht+0xcc04, %rdi
nop
nop
nop
nop
nop
cmp $53795, %rax
mov $95, %rcx
rep movsl
nop
cmp $61926, %r9
lea addresses_WC_ht+0x14664, %rsi
lea addresses_WC_ht+0x5fb... |
default rel
%define XMMWORD
%define YMMWORD
%define ZMMWORD
section .text code align=64
EXTERN OPENSSL_ia32cap_P
global rsaz_512_sqr
ALIGN 32
rsaz_512_sqr:
mov QWORD[8+rsp],rdi ;WIN64 prologue
mov QWORD[16+rsp],rsi
mov rax,rsp
$L$SEH_begin_rsaz_512_sqr:
mov rdi,rcx
mov rsi,rdx
mov rdx,r8
... |
; A239186: Sum of the largest two parts in the partitions of 4n into 4 parts with smallest part equal to 1.
; 2,23,93,243,492,878,1432,2165,3123,4337,5810,7596,9726,12195,15065,18367,22088,26298,31028,36257,42063,48477,55470,63128,71482,80495,90261,100811,112100,124230,137232,151053,165803,181513,198122,215748,234422,2... |
SECTION code_clib
SECTION code_fp_math48
PUBLIC am48_double8
EXTERN am48_double16
am48_double8:
; 8-bit integer to double
;
; enter : L = 8-bit integer n
;
; exit : AC = AC' (AC' saved)
; AC'= (double)(n)
;
; uses : af, bc, de, hl, af', bc', de', hl'
ld a,l ... |
;
; Z88 Graphics Functions - Small C+ stubs
;
; Written around the Interlogic Standard Library
;
; Trace a relative line in the stencil vectors
;
; Stefano Bodrato - 08/10/2009
;
;
; $Id: w_stencil_add_liner.asm,v 1.3 2016-04-23 20:37:40 dom Exp $
;
;; void stencil_add_liner(int dx, int dy, unsigned ... |
TITLE rc5-586.asm
IF @Version LT 800
ECHO MASM version 8.00 or later is strongly recommended.
ENDIF
.486
.MODEL FLAT
OPTION DOTNAME
IF @Version LT 800
.text$ SEGMENT PAGE 'CODE'
ELSE
.text$ SEGMENT ALIGN(64) 'CODE'
ENDIF
ALIGN 16
_RC5_32_encrypt PROC PUBLIC
$L_RC5_32_encrypt_begin::
;
push ebp
push esi
push edi
m... |
; https://wiki.osdev.org/Babystep2
; Writing a string message using the BIOS calls.
; Set cursor to the beginning of the screen.
; Initialize the address of the message.
; BIOS loads the boot sector at 0x07C0
; More info: https://www.glamenv-septzen.net/en/view/6
mov ax, 0x7C0
mov ds, ax ; segment of the string
... |
; A255993: Number of length n+2 0..1 arrays with at most one downstep in every n consecutive neighbor pairs.
; 8,16,28,45,68,98,136,183,240,308,388,481,588,710,848,1003,1176,1368,1580,1813,2068,2346,2648,2975,3328,3708,4116,4553,5020,5518,6048,6611,7208,7840,8508,9213,9956,10738,11560,12423,13328,14276,15268,16305,1738... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r14
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x3d14, %rbx
clflush (%rbx)
nop
nop
nop
cmp %rax, %rax
vmovups (%rbx), %ymm0
vextracti128 $0, %ymm0, %xmm0
vpextrq $1, %xmm0, %r11
nop
nop
nop
nop
nop
cmp %r... |
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 28
rst 28
rst 30
rst 30
rst 38
rst 38
rst 38
rst 38
cp $fe
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst ... |
.SET MODE GRAPHICS
.ORIG x3000
CLEAR
AND R0,R0,#0 ;; x
AND R1,R1,#0 ;; y
AND R3,R3,#0 ;; char to poke
LD R4,ROWS
LD R6,COLS
LOOP: POKE R0,R1,R3
ADD R3,R3,#1
ADD R0,R0,#1
ADD R5,R0,R4
BRz NEXT
BR LOOP
HALT
NEXT AND R0,R0... |
; A158874: a(n) = (n + 4)*(n + 3)*(n + 2)*(n + 1)*n / 5 = 24*A000389(n+4).
; 0,24,144,504,1344,3024,6048,11088,19008,30888,48048,72072,104832,148512,205632,279072,372096,488376,632016,807576,1020096,1275120,1578720,1937520,2358720,2850120,3420144,4077864,4833024,5696064,6678144,7791168,9047808,10461528,12046608,1381816... |
; A008475: If n = Product (p_j^k_j) then a(n) = Sum (p_j^k_j) (a(1) = 0 by convention).
; 0,2,3,4,5,5,7,8,9,7,11,7,13,9,8,16,17,11,19,9,10,13,23,11,25,15,27,11,29,10,31,32,14,19,12,13,37,21,16,13,41,12,43,15,14,25,47,19,49,27,20,17,53,29,16,15,22,31,59,12,61,33,16,64,18,16,67,21,26,14,71,17,73,39,28,23,18,18,79,21,81,4... |
#include<bits/stdc++.h>
#include<unistd.h>
using namespace std;
#define FZ(n) memset((n),0,sizeof(n))
#define FMO(n) memset((n),-1,sizeof(n))
#define F first
#define S second
#define PB push_back
#define ALL(x) begin(x),end(x)
#define SZ(x) ((int)(x).size())
#define IOS ios_base::sync_with_stdio(0); cin.tie(0)
#define ... |
; A028200: Expansion of 1/((1-6x)(1-7x)(1-8x)(1-9x)).
; Submitted by Jon Maiga
; 1,30,565,8550,113701,1388310,15958405,175419750,1863406501,19269697590,195034120645,1939826329350,19018419228901,184245490086870,1767124523521285,16805853434269350,158682246543588901,1489103597614860150,13900428943759584325,129167969123500... |
; void bit_beep_di(uint16_t duration_ms, uint16_t frequency_hz)
SECTION code_clib
SECTION code_sound_bit
PUBLIC _bit_beep_di
EXTERN asm_bit_beep_di
_bit_beep_di:
pop af
pop hl
pop de
push de
push hl
push af
jp asm_bit_beep_di
|
// Windows/PropVariant.cpp
#include "StdAfx.h"
#include "PropVariant.h"
#include "../Common/Defs.h"
namespace NWindows {
namespace NCOM {
CPropVariant::CPropVariant(const PROPVARIANT& varSrc)
{
vt = VT_EMPTY;
InternalCopy(&varSrc);
}
CPropVariant::CPropVariant(const CPropVariant& varSrc)
{
... |
//===--- RewriteObjC.cpp - Playground for the code rewriter ---------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
; A066729: a(n) = Product_{d|n, d<n} d if n is composite, n otherwise.
; 1,2,3,2,5,6,7,8,3,10,11,144,13,14,15,64,17,324,19,400,21,22,23,13824,5,26,27,784,29,27000,31,1024,33,34,35,279936,37,38,39,64000,41,74088,43,1936,2025,46,47,5308416,7,2500,51,2704,53,157464,55,175616,57,58,59,777600000,61,62,3969,32768,65,287496,6... |
/**************************************************************
*
* 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 y... |
; A334172: Bitwise XNOR of prime(n) and prime(n + 1).
; Submitted by Christian Krause
; 2,1,5,3,9,3,29,27,21,29,5,51,61,59,37,49,57,1,123,113,121,99,117,71,123,125,115,121,99,113,3,245,253,225,253,245,193,251,245,225,249,245,129,251,253,235,243,195,249,243,249,225,245,5,505,501,509,485
add $0,1
mov $5,$0
sub $0,1
seq ... |
;; hello-os
;; TAB=4
ORG 0x7c00 ; メモリの読み込み位置を指定
CYLS EQU 20 ; #define CYLS = 10
;; FAT12フォーマットフロッピーディスク用の記述
JMP entry
DB 0x90
DB "HARIBOTE" ; ブートセクタの名前
DW 512 ; 1セクタの大きさ
DB 1 ... |
@256
D=A
@SP
M=D
@3
D=A
@SP
M=M+1
A=M-1
M=D
@5
D=A
@SP
M=M+1
A=M-1
M=D
@7
D=A
@SP
M=M+1
A=M-1
M=D
@3
D=A
@SP
M=M+1
A=M-1
M=D
@LCL
D=M
@1
D=D+A
@15
M=D
@SP
AM=M-1
D=M
@15
A=M
M=D
@SP
M=M-1
A=M
D=M
@SP
M=M-1
A=M
D=D+M
@SP
A=M
M=D
@SP
M=M+1
|
; Object Mappings Subtype Frame Arttile
dbglistobj Obj_Ring, Map_Ring, 0, 0, make_art_tile($3D2,3,1)
dbglistobj Obj_2PItem, Map_2PItem, 0, 0, make_art_tile($3C6,0,0)
dbglistobj Obj_PathSwap, Map_PathSwap, 9, 1, make_art_tile($3D2,3,0)
dbglistobj Obj_PathSwap, Map_PathSwap, $D... |
#include <topological_sort.h>
#include <limits>
#include <set>
#include <stack>
using namespace std;
namespace Graph
{
TopologicalSort::TopologicalSort(const IGraph &rG) :
_marked (rG.vertices(), false),
_reversePost ()
{
for(int v = 0; v < rG.vertices(); ++v)
... |
// seed 4
lbi r0, 128 // icount 0
slbi r0, 0 // icount 1
lbi r1, 128 // icount 2
slbi r1, 0 // icount 3
lbi r2, 128 // icount 4
slbi r2, 0 // icount 5
lbi r3, 128 // icount 6
slbi r3, 0 // icount 7
lbi r4, 128 // icount 8
slbi r4, 0 // icount 9
lbi r5, 128 // icount 10
slbi r5, 0 // icount 11
lbi r6, 128 // icount 12
s... |
; A142250: Primes congruent to 1 mod 43.
; Submitted by Simon Strandgaard
; 173,431,947,1033,1291,1549,1721,1979,2237,2753,3011,3527,3613,4129,4817,4903,5333,5419,5591,5849,6451,6709,6967,7741,8171,8429,9203,9461,9547,9719,10321,10837,11353,11783,12041,13159,13331,13417,13933,14449,14621,14879,15137,15739,16427,16943,1... |
; int fsetpos(FILE *stream, const fpos_t *pos)
INCLUDE "clib_cfg.asm"
SECTION code_stdio
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $02
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC fsetpos
EXTERN asm_fsetpos
fsetpos:
pop af
pop hl
pop ix
push hl
push hl
push af
jp asm_fse... |
.ORIG x3000
AND R0, R0, #0 ;0x3000
AND R1, R1, #0 ;0x3002
AND R2, R2, #0 ;0x3004
AND R3, R3, #0 ;0x3006
LEA R0, COUNTER ;0x3008
LDW R0, R0, #0 ;0x300A
LEA R1, DATA ;0x300C
LDW R1, R1, #0 ;0x300E
LOOP... |
//===----------------------------------------------------------------------===//
//
// 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
//
//===---------------------------... |
/*************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors a... |
// Quick reset
origin 0x109FB8
base 0x8018D0C8
jal QuickReset
origin 0x10B204
base 0x8018E314
j SkipResults
nop
SkipResults_Return:
pullvar pc, origin
scope QuickReset: {
Input:
lui t0, 0x8004
lli t1, 0xF010 // A, B, Z, R, Start
lli t2, 0x04 // Loop counter
Loop:
lhu t3, 0x5228 (t0) // Input... |
_ln: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
int
main(int argc, char *argv[])
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
if(argc != 3){
7: 83 39 03 cmpl $0x3,(%ecx)... |
/*
* Copyright (c) 2015 Cryptonomex, Inc., and contributors.
*
* The MIT License
*
* 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... |
#pragma once
#include "indexer/mwm_set.hpp"
#include "indexer/rank_table.hpp"
#include "geometry/point2d.hpp"
#include "geometry/rect2d.hpp"
#include "geometry/tree4d.hpp"
#include "base/macros.hpp"
#include "std/unique_ptr.hpp"
#include "std/unordered_set.hpp"
class Index;
namespace search
{
class VillagesCache;... |
;===============================================================================
; Copyright 2015-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") co... |
; A065172: Inverse permutation to A065171.
; 1,3,5,2,9,7,13,4,17,11,21,6,25,15,29,8,33,19,37,10,41,23,45,12,49,27,53,14,57,31,61,16,65,35,69,18,73,39,77,20,81,43,85,22,89,47,93,24,97,51,101,26,105,55,109,28,113,59,117,30,121,63,125,32,129,67,133,34,137
sub $0,1
sub $1,$0
dif $0,2
add $0,2
add $1,$0
gcd $1,2
mul $0,$1
... |
// lambdas3_1.cpp : lambda which outputs each element and calculates sum of all
#include <algorithm>
#include <iostream>
int main() {
auto data = { 1.0, 2.2, 3.1, 2.1, 0.5, 1.6 };
double sum{};
auto sum_and_average = [&](const auto& elem){
std::cout << elem << " ";
sum += elem;
... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. Th... |
; A226741: Column 4 of array in A226513.
; 75,308,807,1704,3155,5340,8463,12752,18459,25860,35255,46968,61347,78764,99615,124320,153323,187092,226119,270920,322035,380028,445487,519024,601275,692900,794583,907032,1030979,1167180,1316415,1479488,1657227,1850484,2060135,2287080,2532243,2796572,3081039,3386640,3714395,406... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r14
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x1047a, %r13
nop
nop
nop
add $41447, %rax
mov $0x6162636465666768, %r14
movq %r14, %xmm4
movups %xmm4, (%r13)
inc %r10
lea addresses_UC_ht+0xbc3a, %rsi
lea addresses_UC_ht+0x... |
; A184550: Super-birthdays (falling on the same weekday), version 2 (birth within 1 and 2 years after a February 29).
; 0,6,11,17,28,34,39,45,56,62,67,73,84,90,95,101,112,118,123,129,140,146,151,157,168,174,179,185,196,202,207,213,224,230,235,241,252,258,263,269,280,286,291,297,308,314,319,325,336,342,347,353,364,370,3... |
.MEMORYMAP
DEFAULTSLOT 0
SLOT 0 START $F000 SIZE $1000 NAME "ROM"
SLOT 1 START $80 SIZE $80 NAME "RAM"
.ENDME
.ROMBANKSIZE $1000
.ROMBANKS 1
.include "vcs.inc"
.include "macro.inc"
|
;
;********************************************************************************************************
; uC/OS-II
; The Real-Time Kernel
;
;
; (c) Copyright 2009-2016; Micrium, Inc.; Weston, FL
; ... |
#include "compiler/tensor.h"
#include <cstdint>
#include <cstdlib>
#include <cstring>
#include <sstream>
#include <chainerx/routines/creation.h>
#include <common/log.h>
#include <compiler/serializer_util.h>
#include <runtime/chainerx_util.h>
namespace chainer_compiler {
namespace {
typedef std::unique_ptr<void, d... |
// 14. Hacer un programa que calcule el cuadrado de una suma. (a + b)^2 = a^2 + b^2 + 2ab
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
float a, b, resultado;
cout << "Ingrese valores para a y b " << endl;
cin >> a >> b;
resultado = pow(a, 2) + pow(b, 2) + (2 * a * b);
cout... |
object_const_def ; object_event constants
const MOUNTMOONSQUARE_FAIRY1
const MOUNTMOONSQUARE_FAIRY2
const MOUNTMOONSQUARE_ROCK
MountMoonSquare_MapScripts:
db 1 ; scene scripts
scene_script .DummyScene ; SCENE_DEFAULT
db 2 ; callbacks
callback MAPCALLBACK_NEWMAP, .DisappearMoonStone
callback MAPCALLBACK_OBJEC... |
#include "eval/eval/container_access_step.h"
#include <cstdint>
#include "google/protobuf/arena.h"
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/str_cat.h"
#include "eval/eval/evaluator_core.h"
#include "eval/eval/expression_step_base.h"
#include "eval/public/cel_value.h"
#i... |
; Copyright (c) 2004, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. The full text of the license may be found at ... |
//===-- tsan_flags_test.cc ------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
.386
.model flat,stdcall
option casemap:none
.data
currWindow dd 0
public currWindow
cdeg dd 0
public cdeg
pindeg dd 360 DUP(0)
public pindeg
pinnum dd 0
public pinnum
psin dd 360 DUP(0)
public psin
pcos dd 360 DUP(0)
public pcos
ginterval dd 0
public ginterval
end |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.