text stringlengths 1 1.05M |
|---|
; A020727: Pisot sequence P(2,7): a(0)=2, a(1)=7, thereafter a(n+1) is the nearest integer to a(n)^2/a(n-1).
; 2,7,24,82,280,956,3264,11144,38048,129904,443520,1514272,5170048,17651648,60266496,205762688,702517760,2398545664,8189147136,27959497216,95459694592,325919783936,1112759746560,3799199418368,12971278180352,4428... |
; A192254: 0-sequence of reduction of (n^2) by x^2 -> x+1.
; 1,1,10,26,76,184,429,941,1994,4094,8208,16128,31169,59393,111818,208330,384620,704408,1280925,2314525,4158346,7432606,13223040,23424576,41335201,72679969,127373194,222545306,387732844,673762744
mov $5,$0
mov $7,$0
add $7,1
lpb $7,1
clr $0,5
mov $0,$5
s... |
;********************************************************************************************************
; uC/OS-II
; The Real-Time Kernel
;
; Copyright 1992-2020 Silicon Laboratories Inc. www.silabs.com
;
; ... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>epoll_create1(flags) -> str
Invokes the syscall epoll_create1.
See 'man 2 epoll_create1' for more information.
Arguments:
flags(int): flags
Returns:
int
</%docstring>
<%page args="flags=0"/>
<%
... |
C x86/aes-decrypt-internal.asm
ifelse(<
Copyright (C) 2001, 2002, 2005, Rafael R. Sevilla, Niels Möller
Copyright (C) 2008, 2013 Niels Möller
This file is part of GNU Nettle.
GNU Nettle is free software: you can redistribute it and/or
modify it under the terms of either:
* the GNU Lesser General... |
%define SYS_syscall 0
%define SYS_exit 1
%define SYS_fork 2
%define SYS_read 3
%define SYS_write 4
%define SYS_open 5
%define SYS_close 6
%define SYS_wait4 7
;; 8 old creat
%define SYS_link 9
%define SYS_unlink 10
;; 11 ... |
/*
Problem name: 1237. Find Positive Integer Solution for a Given Equation
Problem link: https://leetcode.com/problems/find-positive-integer-solution-for-a-given-equation/
*/
/*
* // This is the custom function interface.
* // You should not implement it, or speculate about its implementation
* class CustomFunction... |
; A170123: Number of reduced words of length n in Coxeter group on 18 generators S_i with relations (S_i)^2 = (S_i S_j)^38 = I.
; 1,18,306,5202,88434,1503378,25557426,434476242,7386096114,125563633938,2134581776946,36287890208082,616894133537394,10487200270135698,178282404592306866,3030800878069216722,51523614927176684... |
; Small C+ Math Library
XLIB ifix
LIB floor
LIB l_long_neg
XREF fa
;
; convert the floating point number in FA
; to an integer in hl (rounds toward negative numbers)
;
; This routine will need to be rewritten to handle longs
.IFI... |
; A267673: Triangle read by rows giving successive states of cellular automaton generated by "Rule 195" initiated with a single ON (black) cell.
; 1,1,0,0,1,1,0,1,0,1,1,1,0,0,0,0,1,1,1,1,0,1,1,1,0,1,1,1,1,1,0,0,1,1,0,0,1,1,1,1,1,1,0,1,0,1,0,1,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,0,1,1,1,1,1,1... |
bits 64
vmcall
vmfunc
vmlaunch
vmresume
vmxoff
vmread rax, rcx
vmwrite rsp, [edi]
vmptrld [rsp + 0x100]
vmptrst [edi]
vmclear [rax + rcx * 8]
vmxon [0x1000]
invept rax, [rsi]
invvpid rdx, [rsp] |
; A303305: Generalized 17-gonal (or heptadecagonal) numbers: m*(15*m - 13)/2 with m = 0, +1, -1, +2, -2, +3, -3, ...
; 0,1,14,17,43,48,87,94,146,155,220,231,309,322,413,428,532,549,666,685,815,836,979,1002,1158,1183,1352,1379,1561,1590,1785,1816,2024,2057,2278,2313,2547,2584,2831,2870,3130,3171,3444,3487,3773,3818,4117... |
; A225051: Numbers of the form x^3 + SumOfCubedDigits(x).
; 0,2,16,54,128,250,432,686,1024,1458,1001,1333,1737,2225,2809,3501,4313,5257,6345,7589,8008,9270,10664,12202,13896,15758,17800,20034,22472,25126,27027,29819,32803,35991,39395,43027,46899,51023,55411,60075,64064,68986
mov $5,$0
lpb $0
mov $2,$0
div $0,10
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r8
push %rax
push %rdx
push %rsi
lea addresses_A_ht+0x14e2, %r8
nop
nop
nop
nop
nop
and %rsi, %rsi
movups (%r8), %xmm1
vpextrq $1, %xmm1, %rdx
nop
nop
nop
nop
and %rax, %rax
pop %rsi
pop %rdx
pop %rax
pop %r8
ret
.global s_faulty_load
s_faulty_load:
push %r11
push... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r15
push %r8
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x8656, %rsi
lea addresses_WT_ht+0x596, %rdi
and $40926, %r12
mov $55, %rcx
rep movsq
nop
nop
nop
nop
nop
xor %r12, %r12
lea addresses_WT_ht+0x78d6, %r8
nop
nop
nop
nop
cmp %r1... |
SECTION code_fp_math48
PUBLIC mm48__acsqr2_2
mm48__acsqr2_2:
; set AC = sqr(2)/2
ld bc,$3504
ld de,$F333
ld hl,$FB80
ret
|
/*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <ATen/ATen.h>
#include <ATen/core/op_registration/op_registration.h>
#include <torch/library.h>
... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
; Module Name:
;
; ReadCr2.Asm
;
; Abstract:
;
; AsmReadCr2 function
;
; Notes:
;
;---------------------... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r14
push %r15
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x1bb42, %r15
sub $63749, %r14
mov (%r15), %r13
sub %rcx, %rcx
lea addresses_WT_ht+0xf27a, %rsi
lea addresses_normal_ht+0x16356, %rdi
clflush (%rsi)
nop
nop
nop
sub %rbp, %rbp... |
section .data
ivalue dq 0xAA
fvalue dd 3.14159
section .bss
section .text
global func_i
func_i:
mov rax, [ivalue]
ret
global func_f
func_f:
movss xmm0, dword[fvalue]
ret
|
; A060656: a(n) = 2*a(n-1)*a(n-2)/a(n-3), with a(0)=a(1)=1.
; 1,1,2,4,16,64,512,4096,65536,1048576,33554432,1073741824,68719476736,4398046511104,562949953421312,72057594037927936,18446744073709551616,4722366482869645213696,2417851639229258349412352,1237940039285380274899124224,1267650600228229401496703205376,1298074214... |
//-
// ==========================================================================
// Copyright 1995,2006,2008 Autodesk, Inc. All rights reserved.
//
// Use of this software is subject to the terms of the Autodesk
// license agreement provided at the time of installation or download,
// or which otherwise accompan... |
; A301336: a(n) = total number of 1's minus total number of 0's in binary expansions of 0, ..., n.
; -1,0,0,2,1,2,3,6,4,4,4,6,6,8,10,14,11,10,9,10,9,10,11,14,13,14,15,18,19,22,25,30,26,24,22,22,20,20,20,22,20,20,20,22,22,24,26,30,28,28,28,30,30,32,34,38,38,40,42,46,48,52,56,62,57,54,51,50,47,46,45,46,43,42,41,42
seq $... |
; A200998: Triangular numbers, T(m), that are three-quarters of another triangular number: T(m) such that 4*T(m)=3*T(k) for some k.
; 0,21,4095,794430,154115346,29897582715,5799976931385,1125165627105996,218276331681631860,42344483180609474865,8214611460706556491971,1593592278893891349967530,309148687493954215337208870... |
/*
* kmp_sched.c -- static scheduling -- iteration initialization
*/
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See ... |
; A017437: a(n) = 11*n + 4.
; 4,15,26,37,48,59,70,81,92,103,114,125,136,147,158,169,180,191,202,213,224,235,246,257,268,279,290,301,312,323,334,345,356,367,378,389,400,411,422,433,444,455,466,477,488,499,510,521,532,543,554,565,576,587,598,609,620,631,642,653,664,675,686,697,708,719,730,741,752,763,774,785,796,807,818,... |
; void clearerr_fastcall(FILE *stream)
INCLUDE "config_private.inc"
SECTION code_clib
SECTION code_stdio
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $02
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC _clearerr_fastcall
EXTERN asm_clearerr
_clearerr_fastcall:
push hl
ex (sp),ix
call asm_clea... |
;;=============================================================
;; vhd_footer:
;; VHD FOOTER.
;;
;VHD_FEATURES EQU 0 ;features
;VHD_FILE_FORMAT_VERSION EQU 0x00001000 ;file format version
;VHD_CREATOR_APP EQU 0x61766D6A ;;0x6A,0x6D,0x76,0x61 ;creator app
;VHD_PLATFORM_VERSION EQU 0x0A000400
;VHD_PLATFORM_CODE... |
section .data
msg db "Hello world!",10
section .text
global _start
_start:
mov rax,1 ;syscall for sys_write in 64bit systemls
mov rdi,1 ;sys_write file descriptor for standard output [STDOUT]
mov rsi,msg ;message to be written
mov rdx,12 ;len of string to write
syscall
mov rax,60 ... |
;
; Print a character for the ZX/TS2068 screen
;
MODULE generic_console_printc
SECTION code_clib
PUBLIC generic_console_printc
PUBLIC generic_console_calc_screen_addr
EXTERN __zx_console_attr
EXTERN __zx_32col_udgs
EXTERN __zx_32col_font
EXTERN __zx_64col_font
EXTERN __console_w
EXTERN generic_console_f... |
INCLUDE "graphics/grafix.inc"
SECTION code_clib
PUBLIC getmaxy
PUBLIC _getmaxy
EXTERN __spc1000_mode
.getmaxy
._getmaxy
ld a,(__spc1000_mode)
and a
ld hl, 32 - 1
ret z
ld hl, 191
ret
|
# Si scriva codice assembly che:
# chieda all’utente di inserire un intero (messaggio su terminale);
# acquisisca un intero da terminale;
# calcoli l’intero successivo;
# mostri all’utente il risultato (messaggio su terminale).
.data
str: .asciiz "Inserisci un intero: "
end: .asciiz "L'intero successivo è: "
.te... |
; A070638: a(n) = n^6 mod 15.
; 0,1,4,9,1,10,6,4,4,6,10,1,9,4,1,0,1,4,9,1,10,6,4,4,6,10,1,9,4,1,0,1,4,9,1,10,6,4,4,6,10,1,9,4,1,0,1,4,9,1,10,6,4,4,6,10,1,9,4,1,0,1,4,9,1,10,6,4,4,6,10,1,9,4,1,0,1,4,9,1,10,6,4,4,6,10,1,9,4,1,0,1,4,9,1,10,6
pow $0,2
mod $0,15
|
XLIB set_bkg_map
INCLUDE "sms/sms.hdr"
LIB DrawOneLine
;==============================================================
; void set_bkg_map(unsigned int *data, int x, int y, int w, int h)
;==============================================================
; Sets the attributes of a rectangular region of SMS's bkg map... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x4822, %rdx
nop
nop
nop
nop
xor %rsi, %rsi
movl $0x61626364, (%rdx)
nop
nop
nop
nop
and $45594, %r12
lea addresses_D_ht+0x9a22, %rsi
nop
add %r12, %r12
mov (%rsi), %ebx
nop
nop
nop
nop
... |
; float __fdiv_callee (float left, float right)
SECTION code_clib
SECTION code_fp_am9511
PUBLIC _am9511_fdiv_callee
PUBLIC cam32_sdcc_fdiv_callee
EXTERN cam32_sdcc_readr_callee, asm_am9511_fdiv_callee
DEFC _am9511_fdiv_callee = cam32_sdcc_fdiv_callee
.cam32_sdcc_fdiv_callee
; divide sdcc float by sdcc float
... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r14
push %r8
push %rax
push %rbp
push %rbx
push %rcx
// Store
lea addresses_WT+0x9bc, %r8
sub %r13, %r13
movl $0x51525354, (%r8)
cmp $60488, %rax
// Store
lea addresses_D+0x18edc, %rbp
nop
nop
xor $16911, %rcx
m... |
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "xfa/fgas/layout/cfx_txtbreak.h"
#include <algorithm>
#include "bui... |
IrwinRumorScript:
checkevent EVENT_OPENED_MT_SILVER
iftrue .MtSilver
checkevent EVENT_FOUGHT_SNORLAX
iftrue .Snorlax
checkevent EVENT_GOT_PASS_FROM_COPYCAT
iftrue .TrainPass
checkflag ENGINE_MARSHBADGE
iftrue .MarshBadge
checkflag ENGINE_FLYPOINT_VERMILION
iftrue .VermilionCity
checkevent EVENT_BEAT_ELITE_FO... |
<%
from pwnlib.shellcraft.i386.linux import syscall
%>
<%page args="fd, mode, offset, length"/>
<%docstring>
Invokes the syscall fallocate. See 'man 2 fallocate' for more information.
Arguments:
fd(int): fd
mode(int): mode
offset(off_t): offset
len(off_t): len
</%docstring>
${syscall('SYS_fal... |
/**
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you ... |
; unsigned char check_version_esxdos(uint16_t ev)
SECTION code_arch
PUBLIC _check_version_esxdos_fastcall
EXTERN asm_check_version_esxdos
defc _check_version_esxdos_fastcall = asm_check_version_esxdos
|
; A336292: a(n) = (n!)^2 * Sum_{k=1..n} (-1)^(n-k) / (k * ((n-k)!)^2).
; Submitted by Christian Krause
; 0,1,-2,3,8,305,10734,502747,30344992,2307890097,216571514030,24619605092291,3337294343698248,532148381719443073,98646472269855762238,21041945289232131607995,5118447176652195630775424,1408601897794844346184122017,435... |
;Testname=br3028880; Arguments=-Ox -fbin -obr3028880.o; Files=stdout stderr br3028880.o
%macro import 1
%define %%incfile %!PROJECTBASEDIR/%{1}.inc
%endmacro
import foo
|
// Copyright (c) 2012 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 "media/audio/audio_output_resampler.h"
#include <stdint.h>
#include <algorithm>
#include <memory>
#include <string>
#include <utility>
#in... |
;;
;; Copyright (c) 2012-2018, 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... |
rol
rol
and #$01 |
; A089809: Complement of A078588.
; 0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,... |
; A128177: A128174 * A004736 as infinite lower triangular matrices.
; 1,2,1,4,2,1,6,4,2,1,9,6,4,2,1,12,9,6,4,2,1,16,12,9,6,4,2,1,20,16,12,9,6,4,2,1,25,20,16,12,9,6,4,2,1,30,25,20,16,12,9,6,4,2,1,36,30,25,20,16,12,9,6,4,2,1,42,36,30,25,20,16,12,9,6,4,2,1
seq $0,25676 ; Exponent of 8 (value of i) in n-th number of form ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r15
push %rax
push %rbp
push %rbx
push %rdi
push %rsi
lea addresses_D_ht+0xd62d, %r10
nop
nop
nop
and $22064, %rbp
movl $0x61626364, (%r10)
nop
nop
nop
and $59590, %rax
lea addresses_WT_ht+0xae26, %rsi
nop
dec %r15
mov $0x6162636465666768, %rbx
movq %rbx, %xm... |
; A094026: Expansion of x(1+10x)/((1-x^2)(1-10x^2)).
; 0,1,10,11,110,111,1110,1111,11110,11111,111110,111111,1111110,1111111,11111110,11111111,111111110,111111111,1111111110,1111111111,11111111110,11111111111,111111111110,111111111111,1111111111110,1111111111111,11111111111110,11111111111111,111111111111110,11111111111... |
PUBLIC addnum
EXTERN randn:PROC
EXTERN newnum:PROC
.code
; adds a new number into an empty slot in the grid
; RCX = grid ptr
; RDX = grid size
; R8 = grbuf
addnum PROC
PUSH R12
PUSH R13
PUSH R14
ENTER 32, 0
MOV R12, RCX ; grid ptr
MOV R13, RDX ; grid size
MOV R14, R8 ; grbuf
MOV RCX, 0
MOV RDX, 0
searchloop:... |
/*
* rom_header.asm
* Written for use with GNU AS
* Copyright © 2020 Ben Sampson <github.com/billyrayvalentine>
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See the COPYING file for mo... |
; void *bit_play_tritone_di_fastcall(void *song)
SECTION code_sound_bit
PUBLIC _bit_play_tritone_di_fastcall
EXTERN asm_bit_play_tritone_di
defc _bit_play_tritone_di_fastcall = asm_bit_play_tritone_di
|
_wc: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
printf(1, "%d %d %d %s\n", l, w, c, name);
}
int
main(int argc, char *argv[])
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 57 push %edi
4: 56 p... |
_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)... |
; A091030: Partial sums of powers of 13 (A001022).
; 1,14,183,2380,30941,402234,5229043,67977560,883708281,11488207654,149346699503,1941507093540,25239592216021,328114698808274,4265491084507563,55451384098598320,720867993281778161
add $0,1
mov $1,13
pow $1,$0
div $1,12
mov $0,$1
|
/*=============================================================================
Boost.Wave: A Standard compliant C++ preprocessor library
http://www.boost.org/
Copyright (c) 2001-2011 Hartmut Kaiser. Distributed under the Boost
Software License, Version 1.0. (See accompanying file
LICENSE_1_0.txt o... |
; A017091: a(n) = (8*n + 2)^3.
; 8,1000,5832,17576,39304,74088,125000,195112,287496,405224,551368,729000,941192,1191016,1481544,1815848,2197000,2628072,3112136,3652264,4251528,4913000,5639752,6434856,7301384,8242408,9261000,10360232,11543176,12812904,14172488,15625000,17173512,18821096,20570824,22425768,24389000,264635... |
code segment
assume cs : code
assume ds : code
init :
mov si , offset str1
mov di , offset str2
compare :
mov al , cs :[ si ]
mov bl , cs :[ di ]
cmp al,bl
jg greater ;if al>bl then jump to the code labeled greater
je equal ;if al=bl then jump to the code labeled equal ... |
;
; 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... |
; A209294: a(n) = (7*n^2 - 7*n + 4)/2.
; 2,9,23,44,72,107,149,198,254,317,387,464,548,639,737,842,954,1073,1199,1332,1472,1619,1773,1934,2102,2277,2459,2648,2844,3047,3257,3474,3698,3929,4167,4412,4664,4923,5189,5462,5742,6029,6323,6624,6932,7247,7569,7898,8234,8577,8927,9284,9648,10019,10397,10782,11174,11573,11979,12... |
// (C) Copyright John Maddock 2005.
// Use, modification and distribution are subject to 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 <list>
|
; A081013: a(n) = Fibonacci(4*n+3) - 2, or Fibonacci(2*n)*Lucas(2*n+3).
; 0,11,87,608,4179,28655,196416,1346267,9227463,63245984,433494435,2971215071,20365011072,139583862443,956722026039,6557470319840,44945570212851,308061521170127,2111485077978048,14472334024676219,99194853094755495,679891637638612256,466004661037553... |
copyright zengfr site:http://github.com/zengfr/romhack
00042A move.l D1, (A0)+
00042C dbra D0, $42a
004D3E move.l D0, (A4)+
004D40 dbra D1, $4d38
010980 cmp.b ($5e,A3), D0 [123p+ 5E]
010984 beq $109aa [enemy+5E]
0109CA move.b ($5e,A2), ($5e,A3)
0109D0 move.b ($2,A2), ($2,A3) [enemy+5E]
010... |
; RTL8139 Network Driver for xOS
; Copyright (c) 2017 by Omar Mohammad
RTL8139_MAC_ADDRESS = 0x00 ; 6 bytes
RTL8139_MULTICAST_ADDRESS = 0x08 ; 8 bytes
RTL8139_TRANSMIT_STATUS = 0x10 ; 4 dwords
RTL8139_TRANSMIT_START = 0x20 ; 4 dwords
RTL8139_RX_START = 0x30 ; dword
RTL8139_COMMAND = 0x37 ; byte
RTL8... |
global start
extern long_mode_start
section .text
bits 32
start:
mov esp, stack_top
mov edi, ebx ; Move Multiboot pointer to edi
call test_multiboot
call test_cpuid
call test_long_mode
call setup_page_tables
call enable_paging
; load the 64-bit GDT
lgdt [gdt64.pointer]
... |
; void *heap_calloc(void *heap, size_t nmemb, size_t size)
INCLUDE "config_private.inc"
SECTION code_clib
SECTION code_alloc_malloc
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $01
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC heap_calloc_callee
EXTERN asm_heap_calloc
heap_calloc_callee:
pop af
po... |
/*
Copyright (c) 2021 Advanced Micro Devices, Inc. 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 restriction, including without limitation the rights
to use, copy, ... |
test_sleep_wakeup_fail/test_sleep_wakeup_fail.elf: file format elf32-littlearm
Disassembly of section .text:
00000000 <hang-0x70>:
0: 00000c00 .word 0x00000c00
4: 00000075 .word 0x00000075
...
1c: 00000070 .word 0x00000070
20: 00000070 .word 0x00000070
24: 00000070 .word 0x00000070
28: 00000... |
; A184634: a(n) = floor(1/{(10+n^4)^(1/4)}), where {}=fractional part.
; 1,3,11,25,50,86,137,204,291,400,532,691,878,1097,1350,1638,1965,2332,2743,3200,3704,4259,4866,5529,6250,7030,7873,8780,9755,10800,11916,13107,14374,15721,17150,18662,20261,21948,23727,25600,27568,29635,31802,34073,36450,38934,41529,44236,47059,500... |
// Humanoid kinematics - Generic robot kinematics
// Author: Philipp Allgeuer <pallgeuer@ais.uni-bonn.de>
// Includes
#include <humanoid_kinematics/robot_kinematics.h>
// Humanoid kinematics namespace
namespace humanoid_kinematics
{
//
// RobotKinematics class
//
// Cartesian origin function
rot_conv::Vec3 Robo... |
SECTION code_clib
SECTION code_fp_math48
PUBLIC asm_dgt
EXTERN am48_dgt
defc asm_dgt = am48_dgt
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r14
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0xe3c3, %rax
nop
cmp %r12, %r12
movl $0x61626364, (%rax)
nop
nop
sub $60756, %r14
lea addresses_D_ht+0x7c73, %rbx
sub $32693, %r9
movb $0x61, (%rbx)
and... |
/* AG3631A-IOC-01Main.cpp */
/* Author: Marty Kraimer Date: 17MAR2000 */
#include <stddef.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <stdio.h>
#include "epicsExit.h"
#include "epicsThread.h"
#include "iocsh.h"
int main(int argc,char *argv[])
{
if(argc>=2) {
iocsh(argv... |
; ===============================================================
; Mar 2014
; ===============================================================
;
; int wa_stack_push(wa_stack_t *s, void *item)
;
; Push item onto stack.
;
; ===============================================================
SECTION code_clib
SECTION code_... |
; A132738: Row sums of triangle A132737.
; 1,2,7,16,33,66,131,260,517,1030,2055,4104,8201,16394,32779,65548,131085,262158,524303,1048592,2097169,4194322,8388627,16777236,33554453,67108886,134217751,268435480,536870937,1073741850,2147483675,4294967324,8589934621,17179869214,34359738399,68719476768,137438953505,274877906... |
;; @file
; Provide FSP API entry points.
;
; Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;;
SECTION .text
;
; Following functions will be provided in C
;
extern ASM_PFX(Loader2PeiSwitchStack)
extern ASM_PFX(FspApiCallingCheck)
;
; Following func... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include "config/coffee-config.h"
#endif
#include "tinyfor... |
SilphCo10Script:
call SilphCo10Script_5a14f
call EnableAutoTextBoxDrawing
ld hl, SilphCo10TrainerHeader0
ld de, SilphCo10ScriptPointers
ld a, [wSilphCo10CurScript]
call ExecuteCurMapScriptInTable
ld [wSilphCo10CurScript], a
ret
SilphCo10Script_5a14f:
ld hl, wCurrentMapScriptFlags
bit 5, [hl]
res 5, [hl]
re... |
;
; CPC Maths Routines
;
; August 2003 **_|warp6|_** <kbaccam /at/ free.fr>
;
; $Id: cos.asm,v 1.3 2015/01/21 10:56:29 stefano Exp $
;
INCLUDE "cpcfirm.def"
INCLUDE "cpcfp.def"
PUBLIC cos
PUBLIC cosc
EXTERN get_para
.cos call get_para
call firmware
.cosc defw CPCFP_FLO_COS
... |
;;
;; Copyright (c) 2019, 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 the ... |
; A082986: Largest x such that 1/x + 1/y + 1/z = 1/n.
; 6,42,156,420,930,1806,3192,5256,8190,12210,17556,24492,33306,44310,57840,74256,93942,117306,144780,176820,213906,256542,305256,360600,423150,493506,572292,660156,757770,865830,985056,1116192,1260006,1417290,1588860,1775556,1978242,2197806,2435160,2691240,2967006,3... |
; A036228: a(1) = 31; a(n+1) = a(n) + sum of decimal digits of a(n).
; Submitted by Jamie Morken(w4)
; 31,35,43,50,55,65,76,89,106,113,118,128,139,152,160,167,181,191,202,206,214,221,226,236,247,260,268,284,298,317,328,341,349,365,379,398,418,431,439,455,469,488,508,521,529,545,559,578,598,620,628,644,658,677,697,719,7... |
// Copyright (c) Facebook, Inc. and its affiliates.
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.
#include "ShadowTreeRegistry.h"
namespace facebook {
namespace react {
void ShadowTreeRegistry::add(std::unique_ptr<ShadowTree> &&shadowTr... |
//
// Copyright (c) 2015-2020 Microsoft Corporation and Contributors.
// SPDX-License-Identifier: Apache-2.0
//
#include "BandwidthController_ResourceManager.hpp"
#include "ResourceManager/RMPublic_BitStream.hpp"
namespace MAT_NS_BEGIN {
BandwidthController_ResourceManager::BandwidthController_ResourceManager(::reso... |
;;
;
; Name: stager_sock_find
; Qualities: Can Have Null
; Platforms: BSDi
; Authors: skape <mmiller [at] hick.org>
; optyx <optyx [at] uberhax0r.net>
; Version: $Revision: 1633 $
; License:
;
; This file is part of the Metasploit Exploit Framework
; and is subject to... |
; A142986: a(1) = 1, a(2) = 8, a(n+2) = 8*a(n+1) + (n+1)*(n+2)*a(n).
; Submitted by Christian Krause
; 1,8,70,656,6648,72864,862128,10977408,149892480,2187106560,33985025280,560578268160,9786290088960,180315565516800,3497645442816000,71256899266560000,1521414754578432000,33975929212194816000,792131279763382272000,19247... |
Route11Object:
db $f ; border block
db $5 ; warps
db $8, $31, $0, ROUTE_11_GATE_1F
db $9, $31, $0, ROUTE_11_GATE_1F
db $8, $3a, $2, ROUTE_11_GATE_1F
db $9, $3a, $2, ROUTE_11_GATE_1F
db $5, $4, $0, DIGLETTS_CAVE_ENTRANCE
db $1 ; signs
db $5, $1, $b ; Route11Text11
db $b ; objects
object SPRITE_GAMBLER, $a,... |
;nasm -f bin shell.asm -o shell.bin
bits 32
shellcode:
; on reinitialise les registres suivant
xor eax, eax
xor ebx, ebx
xor ecx, ecx
xor edx, edx
mov al, 11 ; on fais appel au syscall 11 execve al pour eviter les null-bytes
push ebx ; ebx = 0 on a notre null-bytes
push `n/sh`
push... |
; A222170: a(n) = n^2 + 2*floor(n^2/3).
; 0,1,6,15,26,41,60,81,106,135,166,201,240,281,326,375,426,481,540,601,666,735,806,881,960,1041,1126,1215,1306,1401,1500,1601,1706,1815,1926,2041,2160,2281,2406,2535,2666,2801,2940,3081,3226,3375,3526,3681,3840,4001,4166,4335,4506,4681,4860,5041,5226,5415,5606,5801,6000,6201,6406... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2011-2017 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 so... |
; ########################################################################################
; # Generated by the active disassembly feature of the Exodus emulation platform
; #
; # Description: item menu layout subroutines
; # Creation Date: 2020-12-31 18:39:43
; # Analysis Region: 0x0000A000 - 0x0000B000
; ##########... |
; The draw code for the 1st wall and it's second shadow
dc_w1s2: SUBROUTINE
LDX #UPPRWALL_S - 1
.loop:
LDA wallColour
STA WSYNC
STA COLUPF
LDA wall1
STA PF1
TYA
BEQ .noSprite_1
.branchPoint_1:
DEY
CPY spriteHeight
BCS .noSprite_2
.branchPoint_2:
... |
; A031906: a(n) = prime(6*n - 5).
; Submitted by Jon Maiga
; 2,17,41,67,97,127,157,191,227,257,283,331,367,401,439,467,509,563,599,631,661,709,751,797,829,877,919,967,1009,1039,1087,1117,1171,1217,1259,1297,1327,1409,1447,1483,1523,1567,1607,1637,1697,1741
mul $0,6
seq $0,156037 ; Largest nonprime < n-th prime.
add $0... |
#include "../src/meshoptimizer.h"
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <vector>
// This file uses assert() to verify algorithm correctness
#undef NDEBUG
#include <assert.h>
struct PV
{
unsigned short px, py, pz;
unsigned char nu, nv; // octahedron encoded normal, aliases .pw
unsig... |
# /* Copyright (C) 2001
# * Housemarque Oy
# * http://www.housemarque.com
# *
# * 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)
# */
#
# /* Revised by Paul Mensonides (2002) */
#
# /* See http://www.boost... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r15
push %r8
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0xc4f4, %rax
nop
nop
nop
nop
xor %r15, %r15
mov (%rax), %r8w
nop
nop
nop
xor %r10, %r10
lea addresses_normal_ht+0x1c328, %r15
nop
nop
nop
nop
nop
cmp $42807, %r9
movl ... |
; A075111: a(n)=Sum((-1)^(i+Floor(n/2))T(2i+e),(i=0,..,Floor(n/2))), where T(n) are tribonacci numbers (A000073) and e=(1/2)(1-(-1)^n).
; 0,1,1,1,3,6,10,18,34,63,115,211,389,716,1316,2420,4452,8189,15061,27701,50951,93714,172366,317030,583110,1072507,1972647,3628263,6673417,12274328,22576008,41523752,76374088,140473849... |
//
// Created by chauvin on 22/01/18.
//
#include "Animation.hpp"
#include "../Sprite/Sprite.hpp"
namespace TacosEngine {
Animation::Animation(const std::string &myname, const std::shared_ptr<GameObject> &gameObject, bool loop,
int frame_speed, const std::vector<TacosEngine::ITexture *> &... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.