text stringlengths 1 1.05M |
|---|
default rel
section .text
global _0x0ff0_lddqu
global _0x0ff1_psllw
global _0x0ff2_pslld
global _0x0ff3_psllq
global _0x0ff4_pmuludq
global _0x0ff5_pmaddwd
global _0x0ff6_psadbw
global _0x0ff7_maskmov
global _0x0ff8_psubb
global _0x0ff9_psubw
global _0x0ffa_psubd
global _0x0ffb_psubq
global _0x0ffc_... |
SECTION .text
GLOBAL square_p384
square_p384:
sub rsp, 0x4a8 ; last 0x30 (6) for Caller - save regs
mov [ rsp + 0x478 ], rbx; saving to stack
mov [ rsp + 0x480 ], rbp; saving to stack
mov [ rsp + 0x488 ], r12; saving to stack
mov [ rsp + 0x490 ], r13; saving to stack
mov [ rsp + 0x498 ], r14; saving to stack
mov [ rs... |
; A315767: Coordination sequence Gal.6.627.6 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; Submitted by Jamie Morken(s1)
; 1,6,12,18,24,30,34,40,46,52,58,64,70,76,82,88,94,98,104,110,116,122,128,134,140,146,152,158,162,168,174,180,... |
; SBROM: 64KB PRG-ROM + (16,32,64)KB CHR-ROM
; http://bootgod.dyndns.org:7777/search.php?keywords=SBROM&kwtype=pcb
; Used for only three USA region games?
;------------------------------------------------------------------------------;
; number of 8K CHR banks
; Valid configurations: $02 (16K), $04 (32K), $08 (64K)
CHR... |
version https://git-lfs.github.com/spec/v1
oid sha256:846653215e2f6ca0bc9500cfedb5360f76755a518318e4c5114a42f3d44069ba
size 5795
|
dnl Itanium-2 mpn_gcd_1 -- mpn by 1 gcd.
dnl Contributed to the GNU project by Kevin Ryde, innerloop by Torbjorn
dnl Granlund.
dnl Copyright 2002-2005, 2012, 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... |
#include "foodspawner.hpp"
#include <random>
#include <QDateTime>
#include "server.hpp"
#include <QRandomGenerator>
std::array<int, 26> FoodSpawner::ENGLISH_LETTER_FREQ = {
817, 149, 278, 425, 1270, 223, 202, 609, 697, 15, 77, 403,
241, 675, 751, 193, 9, 599, 633, 906, 276, 97, 236, 15, 197, 7
};
std... |
; A198308: Moore lower bound on the order of an (8,g)-cage.
; 9,16,65,114,457,800,3201,5602,22409,39216,156865,274514,1098057,1921600,7686401,13451202,53804809,94158416,376633665,659108914,2636435657,4613762400,18455049601,32296336802,129185347209,226074357616,904297430465,1582520503314,6330082013257,11077643523200,443... |
; A074503: a(n) = 1^n + 2^n + 7^n.
; 3,10,54,352,2418,16840,117714,823672,5765058,40354120,282476274,1977328792,13841291298,96889018600,678223089234,4747561542712,33232930635138,232630514118280,1628413598172594,11398895185897432
mov $1,7
pow $1,$0
mov $2,2
pow $2,$0
add $1,$2
mov $0,$1
add $0,1
|
db 0 ; species ID placeholder
db 105, 105, 75, 50, 65, 100
; hp atk def spd sat sdf
db POISON, POISON ; type
db 75 ; catch rate
db 157 ; base exp
db NO_ITEM, NUGGET ; items
db GENDER_F50 ; gender ratio
db 20 ; step cycles to hatch
INCBIN "gfx/pokemon/muk/front.dimensions"
db GROWTH_MEDIUM_FAST ; ... |
#ifndef _VKTAPIVERSIONCHECK_HPP
#define _VKTAPIVERSIONCHECK_HPP
/*-------------------------------------------------------------------------
* Vulkan Conformance Tests
* ------------------------
*
* Copyright (c) 2017 Khronos Group
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use thi... |
// Copyright (c) 2016-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 <amount.h>
#include <policy/feerate.h>
#include <test/test_sin.h>
#include <boost/test/unit_test.hpp>
BOOST_FIXTUR... |
.global s_prepare_buffers
s_prepare_buffers:
push %r15
push %r8
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0xe41c, %r15
sub %r8, %r8
mov $0x6162636465666768, %rbx
movq %rbx, %xmm4
movups %xmm4, (%r15)
nop
nop
nop
nop
and $60566, %rax
lea addresses_UC_ht+0x85bc, %rsi
lea addresses_UC_h... |
;----------------------------------------------------------------------
; stat.asm - user-callable entry point to _stat() function.
;----------------------------------------------------------------------
;
; C/C++ Run Time Library - Version 10.0
;
; Copyright (c) 1996, 2000 by Inprise Corporation
; ... |
; A269716: Number of active (ON,black) cells at stage 2^n-1 of the two-dimensional cellular automaton defined by "Rule 22", based on the 5-celled von Neumann neighborhood.
; Submitted by Christian Krause
; 1,5,20,88,368,1504,6080,24448,98048,392704,1571840,6289408,25161728,100655104,402636800,1610579968
mov $3,2
pow $... |
; DEROM: 64KB PRG-ROM + (32,64)KB CHR-ROM
; http://bootgod.dyndns.org:7777/search.php?keywords=DEROM&kwtype=pcb
; DEROM uses Nintendo's clone of a Tengen 800002.
;------------------------------------------------------------------------------;
; number of 8K CHR banks
; Valid values: $04 (32K), $08 (64K)
CHR_BANKS = $04... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2011-2015 Intel Corporation All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions
; are met:
; * Redistributions of s... |
; Z88 Small C+ Run time Library
SECTION code_crt0_sccz80
PUBLIC l_ne
;
; DE != HL
; set carry if true
.l_ne
ld a,l
sub e
ld l,a
ld a,h
sbc d
ld h,a
or l
inc hl
scf
... |
section .multiboot_header
header_start:
dd 0xe85250d6 ; magic number
dd 0
dd header_end - header_start
; checksum
dd 0x100000000 - (0xe85250d6 + 0 + (header_end - header_start))
; required end tag
dw 0
dw 0
dd 8
header_end:
|
bits 64
add rdi, r10
add al, 10
add ax, 10
add rdx, rcx
add rax, 32
add [rbp-40], rax ;
add rdi, [rbp-72]
add eax, dword [rdi+44]
add dword [rdi+44], 1
add r10, rcx
add byte [rcx], al
|
LI A, 0
LI B, 0
LI U, 0
LI V, 0
LI D, 1
delay256_0:
INUV
LI B, 1
ADD A
LI B, 255
CMP
LXY delay256_0
JNE
NOP
NOP
LI D, 255
HLT
|
; clear-instructions-macros.asm
*pragmapush list ; Save state of list pragma
pragma nolist ; Turn off assembly listing and exclude from symbol list
ifndef CLEAR_INSTRUCTIONS_MACROS ; Load defines only once
clru macro... |
; Lunar Launcher
; (c) 2018 Michael Bayer
;
;
; TODO
;
processor 6502
include "vcs.h"
include "macro.h"
;----------------------------
; Constants
;----------------------------
; ntsc constants
VBLANK_WAIT = 42
; Game constants
COL_BG_SCORE = $0
COL_BG_RESOURCES = $0
COL_BG_LIGHT = $b6
COL_BG_DARK = $... |
; A231672: a(n) = Sum_{i=0..n} digsum_6(i), where digsum_6(i) = A053827(i).
; 0,1,3,6,10,15,16,18,21,25,30,36,38,41,45,50,56,63,66,70,75,81,88,96,100,105,111,118,126,135,140,146,153,161,170,180,181,183,186,190,195,201,203,206,210,215,221,228,231,235,240,246,253,261,265,270,276,283,291,300,305,311,318,326,335,345,351,35... |
; Copyright (c) Piotr Durlej
; 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 conditions and the followi... |
;-----------------------------------------------------
; File name: example.asm
; Study by Jedi Chou, 2020.1.1 20:37
;-----------------------------------------------------
;-----------------------------------------------------
; Define instrcut set and program execute model
.386
.model flat
;---------------... |
; A213367: Numbers that are not squares of primes.
; 1,2,3,5,6,7,8,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70
mov $1,$0
sub $1,1
mov $2,$1
mov $3,3
lpb $1
add $0,1
add $2,3
mov $4... |
BITS 16
org 0x7c00
start:
mov eax, 0
mov ebx, 0x10
mov ecx, 0x11
call 0x7C0:0x2D ; eax: 0x10 after addEbx
mov edx, 0x12
call [indirect] ; eax: 0x21 after addEcx
add eax, edx ; eax: 0x33
call far [farAddr] ; eax: 43 after addEbx
jmp 0:0
addEbx:
add eax, ebx
retf
addEcx:
... |
lda {m1}+1
bne {la1}
sty $ff
lda {m1}
cmp $ff
bcs {la1}
!: |
; $Id: bs3-cmn-SwitchToRing1.asm $
;; @file
; BS3Kit - Bs3SwitchToRing1
;
;
; Copyright (C) 2007-2017 Oracle Corporation
;
; This file is part of VirtualBox Open Source Edition (OSE), as
; available from http://www.virtualbox.org. This file is free software;
; you can redistribute it and/or modify it under the terms o... |
/*ckwg +5
* Copyright 2012-2014 by Kitware, Inc. All Rights Reserved. Please refer to
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
*/
#include "file_format_xgtf.h"
#include <vul/vul_reg_exp.h>
#include <vgl/vgl_point_2d.h... |
.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 b, 91
call lwaitly_b
ld a, b1
ldff(40), a
ld a, 07
ldff(4b), a
ld c, 41
ld b, 03
lbegin_waitm3:
ldff a, (c)
and a, b
cmp a, b
jrnz lbegi... |
lda {c1},y
cmp #<{c2}
lda {c1}+1,y
sbc #>{c2}
bvc !+
eor #$80
!:
bmi {la1} |
#include "LED.h"
#include <iostream>
LED::LED(const uint32_t id, const uint32_t pin)
{
this->m_virtual_device_id = id;
this->led_controller = new HardwareController(pin,HardwareController::IO_MODE::OUTPUT);
this->register_hardware_controller(*this->led_controller);
this->register_network_event_hand... |
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 4.0.0 #11528 (MINGW64)
;--------------------------------------------------------
; MODULE 07_function
.optsdcc -mgbz80
; Generated using the rgbds tokens.
; We have to define these here as s... |
;/*------------------------------------------------------------*/
;/* filename - sysint.asm */
;/* */
;/* function(s) */
;/* TSystemError member function ... |
// Copyright (C) 2018-2019 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#ifdef __INTEL_COMPILER
#pragma warning disable: 2586
#endif
#include "ie_const_infer_holder.hpp"
#include "ie_mul_const_infer.hpp"
#include "ie_add_const_infer.hpp"
#include "ie_div_const_infer.hpp"
#include "ie_const_const_infer... |
; A256716: a(n) = n*(n+1)*(22*n-19)/6.
; Submitted by Jamie Morken(s1.)
; 0,1,25,94,230,455,791,1260,1884,2685,3685,4906,6370,8099,10115,12440,15096,18105,21489,25270,29470,34111,39215,44804,50900,57525,64701,72450,80794,89755,99355,109616,120560,132209,144585,157710,171606,186295,201799,218140,235340,253421,272405,292... |
/*
* 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... |
/*-------------------------------------------------------------------------
* drawElements Quality Program EGL Module
* ---------------------------------------
*
* Copyright 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except... |
MACRO printargs
REPT _NARG
PRINTLN \1
SHIFT
ENDR
ENDM
printargs mul(3.0, 4.0)
MACRO printlit
REPT _NARG
PRINTLN "\1"
SHIFT
ENDR
ENDM
printlit a(b,c\,d), ((e,f),g), ))h, i\,j,
printlit \(k, l), (m:\)n,o(p)q), (r,s)t
printlit "))u,v(", ("w,x","y,z"),
|
LavenderPokecenter_h:
db POKECENTER ; tileset
db LAVENDER_POKECENTER_HEIGHT, LAVENDER_POKECENTER_WIDTH ; dimensions (y, x)
dw LavenderPokecenterBlocks, LavenderPokecenterTextPointers, LavenderPokecenterScript ; blocks, texts, scripts
db $00 ; connections
dw LavenderPokecenterObject ; objects
|
; A014989: a(n) = (1 - (-7)^n)/8.
; 1,-6,43,-300,2101,-14706,102943,-720600,5044201,-35309406,247165843,-1730160900,12111126301,-84777884106,593445188743,-4154116321200,29078814248401,-203551699738806,1424861898171643,-9974033287201500,69818233010410501,-488727631072873506,3421093417510114543,-23947653922570801800,1676... |
; A146559: Expansion of (1-x)/(1 - 2*x + 2*x^2).
; 1,1,0,-2,-4,-4,0,8,16,16,0,-32,-64,-64,0,128,256,256,0,-512,-1024,-1024,0,2048,4096,4096,0,-8192,-16384,-16384,0,32768,65536,65536,0,-131072,-262144,-262144,0,524288,1048576,1048576,0,-2097152,-4194304,-4194304,0,8388608,16777216,16777216,0,-33554432,-67108864,-6710886... |
; A313051: Coordination sequence Gal.3.33.1 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; 1,4,9,14,18,23,28,32,36,41,46,50,55,60,64,68,73,78,82,87,92,96,100,105,110,114,119,124,128,132,137,142,146,151,156,160,164,169,174,178,183,18... |
//
// Created by jieming on 18.12.20.
//
#include "CollisionCheck.h"
using std::cout;
using std::endl;
int main(int argc, char **argv){
ros::init(argc, argv, "collisionCheckNode");
CollisionCheck checker;
ros::Rate rate(50);
while(ros::ok()){
rate.sleep();
ros::spinOnce();
... |
;
; SORD M5 Stdio
;
; getkey() Wait for keypress
;
; Stefano Bodrato - Apr. 2000
;
;
; $Id: fgetc_cons.asm,v 1.7+ (now on GIT) $
;
SECTION code_clib
PUBLIC fgetc_cons
PUBLIC _fgetc_cons
EXTERN msxbios
INCLUDE "m5bios.def"
.fgetc_cons
._fgetc_cons
ld ix,ACECHI
call msxbios
IF STANDARDESCAPECHARS
cp 13... |
[section .text]
global _start
_start:
jmp ender
starter:
;fd = open('/etc/passwd',O_RDONLY /* = 0 */,0)
pop rdi ;rdi = '/etc/passwd'
mov rsi, 0x0
mov rdx, 0x0
mov rax, 2 ;sys_open = 2
syscall
; save fd to rbx
mov rbx, rax
;read(fd, memory_w, size)
mov rdi, rbx ;fd
mov rsi, 0x000000000... |
/// \file Owned.hpp
#pragma once
#include <llvm-c/Core.h>
#include <llvm-c/DebugInfo.h>
#include <llvm-c/ExecutionEngine.h>
#include <llvm-c/Transforms/PassManagerBuilder.h>
#include "chi/Fwd.hpp"
namespace chi {
namespace detail {
template <typename T>
using Deleter = void (*)(T);
}
/// An owned object. It takes i... |
// Copyright 2012 Cloudera 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 wr... |
; L1002.asm
; Generated 01.02.1998 by mlevel
; Modified 01.02.1998 by Abe Pralle
INCLUDE "Source/Defs.inc"
INCLUDE "Source/Levels.inc"
INCLUDE "Source/Items.inc"
;---------------------------------------------------------------------
SECTION "Level1002Section",ROMX
;--------------------------------------------------... |
db 0 ; species ID placeholder
db 250, 05, 05, 50, 35, 105
; hp atk def spd sat sdf
db FAIRY, FAIRY ; type
db 30 ; catch rate
db 255 ; base exp
db NO_ITEM, LUCKY_EGG ; items
db GENDER_F100 ; gender ratio
db 100 ; unknown 1
db 40 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/chansey... |
[org 0x0100]
mov ax,5
mov bx,10
add ax,bx
mov ax,0x4c00
int 0x21
|
/*
---------------------------------------------------------------------------
Open Asset Import Library (assimp)
---------------------------------------------------------------------------
Copyright (c) 2006-2012, assimp team
All rights reserved.
Redistribution and use of this software in source and binary... |
; A125811: Number of coefficients in the n-th q-Bell number as a polynomial in q.
; 1,1,1,2,3,5,8,11,15,20,26,32,39,47,56,66,76,87,99,112,126,141,156,172,189,207,226,246,267,288,310,333,357,382,408,435,463,491,520,550,581,613,646,680,715,751,787,824,862,901,941,982,1024,1067,1111,1156,1201
mov $2,$0
lpb $0
add $1,$0... |
[bits 16]
; uint64_t adjust_page_table(uint32_t initReserveLower, uint32_t initReserveHigher);
; Identity maps the first megabyte and the given initial reserve with kernel-exclusive read-write access.
; Note that initReserveLower/Higher are physical addresses which contain 2mb of usable memory.
; Sets eax to th... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x198d0, %r13
nop
nop
inc %rsi
movb (%r13), %cl
nop
nop
nop
add $61572, %r10
lea addresses_A_ht+0x18b22, %rsi
lea addresses_WT_ht+0x11be2, %rdi
nop
nop
nop
nop
nop
and $63037, ... |
SECTION rodata_clib
PUBLIC CRT_FONT
EXTERN _font_8x8_pmd85_system
defc CRT_FONT = _font_8x8_pmd85_system
|
;=====================================================================================================================================
;Program Name: manager.asm *
;Programming Language: x86 Assembly ... |
;********************************************************************************************************
; uC/OS-II
; The Real-Time Kernel
;
; Copyright 1992-2020 Silicon Laboratories Inc. www.silabs.com
;
; ... |
; CRT0 (rom) stub for the SEGA SC-3000/SG-1000
;
; Stefano Bodrato - Jun 2010
;
; $Id: sc3000_crt0.asm,v 1.18 2016-07-13 22:12:25 dom Exp $
;
defc ROM_Start = $0000
defc RAM_Start = $C000
defc RAM_Length = $0800
defc Stack_Top = $c400
defc CRT_ORG_CODE = ROM_Start
... |
;Example of fcntl API. API calls found in this example program:
; open, close, fcntl, exit
; High level description of what theis example program does:
; Opens a file with the open() API.
; Changes the flags for the file to NOATIME, APPEND, and WRONLY using fcntl()_SETFD
; Checks the flags of the file using fcntl()_GE... |
; A258321: a(n) = Fibonacci(n) + n*Lucas(n).
; 0,2,7,14,31,60,116,216,397,718,1285,2278,4008,7006,12179,21070,36299,62304,106588,181812,309305,524942,888977,1502474,2534736,4269050,7178911,12054926,20215927,33859908,56646980,94667088,158045413,263604046,439272349,731390830,1216800504,2022843094,3360432683,5578716622,92... |
/*
* Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* 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 ... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_73a.cpp
Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE805.string.label.xml
Template File: sources-sink-73a.tmpl.cpp
*/
/*
* @description
* CWE: 121 Stack Based Buffer Overflow
* BadSource: Se... |
/**
* Copyright (C) 2009-2015 MongoDB Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be... |
#pragma once
#include "./Boilerplate/Boilerplate.hpp"
#include "./ecs/Utils/Utils.hpp" |
.model small
.data
.code
main proc
mov bl,48h
mov al,85h
sub al,bl
das
endp
end main |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) |
+---------... |
; Copyright (c) 2013 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 "third_party/x86inc/x86inc.asm"
;
; This file uses MMX instructions as an alternative to _mm_empty() which
; is not supported in Visual Studio ... |
; A106006: [n/2] + [n/3] + [n/5].
; 0,0,1,2,3,4,6,6,7,8,10,10,12,12,13,15,16,16,18,18,20,21,22,22,24,25,26,27,28,28,31,31,32,33,34,35,37,37,38,39,41,41,43,43,44,46,47,47,49,49,51,52,53,53,55,56,57,58,59,59,62,62,63,64,65,66,68,68,69,70,72,72,74,74,75
mov $1,$0
div $1,2
mov $2,$0
div $2,3
mov $3,$0
div $3,5
add $3,$2
a... |
#define __CLUCK2SESAME_PLATFORM_CLOCK_ASM
#include "Platform.inc"
#include "TailCalls.inc"
#include "InitialisationChain.inc"
#include "ResetFlags.inc"
#include "Clock.inc"
radix decimal
TMR1CS_MASK equ (1 << TMR1CS)
T1OSCEN_MASK equ (1 << T1OSCEN)
T1SYNC_ASYNC_MASK equ (1 << NOT_T1SYNC)
T1CKPS_DIVIDE_BY_8_MA... |
%ifndef _BUILTIN_CLEAR_ASM
%define _BUILTIN_CLEAR_ASM
builtin_clear:
call cls ; clear console
push 0000h ; home position 0x0
call setcursor ; home cursor on console
add sp, 2 ; cleanup stack
ret
%endif
|
; A001120: a(0) = a(1) = 1; for n > 1, a(n) = n*a(n-1) + (-1)^n.
; Submitted by Jamie Morken(m4)
; 1,1,3,8,33,164,985,6894,55153,496376,4963761,54601370,655216441,8517813732,119249392249,1788740883734,28619854139745,486537520375664,8757675366761953,166395831968477106,3327916639369542121,69886249426760384540,15374974873... |
;===============================================================================
; Copyright 2014-2020 Intel Corporation
;
; 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.apa... |
; A021195: Decimal expansion of 1/191.
; Submitted by Jon Maiga
; 0,0,5,2,3,5,6,0,2,0,9,4,2,4,0,8,3,7,6,9,6,3,3,5,0,7,8,5,3,4,0,3,1,4,1,3,6,1,2,5,6,5,4,4,5,0,2,6,1,7,8,0,1,0,4,7,1,2,0,4,1,8,8,4,8,1,6,7,5,3,9,2,6,7,0,1,5,7,0,6,8,0,6,2,8,2,7,2,2,5,1,3,0,8,9,0,0,5,2
seq $0,83812 ; 4n-1 is the digit reversal of n-1.
div $... |
/**
CIANA - C/C++ Change Impact ANAlyzer
Copyright (c) 2019 HANO Hiroyuki
This software is released under MIT License,
http://opensource.org/licenses/mit-license.php
*/
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/ASTMatchers/ASTMatchers.h"
#include "ast_reader_libclang.h"
#include "location.h"
#in... |
IDD_USERDATA equ 2500
IDC_EDTUSERDATA equ 1003
.data
szUserdataName db 'IDR_',0
defuserdata USERDATAMEM <,1,0,,0>
db 0
.code
ExportUserDataNames proc uses esi edi,hMem:DWORD
invoke xGlobalAlloc,GMEM_FIXED or GMEM_ZEROINIT,1024*16
mov edi,eax
invoke GlobalLock,edi
push edi
mo... |
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... |
// SPDX-License-Identifier: Apache-2.0
// Copyright 2020 - 2022 Pionix GmbH and Contributors to EVerest
#include "emptyImpl.hpp"
namespace module {
namespace main {
void emptyImpl::init() {
}
void emptyImpl::ready() {
}
} // namespace main
} // namespace module
|
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r14
push %r8
push %r9
push %rcx
push %rdx
lea addresses_A_ht+0xb34a, %rcx
nop
cmp $49802, %r12
mov $0x6162636465666768, %rdx
movq %rdx, %xmm6
movups %xmm6, (%rcx)
nop
nop
sub %r14, %r14
lea addresses_WT_ht+0x8b4a, %r9
nop
nop
add $10661, %r13
mov (%... |
#include "Mapper0.h"
namespace nes {
void Mapper0::reset()
{
set_prg_map<16>(0, 0);
set_prg_map<16>(1, 1);
set_chr_map<8>(0, 0);
}
} // namespace nes
|
; ===============================================================
; May 2016
; ===============================================================
;
; long long atoll(const char *buf)
;
; Read the initial portion of the string as decimal long long and
; return value read. Any initial whitespace is skipped.
;
; =========... |
;
; The MIT License (MIT)
;
; Copyright © 2016 Franklin "Snaipe" Mathieu <http://snai.pe/>
;
; 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 ... |
;cmtCore assembly support
;i386 version for masm
.model flat
.code
;cx dx
;void cmtSpinLockEnter(cmtUint8* value, cmtUint64 MaxSpin)
@cmtSpinLockEnter@8 proc
;ah=1
xor ah, ah
inc ah
;检查MaxSpin是否为-1
cmp edx, 0ffffffffh
je cSLE_NoCount
cSLE_SpinStart:
;减法模式,控制循环次数
test edx, edx
;自旋数到达上限
... |
; A098923: 33-gonal numbers: n(31n-29)/2.
; 0,1,33,96,190,315,471,658,876,1125,1405,1716,2058,2431,2835,3270,3736,4233,4761,5320,5910,6531,7183,7866,8580,9325,10101,10908,11746,12615,13515,14446,15408,16401,17425,18480,19566,20683,21831,23010,24220,25461,26733,28036,29370,30735,32131,33558,35016,36505,38025,39576,41158... |
/*BEGIN_LEGAL
Intel Open Source License
Copyright (c) 2002-2016 Intel Corporation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
Redistributions of source code must retain the above copyr... |
; A004984: a(n) = (2^n/n!)*Product_{k=0..n-1} (4*k - 1).
; Submitted by Jamie Morken(s4)
; 1,-2,-6,-28,-154,-924,-5852,-38456,-259578,-1788204,-12517428,-88759944,-636112932,-4599585816,-33511268088,-245749299312,-1812401082426,-13433090375628,-100001895018564,-747382583822952,-5605369378672140,-42173731515723720,-3182... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkControlPointsItem.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This soft... |
SECTION code_clib
PUBLIC cleararea
EXTERN pixeladdress
EXTERN leftbitmask, rightbitmask
;
; $Id: clrarea2.asm,v 1.6 2017/01/02 21:51:24 aralbrec Exp $
;
; ***********************************************************************
;
; Clear specified graphics area in map.
;
; Design & programming by Gunther Str... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r15
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0xa6e9, %r13
nop
nop
nop
xor $11385, %rdi
mov $0x6162636465666768, %r10
movq %r10, %xmm4
vmovups %ymm4, (%r13)
sub %rdi, %rdi
lea addresses_normal_ht+0x9a49, %rdx
clf... |
; A003589: a(n) has the property that the sequence b(n) = number of 2's between successive 3's is the same as the original sequence.
; 2,2,3,2,2,3,2,2,3,2,2,2,3,2,2,3,2,2,3,2,2,2,3,2,2,3,2,2,3,2,2,2,3,2,2,3,2,2,3,2,2,3,2,2,2,3,2,2,3,2,2,3,2,2,2,3,2,2,3,2
mov $2,$0
mov $5,2
lpb $5
mov $0,$2
sub $5,1
add $0,$5
s... |
#include<cstdio>
#include<queue>
using namespace std;
struct Node {
int data;
Node *l;
Node *r;
};
int p[31], i[31],c[31],cnt=0;
Node *root;
queue<Node*> q;
Node* create(int pl, int pr, int il, int ir) {
if (pl > pr || il > ir) {
return NULL;
}
Node* root = new Node;
root->data = p[pr];
int k;
for (k = il;k<... |
/*
Copyright (c) 2018, Ford Motor Company
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this
list of conditions and the fo... |
_stressfs: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "fs.h"
#include "fcntl.h"
int
main(int argc, char *argv[])
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
int fd, i;
char path[] = "stressfs0";
7: b8 30 00 0... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//
// THREADS.CPP
//
//
//
#include "common.h"
#include "frames.h"
#include "threads.h"
#include "stackwalk.h... |
; A271832: Period 12 zigzag sequence: repeat [0,1,2,3,4,5,6,5,4,3,2,1].
; 0,1,2,3,4,5,6,5,4,3,2,1,0,1,2,3,4,5,6,5,4,3,2,1,0,1,2,3,4,5,6,5,4,3,2,1,0,1,2,3,4,5,6,5,4,3,2,1,0,1,2,3,4,5,6,5,4,3,2,1,0,1,2,3,4,5,6,5,4,3,2,1,0,1,2,3,4,5,6,5,4,3,2,1,0,1
lpb $0
mul $0,11
mod $0,12
lpe
|
; A086593: Bisection of A086592, denominators of the left-hand half of Kepler's tree of fractions.
; Submitted by Christian Krause
; 2,3,4,5,5,7,7,8,6,9,10,11,9,12,11,13,7,11,13,14,13,17,15,18,11,16,17,19,14,19,18,21,8,13,16,17,17,22,19,23,16,23,24,27,19,26,25,29,13,20,23,25,22,29,26,31,17,25,27,30,23,31,29,34,9,15,19,... |
; A077444: Numbers k such that (k^2 + 4)/2 is a square.
; 2,14,82,478,2786,16238,94642,551614,3215042,18738638,109216786,636562078,3710155682,21624372014,126036076402,734592086398,4281516441986,24954506565518,145445522951122,847718631141214
mul $0,2
mov $1,2
mov $2,4
lpb $0,1
sub $0,1
mov $3,$2
mov $2,$1
add $... |
; uchar tshc_px2bitmask(uchar x)
SECTION code_clib
SECTION code_arch
PUBLIC tshc_px2bitmask
EXTERN zx_px2bitmask
defc tshc_px2bitmask = zx_px2bitmask
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.