text
stringlengths
1
1.05M
// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the top level of t...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Copyright(c) 2011-2018 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...
;------------------------------------------------------------------------------ ; ; CpuFlushTlb() for ARM ; ; Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR> ; Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR> ; This program and the accompanying materials ; are licensed and...
dnl x86-64 mpn_popcount optimized for Pentium 4. dnl Copyright 2007 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 modify dnl it under the terms of the GNU Lesser General Public License as published dnl by the ...
/* (**************************************************************************) (* *) (* Schifra *) (* Reed-Solomon Error Correcting Code Library *) (* ...
; A137233: Number of n-digit even numbers. ; 5,45,450,4500,45000,450000,4500000,45000000,450000000,4500000000,45000000000,450000000000,4500000000000,45000000000000,450000000000000,4500000000000000,45000000000000000,450000000000000000 mov $1,10 pow $1,$0 mul $1,6 add $1,5 mul $1,3 div $1,20 mul $1,5 mov $0,$1
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r8 push %r9 push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x5665, %rdx nop nop add $25290, %r8 mov (%rdx), %rbx nop nop nop nop sub $28358, %r11 lea addresses_A_ht+0x65, %r13 and %rbp, %rbp movl $0x61626364, (%r...
[BITS 16] [ORG 0x7c00] Start: xor ax,ax mov ds,ax mov es,ax mov ss,ax mov sp,0x7c00 TestDiskExtension: mov [DriveId],dl mov ah,0x41 mov bx,0x55aa int 0x13 jc NotSupport cmp bx,0xaa55 jne NotSupport LoadLoader: mov si,ReadPacket mov word[si],0x10 mov word[si+2],5 mov word[si+4],0x7e00 mov word[si+6],0 mov dword[si+8]...
; A053436: a(n) = n+1 + ceiling(n/2)*(ceiling(n/2)-1)*(ceiling(n/2)+1)/6. ; 2,3,5,6,10,11,18,19,30,31,47,48,70,71,100,101,138,139,185,186,242,243,310,311,390,391,483,484,590,591,712,713,850,851,1005,1006,1178,1179,1370,1371,1582,1583,1815,1816,2070,2071,2348,2349,2650,2651,2977,2978,3330,3331,3710,3711,4118,4119,4555,4...
#ifndef STAN_MATH_OPENCL_ZEROS_HPP #define STAN_MATH_OPENCL_ZEROS_HPP #ifdef STAN_OPENCL #include <stan/math/opencl/opencl_context.hpp> #include <stan/math/opencl/matrix_cl_view.hpp> #include <stan/math/opencl/matrix_cl.hpp> #include <stan/math/opencl/err/check_opencl.hpp> #include <stan/math/opencl/kernels/fill.hpp> ...
/* Copyright (c) 2017 PaddlePaddle 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 ag...
DATA x 8*7,7*6,6*5,5*4 PROGRAM #To treat something like an array, you need a register to hold #the address of the beginning of the array and another register #to hold the index. Here we treat x as an array. R2 will hold #the address of x and R3 will hold the index. imm R2 x #start with the variable R6=0 imlo R6...
<?xml version = '1.0' encoding = 'ISO-8859-1' ?> <asm version="1.0" name="0"> <cp> <constant value="old2new"/> <constant value="links"/> <constant value="NTransientLinkSet;"/> <constant value="col"/> <constant value="J"/> <constant value="main"/> <constant value="A"/> <constant value="OclParametrizedTy...
#include "encoders.h" #include "uri.h" #include <cereal/archives/json.hpp> #include <cereal/archives/xml.hpp> #include <codecvt> #include <iostream> #include <locale> #include <string> namespace coda { namespace net { namespace encoding { void url::encode(const input::map &from, encoded_type &to) const { ...
; ######################################################################### .386 .model flat, stdcall ; 32 bit memory model option casemap :none ; case sensitive include bmbutton.inc ; local includes for this file ; #######################################################################...
; A137173: A006516 at positions with even indices, A007582 at positions with odd indices. ; 0,1,1,3,6,10,28,36,120,136,496,528,2016,2080,8128,8256,32640,32896,130816,131328,523776,524800,2096128,2098176,8386560,8390656,33550336,33558528,134209536,134225920,536854528,536887296,2147450880,2147516416 mov $1,1 lpb $0 su...
#include <bits/stdc++.h> using namespace std; using ll=long long; const int N = 51; long long bino[N][N]; void bino_table() { for (int i = 0; i < N; i++) { bino[i][0] = 1; bino[i][i] = 1; } for (int i = 1; i < N; i++) { for (int j = 1; j < i; j++) { bino[i][j] = (bino...
// Andrei Gaponenko, 2015, with most of the code picked from Rob's DiagnosticG4. #include <string> #include <vector> #include "TDirectory.h" #include "TH1.h" #include "fhiclcpp/ParameterSet.h" #include "art/Framework/Core/EDAnalyzer.h" #include "art/Framework/Principal/Event.h" #include "art/Framework/Principal/Run....
#include <bits/stdc++.h> using namespace std; #define ll long long int main() { ll x,y,cs=0; while(cin>>x>>y){ if(x==0&&y==0) break; if(x==0||x==1) { cout<<"Case "<<++cs<<": :-\\"<<endl; } else if(x<=y) { cout<<"Case "<<++cs<<": :-|"<<endl; } else cout<<"Case "<<++cs<<": :-("<<endl; } return...
/* * Copyright (C) 2009 Apple 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 of conditions a...
; A069515: Number of transpositions (interchanges of adjacent digits, sometimes called inversions) needed to change all n-digit base 3 numbers into nondecreasing order. ; 0,3,24,135,648,2835,11664,45927,174960,649539,2361960,8444007,29760696,103630995,357128352,1219657095,4132485216,13904090883,46490458680,154580775111...
db DEX_GLISCOR ; pokedex id db 75 ; base hp db 95 ; base attack db 125 ; base defense db 95 ; base speed db 60 ; base special db GROUND ; species type 1 db FLYING ; species type 2 db 35 ; catch rate db 202 ; base exp yield INCBIN "pic/ymon/gliscor.pic",0,1 ; 77, sprite dimensions dw GliscorPicFront dw GliscorPicBack ; ...
; A117910: Expansion of (1+x+x^2+x^4)/((1-x^3)(1-x^6)). ; 1,1,1,1,2,1,2,3,2,2,4,2,3,5,3,3,6,3,4,7,4,4,8,4,5,9,5,5,10,5,6,11,6,6,12,6,7,13,7,7,14,7,8,15,8,8,16,8,9,17,9,9,18,9,10,19,10,10,20,10,11,21,11,11,22,11,12,23,12,12,24,12,13,25,13,13,26,13,14,27,14 mov $3,2 mov $7,$0 lpb $3,1 mov $0,$7 sub $3,1 add $0,$3 ...
; ; SECTION code_clib PUBLIC generic_console_cls PUBLIC generic_console_scrollup PUBLIC generic_console_printc PUBLIC generic_console_set_ink PUBLIC generic_console_set_paper PUBLIC generic_console_set_inverse PUBLIC generic_co...
; =============================================================== ; Jun 2007 ; =============================================================== ; ; uchar zx_aaddr2cx(void *attraddr) ; ; Attribute address to character x coordinate. ; ; =============================================================== SECTION code_clib S...
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r15 push %rax push %rbp push %rbx push %rcx push %rdx lea addresses_D_ht+0x87f2, %r15 nop nop nop nop and %rbp, %rbp vmovups (%r15), %ymm2 vextracti128 $1, %ymm2, %xmm2 vpextrq $0, %xmm2, %r13 nop nop and %r13, %r13 lea addresses_A_ht+0x7432, %rbx nop nop nop...
; A104449: Fibonacci sequence with initial values a(0) = 3 and a(1) = 1. ; 3,1,4,5,9,14,23,37,60,97,157,254,411,665,1076,1741,2817,4558,7375,11933,19308,31241,50549,81790,132339,214129,346468,560597,907065,1467662,2374727,3842389,6217116,10059505,16276621,26336126,42612747,68948873,111561620,180510493,292072113,4725826...
-- 7 Billion Humans (2056) -- -- 22: Number Royale -- -- Author: ansvonwa -- Size: 6 -- Speed: 9 -- Speed Tests: 9, 9, 9 pickup s a: if myitem < e or myitem < w: b: step s jump b endif step w jump a
ori $1, $0, 8 ori $2, $0, 0 ori $3, $0, 10 ori $4, $0, 7 sw $4, 0($0) sw $1, 4($0) sw $4, 8($0) sw $2, 12($0) sw $1, 16($0) sw $3, 20($0) sw $3, 24($0) sw $1, 28($0) sw $3, 32($0) sw $2, 36($0) sw $4, 40($0) sw $2, 44($0) sw $4, 48($0) sw $4, 52($0) sw $1, 56($0) sw $3, 60($0) sw $1, 64($0) sw $2, ...
#include "Direction.hpp" #include "Shared/Types.hpp" namespace uf { Direction VectToDirection(rpos vector) { return Direction( (vector.x > 0 ? Direction::EAST : Direction::NONE) | (vector.x < 0 ? Direction::WEST : Direction::NONE) | (vector.y > 0 ? Direction::SOUTH : Direction::NONE) | (vector.y < 0 ...
/* * Copyright (C) 2021 Open Source Robotics Foundation * * 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 appl...
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %r15 push %r8 push %rax push %rdi // Store lea addresses_US+0x5bf4, %r8 nop nop nop nop nop sub %r15, %r15 movb $0x51, (%r8) nop nop nop and $12886, %r10 // Store lea addresses_US+0x5bf4, %r11...
; A259552: a(n) = (1/4)*n^4 - (1/2)*n^3 + (3/4)*n^2 - (1/2)*n + 41. ; 41,43,53,83,151,281,503,853,1373,2111,3121,4463,6203,8413,11171,14561,18673,23603,29453,36331,44351,53633,64303,76493,90341,105991,123593,143303,165283,189701,216731,246553,279353,315323,354661,397571,444263,494953 add $0,1 bin $0,2 add $0,1 bin $0,...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE197_Numeric_Truncation_Error__int_fgets_to_char_74a.cpp Label Definition File: CWE197_Numeric_Truncation_Error__int.label.xml Template File: sources-sink-74a.tmpl.cpp */ /* * @description * CWE: 197 Numeric Truncation Error * BadSource: fgets Read data from th...
#include "Emitter.hpp" #include "Misc.hpp" #include "global.h" #include "debug.h" #include <time.h> const int HALF_RAND = (RAND_MAX / 2); char particleArray[2][2]; float RandomNum() { int rn; rn = rand(); return ((float)(rn - HALF_RAND) / (float)HALF_RAND); } Emitter :: Emitter(int...
; A140320: a(n) = A137576((3^n-1)/2). ; 1,3,13,55,217,811,2917,10207,34993,118099,393661,1299079,4251529,13817467,44641045,143489071,459165025,1463588515,4649045869,14721978583,46490458681,146444944843,460255540933,1443528742015,4518872583697,14121476824051,44059007691037,137260754729767 mov $1,3 pow $1,$0 mul $1,$0 d...
// Transfer data from a buffer to the right hand edge of the screen // Given a buffer of data .var buffer_length=$19 .var buffer_width=$0a test_screen_buffer: // When the left hand column of the buffer is transfered to the right hand column // of the screen lda #<buffer sta buffer_lo lda #>b...
// file : libbuild2/cc/utility.cxx -*- C++ -*- // license : MIT; see accompanying LICENSE file #include <libbuild2/cc/utility.hxx> #include <libbuild2/file.hxx> using namespace std; namespace build2 { namespace cc { using namespace bin; const dir_path module_dir ("cc"); const dir_path module...
; ********************************************************************************* ; ********************************************************************************* ; ; File: screen_layer2.asm ; Purpose: Layer 2 console interface, sprites enabled, no shadow. ; Date : 22nd December 2018 ; Author: paul@robsons...
/* * Copyright 2008-2011 NVIDIA Corporation * * 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...
.size 8000 .text@48 jp lstatint .text@100 jp lbegin .data@143 c0 .text@150 lbegin: ld a, 00 ldff(ff), a ld b, 91 call lwaitly_b ld a, b1 ldff(40), a ld a, a5 ldff(4b), a ld c, 41 ld b, 03 lbegin_waitm3: ldff a, (c) and a, b cmp a, b jrnz lbegin_waitm3 ld a, 20 ldff(c), a xor a, a ldff(0f), a l...
; A026355: a(n) = least k such that s(k) = n+1, where s = A026354. ; 1,2,3,5,6,8,10,11,13,14,16,18,19,21,23,24,26,27,29,31,32,34,35,37,39,40,42,44,45,47,48,50,52,53,55,57,58,60,61,63,65,66,68,69,71,73,74,76,78,79,81,82,84,86,87,89,90,92,94,95,97,99,100,102,103,105,107,108,110 mov $4,$0 add $4,1 mov $7,$0 lpb $4 mov ...
;#Mode=CON .386 .model flat, stdcall option casemap :none include windows.inc include masm32.inc include kernel32.inc includelib kernel32.lib includelib masm32.lib .const TextName db 'bad_apple.txt',0 .data? hINSTANCE HINSTANCE ? File_Not_End dd ? buffer db 10000 dup(?) .CODE START: invoke CreateFile,...
<% import collections import pwnlib.abi import pwnlib.constants import pwnlib.shellcraft import six %> <%docstring>brk(addr) -> str Invokes the syscall brk. See 'man 2 brk' for more information. Arguments: addr(void*): addr Returns: int </%docstring> <%page args="addr=0"/> <% abi = pwnlib.abi.ABI.syscall...
/* * Author: Sarah Knepper <sarah.knepper@intel.com> * Copyright (c) 2014 Intel Corporation. * * This program and the accompanying materials are made available under the * terms of the The MIT License which is available at * https://opensource.org/licenses/MIT. * * SPDX-License-Identifier: MIT */ #include <cm...
; A280945: List of primitive triples (x, y, z) of positive integers for which xy - z, yz - x, and zx - y are powers of 2. ; Submitted by Jon Maiga ; 2,2,2,2,2,3,2,6,11,3,5,7 mov $2,1 mov $3,$0 mul $3,4 lpb $3 mul $1,$3 mul $2,$3 add $1,$2 mov $5,$0 max $5,1 div $1,$5 div $2,$5 add $2,$1 sub $3,1 su...
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r14 push %r15 push %r8 push %rcx push %rdi push %rdx push %rsi // REPMOV lea addresses_RW+0x19d8c, %rsi lea addresses_PSE+0x2582, %rdi nop nop nop nop nop inc %r14 mov $72, %rcx rep movsb nop nop sub $32013, %r14 // Load ...
pushc -12 wrint halt
// // gsl-lite is based on GSL: Guidelines Support Library. // For more information see https://github.com/martinmoene/gsl-lite // // Copyright (c) 2015 Martin Moene // Copyright (c) 2015 Microsoft Corporation. All rights reserved. // // This code is licensed under the MIT License (MIT). // // THE SOFTWARE IS PROVIDED ...
;------------------------------------------------------------------------------ ; ; Copyright (c) 2006, 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 distribution. Th...
; A006186: Number of pair-coverings with largest block size 4. ; 1,5,8,10,11,12,12,13,13,13 sub $1,$0 mul $0,4 pow $0,2 sub $1,1 div $0,$1 div $0,$1 add $0,1
; A063246: Dimension of the space of weight 2n cuspidal newforms for Gamma_0( 99 ). ; 4,12,22,28,38,46,54,62,72,78,88,96,104,112,122,128,138,146,154,162,172,178,188,196,204,212,222,228,238,246,254,262,272,278,288,296,304,312,322,328,338,346,354,362,372,378,388,396,404,412 mov $4,$0 div $0,2 add $0,3 mov $1,9 add $1,$0...
; this sample shows how the stack works. ; click 'stack' button in emulator to see the contents of the stack. ; stack is important element in computer architecture. ; this code does nothing useful, except printing "Hi" in the end. name "stack" org 100h ; create tiny com file. mov ax, 1234h p...
#INCLUDE <P16F873A.INC> ORG 0X00 GOTO INICIO ; Vá para o início ATUALIZA BTFSC PORTB, 0X01 ; Caixa d'água totalmente cheia? RETLW 0X00 ; Sim, desligue o motor BTFSS PORTB, 0X00 ; Não, mas caixa d'água totalmente vazia? ...
; A135966: Triangle, read by rows, where T(n,k) = fibonacci(k(n-k) + 1) for n>=k>=0. ; 1,1,1,1,1,1,1,2,2,1,1,3,5,3,1,1,5,13,13,5,1,1,8,34,55,34,8,1,1,13,89,233,233,89,13,1,1,21,233,987,1597,987,233,21,1,1,34,610,4181,10946,10946,4181,610,34,1,1,55,1597,17711,75025,121393,75025,17711,1597,55,1 seq $0,4247 ; Multiplicat...
; A173478: a(n) = the smallest number ending in n-1 zeros divisible by n. ; Submitted by Christian Krause ; 1,10,300,1000,10000,300000,7000000,10000000,900000000,1000000000,110000000000,300000000000,13000000000000,70000000000000,300000000000000 mov $1,1 add $1,$0 add $0,1 seq $0,178500 ; a(n) = 10^n * signum(n). mov $...
############################################################################### # 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...
;############## CMonster by Patrick Davidson ;############## Read in the save game and erase it, sets carry if not found Read_Files: ld hl,saved_flag ; clear data ld (hl),0 ld de,saved_flag+1 ld bc,data_end-data_start ldir ...
; A246010: a(n) = floor(5*prime(n)^2 / 4). ; 5,11,31,61,151,211,361,451,661,1051,1201,1711,2101,2311,2761,3511,4351,4651,5611,6301,6661,7801,8611,9901,11761,12751,13261,14311,14851,15961,20161,21451,23461,24151,27751,28501,30811,33211,34861,37411,40051,40951,45601,46561,48511,49501,55651,62161,64411,65551,67861,71401,7...
;---------------------------------------------------------------------- ; fdopen.asm - user-callable entry point to _fdopen() function. ;---------------------------------------------------------------------- ; ; C/C++ Run Time Library - Version 10.0 ; ; Copyright (c) 1991, 2000 by Inprise Corporation ; ...
; init ZX48 device, put machine code at $8000 DEVICE ZXSPECTRUM48 : ORG $8000 ; but make relocation block base address $0000 with DISP DISP $0000 RELOCATE_START dw relocate_count dw relocate_size label1: call label1 ; relocate call absolute1 ...
; A266471: Number of 4 X n binary arrays with rows and columns lexicographically nondecreasing and column sums nonincreasing. ; Submitted by Jon Maiga ; 5,12,29,66,137,261,463,775,1237,1898,2817,4064,5721,7883,10659,14173,18565,23992,30629,38670,48329,59841,73463,89475,108181,129910,155017,183884,216921,254567,297291,3...
#include <bits/stdc++.h> using namespace std; #ifdef DGC #include "debug.h" #else #define debug(...) #endif typedef long long ll; typedef long double ld; typedef complex<ll> point; #define F first #define S second struct info { ll a, b; }; int main() { #ifdef DGC freopen("a.txt", "r", stdin); //freopen("b.txt...
.data str: .asciiz "5kayyak5" .text .globl main main: la $a0 str jal palindroma move $s0 $v0 li $v0 10 syscall
/* Copyright (C) 2003-2006 MySQL AB, 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the...
;------------------------------------------------------------------------------ ; ; Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR> ; SPDX-License-Identifier: BSD-2-Clause-Patent ; ; Module Name: ; ; WriteMm3.Asm ; ; Abstract: ; ; AsmWriteMm3 function ; ; Notes: ; ;------------...
; A016218: Expansion of 1/((1-x)*(1-4*x)*(1-5*x)). ; 1,10,71,440,2541,14070,75811,400900,2091881,10808930,55442751,282806160,1436400421,7271480590,36715316891,185008240220,930767824161,4676745613050,23475354034231,117743274047080,590182385739101,2956775990710310,14807336201610771 add $0,2 mov $1,9 mov $2,12 lpb $0 s...
SendToBack PROTO :DWORD UpdateRAEdit PROTO :DWORD CreateDlg PROTO :HWND MakeDialog PROTO :DWORD,:DWORD DlgEnumProc PROTO :DWORD,:DWORD PGM_FIRST equ 1400h PGM_SETCHILD equ PGM_FIRST+1 PGM_RECALCSIZE equ PGM_FIRST+2 PGM_FORWARDMOUSE equ PGM_FIRST+3 PGM_SETBKCOLOR equ PGM_FIRST+4 PGM_GETBKCOLOR ...
SFX_Heal_Ailment_3_Ch4: duty 2 pitchenvelope 1, 4 squarenote 4, 15, 2, 1536 squarenote 4, 15, 2, 1536 pitchenvelope 1, 7 squarenote 15, 15, 2, 1536 pitchenvelope 0, 0 endchannel
; A165849: Totally multiplicative sequence with a(p) = 28. ; Submitted by Jon Maiga ; 1,28,28,784,28,784,28,21952,784,784,28,21952,28,784,784,614656,28,21952,28,21952,784,784,28,614656,784,784,21952,21952,28,21952,28,17210368,784,784,784,614656,28,784,784,614656,28,21952,28,21952,21952,784,28,17210368,784,21952,784,219...
// Copyright (c) 2014-2017 The Dash Core developers // Copyright (c) 2017-2018 The Criptoreal Core developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "privatesend-server.h" #include "activemasternode.h" #inc...
; A326124: a(n) is the sum of all divisors of the first n positive even numbers. ; 3,10,22,37,55,83,107,138,177,219,255,315,357,413,485,548,602,693,753,843,939,1023,1095,1219,1312,1410,1530,1650,1740,1908,2004,2131,2275,2401,2545,2740,2854,2994,3162,3348,3474,3698,3830,4010,4244,4412,4556,4808,4979,5196,5412,5622,5784,...
INCLUDE "graphics/grafix.inc" SECTION code_graphics PUBLIC gety PUBLIC _gety EXTERN __gfx_coords ; ; $Id: w_gety.asm $ ; ; ****************************************************************** ; ; Get the current X coordinate of the graphics cursor. ; ; .gety ._gety ld ...
;******************************************************************************* ;* TMS320C55x C/C++ Codegen PC v4.4.1 * ;* Date/Time created: Sat Oct 06 06:37:41 2018 * ;****************************************************************************...
// $Id: mouse.cpp,v 1.1 2003/05/06 03:32:35 bush Exp $ // Written by: // Grant Macklem (Grant.Macklem@colorado.edu) // Gregory Schmelter (Gregory.Schmelter@colorado.edu) // Alan Schmidt (Alan.Schmidt@colorado.edu) // Ivan Stashak (Ivan.Stashak@colorado.edu) // CSCI 4830/7818: API Programming // Univ...
; size_t b_array_append(b_array_t *a, int c) SECTION code_clib SECTION code_adt_b_array PUBLIC b_array_append_callee EXTERN asm_b_array_append b_array_append_callee: pop hl pop bc ex (sp),hl jp asm_b_array_append
; A122197: Fractal sequence: count up to successive integers twice. ; 1,1,1,2,1,2,1,2,3,1,2,3,1,2,3,4,1,2,3,4,1,2,3,4,5,1,2,3,4,5,1,2,3,4,5,6,1,2,3,4,5,6,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,10,1,2,3,4,5,6,7,8,9,10,1,2,3,4,5,6,7,8,9,10,11,1,2,...
<% from pwnlib.shellcraft.aarch64 import mov from pwnlib.shellcraft.aarch64.linux import read, readn, mmap from pwnlib import constants as C %> <%page args="fd=0, length=None"/> <%docstring> Migrates shellcode to a new buffer. Arguments: fd(int): Integer file descriptor to recv data from. Default i...
// // Auto-generated by CTMConverter tool. // // Max number of color shifts = 136 // Max number of active physical chars = 249 // Number of chars = 348 // Number of vir chars = 717 // Number of vir chars' = 756 // Number of tiles = 91 // Number of vir tiles = 154 // Number of vir tiles' = 154 // X symmetry...
; Copyright (c) 2004, Intel Corporation ; All rights reserved. This program and the accompanying materials ; are licensed and made available under the terms and conditions of the BSD License ; which accompanies this distribution...
_forktest: file format elf32-i386 Disassembly of section .text: 00000000 <main>: printf(1, "fork test OK\n"); } int main(void) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 e4 f0 and $0xfffffff0,%esp forktest(); 6: e8 35 00 00 00 c...
; A279321: Period 7: repeat [1, 3, 5, 7, 5, 3, 1]. ; 1,3,5,7,5,3,1,1,3,5,7,5,3,1,1,3,5,7,5,3,1,1,3,5,7,5,3,1,1,3,5,7,5,3,1,1,3,5,7,5,3,1,1,3,5,7,5,3,1,1,3,5,7,5,3,1,1,3,5,7,5,3,1,1,3,5,7,5,3,1,1,3,5,7,5,3,1,1,3,5,7,5,3,1,1,3,5,7,5,3,1,1,3,5,7,5,3,1,1,3,5,7,5,3,1,1,3,5,7,5,3,1,1,3,5,7,5,3,1,1,3,5,7,5,3,1,1,3,5,7,5,3,1,1...
; A320106: Möbius transform of A320107. ; 1,0,0,0,1,1,1,0,0,0,1,0,1,0,0,0,1,1,1,0,0,0,1,0,1,0,0,0,1,1,1,0,0,0,1,0,1,0,0,0,1,1,1,0,0,0,1,0,1,0,0,0,1,1,1,0,0,0,1,0,1,0,0,0,1,1,1,0,0,0,1,0,1,0,0,0,1,1,1,0,0,0,1,0,1,0,0,0,1,1,1,0,0,0,1,0,1,0,0,0,1,1,1,0,0,0,1,0,1,0,0,0,1,1,1,0,0,0,1,0,1,0,0,0,1,1,1,0,0,0,1,0,1,0,0,0,1,1,1,...
; int ba_priority_queue_push(ba_priority_queue_t *q, int c) SECTION code_adt_ba_priority_queue PUBLIC ba_priority_queue_push_callee ba_priority_queue_push_callee: pop hl pop bc ex (sp),hl INCLUDE "adt/ba_priority_queue/z80/asm_ba_priority_queue_push.asm"
bits 64 default rel %include "cabna/sys/conv.nasm" global print_stats global used_max global in_use extern threads_strucs extern thread_aligned_size extern printf section .text proc print_stats: ; Print collected statistics for each thread, and print the totals of all ; threads. Called directly via call...
; A010551: Multiply successively by 1,1,2,2,3,3,4,4,..., n >= 1, a(0) = 1. ; Submitted by Jon Maiga ; 1,1,1,2,4,12,36,144,576,2880,14400,86400,518400,3628800,25401600,203212800,1625702400,14631321600,131681894400,1316818944000,13168189440000,144850083840000,1593350922240000,19120211066880000,229442532802560000,29827529...
// ======================================================================== // // Copyright 2009-2019 Intel Corporation // // // // Licensed under the Apache License, Version 2.0 (the "License"); // // y...
/** * \file test/src/host_static_calc.cpp * * This file is part of MegBrain, a deep learning framework developed by Megvii. * * \brief static calculating on host to check opr correctness * * \copyright Copyright (c) 2014-2021 Megvii Inc. All rights reserved. * */ #include "megbrain/test/host_static_calc.h" v...
; A170001: Number of reduced words of length n in Coxeter group on 40 generators S_i with relations (S_i)^2 = (S_i S_j)^35 = I. ; 1,40,1560,60840,2372760,92537640,3608967960,140749750440,5489240267160,214080370419240,8349134446350360,325616243407664040,12699033492898897560,495262306223057004840,19315229942699223188760 ...
; ; Generic game device library - VG-5000 port ; Stefano Bodrato - 2014 ; ; $Id: joystick.asm,v 1.2 2015/01/19 01:32:45 pauloscustodio Exp $ ; PUBLIC joystick EXTERN getk .joystick ;__FASTALL__ : joystick no. in HL ;ld a,l call getk ld a,l ld l,0 cp ' ' jr nz,no_fire1_a set 4,l jr j_done .no_fire1_...
VER_NEG PROC CMP SN1,1 JE NEG1 JMP CNT NEG1: NEG NUM1 CNT: CMP SN2,1 JE NEG2 JMP FIN_VER_NEG NEG2: NEG NUM2 FIN_VER_NEG: RET VER_NEG ENDP
/* * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Softwa...
title "Context Swap" ;++ ; ; Copyright (c) 1989, 2000 Microsoft Corporation ; ; Module Name: ; ; ctxswap.asm ; ; Abstract: ; ; This module implements the code necessary to field the dispatch ; interrupt and to perform kernel initiated context switching. ; ; Author: ; ; Shie-Lin Tzo...
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/vespalib/testkit/test_kit.h> #include <vespa/eval/eval/value_type.h> #include <vespa/eval/eval/value_type_spec.h> #include <vespa/vespalib/util/stringfmt.h> #include <vespa/vespalib/tes...
PAGE ,132 TITLE Windows Protect Mode Routines .xlist include kernel.inc .386p include protect.inc include pdb.inc .list ifdef WOW ; ; the dpmi func 04f1h is idential to function 00h, except that ; the descriptor base and limit are not initialized to zero. ; ; ; the dp...
.size 8000 .text@48 jp lstatint .text@100 jp lbegin .data@143 c0 .text@150 lbegin: ld a, 00 ldff(ff), a ld a, 30 ldff(00), a ld a, 01 ldff(4d), a stop, 00 ld b, 97 call lwaitly_b ld a, b1 ldff(40), a ld a, 07 ldff(4b), a ld c, 41 ld a, 99 ldff(45), a ld a, 40 ldff(c), a ld a, 02 ldff(ff), a ...
SECTION .text GLOBAL square_p434 square_p434: sub rsp, 0x440 ; last 0x30 (6) for Caller - save regs mov [ rsp + 0x410 ], rbx; saving to stack mov [ rsp + 0x418 ], rbp; saving to stack mov [ rsp + 0x420 ], r12; saving to stack mov [ rsp + 0x428 ], r13; saving to stack mov [ rsp + 0x430 ], r14; saving to stack mov [ rs...
SECTION code_fp_math48 PUBLIC atan EXTERN cm48_sccz80_atan defc atan = cm48_sccz80_atan
; A142292: Primes congruent to 1 mod 44. ; Submitted by Jon Maiga ; 89,353,397,617,661,881,1013,1277,1321,1409,1453,2069,2113,2333,2377,2729,2861,3037,3169,3257,3301,3389,3433,3697,3917,4049,4093,4357,4621,4973,5237,5281,5413,5501,5897,6029,6073,6337,6469,6689,6733,6997,7129,7349,7393,7481,7789,7877,8009,8053,8273,8317...
; A022926: Number of powers of 7 between 2^n and 2^(n+1). ; 0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,1,0,0,1,0,0,1,0,0,1 mov $4,2 mov $5,$0 lpb $4 sub $4,1 add $0,$4 sub $0,1 ...