text stringlengths 1 1.05M |
|---|
; A193248: Truncated dodecahedron, and truncated icosahedron with faces of centered polygons.
; 1,93,455,1267,2709,4961,8203,12615,18377,25669,34671,45563,58525,73737,91379,111631,134673,160685,189847,222339,258341,298033,341595,389207,441049,497301,558143,623755,694317,770009,851011,937503,1029665,1127677,1231719,1341... |
; A193732: Connell-like sequence.
; Submitted by Jamie Morken(s2)
; 1,3,4,6,8,9,11,13,15,17,18,20,22,24,26,28,30,31,33,35,37,39,41,43,45,47,49,51,52,54,56,58,60,62,64,66,68,70,72,74,76,77,79,81,83,85,87,89,91,93,95,97,99,101,103,105,107,109,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,147... |
// The contents of this file are in the public domain. See LICENSE_FOR_EXAMPLE_PROGRAMS.txt
/*
This example program shows how to use dlib's implementation of the paper:
One Millisecond Face Alignment with an Ensemble of Regression Trees by
Vahid Kazemi and Josephine Sullivan, CVPR 2014
In part... |
//===- PredicateTree.cpp - Predicate tree merging -------------------------===//
//
// 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
//
//===---------------------------... |
; A010130: Continued fraction for sqrt(32).
; 5,1,1,1,10,1,1,1,10,1,1,1,10,1,1,1,10,1,1,1,10,1,1,1,10,1,1,1,10,1,1,1,10,1,1,1,10,1,1,1,10,1,1,1,10,1,1,1,10,1,1,1,10,1,1,1,10,1,1,1,10,1,1,1,10,1,1,1,10,1,1,1,10,1,1,1,10,1,1,1,10,1,1,1,10,1,1,1,10,1,1,1,10,1,1,1,10,1,1,1,10,1,1,1,10,1,1,1,10,1,1,1,10,1,1,1,10,1,1,1,10,1,... |
; ***************************************************************************
; ***************************************************************************
;
; lzsa2_6502.s
;
; NMOS 6502 decompressor for data stored in Emmanuel Marty's LZSA2 format.
;
; This code is written for the ACME assembler.
;
; Optional code is ... |
; ---------------------------------------------------------------------
; The bootloader for Jazz (github.com/coditva/Jazz)
; Author: Utkarsh Maheshwari
; vi:filetype=nasm
; ---------------------------------------------------------------------
bits 16
org 0x7c00
boot:
mov ax, 0x2401
int 0x15 ... |
SECTION code_clib
SECTION code_fp_math48
PUBLIC asm_dmul10a
EXTERN am48_dmul10a
defc asm_dmul10a = am48_dmul10a
|
; global descriptor table describes segments of memory for processor
; This is the hardest part about switching the CPU from 16-bit real mode into 32-bit
; protected mode. We must prepare the GDT, an in-memory complex data structure
; that defines memory segments and their protected-mode attributes
gdt_start: ; don't ... |
; A027775: a(n) = (n+1)*binomial(n+1, 15).
; 15,256,2312,14688,73644,310080,1139544,3751968,11277222,31380096,81719000,200880160,469364220,1048380480,2249204040,4653525600,9316746045,18103127040,34226224560,63102895680,113678010600,200444492160,346475391120,587908889280,980492785740,1609013802240,2600723270736,41442419... |
#!/usr/bin/sisa16_asm -run
.ZERO_STACK_POINTER: astp;popa;
section 0x40000;
:ascii_spinny:
..asciz:-\|/
.ascii_spinny_len:4
.ITER_REGION:3
..(ITER_REGION):
bytes 0,0,0,0;
.ld_iter: farllda %&@&%
.ld_iterb: farlldb %&@&%
.st_iter: farstla %&@&%
//..include"libc.hasm"
..include"libc_pre.hasm"
..(2):
..dinclude"... |
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
80
.text@150
lbegin:
ld c, 41
ld b, 03
ld d, 03
lbegin_waitm3:
ldff a, (c)
and a, d
cmp a, b
jrnz lbegin_waitm3
ld a, 20
ldff(c), a
xor a, a
ldff(0f), a
ld a, 02
ldff(ff), a
ei
ld hl, 8000
ld a, 01
.text@1000
lstatint:
nop
nop
nop
... |
; A171445: Sequence whose G.f is given by f(z)=(1+z)^(24)/(1-z).
; 1,25,301,2325,12951,55455,190051,536155,1271626,2579130,4540386,7036530,9740686,12236830,14198086,15505590,16241061,16587165,16721761,16764265,16774891,16776915,16777191,16777215,16777216,16777216
lpb $0
mov $2,$0
sub $0,1
seq $2,10940 ; Binomial... |
;------------------------------------------------------------------------------
;
; EnableInterrupts() for AArch64
;
; Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
; Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
; Portions copyright (c) 2011 - 2013, ARM Ltd. All right... |
; A087810: First differences of A029931.
; 1,1,1,0,1,1,1,-2,1,1,1,0,1,1,1,-5,1,1,1,0,1,1,1,-2,1,1,1,0,1,1,1,-9,1,1,1,0,1,1,1,-2,1,1,1,0,1,1,1,-5,1,1,1,0,1,1,1,-2,1,1,1,0,1,1,1,-14,1,1,1,0,1,1,1,-2,1,1,1,0,1,1,1,-5,1,1,1,0,1,1,1,-2,1,1,1,0,1,1,1,-9,1,1,1,0
mov $1,1
mov $2,1
lpb $0
sub $0,1
mul $0,2
dif $0,4
sub... |
// Copyright (c) 2012-2016 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 "clientversion.h"
#include "tinyformat.h"
#include <string>
/**
* Name of client reported in the 'version' messa... |
; A004448: Nimsum n + 7.
; 7,6,5,4,3,2,1,0,15,14,13,12,11,10,9,8,23,22,21,20,19,18,17,16,31,30,29,28,27,26,25,24,39,38,37,36,35,34,33,32,47,46,45,44,43,42,41,40,55,54,53,52,51,50,49,48,63,62,61,60,59,58,57,56,71,70,69,68,67,66,65,64,79,78,77,76,75,74,73,72,87,86,85,84,83,82,81,80,95,94,93,92,91,90,89,88,103,102,101,100... |
// Copyright 2019 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r15
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x1a1ba, %r12
nop
nop
nop
nop
dec %r8
mov (%r12), %di
nop
nop
sub %rsi, %rsi
lea addresses_UC_ht+0x3113, %r10
nop
nop
nop
nop
nop
add %rsi, %rsi
mov (%r10), %rbp
nop
nop
nop
no... |
; A061282: Minimal number of steps to get from 0 to n by (a) adding 1 or (b) multiplying by 3. A stopping problem: begin with n and at each stage if a multiple of 3 divide by 3, otherwise subtract 1.
; 0,1,2,2,3,4,3,4,5,3,4,5,4,5,6,5,6,7,4,5,6,5,6,7,6,7,8,4,5,6,5,6,7,6,7,8,5,6,7,6,7,8,7,8,9,6,7,8,7,8,9,8,9,10,5,6,7,6,7... |
// -- Include rang before any os headers.
#include "../rang_include.hpp"
// --
#include "backend/generator.hpp"
#include "compiler.hpp"
#include "config.hpp"
#include "frontend/analysis.hpp"
#include "frontend/source.hpp"
#include "novasm/serialization.hpp"
#include "opt/opt.hpp"
#include "utilities.hpp"
#include <alg... |
/*
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... |
/*
[auto_generated]
boost/numeric/odeint/stepper/generation/make_dense_output.hpp
[begin_description]
Factory function to simplify the creation of dense output steppers from error steppers.
[end_description]
Copyright 2011-2012 Karsten Ahnert
Copyright 2011-2012 Mario Mulansky
Distributed under the Boost Sof... |
// Copyright 2020 The Fuchsia Authors
//
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT
#include <lib/unittest/unittest.h>
#include <string.h>
#include <ktl/limits.h>
#include <ktl/string_view.h>
namespace {
bool Cr... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x8c45, %rsi
lea addresses_A_ht+0x1ef7, %rdi
and %rbx, %rbx
mov $21, %rcx
rep movsl
nop
nop
nop
sub %rbx, %rbx
lea addresses_D_ht+0x194ec, %rsi
lea addresses_normal_ht+0x174d, %rdi
nop
... |
; A053835: Sum of digits of n written in base 15.
; 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,5,6,7,8,9,10,11,12,13
mov $1,$0
add $0,1
lpb $0,1
sub $0,1
sub $1,$3
sub $2,... |
;; potentially useful macros for asm development
;; long-nop instructions: nopX inserts a nop of X bytes
;; see "Table 4-12. Recommended Multi-Byte Sequence of NOP Instruction" in
;; "Intel® 64 and IA-32 Architectures Software Developer’s Manual" (325383-061US)
%define nop1 nop ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x98f2, %rsi
lea addresses_D_ht+0x1592, %rdi
nop
nop
nop
and $20474, %r11
mov $124, %rcx
rep movsw
nop
nop
sub $53759, %r13
lea addresses_normal_ht+0x1c3f2, %rsi
lea addresses_WC_ht+0x1... |
; char *itoa(int num, char *buf, int radix)
SECTION code_clib
SECTION code_stdlib
PUBLIC itoa_callee
EXTERN asm_itoa
itoa_callee:
pop hl
pop bc
pop de
ex (sp),hl
jp asm_itoa
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _itoa_callee
defc _itoa_callee = itoa_callee
ENDIF
|
; int puts(const char *s)
INCLUDE "clib_cfg.asm"
SECTION code_stdio
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $02
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC _puts_fastcall
EXTERN asm_puts
_puts_fastcall:
push ix
call asm_puts
pop ix
ret
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
ELSE
;;;;... |
.global s_prepare_buffers
s_prepare_buffers:
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0xaeb0, %rsi
lea addresses_D_ht+0x18ab0, %rdi
nop
nop
cmp $7795, %r9
mov $42, %rcx
rep movsb
nop
nop
inc %rcx
pop %rsi
pop %rdi
pop %rcx
pop %r9
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r15
push ... |
#include "reserved.h"
#include <cassert>
using namespace std;
std::unordered_map<NamePool::Id, Meaningful, NamePool::Id::Hasher> meaningfuls;
std::unordered_map<NamePool::Id, Keyword, NamePool::Id::Hasher> keywords;
std::unordered_map<NamePool::Id, Oper, NamePool::Id::Hasher> opers;
const unordered_map<Oper, OperInfo... |
; A074837: Numbers n such that the penultimate 3 divisors of n sum to n.
; 6,18,42,54,66,78,102,114,126,138,162,174,186,198,222,234,246,258,282,294,306,318,342,354,366,378,402,414,426,438,462,474,486,498,522,534,546,558,582,594,606,618,642,654,666,678,702,714,726,738,762,774,786,798,822,834,846,858,882,894,906,918,942,... |
; A280021: Expansion of phi_{11, 2}(x) where phi_{r, s}(x) = Sum_{n, m>0} m^r * n^s * x^{m*n}.
; Submitted by Jamie Morken(s2)
; 0,1,2052,177156,4202512,48828150,363524112,1977326792,8606744640,31382654013,100195363800,285311670732,744500215872,1792160394206,4057474577184,8650199741400,17626613022976,34271896307922,643... |
; SMP AP startup trampoline
; This is where other cores start their execution.
; Stack must not be used here.
%include "src/asm_routines/constants.asm"
%define CODE_SEG 0x0008
%define DATA_SEG 0x0010
[BITS 16]
[ORG 0x2000] ; todo: constantify?
ap_startup:
jmp 0x0000:.flush_cs ; reload CS to zero
.flu... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x9f81, %rsi
clflush (%rsi)
nop
nop
nop
cmp $33590, %rcx
vmovups (%rsi), %ymm4
vextracti128 $0, %ymm4, %xmm4
vpextrq $1, %xmm4, %rdx
nop
nop
nop
nop
add %rax, %rax
lea addresse... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Geoworks 1994 -- All Rights Reserved
PROJECT: PC/GEOS
MODULE: Power Drivers
FILE: apmCustom.asm
AUTHOR: Todd Stumpf, Aug 1, 1994
REVISION HISTORY:
Name Date Description
---- ---- -----------
TS 8/... |
; A083023: a(n) = number of partitions of n into a pair of parts n=p+q, p>=q>=0, with p-q equal to a square >= 0.
; 1,1,1,2,1,2,1,2,2,2,2,2,2,2,2,3,2,3,2,3,2,3,2,3,3,3,3,3,3,3,3,3,3,3,3,4,3,4,3,4,3,4,3,4,3,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,5,6
... |
; $Id: bit_close.asm,v 1.3 2016/06/16 20:23:51 dom Exp $
;
; Galaksija 1 bit sound functions
;
; void bit_click();
;
; Stefano Bodrato
;
SECTION code_clib
PUBLIC bit_close
PUBLIC _bit_close
.bit_close
._bit_close
ret
|
;=================================================
; Name: Moya, Branden
; Username: bmoya001@ucr.edu
;
; Lab: lab 6.1
; Lab section: 021
; TA: Bryan Marsh
;
;=================================================
.ORIG x3000
;INSTRUCTIONS
LD R3, ONE_CHECK
START
AND R1,R1,#0
AND R5,R5,#0 ;RESETS VALUES
AND R6,R6,#0
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r15
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0xde40, %r15
add %rbp, %rbp
mov (%r15), %r11
nop
nop
nop
nop
nop
dec %r15
lea addresses_WT_ht+0x3b23, %r15
nop
nop
add %rdx, %rdx
mov $0x6162636465666768, %rdi
movq %rdi, (%r1... |
;-------------------------------------;
; GPIO POOLING FOR ATMEL328p ;
; ;
; Por: Prof. Carlo Requiao ;
; 13/Oct/2021 ;
;-------------------------------------;
.device ATmega328P
;-------------------------------------;
; MAC... |
;
; Small C+ Compiler
;
; The Maths Routines (essential ones!)
;
; All maths routines are now in a library except for these
; small ones (which will always be used)
;
; If -doublestr is defined then we can link with whatever
; library we feel like
;
; djm 7/12/98
;
; $Id: float.asm,v 1.8 2002/0... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2014 - 2016, 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 distributi... |
.export div
.include "utils/reg.inc"
; r0L - value
; r1L - divisor
; when finished gREG::r0H will contain the mod value
.proc div
DIV = REG::r0L;
MOD = REG::r0H;
DIVISOR = REG::r1L;
stz MOD
clc
ldx #8
@loop:
rol DIV
rol MOD
lda MOD
sec
sbc DIVISOR
bcc @ignore ; carry clear in... |
name "I/O Strign program"
; add your code here
.model small
db 30,?, 30 dup(' ')
name db $,<' '>
.data
input_msg db 0ah,0dh,"your sring is:$"
msg db 60 dup(?) ;60 place empty array
outt db 0ah,0dh,"your string is:$"
.code
call main
main proc
mov ax,@data
mov ds,ax
... |
.include "defines.inc"
.include "global.inc"
.segment "BANK0"
Stars2:
.byte 16 ; number of OAM tile entries
; y+offset, tile number, palette & object attribute, x+offset
; code from NEXXT
; first quadrant
.byte -48+64,$83,3|16, 16+64
.byte -24+64,$80,0|16,-32+64
.byte -16+64,$81,2|16, 32+64
.byte 16... |
# Author: Leonardo Benitez
# Date: 20/03/2019
# Brief: little calculator using floating point
# Variables map
# $f12: acumulator
# $f11: temporary result
# $f0: result from syscall read float
# Coments
# The user input is generally a float, but in case "sum" it was done with int for pedagogical purposes
.data
Smenu: ... |
/*
* Copyright 2006-2016 zorba.io
*
* 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... |
_mkdir: 檔案格式 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
7: ff 71 fc pushl -0x4(%ecx)
a: 55 ... |
/* mmap_trie_concurrency_test.cc
Jeremy Barnes, 7 September 2011
Copyright (c) 2011 Datacratic. All rights reserved.
Test for concurrency with the memory mapped trie.
*/
#define BOOST_TEST_MAIN
#define BOOST_TEST_DYN_LINK
#include "mmap_test.h"
#include "mmap/memory_tracker.h"
#include "mmap/mmap_file.h"
... |
;
;
; Z88 Maths Routines
;
; C Interface for Small C+ Compiler
;
; 7/12/98 djm
;double floor(double)
;Number in FA..
SECTION code_fp
INCLUDE "target/z88/def/fpp.def"
PUBLIC floor
EXTERN fsetup
EXTERN stkequ2
.... |
0x0000 (0x000000) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0001 (0x000002) 0x291A- f:00024 d: 282 | OR[282] = A
0x0002 (0x000004) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0003 (0x000006) 0x291B- f:00024 d: 283 | OR[283] = A
... |
; void SMS_addTwoAdjoiningSprites(unsigned char x, unsigned char y, unsigned char tile)
SECTION code_clib
SECTION code_SMSlib
PUBLIC SMSlib_addTwoAdjoiningSprites_callee
EXTERN asm_SMSlib_addTwoAdjoiningSprites
SMSlib_addTwoAdjoiningSprites_callee:
pop af
pop hl
pop de
pop bc
push af
ld b,l
... |
; A034830: a(n) = n-th sept-factorial number divided by 3.
; 1,10,170,4080,126480,4806240,216280800,11246601600,663549494400,43794266630400,3196981464019200,255758517121536000,22250990989573632000,2091593153019921408000,211250908455012062208000,22815098113141302718464000,2623736283011249812623360000,3200958265273724771... |
; A183861: n-1+ceiling((-1+n^2)/3); complement of A183860.
; 1,2,5,8,12,17,22,28,35,42,50,59,68,78,89,100,112,125,138,152,167,182,198,215,232,250,269,288,308,329,350,372,395,418,442,467,492,518,545,572,600,629,658,688,719,750,782,815,848,882,917,952,988,1025,1062,1100,1139,1178,1218,1259,1300,1342,1385,1428,1472,1517,1... |
<%
from pwnlib.shellcraft.thumb.linux import syscall
%>
<%page args="fdout, iov, count, flags"/>
<%docstring>
Invokes the syscall vmsplice. See 'man 2 vmsplice' for more information.
Arguments:
fdout(int): fdout
iov(iovec): iov
count(size_t): count
flags(unsigned): flags
</%docstring>
${sysca... |
; A174522: Expansion of 1/(1 - x - x^4 + x^6).
; Submitted by Christian Krause
; 1,1,1,1,2,3,3,3,4,6,7,7,8,11,14,15,16,20,26,30,32,37,47,57,63,70,85,105,121,134,156,191,227,256,291,348,419,484,548,640,768,904,1033,1189,1409,1673,1938,2223,2599,3083,3612,4162,4823,5683,6696,7775,8986
lpb $0
mov $2,$0
sub $0,1
seq... |
; A020723: n+9.
; 9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81
add $0,9
|
; A001363: Primes in ternary.
; 2,10,12,21,102,111,122,201,212,1002,1011,1101,1112,1121,1202,1222,2012,2021,2111,2122,2201,2221,10002,10022,10121,10202,10211,10222,11001,11012,11201,11212,12002,12011,12112,12121,12211,20001,20012,20102,20122,20201,21002,21011,21022,21101,21211,22021,22102,22111,22122,22212,22221,100022... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x7b09, %rsi
nop
nop
add $26867, %rbp
vmovups (%rsi), %ymm0
vextracti128 $0, %ymm0, %xmm0
vpextrq $1, %xmm0, %r13
nop
sub $24815, %r13
lea addresses_D_ht+0x14b61, %rdx
nop
nop... |
; A075137: Numerator of the generalized harmonic number H(n,5,1).
; Submitted by Jon Maiga
; 1,7,83,697,1685,22521,714167,6551627,273085171,6372562445,109738148749,111017326363,6843690854527,6909897986791,494972427791585,9482037783487391,85993305141830183,3724238207261666261
mov $1,1
lpb $0
mov $2,$0
sub $0,1
mu... |
// MIT License
// Copyright (c) 2021 Florian Eigentler
// 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, modif... |
/*************************************************************************/
/* camera_win.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
dnl SPARC v8 mpn_submul_1 -- Multiply a limb vector with a limb and
dnl subtract the result from a second limb vector.
dnl Copyright (C) 1992, 1993, 1994, 2000 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl The GNU MP Library is free software; you can redistribute it and/or modi... |
// Standard Library includes
#include <iostream>
#include <fstream>
#include <istream>
#include <ostream>
#include <string>
#include <vector>
#include "CaesarCipher.hpp"
#include "ProcessCommandLine.hpp"
#include "TransformChar.hpp"
// Main function of the mpags-cipher program
int main(int argc, char* argv[])
{
// C... |
;-----------------------------------------------------------------------------
;FILENAME: CHORD.SOURCE Chord buster Translation
;-----------------------------------------------------------------------------
;This source file contains code for the Stereo Editor translation of Jerry
;Roth's... |
#include "common.h"
std::string g_log_tag;
|
#include <asio.hpp>
#include <iostream>
#include <memory>
#include <map>
#include <thread>
#include "CollabVM.h"
#ifndef _WIN32
#include "StackTrace.hpp"
#define STACKTRACE PrintStackTrace();
#endif
std::shared_ptr<CollabVMServer> server_;
asio::io_service service_;
std::unique_ptr<asio::io_service::work> work(new asi... |
#include "Sort_internal.hpp"
#include "algo/algo_internal_interface.hpp"
#include <iostream>
#include <algorithm>
#ifdef UNI_OMP
#include <omp.h>
#endif
namespace cytnx{
namespace algo_internal{
bool _compare_c128(cytnx_complex128 a, cytnx_complex128 b)
{
if (real(a) == real(b))... |
bootblock.o: file format elf32-i386
Disassembly of section .text:
00007c00 <start>:
# with %cs=0 %ip=7c00.
.code16 # Assemble for 16-bit mode
.globl start
start:
cli # BIOS enabled interrupts; disable
7c00: fa cli
# Zero data segment... |
; A102592: a(n) = Sum_{k=0..n} binomial(2n+1, 2k)*5^(n-k).
; 1,8,80,832,8704,91136,954368,9994240,104660992,1096024064,11477712896,120196169728,1258710630400,13181388849152,138037296103424,1445545331654656,15137947242201088,158526641599938560
mul $0,2
add $0,3
seq $0,87205 ; a(n) = -2*a(n-1) + 4*a(n-2), a(0)=1, a(1)=2... |
CGADiamondJ label byte
word C_BLACK
Bitmap <67,41,0,BMF_MONO>
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00
db 0x07, 0xe0, 0x00, 0x3b, 0x76, 0xd0, 0x00, 0x0e,
0x00
db 0x01, 0x80, 0x00, 0x6d, 0x8d, 0xb4, 0x03, 0x34,
0x00
db 0... |
; A164463: Number of binary strings of length n with no substrings equal to 0001 0100 or 0110
; Submitted by Christian Krause
; 13,20,31,50,82,134,217,350,565,914,1480,2396,3877,6272,10147,16418,26566,42986,69553,112538,182089,294626,476716,771344,1248061,2019404,3267463,5286866,8554330,13841198,22395529,36236726,58632... |
/*
* Copyright (c) 2018-2021 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
* 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
* ri... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/directconnect/model/CreateDirectConnectGatewayAssociationResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/S... |
// RUN: %clang_cc1 -triple arm64-none-linux -emit-llvm -w -o - %s | FileCheck -check-prefix=PCS %s
// PCS: define{{.*}} void @{{.*}}(i8 %a
struct s0 {};
void f0(s0 a) {}
|
Music_Dungeon2_Ch0::
tempo 144
volume 7, 7
duty 3
toggleperfectpitch
vibrato 10, 1, 4
Music_Dungeon2_branch_7e892::
notetype 12, 11, 2
octave 4
E_ 4
E_ 4
E_ 4
E_ 4
A# 4
A# 4
A# 4
A# 4
E_ 4
E_ 4
E_ 4
E_ 4
octave 5
C# 4
C# 4
C# 4
C# 4
octave 3
E_ 4
E_ 4
E_ 4
E_ 4
A# 4
A# 4
A# 4
A# 4
oct... |
// -*- C++ -*-
//
// $Id: SHMIOP_Endpoint.inl 73791 2006-07-27 20:54:56Z wotte $
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE const char *
TAO_SHMIOP_Endpoint::host (void) const
{
return this->host_.in ();
}
ACE_INLINE CORBA::UShort
TAO_SHMIOP_Endpoint::port (void) const
{
return this->port_;
}
ACE_INLINE CORB... |
; void fzx_state_init(struct fzx_state *fs, struct fzx_font *ff, struct r_Rect16 *window)
SECTION code_font_fzx
PUBLIC asm_fzx_state_init
EXTERN __fzx_draw_xor, l_setmem_hl
asm_fzx_state_init:
; initialize cross-platform portion of fzx_state
;
; enter : hl = struct fzx_state *
; bc = struct fz... |
bits 32
section .multiboot ;according to muiltiboot spec
dd 0x1BADB002 ;Magic number for bootloader
dd 0x0 ; set flags
dd - (0x1BADB002 + 0x0) ; checksum
section .text
global start
extern main ; defined in the C file
start:
cli ;... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin Core 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/navcoin-config.h>
#endif
#include <n... |
; size_t fread_callee(void *ptr, size_t size, size_t nmemb, FILE *stream)
INCLUDE "clib_cfg.asm"
SECTION code_stdio
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $02
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC _fread_callee
EXTERN asm_fread
_fread_callee:
pop af
pop de
pop bc
pop hl
pop ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r8
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x13aff, %rsi
lea addresses_normal_ht+0x18977, %rdi
nop
nop
nop
cmp %rax, %rax
mov $14, %rcx
rep movsw
nop
dec %r10
lea addresses_D_ht+0x144ff, %rsi
lea addresses_normal_ht+0x1... |
; A035344: Expansion of 1/((1 - x)*(1 - 4*x + 2 * x^2)).
; 1,5,19,67,231,791,2703,9231,31519,107615,367423,1254463,4283007,14623103,49926399,170459391,581984767,1987020287,6784111615,23162405887,79081400319,270000789503,921840357375
mov $1,2
lpb $0,1
sub $0,1
add $2,$1
mul $1,2
add $1,$2
lpe
sub $1,1
|
; lzo1f_f1.asm -- lzo1f_decompress_asm_fast
;
; This file is part of the LZO real-time data compression library.
;
; Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer
; All Rights Reserved.
;
; The LZO library is free software; you can redistribute it and/or
; modify it under the terms of the GNU Gene... |
; A159759: Decimal expansion of (83+18*sqrt(2))/79.
; Submitted by Christian Krause
; 1,3,7,2,8,5,8,7,8,6,3,6,3,4,9,0,0,1,1,1,1,9,3,7,2,1,1,4,3,7,6,8,9,3,2,3,3,0,9,1,8,2,3,9,7,1,6,0,4,8,7,4,2,4,4,5,2,1,2,6,8,8,0,1,0,6,1,1,7,9,5,5,2,0,5,4,6,5,7,2,9,9,9,9,1,2,2,7,5,3,9,4,6,7,0,5,7,5,7,3
bin $1,$0
mov $2,2
mov $3,$0
mul ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r8
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x6d3f, %rsi
lea addresses_WT_ht+0x7fb5, %rdi
nop
nop
nop
nop
nop
xor $55641, %rbp
mov $112, %rcx
rep movsq
nop
nop
nop
nop
cmp $19593, %rbx
lea addresses_D_ht+0x79f9, %r8
nop
d... |
; A123194: a(n) = (n+1)*Fibonacci(n+2) + 3.
; 4,7,12,23,43,81,150,275,498,893,1587,2799,4904,8543,14808,25555,43931,75261,128538,218923,371934,630457,1066467,1800603,3034828,5106871,8580900,14398415,24129163,40388073,67527582,112786499,188195274,313733813,522562323,869681415,1446262256,2403347471,3991032048,6623205643,... |
#include "NumberList.h"
#include <iostream>
#define _CRT_SECURE_NO_WARNINGS
int main()
{
NumberList nr;
nr.Init();
nr.Add(3);
nr.Add(9);
nr.Add(1);
nr.Add(6);
nr.Add(5);
nr.Add(8);
nr.Add(2);
nr.Add(0);
nr.Add(4);
nr.Add(16);
nr.Add(15);
nr.Sort();
nr.Print()... |
; A040273: Continued fraction for sqrt(291).
; 17,17,34,17,34,17,34,17,34,17,34,17,34,17,34,17,34,17,34,17,34,17,34,17,34,17,34,17,34,17,34,17,34,17,34,17,34,17,34,17,34,17,34,17,34,17,34,17,34,17,34,17,34,17,34,17,34,17,34,17,34,17,34
pow $1,$0
sub $1,2
gcd $1,$0
mul $1,17
mov $0,$1
|
; ISR_example.asm: a) Increments/decrements a BCD variable every half second using
; an ISR for timer 2; b) Generates a 2kHz square wave at pin P3.7 using
; an ISR for timer 0; and c) in the 'main' loop it displays the variable
; incremented/decremented using the ISR for timer 0 on the LCD. Also resets it to
; ze... |
; A211636: Number of ordered triples (w,x,y) with all terms in {1,...,n} and w^2>=x^2+y^2.
; Submitted by Christian Krause
; 0,0,1,5,13,28,50,80,121,175,244,327,425,544,683,845,1028,1236,1470,1733,2027,2349,2706,3096,3520,3985,4489,5034,5619,6247,6922,7641,8411,9230,10102,11030,12007,13043,14133,15288,16504,17778,19117... |
; A192959: Coefficient of x in the reduction by x^2 -> x+1 of the polynomial p(n,x) defined at Comments.
; 0,1,0,3,10,27,60,121,228,411,718,1227,2064,3433,5664,9291,15178,24723,40188,65233,105780,171411,277630,449523,727680,1177777,1906080,3084531,4991338,8076651,13068828,21146377,34216164,55363563,89580814,144945531,2... |
; *****************************************************************************
; *****************************************************************************
;
; Name: miscellany.asm
; Purpose: Miscellaneous Commands
; Created: 3rd March 2020
; Reviewed: 16th March 2020
; Author: Paul Robson (paul@robsons.org... |
// 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.
//
// File: StubGen.cpp
//
//
#include "common.h"
#include "stubgen.h"
#include "jitinterface.h"
#include "ilst... |
; A002446: a(n) = 2^(2*n+1) - 2.
; 0,6,30,126,510,2046,8190,32766,131070,524286,2097150,8388606,33554430,134217726,536870910,2147483646,8589934590,34359738366,137438953470,549755813886,2199023255550,8796093022206,35184372088830,140737488355326,562949953421310,2251799813685246,9007199254740990
mov $1,4
pow $1,$0
div $1... |
; A021959: Decimal expansion of 1/955.
; 0,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,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
seq $0,199682 ; 2*10^n+1.
div $0,191
mod $0,10
|
<%
from pwnlib.shellcraft.aarch64.linux import syscall
%>
<%page args="addr, length, flags"/>
<%docstring>
Invokes the syscall msync. See 'man 2 msync' for more information.
Arguments:
addr(void): addr
len(size_t): len
flags(int): flags
</%docstring>
${syscall('SYS_msync', addr, length, flags)}
|
/**
Copyright 2019 JasmineGraph Team
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 writing, software... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.