text stringlengths 1 1.05M |
|---|
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r15
push %rbp
push %rdi
lea addresses_A_ht+0xa516, %r15
clflush (%r15)
nop
cmp $19557, %rbp
mov (%r15), %r13w
nop
nop
nop
nop
nop
and $27725, %rdi
pop %rdi
pop %rbp
pop %r15
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r14
push %r15
... |
SECTION code_clib
PUBLIC padinitserial
PUBLIC _padinitserial
.padinitserial
._padinitserial
jp 0xb85a
|
/*
utils - utility library
Copyright (c) 2021-2022 on-keyday (https://github.com/on-keyday)
Released under the MIT license
https://opensource.org/licenses/mit-license.php
*/
#include "pscmpl.h"
#include <helper/equal.h>
namespace pscmpl {
using namespace utils::wrap;
bool compile_each_comman... |
; A067429: Ninth column of triangle A067425.
; 1,12,432,15552,559872,20155392,725594112,26121388032,940369969152,33853318889472,1218719480020992,43873901280755712,1579460446107205632,56860576059859402752,2046980738154938499072,73691306573577785966592,2652887036648800294797312,95503933319356810612703232,3438141599496845... |
; A082116: Fibonacci sequence (mod 5).
; 0,1,1,2,3,0,3,3,1,4,0,4,4,3,2,0,2,2,4,1,0,1,1,2,3,0,3,3,1,4,0,4,4,3,2,0,2,2,4,1,0,1,1,2,3,0,3,3,1,4,0,4,4,3,2,0,2,2,4,1,0,1,1,2,3,0,3,3,1,4,0,4,4,3,2,0,2,2,4,1,0,1,1,2,3,0,3,3,1,4,0,4,4,3,2,0,2,2,4,1
mov $2,$0
mov $3,$0
lpb $3
mul $2,3
mov $1,$2
mod $2,5
sub $3,1
lpe
di... |
; A003143: a(2*n) = floor( 17*2^n/14 ), a(2*n+1) = floor( 12*2^n/7 ).
; Submitted by Jon Maiga
; 1,1,2,3,4,6,9,13,19,27,38,54,77,109,155,219,310,438,621,877,1243,1755,2486,3510,4973,7021,9947,14043,19894,28086,39789,56173,79579,112347,159158,224694,318317,449389,636635,898779,1273270,1797558,2546541,3595117,5093083,719... |
; A212069: Number of (w,x,y,z) with all terms in {1,...,n} and 3*w = x+y+z.
; 0,1,2,9,22,41,72,115,170,243,334,443,576,733,914,1125,1366,1637,1944,2287,2666,3087,3550,4055,4608,5209,5858,6561,7318,8129,9000,9931,10922,11979,13102,14291,15552,16885,18290,19773,21334,22973
mov $12,$0
mov $14,$0
lpb $14,1
clr $0,12
m... |
0x0000 (0x000000) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0001 (0x000002) 0x2922- f:00024 d: 290 | OR[290] = A
0x0002 (0x000004) 0x291E- f:00024 d: 286 | OR[286] = A
0x0003 (0x000006) 0x2925- f:00024 d: 293 | OR[293] = A
... |
; A010791: a(n) = n!*(n+2)!/2.
; 1,3,24,360,8640,302400,14515200,914457600,73156608000,7242504192000,869100503040000,124281371934720000,20879270485032960000,4071457744581427200000,912006534786239692800000,232561666370491121664000000,66977759914701443039232000000,21633816452448566101671936000000,778817392288148379660189... |
; A184551: Super-birthdays (falling on the same weekday), version 3 (birth within 2 and 3 years after a February 29).
; 0,11,17,22,28,39,45,50,56,67,73,78,84,95,101,106,112,123,129,134,140,151,157,162,168,179,185,190,196,207,213,218,224,235,241,246,252,263,269,274,280,291,297,302,308,319,325,330,336,347,353,358,364,375... |
%ifdef CONFIG
{
"RegData": {
"RAX": ["0xbff0000000000000"]
},
"Env": { "FEX_X87REDUCEDPRECISION" : "1" }
}
%endif
mov rdx, 0xe0000000
mov rax, 0x3ff0000000000000 ; 1.0
mov [rdx + 8 * 0], rax
mov rax, 0x40000000 ; 2.0
mov [rdx + 8 * 1], rax
fld qword [rdx + 8 * 0]
fsub dword [rdx + 8 * 1]
fst qword [rdx +... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0xa7fc, %r14
nop
nop
xor %rsi, %rsi
movw $0x6162, (%r14)
nop
nop
nop
nop
nop
sub $32788, %r13
lea addresses_WC_ht+0x1b75d, %r9
nop
add $33239, %r8
movw $0x6162, (%r9)
nop
nop
nop... |
// Copyright (c) 2019 The PIVX developers
// Copyright (c) 2020 The Rapids developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "qt/rapids/myaddressrow.h"
#include "qt/rapids/forms/ui_myaddressrow.h"
MyAddressRow... |
;This program prints each prime numbers representable on the
;processor's registers
;As this is not very efficient, it is more ment to be a proof of
;concept than anything else.
@import libs/ctrl16addrMap.asm
@import libs/uart.asm
@import libs/math.asm
@import libs/string.asm
@import libs/printing.asm
;------------... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r15
push %r9
push %rbp
push %rdi
push %rsi
// Store
mov $0xf67, %r11
nop
nop
sub $12948, %r9
movl $0x51525354, (%r11)
nop
and %r10, %r10
// Store
lea addresses_PSE+0x16b67, %r11
nop
nop
nop
nop
dec %rb... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x14e10, %rsi
lea addresses_normal_ht+0x3310, %rdi
nop
nop
nop
cmp %r11, %r11
mov $110, %rcx
rep movsq
nop
nop
nop
nop
nop
xor $19960, %r11
lea addresses_A_ht+0x1c8b0, %rsi... |
/*
* Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "EditorDefs.h"
#include "BaseLibraryItem.h"
#include "BaseLibrary.h"
#include "BaseLibrar... |
OPTION DOTNAME
.text$ SEGMENT ALIGN(256) 'CODE'
EXTERN BLS12_381_P:NEAR
PUBLIC add_mod_384
ALIGN 32
add_mod_384 PROC PUBLIC
DB 243,15,30,250
mov QWORD PTR[8+rsp],rdi ;WIN64 prologue
mov QWORD PTR[16+rsp],rsi
mov r11,rsp
$L$SEH_begin_add_mod_384::
mov rdi,rcx
mov rsi,rdx
mov rdx,r8
mov rcx,r9
push rbp
... |
100034f0: 83 3d 9c 60 01 10 00 cmp DWORD PTR ds:0x1001609c,0x0
100034f7: 75 05 jne 0x100034fe
100034f9: 33 c0 xor eax,eax
100034fb: c2 04 00 ret 0x4
100034fe: 83 3d 00 00 01 10 ff cmp DWORD PTR ds:0x10010000,0xffffffff
10003505: 75 06 jne ... |
; A167385: a(n)= sum_{i=7..n+6} A000931(i).
; 1,3,5,8,12,17,24,33,45,61,82,110,147,196,261,347,461,612,812,1077,1428,1893,2509,3325,4406,5838,7735,10248,13577,17987,23829,31568,41820,55401,73392,97225,128797,170621,226026,299422,396651,525452,696077,922107,1221533
mov $5,$0
add $5,2
mov $0,$5
lpb $0,1
sub $0,1
mov... |
; uchar esxdos_f_open(char *filename, uchar mode)
INCLUDE "config_private.inc"
SECTION code_clib
SECTION code_esxdos
PUBLIC esxdos_f_open_callee
EXTERN asm_esxdos_f_open
esxdos_f_open_callee:
pop hl
pop bc
ex (sp),hl
ld a,__ESXDOS_DRIVE_CURRENT
ld de,0
ld b,c
jp asm_esxdos_f_open
|
; A145600: a(n) is the number of walks from (0,0) to (0,1) that remain in the upper half-plane y >= 0 using (2*n - 1) unit steps either up (U), down (D), left (L) or right (R).
; Submitted by Jon Maiga
; 1,8,75,784,8820,104544,1288287,16359200,212751396,2821056160,38013731756,519227905728,7174705330000,100136810390400,... |
org &4000
write direct "maze.bin"
CHAR equ &cc
TXT_WR_CHAR equ &bb5d
run $
.loop:
ld a, r
rrca
rrca
rrca
and 1
or CHAR
call TXT_WR_CHAR
jr loop
|
; Predef routines can be used with the "predef" and "predef_jump" macros.
; This preserves registers bc, de, hl and f.
add_predef: MACRO
\1Predef::
dab \1
ENDM
PredefPointers::
add_predef LearnMove ; $0
add_predef DummyPredef1
add_predef HealParty ; this is both a special and a predef
add_predef SmallFarFlagActi... |
; A047487: Numbers that are congruent to {2, 3, 5, 7} mod 8.
; 2,3,5,7,10,11,13,15,18,19,21,23,26,27,29,31,34,35,37,39,42,43,45,47,50,51,53,55,58,59,61,63,66,67,69,71,74,75,77,79,82,83,85,87,90,91,93,95,98,99,101,103,106,107,109,111,114,115,117,119,122,123,125,127,130,131,133,135,138,139,141,143,146,147,149,151,154,155... |
include Irvine32.inc
gcd PROTO,x:dword,y:dword
.data
ask1 byte "enter the first integer: ", 0
ask2 byte "enter the second integer: ", 0
answer byte "gcd: ", 0
butthole byte "gcd: ", 0
x dword ?
y dword ?
.code
main PROC
call Clrscr
mov edx, OFFSET ask1
call getX ; get variables
mov edx, OFFSET ask2
call getY
... |
; int fprintf_unlocked(FILE *stream, const char *format, ...)
SECTION code_clib
SECTION code_stdio
PUBLIC _fprintf_unlocked
EXTERN asm_fprintf_unlocked
defc _fprintf_unlocked = asm_fprintf_unlocked
|
; English text for dates
section language
include 'dev8_mac_text'
mkxstr mths,,{GenFebMarAprMagGiuLugAgoSetOttNovDic}
mkxstr dowk,,{DomLunMarMerGioVenSab}
end
|
;****************************************
;* *
;* Joystick *
;* *
;* Register at $dc01 : *
;* *
;* 7 6 5 4 3 2 1 0 *
;* X X X F ... |
#include<bits/stdc++.h>
using namespace std;
class Solution {
public:
vector<int> productExceptSelf(vector<int>& nums) {
int n(nums.size());
vector <int> ans(n,1);
int tmp(1);
for(int i=0;i<n;i++)
{
ans[i] = ans[i-1] * nums[i-1];
}
int suff_pro... |
;start settore 1
[org 0x7c00]
mov [BOOT_DRIVE], dl
mov bp, 0x7c00
mov sp, bp
mov bx, INITIALIZING ;print
call println
mov bx, LOADING_KERNEL ;print
call println
mov dh, 15 ;load 15 sectors
mov bx, 0x7e00 ;kernel address
mov dl, [BOOT_DRIVE]
call disk_load
mov bx, KERNEL_LOADED ;print
call prin... |
; TypeNames indexes (see data/types/names.asm)
; also used in:
; - PokedexTypeSearchConversionTable (see data/types/search_types.asm)
; - PokedexTypeSearchStrings (see data/types/search_strings.asm)
; - TypeMatchups (see data/types/type_matchups.asm)
; - TypeBoostItems (see data/types/type_boost_items.asm)
const_def
... |
#include <stdarg.h>
#include <stdio.h> /* vsnprintf */
#include <stdlib.h>
#include <time.h>
#include <sys/types.h>
#include <unistd.h>
#include <errno.h>
#include "ocall_type.h"
typedef void (*sighandler_t)(int);
#include "Enclave.h"
#include "Enclave_t.h" /* print_string */
#include "sgx_trts.h" /* sgx_rea... |
/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied w... |
#include "common/common/assert.h"
#include "common/common/thread_impl.h"
#include "common/filesystem/filesystem_impl.h"
#include "exe/platform_impl.h"
namespace Envoy {
PlatformImpl::PlatformImpl()
: thread_factory_(std::make_unique<Thread::ThreadFactoryImplWin32>()),
file_system_(std::make_unique<Filesyst... |
; A267941: Decimal representation of the n-th iteration of the "Rule 253" elementary cellular automaton starting with a single ON (black) cell.
; 1,3,31,127,511,2047,8191,32767,131071,524287,2097151,8388607,33554431,134217727,536870911,2147483647,8589934591,34359738367,137438953471,549755813887,2199023255551,8796093022... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r9
push %rax
push %rcx
lea addresses_WT_ht+0x18bbf, %rax
nop
nop
nop
and %r13, %r13
vmovups (%rax), %ymm2
vextracti128 $1, %ymm2, %xmm2
vpextrq $1, %xmm2, %r9
nop
nop
nop
nop
nop
xor $26395, %rcx
pop %rcx
pop %rax
pop %r9
pop %r13
ret
.global s_faulty_lo... |
Name: ys_enmy13.asm
Type: file
Size: 162090
Last-Modified: '2016-05-13T04:51:16Z'
SHA-1: 8E00C9F0075989CC8EFBF2D4D2BE987C0A3D9F64
Description: null
|
; A052997: Expansion of (1+x-x^3)/((1-2*x)*(1-x^2)).
; 1,3,7,14,29,58,117,234,469,938,1877,3754,7509,15018,30037,60074,120149,240298,480597,961194,1922389,3844778,7689557,15379114,30758229,61516458,123032917,246065834,492131669,984263338,1968526677,3937053354,7874106709,15748213418,31496426837,62992853674,125985707349,... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x6684, %rsi
lea addresses_WT_ht+0x5744, %rdi
xor %r12, %r12
mov $0, %rcx
rep movsq
nop
nop
nop
nop
nop
and %rsi, %rsi
lea addresses_A_ht+0x3bc8, %rcx
nop
lfence
movl $0x61626364, (%rcx)
nop
nop
i... |
; A288795: a(n) = 4^n + 3^(n + 1) - 2.
; Submitted by Jon Maiga
; 11,41,143,497,1751,6281,22943,85217,321191,1225721,4725743,18371537,71891831,282784361,1116788543,4424107457,17567289671,69881738201,278364691343,1109971980977,4429427570711,17686329223241,70651173714143,282322265320097,1128441772670951,4511225224855481,... |
; A164310: a(n) = 6*a(n-1) - 6*a(n-2) for n > 1; a(0) = 4, a(1) = 15.
; 4,15,66,306,1440,6804,32184,152280,720576,3409776,16135200,76352544,361304064,1709709120,8090430336,38284327296,181163381760,857274326784,4056665670144,19196348060160,90838094340096,429850477679616,2034074300037120,9625342934145024,4554761180464742... |
; A290235: Decimal representation of the diagonal from the origin to the corner of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 773", based on the 5-celled von Neumann neighborhood.
; 1,1,7,3,31,7,127,15,511,31,2047,63,8191,127,32767,255,131071,511,524287,1023,2097151,2047,8388607... |
; A046699: a(1) = a(2) = 1, a(n) = a(n - a(n-1)) + a(n-1 - a(n-2)) if n > 2.
; 1,1,2,2,3,4,4,4,5,6,6,7,8,8,8,8,9,10,10,11,12,12,12,13,14,14,15,16,16,16,16,16,17,18,18,19,20,20,20,21,22,22,23,24,24,24,24,25,26,26,27,28,28,28,29,30,30,31,32,32,32,32,32,32,33,34,34,35,36,36,36,37,38,38,39,40,40,40,40,41,42,42,43,44,44,44,... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r14
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x1e2d5, %rbp
nop
nop
nop
nop
sub %r13, %r13
movl $0x61626364, (%rbp)
and %r14, %r14
lea addresses_D_ht+0x8fd7, %rsi
lea addresses_UC_ht+0xf895, %rdi
nop
nop
nop
sub %r13, %r1... |
extern main
global _start
_start:
call main ; define void @main()
mov rdi, 0 ; error_code
mov rax, 60 ; sys_exit
syscall |
; void qsort_callee(void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *))
SECTION code_clib
SECTION code_stdlib
PUBLIC _qsort_callee, l0_qsort_callee
EXTERN asm_qsort
_qsort_callee:
pop af
pop bc
pop hl
pop de
exx
pop bc
push af
l0_qsort_callee:
push bc
... |
; Windows 10 x86 - Reverse Shell + Position-Independent Code (PIC) + Null-Free Shellcode (231 Bytes)
; Author: @thecyberbebop, Shadi Habbal (@kerpanic)
; Date: 2020-07-01
; Technique: PEB & Export Table Directory
; Tested On: Windows 10 Pro (x86) 10.0.16299 Build 16299, Windows 10 Pro (x64) 10.0.19041 Build 19041
; Ass... |
; A129527: a(2n) = a(n) + 2n, a(2n+1) = 2n + 1.
; 0,1,3,3,7,5,9,7,15,9,15,11,21,13,21,15,31,17,27,19,35,21,33,23,45,25,39,27,49,29,45,31,63,33,51,35,63,37,57,39,75,41,63,43,77,45,69,47,93,49,75,51,91,53,81,55,105,57,87,59,105,61,93,63,127,65,99,67,119,69,105,71,135,73,111,75,133,77,117,79,155,81,123,83,147,85,129,87,16... |
; A118058: a(n) = 49n^2 - 28n - 20.
; 1,120,337,652,1065,1576,2185,2892,3697,4600,5601,6700,7897,9192,10585,12076,13665,15352,17137,19020,21001,23080,25257,27532,29905,32376,34945,37612,40377,43240,46201,49260,52417,55672,59025,62476,66025,69672,73417,77260,81201,85240,89377,93612,97945,102376,106905,111532,116257,1210... |
/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2009, Willow Garage, Inc.
* 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 mu... |
Map_1876B2: dc.w word_1876DA-Map_1876B2
dc.w word_187700-Map_1876B2
dc.w word_187708-Map_1876B2
dc.w word_187710-Map_1876B2
dc.w word_18771E-Map_1876B2
dc.w word_18772C-Map_1876B2
dc.w word_187734-Map_1876B2
dc.w word_18773C-Map_1876B2
dc.w word_187744-Map_1876B2
dc.w word_18774C-Map_1876B2
dc.w wo... |
; A233247: Expansion of ( 1-x^3-x^2 ) / ( (x^3-x^2-1)*(x^3+2*x^2+x-1) ).
; 1,1,1,4,9,16,36,81,169,361,784,1681,3600,7744,16641,35721,76729,164836,354025,760384,1633284,3508129,7535025,16184529,34762816,74666881,160376896,344473600,739894401,1589218225,3413480625,7331811876,15747991081,33825095056,72652889764,1560510710... |
;; Integer constants...
dd 1010_0101 ; Decimal
dd 01010_0101 ; Decimal (*not* octal!)
dd 0d1010_0101 ; Decimal
dd 0t1010_0101 ; Decimal
dd 1010_0101d ; Decimal
dd 1010_0101t ; Decimal
dd 0b1010_0101 ; Binary
dd 0y1010_0101 ; Binary
dd 1010_0101b ; Binary
dd 1010_0101y ; Binary
dd... |
%include "layout.inc"
%include "resources.inc"
; #####################################################
; ###################### FONTS ########################
; #####################################################
font FONT_TITLE_ID, FONT_STRING_ID, 400, 48 vx
font FONT_TEXT_ID, FONT_STRI... |
;Nested Loops and Procedures (proj4_schauml.asm)
; Author: Katie Schaumleffle
; Last Modified: 5/15/2021
; OSU email address: schaumlk@oregonstate.edu
; Course number/section: CS271 Section 400
; Project Number: 4 Due Date:5/16/2021
; Description: This program calculates prime numbers. We f... |
; A232896: a(n) = 3*a(n-1) - 2*a(n-2) - a(n-3) + a(n-4), where a(1) = 1, a(2) = 3, a(3) = 5, a(4) = 8.
; 1,3,5,8,12,18,27,41,63,98,154,244,389,623,1001,1612,2600,4198,6783,10965,17731,28678,46390,75048,121417,196443,317837,514256,832068,1346298,2178339,3524609,5702919,9227498,14930386,24157852,39088205,63246023,1023341... |
; DRAW XOR SPRITE 2 BYTE DEFINITION ROTATED
; 01.2006 aralbrec, Sprite Pack v3.0
; sinclair spectrum version
XLIB SP1_DRAW_XOR2
LIB SP1_DRAW_XOR2NR
XREF SP1RETSPRDRAW, SP1V_ROTTBL, SP1V_PIXELBUFFER
; following data segment copied into struct sp1_cs
ld hl,0
ld ix,0
call SP1_DRAW_XOR2
; following draw code ... |
; Assemble: nasm -f elf64 -l lab1.lst lab1.asm
; Link: gcc -m64 -o lab1 lab1.o
; Run: ./lab1
global main
extern printf
extern exit
section .data
test: db 1010101b
msg: db 'Hello World!',0Dh,0Ah,0
frm: db '%s',0
frm2: db 'summa = %lld',0x0D,0Ah,0
var1: dq 1234
var2: dq 9... |
; A184483: Upper s-Wythoff sequence, where s(n)=3n-1. Complement of A184482.
; 3,7,12,16,20,25,29,33,37,42,46,50,55,59,63,68,72,76,80,85,89,93,98,102,106,111,115,119,124,128,132,136,141,145,149,154,158,162,167,171,175,179,184,188,192,197,201,205,210,214,218,222,227,231,235,240,244
mov $5,$0
mul $0,2
add $0,7
mov $2,4... |
#include "config.inc"
#include "interrupt.inc"
#include "uart.inc"
#include "util.inc"
#include "clock.inc"
#include "test.inc"
code
org 0 ; Power on reset and reboot
setpage 0
goto main
org 4 ; Interrupt service request
i... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %r15
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0xe197, %r13
nop
nop
nop
nop
nop
cmp $64471, %r12
movups (%r13), %xmm3
vpextrq $1, %xmm3, %rbx
nop
nop
nop
nop
nop
cmp %r15, %r15
lea addresses_D_ht+0x4557, %rcx
dec... |
db DEX_MEGA_CHARIZARD ; pokedex id. using a dex slot for this is... less than optimal.
db 78 ; base hp
db 104 ; base attack
db 78 ; base defense
db 100 ; base speed
db 150 ; base special
db FIRE ; species type 1
db DRAGON ; species type 2
db SHINY_STONE
db 209 ; base exp yield
INCBIN "pic/ymon/mega_charizard.pic",0,1 ;... |
SECTION code_fp_math16
PUBLIC _exp2f16
EXTERN cm16_sdcc_exp2
defc _exp2f16 = cm16_sdcc_exp2
|
#include "DataElement.h"
namespace WPEFramework {
namespace Core {
// CRC32 lookup table for polynomial 0x04c11db7
static uint32_t g_CRCtable[] = {
0x00000000, 0x04c11db7, 0x09823b6e, 0x0d4326d9, 0x130476dc, 0x17c56b6b,
0x1a864db2, 0x1e475005, 0x2608edb8, 0x22c9f00f, 0x2f8ad6d6, 0x2b4bcb61,
... |
; A168209: a(n) = 5*n - a(n-1) + 1 with n>1, a(1)=3.
; Submitted by Jon Maiga
; 3,8,8,13,13,18,18,23,23,28,28,33,33,38,38,43,43,48,48,53,53,58,58,63,63,68,68,73,73,78,78,83,83,88,88,93,93,98,98,103,103,108,108,113,113,118,118,123,123,128,128,133,133,138,138,143,143,148,148,153,153,158,158,163,163,168,168,173,173,178,17... |
; A302331: a(0)=1, a(1)=141; for n>1, a(n) = 142*a(n-1) - a(n-2).
; Submitted by Christian Krause
; 1,141,20021,2842841,403663401,57317360101,8138661470941,1155632611513521,164091692173449041,23299864656018250301,3308416689462418093701,469771870039007351055241,66704297128849581431750521,9471540420426601555957518741,134... |
lorom
macro a8()
sep #$20
endmacro
macro a16()
rep #$20
endmacro
macro i8()
rep #$10
endmacro
macro ai8()
sep #$30
endmacro
macro ai16()
rep #$30
endmacro
macro i16()
rep #$10
endmacro
org $00ffc0
; 0 f01234
db " SM RANDOMIZER "
db $30, $02, $0C, $04, $00, $01, $00, $20, $0... |
; A192746: Constant term of the reduction by x^2 -> x+1 of the polynomial p(n,x) defined below in Comments.
; 1,5,9,17,29,49,81,133,217,353,573,929,1505,2437,3945,6385,10333,16721,27057,43781,70841,114625,185469,300097,485569,785669,1271241,2056913,3328157,5385073,8713233,14098309,22811545,36909857,59721405,96631265,15... |
; A286045: Positions of 0 in A286044; complement of A003157.
; 1,2,4,5,6,7,9,10,12,13,15,16,17,18,20,21,22,23,25,26,27,28,30,31,33,34,36,37,38,39,41,42,44,45,47,48,49,50,52,53,55,56,58,59,60,61,63,64,65,66,68,69,70,71,73,74,76,77,79,80,81,82,84,85,86,87,89,90,91,92,94,95,97,98,100,101,102,103,105,106,107,108,110,111,11... |
/*
* Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
* Copyright (c) 2020-2021 Huawei Device Co., Ltd. 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. Redist... |
; A094618: a(n) = 3^(n+1) - 2^(n+1) + n + 1.
; 2,7,22,69,216,671,2066,6313,19180,58035,175110,527357,1586144,4766599,14316154,42981201,129009108,387158363,1161737198,3485735845,10458256072,31376865327,94134790242,282412759289,847255055036,2541798719491,7625463267286,22876524019533,68629840494000,205890058352855,6176712... |
; A246057: a(n) = (5*10^n - 2)/3.
; 1,16,166,1666,16666,166666,1666666,16666666,166666666,1666666666,16666666666,166666666666,1666666666666,16666666666666,166666666666666,1666666666666666,16666666666666666
mov $1,1
mov $2,1
lpb $0,1
sub $1,$2
sub $0,1
add $4,$2
add $0,2
sub $3,$3
add $2,$4
add $2,1
add... |
; A277981: a(n) = 4*n^2 + 18*n - 20.
; -20,2,32,70,116,170,232,302,380,466,560,662,772,890,1016,1150,1292,1442,1600,1766,1940,2122,2312,2510,2716,2930,3152,3382,3620,3866,4120,4382,4652,4930,5216,5510,5812,6122,6440,6766,7100,7442,7792,8150
mov $1,$0
mul $1,2
mul $1,$0
mul $0,9
add $0,$1
sub $0,10
mul $0,2
|
// RUN: %clang_cc1 -DLAMBDA -verify -fopenmp -x c++ -std=c++11 -triple powerpc64le-unknown-unknown -fopenmp-targets=powerpc64le-ibm-linux-gnu -emit-llvm %s -o - -Wno-openmp-mapping | FileCheck %s --check-prefix LAMBDA --check-prefix LAMBDA-64
// RUN: %clang_cc1 -DLAMBDA -fopenmp -x c++ -std=c++11 -triple powerpc64le-un... |
; A055443: Base 3 distribution of first digit of mantissa following Benford's Law, to minimize chi-squared statistic.
; 1,2,1,1,2,1,2,1,1,2,1,1,2,1,2,1,1,2,1,1,2,1,1,2,1,2,1,1,2,1,1,2,1,2,1,1,2,1,1,2,1,2,1,1,2,1,1,2,1,1,2,1,2,1,1,2,1,1,2,1,2,1,1,2,1,1,2,1,1,2,1,2,1,1,2,1,1,2,1,2,1,1,2,1,1,2,1,1,2,1,2,1,1,2,1,1,2,1,2,1,... |
; A270796: The prime/nonprime compound sequence BBA.
; 8,10,15,20,27,32,38,40,49,58,63,72,78,82,88,99,110,114,121,125,129,140,146,155,166,172,175,183,185,189,212,217,225,230,245,248,258,265,272,279,289,292,306,309,315,319,334,355,360,362,368,375,377,393,402,408,416,420,427,435,438,452,473,478,482,486,507
seq $0,40 ; T... |
// push segment constant to location 111
@111
D=A
@SP
A=M
M=D
@SP
M=M+1
// push segment constant to location 333
@333
D=A
@SP
A=M
M=D
@SP
M=M+1
// push segment constant to location 888
@888
D=A
@SP
A=M
M=D
@SP
M=M+1
// pop segment static to location 8
@SP
M=M-1
@SP
A=M
D=M
@StaticTest.vm.8
M=D
// pop segment static to ... |
[org 0x7c00]
mov bp, 0x8000
mov sp, bp
mov bx, 0x9000
mov dh, 2
call disk_load
mov dx, [0x9000]
call print_hex
call print_nl
mov dx, [0x9000 + 512]
call print_hex
jmp $
%include "..//05-bootsector-functions-strings/boot_sect_print_hex.asm"
%include "..//05-bootsector-functions-strings/boot_sect_print... |
; A267352: Number of ON (black) cells in the n-th iteration of the "Rule 123" elementary cellular automaton starting with a single ON (black) cell.
; 1,2,3,6,3,10,3,14,3,18,3,22,3,26,3,30,3,34,3,38,3,42,3,46,3,50,3,54,3,58,3,62,3,66,3,70,3,74,3,78,3,82,3,86,3,90,3,94,3,98,3,102,3,106,3,110,3,114,3,118,3,122,3,126,3,130... |
#include "Render/2D/TextBlockRender.h"
namespace DAVA
{
TextBlockRender::TextBlockRender(TextBlock* textBlock_)
: textBlock(textBlock_)
{
}
TextBlockRender::~TextBlockRender()
{
SafeRelease(sprite);
}
void TextBlockRender::Prepare()
{
SafeRelease(sprite);
}
void TextBlockRender::DrawText()
{
if (!te... |
#include "aeroshell.h"
///constructor
AERconsole::AERconsole(bool bDirectionFlag, AERoshell *poShell, QWidget *parent, Qt::WFlags flags)
: QsciScintilla()
{
m_poParent = poShell;
m_bDirectionFlag = bDirectionFlag;
m_bPauseFlag = false;
m_nLines = this->lines();
m_vnLinesLength = (int*) FastAlloc(m_... |
/* Scintilla source code edit control */
/* ScintillaGTKAccessible.c - GTK+ accessibility for ScintillaGTK */
/* Copyright 2016 by Colomban Wendling <colomban@geany.org>
* The License.txt file describes the conditions under which this software may be distributed. */
// REFERENCES BETWEEN THE DIFFERENT OBJECTS
//
// S... |
#include <bits/stdc++.h>
using namespace std;
typedef intmax_t I;
I median(I a, I b, I c) {
vector<I> v = {a, b, c};
sort(v.begin(), v.end());
//return v[1];
return a ^ b ^ c ^ min({a, b, c}) ^ max({a, b, c}); // Magia xor.
}
void quick_sort(I *t, I lo, I hi) {
if(is_sorted(t + lo, t + hi)) {
... |
/*Exercise 4 - Functions
Write a program to calculate the function called nCr which is defined as
nCr = n!/ r!(n−r)!
Where n! is the factorial of n.
Implement the functions
long Factorial(int no);
long nCr(int n, int r);
Do not modify the main function.*/
#include <iostream>
long Factorial(int no);
long nCr(int n... |
;
; CPC Maths Routines
;
; August 2003 **_|warp6|_** <kbaccam /at/ free.fr>
;
; $Id: float.asm,v 1.4 2016/06/22 19:50:49 dom Exp $
;
SECTION code_fp
INCLUDE "cpcfp.def"
INCLUDE "cpcfirm.def"
PUBLIC float
EXTERN int_inv_sgn
PUBLIC floatc
EXTERN fa
.float ld a,h
... |
#include <iostream>
#include <cmath>
#include <cstdlib>
#include <mpi.h>
int rank;
using namespace std;
void passive_pattern(double *sendbuf, double *recvbuf, int &n) {
MPI_Allreduce(sendbuf,recvbuf,n,MPI_DOUBLE,MPI_PROD,MPI_COMM_WORLD);
}
void adjoint_forward_pattern(double *sendbuf, double *recvbuf, int &n) {
... |
PUBLIC cleararea
EXTERN pixeladdress
EXTERN leftbitmask, rightbitmask
;
; $Id: clrarea_arx.asm,v 1.2 2015/01/19 01:32:52 pauloscustodio Exp $
;
; ***********************************************************************
;
; Clear specified graphics area in map.
;
; Design & programming by Gunther Strube, Copyright ... |
; A287676: Positions of 1 in A287674; complement of A287675.
; 1,4,5,6,9,10,13,14,15,18,19,20,23,24,27,28,29,32,33,36,37,38,41,42,43,46,47,50,51,52,55,56,57,60,61,64,65,66,69,70,73,74,75,78,79,80,83,84,87,88,89,92,93,96,97,98,101,102,103,106,107,110,111,112,115,116,117,120,121,124,125,126,129,130,133,134,135,138,139,14... |
; Guardian V2.00 1988 Tony Tebby QJUMP
section hotkey
xdef hk_guard
xdef hk_gdstart
xref hk_cons
xref hk_grab
include 'dev8_keys_qdos_io'
include 'dev8_keys_qdos_ioa'
;+++
; Open and clear guardian window using definition following the call.
; Then, if next word is non-zero, grab all but memory sp... |
%include "../../defaults_bin.asm"
; Determine and print phase
lockstep 1
mov ax,cs
mov es,ax
mov ds,ax
mov di,data2
in al,0x61
or al,3
out 0x61,al
mov al,TIMER2 | BOTH | MODE2 | BINARY
out 0x43,al
mov dx,0x42
mov al,0
out dx,al
out dx,al
%rep 5
readPIT16 2
stosw
%endrep
... |
; int esxdos_f_chdir(void *path)
INCLUDE "config_private.inc"
SECTION code_clib
SECTION code_esxdos
PUBLIC _esxdos_f_chdir_fastcall
EXTERN asm_esxdos_f_chdir
_esxdos_f_chdir_fastcall:
ld a,__ESXDOS_DRIVE_CURRENT
push iy
call asm_esxdos_f_chdir
pop iy
ret
|
// license:BSD-3-Clause
// copyright-holders:Fabio Priuli
/***********************************************************************************************************
GCE Vectrex cart emulation
(through slot devices)
********************************************************************************************... |
#include <dirent.h>
#include <unistd.h>
#include <sstream>
#include <string>
#include <vector>
#include <iostream>
#include "linux_parser.h"
using std::stof;
using std::string;
using std::to_string;
using std::vector;
// DONE: An example of how to read data from the filesystem
string LinuxParser::OperatingSystem() {... |
/*
* OldSchoolHack GUI
*
* by KN4CK3R https://www.oldschoolhack.me/
*
* See license in OSHGui.hpp
*/
#ifndef OSHGUI_DRAWING_DIRECT3D8X_HPP
#define OSHGUI_DRAWING_DIRECT3D8X_HPP
#include <d3dx8.h>
/**
* Rebuild einiger D3DX8 Funktionen, da ein Linken gegen die D3DX8 Bibliothek nicht konfliktfrei ist.
*/
D3DX... |
; A213830: Antidiagonal sums of the convolution array A213828.
; 2,18,78,230,540,1092,1988,3348,5310,8030,11682,16458,22568,30240,39720,51272,65178,81738,101270,124110,150612,181148,216108,255900,300950,351702,408618,472178,542880,621240,707792,803088,907698,1022210,1147230,1283382,1431308,1591668,1765140,1952420,21542... |
#include "cat_api.hpp"
namespace
{
const char* error_text_wrong_collapsed_expression()
{
return "A collapsed expression for one category already exists in another category.";
}
void print_error_from_status(util::u32 status, const char* func_id)
{
switch (status)
{
... |
/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/StringView.h>
#include <Kernel/FileSystem/VirtualFileSystem.h>
#include <Kernel/Process.h>
namespace Kernel {
ErrorOr<FlatPtr> Process::sys$access(Userspace<char const*> user_path, size_t ... |
irq_common:
pusha
mov ax, ds
push eax
mov ax, 0x10
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
extern irq_handler
call irq_handler
pop ebx
mov ds, bx
mov es, bx
mov fs, bx
mov gs, bx
popa
add esp, 8
sti
iret
global irq0
global irq1
global ir... |
[XCX_MAXTICKETS_ALL] ##########################################################
moduleMatches = 0xF882D5CF, 0x30B6E091, 0xAB97DE6B ; 1.0.1E, 1.0.2U, 1.0.1U
.origin = codecave
; cfs::CfSocialManager::getTradeTicketMax(const(void))
_maxtickets:
cmpwi r3, 10
blt levels
lis r3, 0x0001
ori r3, r3, 0x869F
blr
levels:
lwz r... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.