text stringlengths 1 1.05M |
|---|
;--------------------------------------------------------------------------
;
; Program: 2048.asm
; Final Project
; Name: Ryan Pendleton
; Class: CS2810
; Date: 5 Dec 2014
; Version: 1.0
;
; Ethics: I declare that the following source code was written
; solely by me. I understand that copying any source
; co... |
MODULE ba_BestFit_callee
SECTION code_alloc_balloc
PUBLIC ba_BestFit_callee
PUBLIC _ba_BestFit_callee
EXTERN balloc_firstfit_callee
defc ba_BestFit_callee = balloc_firstfit_callee
defc _ba_BestFit_callee = balloc_firstfit_callee
|
; *******************************************************************************************
; *******************************************************************************************
;
; Name : interface_tools.asm
; Purpose : Interface routines
; Date : 18th August 2019
; Author : Paul Robson (paul@robsons... |
BITS 64
section .text
global _start
_start:
mov rax, 1
mov rdi, 1
mov rsi, msg
mov rdx, msglen
syscall
mov rdi, [g]
mov rax, 60
syscall
section .data
global g
g: dq 30
msg: db "Hello, world!", 10
msglen: equ $ - msg
|
; A167562: The fifth row of the ED2 array A167560.
; 120,480,1344,3072,6144,11160,18840,30024,45672,66864,94800,130800,176304,232872,302184,386040,486360,605184,744672,907104,1094880,1310520,1556664,1836072,2151624,2506320,2903280,3345744,3837072,4380744,4980360,5639640,6362424,7152672,8014464,8952000,9969600,11071704,... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x1c3dc, %rsi
lea addresses_normal_ht+0xd13c, %rdi
dec %r10
mov $18, %rcx
rep movsw
nop
nop
nop
add $45555, %rbp
lea addresses_A_ht+0x13e3c, %rbx
nop
nop
nop
nop
nop
add $52767, %rax
mov... |
; A180123: Second of three "least, sum, least" self-generating sequences.
; 2,6,10,13,17,21,25,28,32,36,40,43,47,51,54,58,62,66,69,73,77,81,84,88,92,96,99,103,107,110,114,118,122,125,129,133,137,140,144,148,152,155,159,163,166,170,174,178,181,185,189,193,196,200,204,207,211,215,219,222,226,230,234,237,241,245,249,252,2... |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
ios::sync_with_stdio(false);
#ifndef ONLINE_JUDGE
freopen("files/input.txt", "r", stdin);
freopen("files/output.txt", "w", stdout);
#endif
ll n;
cin >> n;
vector<ll> arr(n);
for (ll i = 0; i < n; ... |
; A152773: 3 times heptagonal numbers: a(n) = 3n(5n-3)/2.
; 0,3,21,54,102,165,243,336,444,567,705,858,1026,1209,1407,1620,1848,2091,2349,2622,2910,3213,3531,3864,4212,4575,4953,5346,5754,6177,6615,7068,7536,8019,8517,9030,9558,10101,10659,11232,11820,12423,13041,13674,14322,14985,15663,16356,17064,17787,18525,19278,200... |
; A111093: Like sequence A111072 but moving right by the squares of the sequence of positive integers.
; 0,1,6,10,10,15,16,16,20,25,30,36,36,45,50,50,56,61,70,70,70,71,76,80,80,85,86,86,90,95,100,106,106,115,120,120,126,131,140,140,140,141,146,150,150,155,156,156,160,165,170,176,176,185,190,190,196,201,210,210
mov $2,... |
;
; Copyright (C) 2008-2020 Advanced Micro Devices, 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:
; 1. Redistributions of source code must retain the above copyright notice,
; this list... |
; Startup fo SAM Coupe
;
; Stefano 26/3/2001
;
; If an error occurs eg break we just drop back to BASIC
;
; $Id: sam_crt0.asm,v 1.20 2016-06-21 20:49:06 dom Exp $
;
MODULE sam_crt0
;
; Initially include the zcc_opt.def file to find out lots of lovely
; information about what we shoul... |
; A016905: a(n) = (5*n + 4)^9.
; 262144,387420489,20661046784,322687697779,2641807540224,14507145975869,60716992766464,208728361158759,618121839509504,1628413597910449,3904305912313344,8662995818654939,18014398509481984,35452087835576229,66540410775079424,119851595982618319,208215748530929664,350356403707485209,5729948... |
#include <CGAL/Simple_cartesian.h>
#include <CGAL/Surface_mesh.h>
// Simplification function
#include <CGAL/Surface_mesh_simplification/edge_collapse.h>
// Visitor base
#include <CGAL/Surface_mesh_simplification/Edge_collapse_visitor_base.h>
// Stop-condition policy
#include <CGAL/Surface_mesh_simplification/Policie... |
page ,132
;-----------------------------Module-Header-----------------------------;
; Module Name: LIBINIT.ASM
;
; library stub to do local init for a Dynamic linked library
;
; Created: 06-27-89
; Author: Todd Laney [ToddLa]
;
; Exported Functions: none
;
; Public Functions: none
;
; Pu... |
/*
* Copyright (c) 2015, 2016, 2017, 2018, 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 ... |
; /////////////////////////////////////////////////////////////////////////////
; Znake (ZX Spectrum 48K)
; -----------------------------------------------------------------------------
; 8_loop_draw_graphics.asm
; -----------------------------------------------------------------------------
; Copyright (C) 2016, Ch... |
// file : libbuild2/script/parser.cxx -*- C++ -*-
// license : MIT; see accompanying LICENSE file
#include <libbuild2/script/parser.hxx>
#include <libbuild2/variable.hxx>
#include <libbuild2/script/run.hxx> // exit
#include <libbuild2/script/lexer.hxx>
using namespace std;
namespace build2
{
namespace sc... |
// Copyright 2012 the V8 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.
#include "v8.h"
#include "accessors.h"
#include "api.h"
#include "bootstrapper.h"
#include "codegen.h"
#include "compilation-cache.h"
#include "convers... |
page ,132
;/*
; * Microsoft Confidential
; * Copyright (C) Microsoft Corporation 1991
; * All Rights Reserved.
; */
; SCCSID = @(#)parse.asm 1.1 85/05/14
; SCCSID = @(#)parse.asm 1.1 85/05/14
.sall
.xlist
.xcref
INCLUDE DOSSYM.INC
INCLU... |
; A171757: Even numbers whose binary expansion begins 10.
; Submitted by Simon Strandgaard
; 2,4,8,10,16,18,20,22,32,34,36,38,40,42,44,46,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,128,130,132,134,136,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,190,256,25... |
// Copyright 2008, Google 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 must retain the above copyright
// notice, this list of conditions ... |
; A123865: a(n) = n^4 - 1.
; 0,15,80,255,624,1295,2400,4095,6560,9999,14640,20735,28560,38415,50624,65535,83520,104975,130320,159999,194480,234255,279840,331775,390624,456975,531440,614655,707280,809999,923520,1048575,1185920,1336335,1500624,1679615,1874160,2085135,2313440,2559999,2825760,3111695,3418800,3748095,410062... |
.code
mul64u proc
mov rax,rcx
imul rax,rdx
ret
mul64u endp
end |
; void *zx_pxy2saddr(uchar x, uchar y)
SECTION code_clib
SECTION code_arch
PUBLIC zx_pxy2saddr
EXTERN l0_zx_pxy2saddr_callee
zx_pxy2saddr:
pop af
pop de
pop hl
push hl
push de
push af
jp l0_zx_pxy2saddr_callee
|
; A153784: 4 times heptagonal numbers: 2n(5n-3).
; 0,4,28,72,136,220,324,448,592,756,940,1144,1368,1612,1876,2160,2464,2788,3132,3496,3880,4284,4708,5152,5616,6100,6604,7128,7672,8236,8820,9424,10048,10692,11356,12040,12744,13468,14212,14976,15760,16564,17388,18232,19096,19980,20884,21808,22752,23716,24700,25704,26728,... |
; A220946: Expansion of (1+2*x+2*x^2-x^3)/((1-x)*(1+x)*(1-3x^2)).
; 1,2,6,7,21,22,66,67,201,202,606,607,1821,1822,5466,5467,16401,16402,49206,49207,147621,147622,442866,442867,1328601,1328602,3985806,3985807,11957421,11957422,35872266,35872267,107616801,107616802,322850406,322850407
lpb $0
sub $0,2
mul $1,3
add ... |
; A002866: a(0) = 1; for n > 0, a(n) = 2^(n-1)*n!.
; 1,1,4,24,192,1920,23040,322560,5160960,92897280,1857945600,40874803200,980995276800,25505877196800,714164561510400,21424936845312000,685597979049984000,23310331287699456000,839171926357180416000,31888533201572855808000,1275541328062914232320000,5357273577864239775744... |
INCBIN "gfx/footprints/bulbasaur.1bpp"
INCBIN "gfx/footprints/ivysaur.1bpp"
INCBIN "gfx/footprints/venusaur.1bpp"
INCBIN "gfx/footprints/charmander.1bpp"
INCBIN "gfx/footprints/charmeleon.1bpp"
INCBIN "gfx/footprints/charizard.1bpp"
INCBIN "gfx/footprints/squirtle.1bpp"
INCBIN "gfx/footprints/wartortle.1bpp"
INCBIN "gf... |
#if VERBOSE = 1
LASTINIT SET .
#endif
; Subroutines
; ----------------------------------------------------------------------
; Clear screen -- easy
clearScreen SUBROUTINE
ldx #$ff
.loop:
lda #$00
sta $400,x
sta $500,x
sta $600,x
sta $700,x
lda #$05
sta $d800,x
sta $d900,x
sta $... |
; A204512: Square roots of [A055872/8]: Their square written in base 8, with some digit appended, is again a square.
; Submitted by Christian Krause
; 0,0,0,1,2,6,12,35,70,204,408,1189,2378,6930,13860,40391,80782,235416,470832,1372105,2744210,7997214,15994428,46611179,93222358,271669860,543339720,1583407981,3166815962,... |
/* This file is part of CosmoLattice, available at www.cosmolattice.net .
Copyright Daniel G. Figueroa, Adrien Florio, Francisco Torrenti and Wessel Valkenburg.
Released under the MIT license, see LICENSE.md. */
// File info: Main contributor(s): Wessel Valkenburg, Year: 2019
#include "TempLat/util/random... |
; A157956: a(n) = 200*n + 1.
; 201,401,601,801,1001,1201,1401,1601,1801,2001,2201,2401,2601,2801,3001,3201,3401,3601,3801,4001,4201,4401,4601,4801,5001,5201,5401,5601,5801,6001,6201,6401,6601,6801,7001,7201,7401,7601,7801,8001,8201,8401,8601,8801,9001,9201,9401,9601,9801,10001,10201,10401,10601,10801,11001,11201,11401,... |
; A086092: 4^n+3n5^(n-1).
; Submitted by Christian Krause
; 1,7,46,289,1756,10399,60346,344509,1940536,10809019,59642326,326459929,1774589716,9588593239,51537966706,275731944949,1469138717296,7799162291059,41267449945486,217712622047569,1145508691315276
mov $1,5
pow $1,$0
mul $1,$0
mov $2,4
pow $2,$0
mov $0,$1
mul $0,... |
dnl PowerPC-32 mpn_submul_1 -- Multiply a limb vector with a limb and subtract
dnl the result from a second limb vector.
dnl Copyright 1995, 1997, 1998, 2000, 2002, 2005 Free Software Foundation,
dnl Inc.
dnl This file is part of the GNU MP Library.
dnl The GNU MP Library is free software; you can redistribute... |
/*******************************************************************
*
* DESCRIPTION: consbtch.cpp
*
* AUTHOR: David Malcolm
*
* HISTORY: Created 8/4/98
*
*******************************************************************/
/* Includes ********************************************************/
#inclu... |
;
; feilipu, 2020 May
;
; This Source Code Form is subject to the terms of the Mozilla Public
; License, v. 2.0. If a copy of the MPL was not distributed with this
; file, You can obtain one at http://mozilla.org/MPL/2.0/.
;
;-------------------------------------------------------------------------
; asm_f16_mul -... |
//# This file is a part of toml++ and is subject to the the terms of the MIT license.
//# Copyright (c) 2019-2020 Mark Gillard <mark.gillard@outlook.com.au>
//# See https://github.com/marzer/tomlplusplus/blob/master/LICENSE for the full license text.
// SPDX-License-Identifier: MIT
#pragma once
//# {{
#include "toml_p... |
;-----------------------------------------------------------------------------
[bits 32]
; Global symbols
global _start
;-----------------------------------------------------------------------------
section .code
;===============================================================... |
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
/* If you are missing that file, acquire a complete release at teeworlds.com. */
#include <game/generated/protocol.h>
#include <game/server/gamecontext.h>
#include "projectile.h"
#include "game/server/city/ite... |
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r15
push %r8
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0xbfdb, %rsi
lea addresses_UC_ht+0x1687b, %rdi
clflush (%rdi)
nop
nop
nop
nop
nop
sub $6872, %r12
mov $81, %rcx
rep movsw
nop
nop
xor %r12, %r12
lea addresses_WT_ht+0x1ce33, %r9... |
#include "NodeService.h"
void NodeService::MoveNode(int id, int x, int y){
} |
// push constant 0:
@0
D=A
@SP
A=M
M=D
@SP
M=M+1
// pop local 0 // initializes sum = 0:
@0
D=A
@LCL
D=M+D
@R13
M=D
@SP
M=M-1
A=M
D=M
@R13
A=M
M=D
// label LOOP_START:
($LOOP_START)
// push argument 0:
@0
D=A
@ARG
A=M+D
D=M
@SP
A=M
M=D
@SP
M=M+1
// push local 0:
@0
D=A
@LCL
A=M+D
D=M
@SP
A=M
M=D
@SP
M=M+1
... |
.data
.text
.globl main
main:
li $t0, 0x1100
li $t1, 0x1010
sub $t1,$t1,$t0
li $v0,10
syscall |
; A083726: a(n) = (prime(n)+1)*n.
; 0,3,8,18,32,60,84,126,160,216,300,352,456,546,616,720,864,1020,1116,1292,1440,1554,1760,1932,2160,2450,2652,2808,3024,3190,3420,3968,4224,4554,4760,5250,5472,5846,6232,6552,6960,7380,7644,8256,8536,8910,9200,9964,10752,11172,11500,11934,12480,12826,13608,14190,14784,15390,15776,16402... |
SECTION "Map Blocks 1", ROMX
DebugRoom_Blocks:
INCBIN "maps/DebugRoom.blk"
SandgemPokemonCenter1F_Blocks:
JubilifePokemonCenter1F_Blocks:
OreburghPokemonCenter1F_Blocks:
FloaromaPokemonCenter1F_Blocks:
INCBIN "maps/PokemonCenter1F.blk"
Pokecenter2F_Blocks:
INCBIN "maps/Pokecenter2F.blk"
JubilifeWestGate_Blocks... |
obj/user/sh.debug: 文件格式 elf32-i386
Disassembly of section .text:
00800020 <_start>:
// starts us running when we are initially loaded into a new environment.
.text
.globl _start
_start:
// See if we were started with arguments on the stack
cmpl $USTACKTOP, %esp
800020: 81 fc 00 e0 bf ee cmp $0xeebfe0... |
;*****************************************************************************
;* x86-optimized functions for hflip filter
;*
;* Copyright (C) 2017 Paul B Mahol
;*
;* This file is part of FFmpeg.
;*
;* FFmpeg is free software; you can redistribute it and/or
;* modify it under the terms of the GNU Lesser General Public
... |
;CodeVisionAVR C Compiler V3.12 Advanced
;(C) Copyright 1998-2014 Pavel Haiduc, HP InfoTech s.r.l.
;http://www.hpinfotech.com
;Build configuration : Debug
;Chip type : ATmega32
;Program type : Application
;Clock frequency : 8.000000 MHz
;Memory model : Small
;Optim... |
; A037952: a(n) = binomial(n, floor((n-1)/2)).
; 0,1,1,3,4,10,15,35,56,126,210,462,792,1716,3003,6435,11440,24310,43758,92378,167960,352716,646646,1352078,2496144,5200300,9657700,20058300,37442160,77558760,145422675,300540195,565722720,1166803110,2203961430,4537567650,8597496600,17672631900,33578000610,68923264410,1312... |
;
; Created by Mateusz Stompór on 21/07/2019.
;
%ifndef LL_CONSTANTS
%define LL_CONSTANTS
; List
%define NULL_PTR 0
%endif
|
; A024015: 2^n-n^5.
; 1,1,-28,-235,-1008,-3093,-7712,-16679,-32512,-58537,-98976,-159003,-244736,-363101,-521440,-726607,-983040,-1288785,-1627424,-1951811,-2151424,-1986949,-959328,1952265,8814592,23788807,55227488,119868821,251225088,516359763,1049441824,2118854497,4261412864,8550799199,17134433760,34307216493,686590... |
; A106709: Expansion of g.f. -2*x/(1 - 5*x + 2*x^2).
; 0,-2,-10,-46,-210,-958,-4370,-19934,-90930,-414782,-1892050,-8630686,-39369330,-179585278,-819187730,-3736768094,-17045465010,-77753788862,-354678014290,-1617882493726,-7380056440050,-33664517212798,-153562473183890,-700483331493854,-3195291711101490,-1457549189251... |
SECTION "Output", ROM0[0]
dw Rom0Label1
dw Rom0Label2
dw SramLabel1
dw SramLabel2
dw RomxLabel1
dw RomxLabel2
dw HramLabel
SECTION "A", ROM0[$1324]
Rom0Label1:
LOAD "LA", SRAM[$BEAD]
SramLabel1:
PUSHS
; not inside a section or load section here yet
SECTION "B", ROM... |
SECTION TEXT
S_INPUT BUFFER, 100
S_OUTPUT BUFFER, 100
INPUT N1
INPUT N2
LOAD N1
SUB N2
STORE N1
OUTPUT N1
INPUT N1
LOAD N1
L1:
SUB UM
STORE N1
OUTPUT N1
JMPP L1
JMPZ CASE
FIM:
STOP
CASE: ADD UM
STORE N1
OUTPUT N1
SUB UM
JMPZ FIM
SECTI... |
//===----------------------------------------------------------------------===//
// DuckDB
//
// duckdb/optimizer/rule/like_optimizations.hpp
//
//
//===----------------------------------------------------------------------===//
#pragma once
#include "duckdb/optimizer/rule.hpp"
#include "duckd... |
.size 8000
.text@48
ei
jp lstatint
.text@100
jp lbegin
.data@143
80
.text@150
lbegin:
ld c, 44
ld b, 90
lbegin_waitly90:
ldff a, (c)
cmp a, b
jrnz lbegin_waitly90
ld a, 11
ldff(40), a
ld hl, 8000
ld b, 08
lbegin_settile0data:
ld a, 00
ld(hl++), a
ld a, 7e
ld(hl++), a
dec b
jrnz lbegin_settile0dat... |
; A304831: a(n) = 123*2^n - 135 (n>=1).
; 111,357,849,1833,3801,7737,15609,31353,62841,125817,251769,503673,1007481,2015097,4030329,8060793,16121721,32243577,64487289,128974713,257949561,515899257,1031798649,2063597433,4127195001,8254390137,16508780409,33017560953,66035122041,132070244217,264140488569,528280977273,1056... |
; SPIR-V
; Version: 1.0
; Generator: Khronos Glslang Reference Front End; 10
; Bound: 51
; Schema: 0
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %4 "main" %32
OpExecutionMode %4 OriginUp... |
SFX_Tink_3_Ch4:
duty 2
unknownsfx0x10 58
unknownsfx0x20 4, 242, 0, 2
unknownsfx0x10 34
unknownsfx0x20 8, 226, 0, 2
unknownsfx0x10 8
endchannel
|
GUI.UP: equ 1
GUI.DOWN: equ 2
GUI.PLAY: equ 3
GUI.SHEET: equ 4
GUI.PLAYER: equ 5
GUI.HEARTS: equ 6
GUI.CLEAR: equ 7
GUI.TEXT: equ 8
SPRITE.GUI: equ 0
SPRITE.PLAYER: equ 8
SPRITE.CURSOR: equ 16
INPUT.UP: equ 1
INPUT.RIGHT: equ 3
INPUT.DOWN: equ 5
INPUT.LE... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r14
push %r15
push %r8
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0xff1c, %rcx
nop
xor %r12, %r12
vmovups (%rcx), %ymm4
vextracti128 $0, %ymm4, %xmm4
vpextrq $1, %xmm4, %r15
nop
nop
nop
nop
and $34908, %r13
lea addresses_D_ht+0x1c30,... |
INCLUDE "graphics/grafix.inc"
PUBLIC fill
EXTERN w_pixeladdress
; EXTERN l_cmp
.ws1 defw 0
.index defw 0
;.sline defs 512 * 2 * 3
;.sline2 defs 512 * 2 * 3
.fill
pop bc
pop de ; y
pop hl ; x
push hl
push de
push bc
ld a,maxy
cp e
ret c
ld a,1
cp h
ret c
call w_pixeladdress
ld b,a
ld... |
%define ASCII_0 0x30
%define ASCII_NEWLINE 0xa
%define BUFSIZE 10
; print the integer pointed to by the first argument
print:
push ebp
mov ebp, esp
mov eax, [ebp + 8]
mov ebx, 10
mov ecx, 0
sub esp, BUFSIZE; reserve space for the integer
mov esi, BUFSIZE - 1
sub esi, ecx
mov b... |
; A226201: 8^n + n.
; 1,9,66,515,4100,32773,262150,2097159,16777224,134217737,1073741834,8589934603,68719476748,549755813901,4398046511118,35184372088847,281474976710672,2251799813685265,18014398509482002,144115188075855891,1152921504606846996,9223372036854775829,73786976294838206486,590295810358705651735,4722366482869... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2011-2020 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... |
#include <fcntl.h>
#include <sys/stat.h>
#include "./capsicum-test.h"
// There was a Capsicum-related regression in FreeBSD renameat,
// which affects certain cases independent of Capsicum or capability mode
//
// added to test the renameat syscall for the case that
// - the "to" file already exists
// - the "t... |
#include <iostream>
#include <vector>
#include <stack>
#include <queue>
#include <map>
// #include <unordered_map> // can't compile on poj
#include <algorithm>
#include <cstring>
#include <climits>
using namespace std;
/*
O(log(m + n))
TODO !! Some Bugs, can't pass below test case online:
[0,0,0,0,0]
[-1,0,0,0,0,0... |
; A060851: a(n) = (2n-1) * 3^(2n-1).
; 3,81,1215,15309,177147,1948617,20726199,215233605,2195382771,22082967873,219667417263,2165293113021,21182215236075,205891132094649,1990280943581607,19147875284802357,183448998696332259,1751104078464989745,16660504517966902431,158049650967740074413,1495392851464002242523,1411504959... |
;
; Copyright (C) 2017-2017 Intel Corporation.
; SPDX-License-Identifier: MIT
;
PUBLIC iretTest
PUBLIC iret_func
.code
iret_func PROC
mov rax,-2
iretq
iret_func ENDP
iretTest PROC
push rbx
; Move the stack pointer down, so that we can check that the stack pointer
; is cor... |
; A277229: Convolution of the odd-indexed triangular numbers (A000384(n+1)) and the squares (A000290).
; 0,1,10,48,158,413,924,1848,3396,5841,9526,14872,22386,32669,46424,64464,87720,117249,154242,200032,256102,324093,405812,503240,618540,754065,912366,1096200,1308538,1552573,1831728,2149664,2510288,2917761,3376506,389... |
// By KRT girl xiplus
#include <bits/stdc++.h>
#define endl '\n'
using namespace std;
int main(){
// ios::sync_with_stdio(false);
// cin.tie(0);
int t;
cin>>t;
string s;
while(t--){
cin>>s;
int sz=s.size();
int sum=0;
for(int q=0;q<sz;q++){
sum+=s[sz-q-1]*(q%2+1);
}
if(sum%3)cout<<"No"<<endl;
else ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r15
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x874, %rsi
nop
nop
and $23932, %r15
mov (%rsi), %di
add %r10, %r10
lea addresses_UC_ht+0x14234, %rsi
nop
nop
nop
nop
nop
cmp %rax, %rax
vmovups (%rsi), %ymm0
vextracti128 $0, ... |
BITS 16
org 4000h
disk_buffer equ 2000h
jmp start
jmp reset_unreal ; Required by os_load_file (some BIOSes like to destroy cr0!?)
start:
cli ; Clear interrupts
mov ax, 0
mov ss, ax ; Set stack segment and pointer
mov sp, 0FFFEh
sti ; Restore interrupts
cld ; The default direction... |
#include <log4cxx/logger.h>
#include <KrisLibrary/Logger.h>
#include "CholeskyDecomposition.h"
#include "backsubstitute.h"
#include "complex.h"
#include <iostream>
#include <errors.h>
namespace Math {
template <class T>
CholeskyDecomposition<T>::CholeskyDecomposition()
:zeroEpsilon((T)1e-10)
{}
template <class T>
Ch... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r8
push %r9
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x128d, %rdx
cmp $34168, %rbp
mov $0x6162636465666768, %rdi
movq %rdi, %xmm2
and $0xffffffffffffffc0, %rdx
movaps %xmm2, (%rdx)
nop
nop
nop
add %r9, %r9
lea addresses_W... |
;
; Z88 Graphics Functions - Small C+ stubs
;
; Written around the Interlogic Standard Library
;
; Stubs Written by D Morris - 15/10/98
;
;
; Page the graphics bank in/out - used by all gfx functions
; Simply does a swap...
;
;
; $Id: swapgfxbk.asm,v 1.5 2017/01/02 22:57:59 aralbrec Exp $
... |
// Indexing tensors by by tensors
//
// This corresponds to "advanced indexing" in NumPy. The two operations are:
//
// index(Tensor self, indices) -> Tensor
// index_put_(Tensor self, indices, value, accumulate=false)
//
// The index is a TensorList containg kLong, kBool or kByte tensors or nulls. Byte
// tensors (b... |
; A154118: Expansion of (1 - x + 5x^2)/((1-x)*(1-2x)).
; 1,2,9,23,51,107,219,443,891,1787,3579,7163,14331,28667,57339,114683,229371,458747,917499,1835003,3670011,7340027,14680059,29360123,58720251,117440507,234881019,469762043,939524091,1879048187,3758096379,7516192763,15032385531,30064771067,60129542139,120259084283,2... |
SECTION code_clib
PUBLIC read_joypad1
PUBLIC _read_joypad1
;==============================================================
; int read_joypad1()
;==============================================================
; Reads the joystick 1
;==============================================================
.read_joypad1
._rea... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r15
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x5b83, %r13
nop
nop
nop
nop
sub %rdx, %rdx
mov $0x6162636465666768, %rdi
movq %rdi, (%r13)
nop
nop
nop
nop
nop
cmp $63083, %rbp
lea addresses_normal_ht+0xa683, %rdx
nop
nop
n... |
//--------------------------------------------------------------------------
// Copyright (C) 2014-2018 Cisco and/or its affiliates. All rights reserved.
// Copyright (C) 2002-2013 Sourcefire, Inc.
// Copyright (C) 1998-2002 Martin Roesch <roesch@sourcefire.com>
//
// This program is free software; you can redistribute... |
#ifndef _SELECTION_HPP
#define _SELECTION_HPP
#include <iterator>
#include <vector>
#include "partition.hpp"
namespace cotl
{
/**
* Select the rank-th small element from the range of the container.
* This function will perform a partition on the range of the container
* around the rank-th small ... |
; A314838: Coordination sequence Gal.4.52.3 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; 1,5,9,14,18,23,27,32,37,41,46,50,55,59,64,69,73,78,82,87,91,96,101,105,110,114,119,123,128,133,137,142,146,151,155,160,165,169,174,178,183,18... |
; A054604: a(n) = Sum_{d|5} phi(d)*n^(5/d).
; 0,5,40,255,1040,3145,7800,16835,32800,59085,100040,161095,248880,371345,537880,759435,1048640,1419925,1889640,2476175,3200080,4084185,5153720,6436435,7962720,9765725,11881480,14349015,17210480,20511265
mov $1,$0
pow $1,4
add $1,4
mul $1,$0
|
; A312484: Coordination sequence Gal.5.81.5 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; 1,4,8,14,18,22,26,32,36,40,44,48,54,58,62,66,72,76,80,84,88,94,98,102,106,112,116,120,124,128,134,138,142,146,152,156,160,164,168,174,178,182... |
LDA 9100
MOV L,A
MVI H,90
MOV A,M
STA 9101
HLT
|
#include <iostream>
using namespace std;
int main ()
{
const int arrSize = 5;
int a[arrSize] = {0};
int x,i,k;
for (i = 0; i < arrSize; i++)
{
cout << "Please enter a number:";
cin >> x;
int j;
for (j = 0;a[j]<x && j<i;j++){};
//j е точно индекса в масива, на
//който трябва да запишем x
/... |
###############################################################################
# Copyright 2019 Intel Corporation
# All Rights Reserved.
#
# If this software was obtained under the Intel Simplified Software License,
# the following terms apply:
#
# The source code, information and material ("Material") containe... |
; A119789: Fibonacci Logarithms used to get a triangular array.
; 0,0,0,0,0,0,1,1,1,2,2,2,2,3,4,3,3,3,4,5,6,4,4,4,5,6,7,8,5,5,5,6,7,8,9,10,6,6,6,7,8,9,10,11,12,7,7,7,8,9,10,11,12,13,14,8,8,8,9,10,11,12,13,14,15,16
lpb $0
mov $1,$0
add $2,1
sub $0,$2
trn $0,1
trn $1,3
add $1,$2
lpe
trn $1,2
|
// Range v3 library
//
// Copyright Eric Niebler 2014
//
// Use, modification and distribution is 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)
//
// Project home: https://github.com/ericniebler/range-v3
//===--... |
; Example 1.2:
; Prints a 16x16 sprite into the visual display
JMP boot
vslDisplay EQU 0x300
sprite:
DB "\xFF\xFF\xFF\xFF\xFF\xC4\xC4\xC4"
DB "\xC4\xC4\xFF\xFF\xFF\xFF\xFF\xFF"
DB "\xFF\xFF\xFF\xFF\xC4\xC4\xC4\xC4"
DB "\xC4\xC4\xC4\xC4\xC4\xFF\xFF\xFF"
DB "\xFF\xFF\xFF\xFF\x8C\x8C\x8C\xF4"
DB "\xF4\x8C\xF4\x... |
extern scanf
extern printf
section .data
format db "%s",0
napis db "Wprowadz ciag znakow (bez spacji): ",0
licznik dd 0
format2 db "Ciag znakow zawiera %d liter 'a'.",10,0
section .bss
tekst resb 500
section .text
global main
main:
xor rax, rax
mov rdi, napis
call printf
xor rax, rax
mov rdi, format... |
// check atomic
bneq r1 r0 .child
lbi r19 1
slbi r19 0x0100 // r19 is at start pc
lbi r21 1
slbi r21 0x0400 // r21 is pointing to heap
addi r25 r21 2 // r25 = 0x10402
st r25 r0 0 // i: mem[0x10402] = 0
addi r20 r21 1
nt r26 r19 r21
nt r26 r19 r20
slp r0
addi r0 r0 0
ld r22 r21 0
addi r0 r0 0
beq r22 r0 -4
ld... |
// 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 "quic/core/quic_crypto_stream.h"
#include <cstdint>
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "quic... |
; A313722: Coordination sequence Gal.6.248.4 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; 1,5,10,15,20,24,30,34,39,44,49,54,59,64,69,74,78,84,88,93,98,103,108,113,118,123,128,132,138,142,147,152,157,162,167,172,177,182,186,192,196... |
extern _levels
extern _tileMapX
extern _xPos
extern _yPos
extern clearAttr
extern displayPixelTile
extern displayTile
extern displayTile
extern setTileAttr
public _initItems
public checkItemCollision
public disp... |
Total: 5.86s
ROUTINE ======================== main.(*Graph).EdgeCount
10ms 10ms (flat, cum) 0.17% of Total
. . 10cb150: MOVQ 0x8(SP), AX ;graph.go:310
. . 10cb155: MOVQ 0x20(AX), CX
. . 10cb159: MOVQ 0x18(AX), AX
... |
; A106505: Ordered and uniqued length of side common to the two angles, one being the double of the other, of a primitive integer-sided triangle.
; 5,7,9,11,13,15,16,17,19,21,23,24,25,27,29,31,32,33,35,37,39,40,41,43,45,47,48,49,51,53,55,56,57,59,61,63,64,65,67,69,71,72,73,75,77,79,80,81,83,85,87,88,89,91,93,95,96,97,9... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.