text stringlengths 1 1.05M |
|---|
BITS 32
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
; allocate 16 byte aligned stack space for the packed values
lea ecx, [esp-33]
and ecx, 0xfffffff0
; load a 128 bit value into xmm0
mov DWORD [ecx], 0x55555555
mov DWORD [ecx+4], 0x14530451
mov DWORD [ecx+8], 0x1badb002
mov DWORD [... |
; A133086: Row sums of triangle A133085.
; 1,4,10,26,64,152,352,800,1792,3968,8704,18944,40960,88064,188416,401408,851968,1802240,3801088,7995392,16777216,35127296,73400320,153092096,318767104,662700032,1375731712,2852126720,5905580032,12213813248,25232932864,52076478464,107374182400,221190815744,455266533376,936302870... |
; uint16_t htons(uint16_t)
SECTION code_clib
SECTION code_network
PUBLIC _htons
EXTERN asm_htons
_htons:
pop af
pop hl
push hl
push af
jp asm_htons
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: axisTicks.asm
AUTHOR: John Wedgwood, Oct 23, 1991
METHODS:
Name Description
---- -----------
REVISION HISTORY:
Name Date Desc... |
; A240525: 2^(n-2)*(2^(n+4)-(-1)^n+5).
; 5,19,68,268,1040,4144,16448,65728,262400,1049344,4195328,16780288,67112960,268447744,1073758208,4295016448,17179934720,68719673344,274878169088,1099512414208,4398047559680,17592189190144,70368748371968,281474989293568,1125899923619840,4503599677702144
mov $1,2
mov $3,$0
add $3,... |
Music_Lavender_Ch1::
tempo 152
volume 7, 7
duty 1
toggleperfectpitch
vibrato 0, 8, 8
notetype 12, 8, 7
rest 16
rest 16
rest 16
rest 16
notetype 12, 10, 7
Music_Lavender_branch_bb6b::
octave 3
G_ 8
G_ 8
E_ 8
E_ 8
G_ 4
F# 4
E_ 4
B_ 4
C# 8
C# 8
G_ 8
G_ 8
F# 8
F# 8
B_ 4
G_ 4
F# 4
B_ 4
octave... |
// Copyright 2021 The Fuchsia 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 "src/lib/storage/vfs/cpp/paged_vnode.h"
#include <lib/async/task.h>
#include "src/lib/storage/vfs/cpp/paged_vfs.h"
namespace fs {
PagedVnode::... |
// Copyright 2020 The XLS Authors
//
// 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 t... |
.686
.XMM
.model flat, c
PUBLIC SetXmmScratchesFun
extern xmmInitVals:dword
.code
SetXmmScratchesFun PROC
push ebp
mov ebp, esp
lea eax,xmmInitVals
movdqu xmm0, xmmword ptr [eax]
movdqu xmm1, xmmword ptr [eax]+16
movdqu xmm2, xmmword ptr [eax]+32
movdqu xmm3, xmmword ptr [eax]+4... |
#include<cstdio>
int main(){
puts("(0, 0)\n(1, 0)\n(2, 0)\n(2, 1)\n(2, 2)\n(2, 3)\n(2, 4)\n(3, 4)\n(4, 4)");
return 0;
} |
;
; Z88 Graphics Functions - Small C+ stubs
;
; Written around the Interlogic Standard Library
;
; Stubs Written by D Morris - 30/9/98
;
; ----- void __CALLEE__ setpos(int x2, int y2)
;
; $Id: w_setpos.asm $
;
SECTION code_graphics
PUBLIC setpos
PUBLIC _setpos
EXTERN setpos_callee
... |
<% from pwnlib.shellcraft import arm %>
<%docstring>A single-byte RET instruction.
Args:
return_value: Value to return
Examples:
>>> with context.local(arch='arm'):
... print(enhex(asm(shellcraft.ret())))
... print(enhex(asm(shellcraft.ret(0))))
... print(enhex(asm(shellcraft.ret(0xdea... |
_fsapplication: file format elf32-i386
Disassembly of section .text:
00000000 <intialize_mutex>:
int res;
char msg[1024];//idk why it needs this
};
//struct fss_request * request;
//struct fss_response * response;
void intialize_mutex(){
0: 55 push %ebp
1: 89 e5 ... |
ifndef INCLUDE_DIST_TO_HH
INCLUDE_DIST_TO_HH equ 1
; _ _ _ _ _ _
; | (_) | | | | | | | |
; __| |_ ___| |_ | |_ ___ | |__ | |__
; / _` | / __| __|| __/ _ \ | '_ \| '_ \
;| (_| | \__ \ |_ | || (_) || | | | | | |
; \__,_|_|___/\__| \__\___/ |_| |_|_| |_|
; ______ ____... |
org 0000h
mov r1,#0ah ;counter = 10
mov dptr,#9000h ;array starts here
array_inc:movx a,@dptr ;move content location in accumulator
inc a ;increment content
movx @dptr,a ;restore content
inc dptr ;move to next loca... |
_shutdown: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
Failure to follow this instruction will lead to zero point
for this part */
int
main(int argc, char * argv[])
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: ff ... |
#include <iostream>
#include <fstream>
#include "ticket.h"
#include <ctime>
#include "application.h"
using namespace std;
int main()
{
Application app;
return app.run();
}
|
;;
;
; Name: stager_sock_bind_udp
; Qualities: Can Have Nulls
; Platforms: Linux
; Authors: skape <mmiller [at] hick.org>
; Version: $Revision: 1407 $
; License:
;
; This file is part of the Metasploit Exploit Framework
; and is subject to the same licenses and copyrights as
; ... |
// Copyright 2020 Daniel Parker
// Distributed under the Boost license, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// See https://github.com/danielaparker/jsoncons for latest version
#ifndef JSONCONS_JSONSCHEMA_KEYWORD_VALIDATOR_HPP
#define JSONCONS_JSONSCH... |
ROTINA:
CLR F0
SETB EA
SETB EX0
SETB EX1
SETB IT0
SETB IT1
ACALL leituraTeclado
CJNE R0, #01h, GO_ON
;signifca q o cara chamou o =
ACALL EQUAL_CONTA
|
; A299260: Partial sums of A299254.
; 1,8,29,74,153,275,450,687,996,1387,1869,2452,3145,3958,4901,5983,7214,8603,10160,11895,13817,15936,18261,20802,23569,26571,29818,33319,37084,41123,45445,50060,54977,60206,65757,71639,77862,84435,91368,98671,106353,114424,122893,131770,141065,150787,160946,171551,182612,194139,20614... |
; A237617: a(n) = n*(n + 1)*(17*n - 14)/6.
; 0,1,20,74,180,355,616,980,1464,2085,2860,3806,4940,6279,7840,9640,11696,14025,16644,19570,22820,26411,30360,34684,39400,44525,50076,56070,62524,69455,76880,84816,93280,102289,111860,122010,132756,144115,156104,168740,182040,196021,210700,226094,242220,259095,276736,295160,31... |
;--------------------------------------------------------
; Category 7 Function 68 Get pointer shape image
;--------------------------------------------------------
;
;
;
IOMGETPTRSHAPE PROC NEAR
RET
IOMGETPTRSHAPE ENDP
|
; void z80_set_int_state_fastcall(uint state)
SECTION code_z80
PUBLIC _z80_set_int_state_fastcall
EXTERN asm_z80_set_int_state
defc _z80_set_int_state_fastcall = asm_z80_set_int_state
|
; A008811: Expansion of x*(1+x^4)/((1-x)^2*(1-x^4)).
; 0,1,2,3,4,7,10,13,16,21,26,31,36,43,50,57,64,73,82,91,100,111,122,133,144,157,170,183,196,211,226,241,256,273,290,307,324,343,362,381,400,421,442,463,484,507,530,553,576,601,626,651,676,703,730,757,784,813,842,871,900,931,962,993,1024,1057,1090,1123,1156,1191,1226,... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Hookshot
; General-purpose library for injecting DLLs and hooking function calls.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Authored by Samuel Grossman
; Copyright (c) 2019-2021
;;;;;;;;;;;;;;;;;;... |
/// @file
/// @copyright 2016- The Science and Technology Facilities Council (STFC)
/// @author Jonathan Hogg
/// @author Florent Lopez
#pragma once
// SyLVER
#include "kernels/common.hxx"
#include "kernels/ldlt_app.hxx"
#include "NumericFront.hxx"
#include "Tile.hxx"
// STD
#include <assert.h>
#include <string>
// SS... |
/*
* Copyright 2019 GridGain Systems, Inc. and Contributors.
*
* Licensed under the GridGain Community Edition License (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.gridgain.com/products/software/community-edition... |
/***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without m... |
; @Author: Piyush Mehta
; @Date: 2018-06-06 20:08:54
; @Last Modified by: Rohit Nagraj
; @Last Modified time: 2019-02-13 20:25:01
assume cs:code,ds:data
data segment
a db 10h,20h,30h,40h,50h ; element positions 0 1 2 3 4
n db n-a ; n = 5
key db 60h ; search element
msg1 db "Searc... |
.segment "CODE"
; this is like a x = y call where x is set to the value of y
.macro set set_var, from
lda from
sta set_var
.endmacro
; this is like the set, but uses the x register as an offset
.macro setxinc var, from
setx var, from
inx
.endmacro
; set a value for var, x to the value o... |
[bits 32]
mov ax,[eax+ebx+ecx-eax]
mov ax,[eax+ecx+ebx-eax]
lea edi,[edi*8+eax+label]
lea edi,[eax+edi*8+label]
mov eax,[eax*2]
mov eax,[nosplit eax*2]
mov eax,[esi+ebp]
mov eax,[ebp+esi]
mov eax,[esi*1+ebp]
mov eax,[ebp*1+esi]
mov eax,[byte eax]
mov eax,[dword eax]
label
dd 5
label2
;mov ax,[eax+ebx*(label2-label)] ; ... |
VictoryRoad1Object:
db $7d ; border block
db $3 ; warps
db $11, $8, $2, $ff
db $11, $9, $2, $ff
db $1, $1, $0, VICTORY_ROAD_2
db $0 ; signs
db $7 ; objects
object SPRITE_LASS, $7, $5, STAY, RIGHT, $1, OPP_COOLTRAINER_F, $5
object SPRITE_BLACK_HAIR_BOY_1, $3, $2, STAY, DOWN, $2, OPP_COOLTRAINER_M, $5
object... |
/**
* C. Mortal Kombat Tower
* https://codeforces.com/contest/1418/problem/C
*
* dp
* dp[i][0][1] minimum cost to kill boss for previous ith bosses, with my friend doing this round, and he has at most 1 moves left after this round.
* dp[i][0][0] minimum cost to kill boss for previous ith bosses, with my friend d... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r8
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x18780, %rcx
nop
and %rbp, %rbp
vmovups (%rcx), %ymm0
vextracti128 $0, %ymm0, %xmm0
vpextrq $1, %xmm0, %r11
nop
nop
nop
nop
nop
add %r12, %r12
lea addresses_normal_h... |
// Copyright (c) 2013 The Chromium Embedded Framework 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 <list>
// Include this first to avoid type conflicts with CEF headers.
#include "tests/unittests/chromium_includes.h"
#i... |
_genUniR: 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
7: ff 71 fc pushl -0x4(%ecx)
a: 55 ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %r8
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x3cf0, %rax
nop
nop
nop
add %r12, %r12
mov $0x6162636465666768, %r8
movq %r8, %xmm7
movups %xmm7, (%rax)
nop
nop
nop
sub $61017, %r10
lea addresses_WC_ht+0x1dde6... |
; A109632: In the game of bridge, a(n) is the penalty for going down n tricks in a vulnerable, doubled contract.
; 200,500,800,1100,1400,1700,2000,2300,2600,2900,3200,3500,3800
mul $0,300
add $0,200
|
; A004719: Delete all 0's from n.
; Submitted by Simon Strandgaard
; 1,2,3,4,5,6,7,8,9,1,11,12,13,14,15,16,17,18,19,2,21,22,23,24,25,26,27,28,29,3,31,32,33,34,35,36,37,38,39,4,41,42,43,44,45,46,47,48,49,5,51,52,53,54,55,56,57,58,59,6,61,62,63,64,65,66,67,68,69,7,71,72,73,74,75,76,77,78,79,8,81,82,83,84,85,86,87,88,89,9... |
; A081346: First column in maze arrangement of natural numbers A081344.
; 1,2,9,10,25,26,49,50,81,82,121,122,169,170,225,226,289,290,361,362,441,442,529,530,625,626,729,730,841,842,961,962,1089,1090,1225,1226,1369,1370,1521,1522,1681,1682,1849,1850,2025,2026,2209,2210,2401,2402,2601,2602,2809,2810,3025,3026,3249,3250,3... |
; A017343: a(n) = (10*n + 6)^3.
; 216,4096,17576,46656,97336,175616,287496,438976,636056,884736,1191016,1560896,2000376,2515456,3112136,3796416,4574296,5451776,6434856,7529536,8741816,10077696,11543176,13144256,14886936,16777216,18821096,21024576,23393656,25934336,28652616,31554496,34645976,37933056,41421736,45118016,4... |
/*
* 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 "While.h"
#include <ScriptCanvas/Execution/ErrorBus.h>
namespace ScriptCanvas
{
names... |
; A013614: Triangle of coefficients in expansion of (1+7x)^n.
; Submitted by Jamie Morken(s4)
; 1,1,7,1,14,49,1,21,147,343,1,28,294,1372,2401,1,35,490,3430,12005,16807,1,42,735,6860,36015,100842,117649,1,49,1029,12005,84035,352947,823543,823543,1,56,1372,19208,168070,941192,3294172,6588344,5764801
lpb $0
add $1,1
... |
; A112986: Crossing number of K_{4,n} on the real projective plane.
; 0,0,0,3,5,7,18,22,26,45,51,57,84,92,100,135,145,155,198,210,222,273,287,301,360,376,392,459,477,495,570,590,610,693,715,737,828,852,876,975,1001,1027,1134,1162,1190,1305,1335,1365,1488,1520,1552,1683,1717,1751,1890
mov $2,-1
mul $2,$0
div $0,-3
mov ... |
; A081071: a(n) = Lucas(4*n+2)-2, or Lucas(2*n+1)^2.
; 1,16,121,841,5776,39601,271441,1860496,12752041,87403801,599074576,4106118241,28143753121,192900153616,1322157322201,9062201101801,62113250390416,425730551631121,2918000611027441,20000273725560976
mul $0,2
mov $3,2
lpb $0,1
sub $0,1
add $2,$3
add $2,2
add ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r15
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x7158, %rbp
nop
nop
dec %r14
movups (%rbp), %xmm6
vpextrq $1, %xmm6, %rdx
and %rsi, %rsi
lea addresses_WT_ht+0x8c18, %r14
cmp $23220, %r15
mov $0x6162636465666768, %r10
movq %... |
; size_t bv_stack_max_size(bv_stack_t *s)
SECTION code_clib
SECTION code_adt_bv_stack
PUBLIC bv_stack_max_size
EXTERN asm_bv_stack_max_size
defc bv_stack_max_size = asm_bv_stack_max_size
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _bv_stack_max_size
defc _bv_stack_max_size = bv_stack_max_size
ENDIF
|
; A020066: Integer part of Gamma(n+5/9)/Gamma(5/9).
; Submitted by Jon Maiga
; 1,0,0,2,7,35,198,1302,9843,84216,804738,8494460,98158213,1232430908,16706285646,243169268856,3782633071103,62623591954942,1099391947653437,20399828362013787,398929976857158503,8200227302063813679,176760455177819983768,3986930266788606300545,... |
;Copyright (C) 2015 Salah Alami. All Rights Reserved.
;This file is licensed under The Unlicense
[org 0x7c00]
KERNEL_OFFSET equ 0x1000 ; The same one we used when linking the kernel
mov [BOOT_DRIVE], dl ; Remember that the BIOS sets us the boot drive in 'dl' on boot
mov bp, 0x9000
mov sp, bp
mov bx, KER... |
; A275535: a(n) = the smallest positive multiple of n that is the sum of more than 1 consecutive positive integers.
; 3,6,3,12,5,6,7,24,9,10,11,12,13,14,15,48,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,96,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,192,65,66,67
add $0... |
mov cx,[bx]
mov cx,[bp]
mov cx,[si]
mov cx,[di]
mov cx,[bx+si]
mov cx,[bx+di]
mov cx,[bp+si]
mov cx,[bp+di]
mov cx,[bx+5]
mov cx,[bp+5]
mov cx,[si+5]
mov cx,[di+5]
mov cx,[bx+si+5]
mov cx,[bx+di+... |
; A294433: Expansion of (1+11*x+24*x^2+11*x^3+x^4)/(1-x)^5.
; 1,16,94,331,871,1906,3676,6469,10621,16516,24586,35311,49219,66886,88936,116041,148921,188344,235126,290131,354271,428506,513844,611341,722101,847276,988066,1145719,1321531,1516846,1733056,1971601,2233969,2521696,2836366,3179611,3553111,3958594,4397836,48726... |
; A255043: a(n) = (5*9^n - 1)/2.
; Submitted by Christian Krause
; 2,22,202,1822,16402,147622,1328602,11957422,107616802,968551222,8716961002,78452649022,706073841202,6354664570822,57191981137402,514727830236622,4632550472129602,41692954249166422,375236588242497802,3377129294182480222,30394163647642322002,2735474728287... |
data
align 4
LABELV gameCvarTable
address g_cheats
address $54
address $55
byte 4 0
byte 4 0
byte 4 0
skip 4
byte 4 0
address $56
address $57
byte 4 68
byte 4 0
byte 4 0
skip 4
byte 4 0
address $58
address $59
byte 4 64
byte 4 0
byte 4 0
skip 4
address g_restarted
address $60
address $61
byte 4 64
byte 4 0
byte 4 0
ski... |
;SpinarakBaseStats:: not sure if I'll use spinarak longterm but makes a good dex placeholder in meantime
db DEX_SPINARAK ; pokedex id
db 40 ; base hp
db 60 ; base attack
db 40 ; base defense
db 30 ; base speed
db 40 ; base special
db BUG ; species type 1
db POISON ; species type 2
db 255 ; catch rate
db 54 ; ... |
; A112259: Expansion of x*(1+8*x)/((1-8*x)*(1+11*x+64*x^2)).
; Submitted by Jon Maiga
; 1,5,9,605,961,16245,284089,29645,15046641,101025125,73222249,9908816445,23755748641,204034140245,5031349566489,1965713970605,219320727489361,1965265930868805,374345220088009,158335559155140125,540193764421520001,2371136879143863605,... |
; SYNTAX TEST "Packages/User/x86_64 Assembly.tmbundle/Syntaxes/Nasm Assembly.sublime-syntax"
%include "macros.mac"
;<- punctuation.definition.keyword.preprocessor
;^^^^^^^ keyword.control.import.preprocessor
%pathsearch MyFoo "foo.bin"
;<- punctuation.definition.keyword.preprocessor
;^^^^^^^^^^ keyword.control.preproc... |
; A233286: Number of trailing zeros in the factorial base representation of n-th Fibonacci number; a(n) = A230403(A000045(n)) = A233285(n)-1.
; 0,0,1,0,0,1,0,0,1,0,0,3,0,0,1,0,0,1,0,0,1,0,0,3,0,0,1,0,0,1,0,0,1,0,0,3,0,0,1,0,0,1,0,0,1,0,0,3,0,0,1,0,0,1,0,0,1,0,0,5,0,0,1,0,0,1,0,0,1,0,0,3,0,0,1,0,0,1,0,0,1,0,0,3,0,0,1
... |
.file "a03.c"
.section ".text"
.align 4
.align 4
.globl toto
.type toto, #function
.proc 020
toto:
save %sp, -96, %sp
st %i0, [%fp+68]
ld [%fp+68], %g1
ld [%g1], %g1
add %g1, 1, %g2
ld [%fp+68], %g1
st %g2, [%g1]
restore
retl
nop
.size toto, .-toto
# ----------------------
.align 4
.ali... |
;
; Enterprise 64/128 specific routines
; by Stefano Bodrato, 2011
;
; exos_redirect_channel(unsigned char main_channel, unsigned char secondary_channel);
;
;
; $Id: exos_redirect_channel.asm,v 1.3 2016-06-19 20:17:32 dom Exp $
;
SECTION code_clib
PUBLIC exos_redirect_channel
PUBLIC _exos_redirect_chan... |
/******************************************************************************
*
* Purpose: ADRG reader
* Author: Even Rouault, even.rouault at mines-paris.org
*
******************************************************************************
* Copyright (c) 2007-2013, Even Rouault <even dot rouault at mines-pa... |
# Intel P5 mpn_sqr_basecase -- square an mpn number.
#
# P5: approx 8 cycles per crossproduct, or 15.5 cycles per triangular
# product at around 20x20 limbs.
# Copyright (C) 1999, 2000 Free Software Foundation, Inc.
#
# This file is part of the GNU MP Library.
#
# The GNU MP Library is free software; you can redistri... |
; A002661: Least integer having Radon random number n.
; 1,2,3,5,10,18,35,63,126,231,462,858,1716,3218,6435,12155,24310,46189,92378,176358,352716,676039,1352078,2600150,5200300,10029150,20058300,38779380,77558760,150270098,300540195,583401555,1166803110,2268783825,4537567650,8836315950,17672631900,34461632205,689232644... |
; A071521: Number of 3-smooth numbers <= n.
; Submitted by Jamie Morken(s3.)
; 1,2,3,4,4,5,5,6,7,7,7,8,8,8,8,9,9,10,10,10,10,10,10,11,11,11,12,12,12,12,12,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,16,16,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006 - 2008, 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 distr... |
class Solution {
public:
int rob(vector<int>& a) {
if(a.size()==0) return 0;
if(a.size()==1) return a[0];
int gain[10000];
gain[0]=a[0];
gain[1]=max(a[0],a[1]);
for(int i=2;i<a.size();i++){
gain[i]=max(gain[i-2]+a[i],gain[i-1]);
}
return ga... |
/*
* Vulkan Example - Font rendering using signed distance fields
*
* Font generated using https://github.com/libgdx/libgdx/wiki/Hiero
*
* Copyright (C) 2016 by Sascha Willems - www.saschawillems.de
*
* This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
*/
#include <stdio.h>
#includ... |
; A000973: Fermat coefficients.
; 1,15,99,429,1430,3978,9690,21318,43263,82225,148005,254475,420732,672452,1043460,1577532,2330445,3372291,4790071,6690585,9203634,12485550,16723070,22137570,28989675,37584261,48275865,61474519,77652024,97348680,121180488,149846840,184138713,224947383,273273675,330237765,397089550,475219... |
#include "common.hpp"
#include <three/core/geometry.hpp>
#include <three/cameras/perspective_camera.hpp>
#include <three/lights/point_light.hpp>
#include <three/objects/mesh.hpp>
#include <three/extras/geometries/sphere_geometry.hpp>
#include <three/extras/stats.hpp>
#include <three/materials/mesh_lambert_material.hpp... |
;
; Z88 Graphics Functions
;
; Written around the Interlogic Standard Library
;
; $Id: getmaxy.asm,v 1.2 2009/04/23 10:16:22 stefano Exp $
;
INCLUDE "graphics/grafix.inc"
XLIB getmaxy
.getmaxy
ld hl,maxy-1
ret
|
; A055529: Number of bits needed in mantissa to express n! exactly.
; Submitted by Christian Krause
; 1,1,1,2,2,4,6,9,9,12,14,18,19,23,26,30,30,34,37,41,44,48,51,56,58,62,66,71,73,78,82,87,87,92,96,101,105,110,114,119,122,127,131,137,140,146,150,156,157,163,168,173,177,183,188,193,196,202,207,213,217,223
seq $0,140105... |
/* ----------------------------------------------------------------------------
* GTSAM Copyright 2010, Georgia Tech Research Corporation,
* Atlanta, Georgia 30332-0415
* All Rights Reserved
* Authors: Frank Dellaert, et al. (see THANKS for the full author list)
* See LICENSE for the license information
* ----... |
#include <Magick++.h>
#include <napi.h>
#include <list>
using namespace std;
using namespace Magick;
Napi::Value Homebrew(const Napi::CallbackInfo &info) {
Napi::Env env = info.Env();
try {
Napi::Object obj = info[0].As<Napi::Object>();
string caption = obj.Get("caption").As<Napi::String>().Utf8Value();... |
;
; Mattel Aquarius routines
; by Stefano Bodrato, Fall 2013
;
; int set_psg(int reg, int val);
;
; Play a sound by PSG
;
;
; $Id: set_psg_callee.asm,v 1.4 2016-06-10 21:13:57 dom Exp $
;
SECTION code_clib
PUBLIC set_psg_callee
PUBLIC _set_psg_callee
PUBLIC ASMDISP_SET_PSG_CALLEE
set_psg_callee:
_set_ps... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "db.h"
#include "net.h"
#include "init.h"
#include "addrman.h"
#include "... |
// Juan Manuel Young Hoyos
@256
D=A
@SP
M=D
@300
D=A
@LCL
M=D
@400
D=A
@ARG
M=D
@3000
D=A
@THIS
M=D
@3010
D=A
@THAT
M=D
@111
D=A
@SP
A=M
M=D
@SP
M=M+1
@333
D=A
@SP
A=M
M=D
@SP
M=M+1
@888
D=A
@SP
A=M
M=D
@SP
M=M+1
@8
D=A
@SP
A=M-1
D=M
@StaticTest.8
M=D
@SP
M=M-1
@3
D=A
@SP
A=M-1
D=M
@StaticTest.3
M=D
@SP
M=M-1
@1
D=A
@... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r15
push %r9
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0xb0cc, %rdi
clflush (%rdi)
sub %r11, %r11
vmovups (%rdi), %ymm1
vextracti128 $0, %ymm1, %xmm1
vpextrq $1, %xmm1, %r15
nop
nop
nop
nop
nop
add $1386, %r9
lea addresse... |
/****************************************************************************
+** Copyright (c) 2022, Fougue Ltd. <http://www.fougue.pro>
+** All rights reserved.
+** See license at https://github.com/fougue/mayo/blob/master/LICENSE.txt
+****************************************************************************/
// ... |
SeafoamIslands3Script:
call EnableAutoTextBoxDrawing
ld hl, wFlags_0xcd60
bit 7, [hl]
res 7, [hl]
jr z, .asm_4649e
ld hl, Seafoam3HolesCoords
call CheckBoulderCoords
ret nc
EventFlagAddress hl, EVENT_SEAFOAM3_BOULDER1_DOWN_HOLE
ld a, [wCoordIndex]
cp $1
jr nz, .asm_4647c
SetEventReuseHL EVENT_SEAFOAM3_BOUL... |
/*
* FloatToFixPointGadget.cpp
*
* Created on: March 10, 2014
* Author: Hui Xue
*/
#include "FloatToFixPointGadget.h"
#include "mri_core_def.h"
#include "hoNDArray_math.h"
#include <boost/math/constants/constants.hpp>
namespace Gadgetron
{
template<class T>
constexpr auto ismrmrd_image_typ... |
/*************************************************************************/
/* node.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
;------------------------------------------------------------------------------
;*
;* Copyright (c) 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... |
// Generated from reduce_prod_b155508675.mod.py
// DO NOT EDIT
// clang-format off
#include "TestHarness.h"
using namespace test_helper;
namespace generated_tests::reduce_prod_b155508675 {
const TestModel& get_test_model() {
static TestModel model = {
.expectFailure = false,
.expectedMultinomialDi... |
/****************************************************************************
**
** Copyright (C) 2012 Denis Shienkov <denis.shienkov@gmail.com>
** Copyright (C) 2012 Laszlo Papp <lpapp@kde.org>
** Contact: http://www.qt.io/licensing/
**
** This file is part of the QtSerialPort module of the Qt Toolkit.
**
** $QT_BEGIN... |
; A167321: Totally multiplicative sequence with a(p) = 2*(p+3) for prime p.
; Submitted by Christian Krause
; 1,10,12,100,16,120,20,1000,144,160,28,1200,32,200,192,10000,40,1440,44,1600,240,280,52,12000,256,320,1728,2000,64,1920,68,100000,336,400,320,14400,80,440,384,16000,88,2400,92,2800,2304,520,100,120000,400,2560,4... |
; A042110: Numerators of continued fraction convergents to sqrt(580).
; Submitted by Jon Maiga
; 24,289,13896,167041,8031864,96549409,4642403496,55805391361,2683301188824,32255419657249,1550943444736776,18643576756498561,896442627756667704,10775955109836511009,518142287899909196136,6228483409908746864641,29948534596351... |
; A083096: Numbers n such that 3 divides sum(k=1,n, C(2k,k) ).
; 0,12,30,36,84,90,108,120,246,252,270,282,324,336,354,360,732,738,756,768,810,822,840,846,972,984,1002,1008,1056,1062,1080,1092,2190,2196,2214,2226,2268,2280,2298,2304,2430,2442,2460,2466,2514,2520,2538,2550
mov $2,$0
div $0,2
seq $0,240400 ; Numbers n ha... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x8c53, %rsi
lea addresses_A_ht+0x9043, %rdi
nop
nop
nop
inc %rdx
mov $37, %rcx
rep movsb
nop
nop
cmp $7485, %rsi
lea addresses_UC_ht+0x505b, %rdi
nop
sub $25337, %rax
movb (%rdi), %... |
/*
* This code is provided under the 3-clause BSD license below.
* ***********************************************************
*
* Copyright (c) 2013, Matthew Graeber
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the follow... |
Name: title-p.asm
Type: file
Size: 56188
Last-Modified: '1992-08-06T04:32:55Z'
SHA-1: EA1943FDAB08D45A0A1E798CE80A069C43D2395B
Description: null
|
global __arch_start:function
global __gdt64_base_pointer
global __startup_was_fast
global fast_kernel_start:function
extern kernel_start
extern __multiboot_magic
extern __multiboot_addr
%define PAGE_SIZE 0x1000
%define P4_TAB 0x1000 ;; one page
%define P3_TAB 0x2000 ;; o... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r15
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x15a5c, %rsi
lea addresses_UC_ht+0x944, %rdi
nop
add $46468, %rax
mov $58, %rcx
rep movsw
nop
cmp %rax, %rax
lea addresses_WC_ht+0x313c, %rsi
cmp %rdx, %rdx
mov $0x616263... |
; A096577: Number of fixed points of solid partitions under 'time-lapse' operation.
; Submitted by Jamie Morken(s3)
; 1,0,0,0,1,0,1,0,2,0,2,0,2,0,4
mov $7,2
mov $10,$0
lpb $7
mov $0,$10
mov $5,0
sub $7,1
add $0,$7
trn $0,1
div $0,2
mov $2,1
mov $3,$0
mul $3,4
mov $8,1
lpb $3
mov $1,2
sub ... |
; A289877: Number of maximal cliques in the n-triangular honeycomb queen graph.
; 1,8,19,36,60,93,136,191,259,342,441,558,694,851,1030,1233,1461,1716,1999,2312,2656,3033,3444,3891,4375,4898,5461,6066,6714,7407,8146,8933,9769,10656,11595,12588,13636,14741,15904,17127
mov $12,$0
mov $14,$0
add $14,1
lpb $14
clr $0,12
... |
.data
end1: .word 0xffff0010
end2: .word 0xffff0011
chr: .word 0x3f, 0x06, 0x5b, 0x4f, 0x66, 0x6d, 0x7d, 0x07, 0x7f, 0x67, 0x77, 0x7c, 0x39, 0x5e, 0x79, 0x71
chr1: .word 0x06, 0x5b, 0x4f, 0x66, 0x6d, 0x7d, 0x07, 0x7f, 0x67, 0x77, 0x7c, 0x39, 0x5e, 0x79, 0x71
.text
main:
la $s0,end1
lw $s0,0($s0)
la $s1,end... |
/*
* tlm_recorder.cpp
*
* Created on: Jul 28, 2021
* Author: eyckj
*/
#define SC_INCLUDE_DYNAMIC_PROCESSES
#include "tlm_recorder.h"
#include "tlm_extension_recording_registry.h"
#include <tlm>
namespace tlm {
namespace scc {
namespace scv {
namespace {
const std::array<std::string, 3> cmd2char{{"READ", "W... |
;
; Copyright (c) 2006-2008 Advanced Micro Devices,Inc. ("AMD").
;
; This library is free software; you can redistribute it and/or modify
; it under the terms of the GNU Lesser General Public License as
; published by the Free Software Foundation; either version 2.1 of the
; License, or (at your option) any lat... |
; A132650: Number of divisors of n, d(n) raised to power d(n).
; 1,4,4,27,4,256,4,256,27,256,4,46656,4,256,256,3125,4,46656,4,46656,256,256,4,16777216,27,256,256,46656,4,16777216,4,46656,256,256,256,387420489,4,256,256,16777216,4,16777216,4,46656,46656,256,4,10000000000,27,46656,256,46656,4,16777216,256,16777216,256,25... |
#pragma once
#include <iostream>
namespace apple
{
void f1( const char* string )
{
std::cout << string << std::endl;
}
int var1;
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.