text
stringlengths
1
1.05M
; A178131: Decimal expansion of (11+3*sqrt(21))/17. ; Submitted by Christian Krause ; 1,4,5,5,7,4,8,6,5,2,0,5,1,0,3,0,5,8,9,3,9,7,8,9,0,6,8,1,2,4,6,1,1,9,1,4,5,1,1,4,9,0,4,1,0,1,7,8,2,5,8,3,2,7,6,9,3,0,6,8,9,7,8,6,5,7,1,8,0,0,3,1,0,3,9,0,7,8,3,0,9,7,6,3,6,0,6,3,8,0,4,6,1,6,4,9,0,2,9,9 mov $1,1 mov $3,$0 mul $3,4 lpb $...
SECTION code_clib SECTION code_stdio PUBLIC __stdio_scanf_sm_octal PUBLIC __stdio_scanf_sm_octal_join EXTERN asm_isodigit, __stdio_scanf_sm_write __stdio_scanf_sm_octal: ; OCTAL NUMBER STATE MACHINE ; ; Qualify function for STDIO_MSG_EATC ; ; set-up: hl = state machine function address ; ...
/* * E-Lib * Copyright (C) 2019 EnAccess * * 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, modify, merge, p...
#include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <stdio.h> int main(int argv, char ** argc) { int fd = open(argc[1], O_RDONLY); char out[256] ; sprintf(out, "EE_%s_E",argc[1]); int outf = open(out, O_RDWR|O_CREAT, 0666); while(1) { unsigned char p[256]; ssiz...
// Copyright 2014 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 "core/animation/css/CSSTransitionData.h" #include "core/animation/Timing.h" namespace blink { CSSTransitionData::CSSTransitionData() { m_pro...
#include <boost/rational.hpp> /// For calculations related to sampling coefficients. #include <optional> #include <unordered_set> #include <Storages/MergeTree/MergeTreeDataSelectExecutor.h> #include <Storages/MergeTree/MergeTreeReadPool.h> #include <Storages/MergeTree/MergeTreeIndices.h> #include <Storages/MergeTree...
; A103609: Fibonacci numbers repeated (cf. A000045). ; 0,0,1,1,1,1,2,2,3,3,5,5,8,8,13,13,21,21,34,34,55,55,89,89,144,144,233,233,377,377,610,610,987,987,1597,1597,2584,2584,4181,4181,6765,6765,10946,10946,17711,17711,28657,28657,46368,46368,75025,75025,121393,121393,196418,196418,317811,317811,514229,514229,832040,8320...
; A117962: Partial sums of hexagonal numbers with prime indices. ; 6,21,66,157,388,713,1274,1977,3012,4665,6556,9257,12578,16233,20604,26169,33072,40453,49364,59375,69960,82363,96058,111811,130532,150833,171948,194739,218392,243817,275948,310139,347540,386043,430296,475747,524888,577863,633474,693159,757062,822403,8951...
#include <cstdio> using namespace std; long long a[30][30]; void mmp(int x,int y){ a[x][y]=-1; a[x-1][y-2]=-1; a[x-2][y-1]=-1; a[x-2][y+1]=-1; a[x-1][y+2]=-1; a[x+1][y-2]=-1; a[x+2][y-1]=-1; a[x+2][y+1]=-1; a[x+1][y+2]=-1; } int main(){ long long xa,ya,xb,yb; scanf("%lld%lld%lld%lld",&xa,&ya,&xb,&yb); m...
; A190038: Number of nondecreasing arrangements of n+2 numbers in 0..6 with the last equal to 6 and each after the second equal to the sum of one or two of the preceding three. ; 10,18,30,47,72,107,151,203,263,331,407,491,583,683,791,907,1031,1163,1303,1451,1607,1771,1943,2123,2311,2507,2711,2923,3143,3371,3607,3851,41...
; stdio_out_caplx ; 05.2008 aralbrec XLIB stdio_out_caplx LIB stdio_out_lx ; output %lX parameter, handles 16-bit %X and 32-bit %lX ; ; enter : ix = FILE * ; a = precision (default 1) ; b = width (default 0) ; c = flags [-+ O#PLN] ; de = 16-bit parameter (mo...
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
/* Copyright 2018 Alexander Chernenko (achernenko@mail.ru) 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...
#pragma once #include <alsa/asoundlib.h> #include <ostream> #include <libremidi/detail/dummy.hpp> #include <libremidi/detail/midi_api.hpp> #include <libremidi/detail/raw_alsa_helpers.hpp> #include <libremidi/libremidi.hpp> #include <thread> #include <atomic> #include <sstream> // Credits: greatly inspired from // http...
Snd_DEZ1_Header: smpsHeaderStartSong 3 smpsHeaderVoice Snd_DEZ1_Voices smpsHeaderChan $06, $03 smpsHeaderTempo $01, $08 smpsHeaderDAC Snd_DEZ1_DAC smpsHeaderFM Snd_DEZ1_FM1, $00, $0F smpsHeaderFM Snd_DEZ1_FM2, $00, $0B smpsHeaderFM Snd_DEZ1_FM3, $00, $0C smpsHeaderFM ...
/* Copyright (c) 2019, Ford Motor Company, Livio 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 and ...
; Listing generated by Microsoft (R) Optimizing Compiler Version 16.00.30319.01 TITLE C:\JitenderN\REBook\Structures\Structures\Structures.cpp .686P .XMM include listing.inc .model flat INCLUDELIB LIBCMT INCLUDELIB OLDNAMES CONST SEGMENT $SG5660 DB 'Jitender', 00H ORG $+3 $SG5662 DB 0aH, '%s %d ...
//================================================================================================= /*! // \file src/mathtest/dmatdmatmult/DDaSDb.cpp // \brief Source file for the DDaSDb dense matrix/dense matrix multiplication math test // // Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved // // This...
; A124230: Denominator of g(n) defined by g(1)=1, g(2n)=1/g(n)+1, g(2n+1)=g(2n). ; 1,1,1,2,2,2,2,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13 mov $3,5 lpb $0,1 sub $0...
INCLUDE "hardware.inc" INCLUDE "header.inc" ;-------------------------------------------------------------------------- SECTION "Main",HOME ;------------------------------------ ClearSprites: push hl ld b,144 call wait_ly xor a,a ld b,$A0 ld hl,$FE00 .loop: ld [hl+],a dec b jr nz,.loop pop hl r...
INCLUDE "graphics/grafix.inc" PUBLIC respixel EXTERN pixeladdress EXTERN coords EXTERN pix_return ; ; $Id: respixl.asm,v 1.4 2015/01/19 01:32:49 pauloscustodio Exp $ ; ; ****************************************************************** ; ; Reset pixel at (x,y) coordinate ; ; Design & programming by Gunther St...
; --------------------------------------------------------------------------- ; Object 7E - special stage results screen ; --------------------------------------------------------------------------- SSResult: moveq #0,d0 move.b obRoutine(a0),d0 move.w SSR_Index(pc,d0.w),d1 jmp SSR_Index(pc,d1.w) ; ============...
dnl x86-64 mpn_lshift optimized for Pentium 4. dnl Copyright 2003, 2005, 2007, 2008, 2012 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl dnl The GNU MP Library is free software; you can redistribute it and/or modify dnl it under the terms of either: dnl dnl * the GNU Lesser Ge...
// CHAP - The Channel Annotation Package // // Copyright (c) 2016 - 2018 Gianni Klesse, Shanlin Rao, Mark S. P. Sansom, and // Stephen J. Tucker // // 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 th...
; A327625: Expansion of Sum_{k>=0} x^(3^k) / (1 - x^(3^k))^2. ; 1,2,4,4,5,8,7,8,13,10,11,16,13,14,20,16,17,26,19,20,28,22,23,32,25,26,40,28,29,40,31,32,44,34,35,52,37,38,52,40,41,56,43,44,65,46,47,64,49,50,68,52,53,80,55,56,76,58,59,80,61,62,91,64,65,88,67,68,92,70,71,104,73,74,100,76,77,104,79,80,121,82,83,112,85,86,1...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r14 push %rax push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_UC_ht+0x4b22, %rsi lea addresses_UC_ht+0x16e7, %rdi nop nop cmp $40929, %r14 mov $124, %rcx rep movsb nop nop nop nop nop xor %rsi, %rsi lea addresses_UC_ht+0x1aa3a, %rdi nop nop no...
/** * The ScriptableBehavior class implements IBehavior mechanics using a Lua script. * * Author: Skylar Payne * Date: 8/5/2013 * File: ScriptableBehavior.cpp **/ #include "ScriptableBehavior.h" #include <lua.hpp> #include "Entity.h" #include "Logger.h" lua_State* ScriptableBehavior::s_L; /** *...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r15 push %r9 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0x17601, %rdi nop nop nop nop add $28855, %r10 movb $0x61, (%rdi) dec %r9 lea addresses_WT_ht+0x1e941, %rdi nop nop nop nop cmp %r15, %r15 mov $0x6162636465666768, %r...
%include "lib.asm" extern ExitProcess ; windows syscall to exit section .text N equ 8 ; up to 32 bits ONE db '1', 0 ZERO db '0', 0 section .data buffer times 25 db 0 section .code global _start _start: fgets buffer, 12 ; fill buffer with 12 character a2i 12, buffer ; eax = buffer as number mov ebx,...
; A240848: Sum of n, digitsum(n) and number of digits of n. ; 1,3,5,7,9,11,13,15,17,19,13,15,17,19,21,23,25,27,29,31,24,26,28,30,32,34,36,38,40,42,35,37,39,41,43,45,47,49,51,53,46,48,50,52,54,56,58,60,62,64,57,59,61,63,65,67,69,71,73,75,68,70,72,74,76,78 lpb $0,1 mov $5,$0 mov $0,1 mov $1,$5 add $2,$5 mov $3...
; size_t b_array_erase_range(b_array_t *a, size_t idx_first, size_t idx_last) SECTION code_adt_b_array PUBLIC _b_array_erase_range EXTERN asm_b_array_erase_range _b_array_erase_range: pop af pop de pop bc pop hl push hl push bc push de push af jp asm_b_array_erase_range
; A004357: a(n) = binomial(6*n,n-2). ; 1,18,276,4060,58905,850668,12271512,177100560,2558620845,37014131440,536211932256,7778680504140,112992892764570,1643385429346680,23929614612052080,348822899204435040,5089954010045192190,74341452393467880390,1086744939880326302940,15899266005323518471500,232785068405633151322200,34...
#ifndef _NODEOF_TO_AST_JCH_HPP #define _NODEOF_TO_AST_JCH_HPP /*#pragma add("jc_files", "./nodeof_to_ast.jc");*/ namespace ama { ama::Node* NodeofToASTExpression(ama::Node* nd_root); }; #endif
.data vettore: .word 1,7,23,90,26,74,654,98,34,65,78,6,84,5,9,9 #vettore da scorrere dim: .word 16 #dim vettore .text lw $t3,dim($zero) lw $t1,vettore($t0) move $t2,$t1 #imposto vett...
global _start _start: mov eax, 1 mov ebx, 42 sub ebx, 29 int 0x80
; DV3 QPC Floppy Disk All Files Closed  1993 Tony Tebby section dv3 xdef fd_done include 'dev8_dv3_keys' include 'dev8_dv3_fd_keys' include 'dev8_mac_assert' include 'dev8_smsq_qpc_keys' ;+++ ; This routine is called when all files are closed ; ; d7 c p drive ID / number ; a3 c p linkage block ; a...
#include "randomgenerator.h" RandomGenerator::RandomGenerator() { srand (time(NULL)); } /** Returns a random int from a given range. rStart and rEnd are the start and end of the range the random should be within. */ int RandomGenerator::getRandom(int rStart, int rEnd) { return (int)((rand(...
; A057355: a(n) = floor(3*n/5). ; 0,0,1,1,2,3,3,4,4,5,6,6,7,7,8,9,9,10,10,11,12,12,13,13,14,15,15,16,16,17,18,18,19,19,20,21,21,22,22,23,24,24,25,25,26,27,27,28,28,29,30,30,31,31,32,33,33,34,34,35,36,36,37,37,38,39,39,40,40,41,42,42,43,43,44,45,45,46,46,47,48,48,49,49,50,51,51,52,52,53,54,54,55,55,56,57,57,58,58,59,60,...
; $Id: tstAsmPush-1.asm 69373 2017-10-26 15:38:48Z vboxsync $ ;; @file ; Disassembly testcase - Valid push sequences and related instructions. ; ; This is a build test, that means it will be assembled, disassembled, ; then the disassembly output will be assembled and the new binary will ; compared with the original. ; ...
; A340078: a(n) = gcd(n, 1+A018804(n)), where A018804(n) = Sum_{k=1..n} gcd(k, n). ; Submitted by Jamie Morken(s4) ; 1,2,3,1,5,2,7,1,1,2,11,1,13,2,1,1,17,2,19,1,3,2,23,1,1,2,1,7,29,2,31,1,1,2,1,1,37,2,3,1,41,14,43,1,5,2,47,1,1,2,1,1,53,2,5,1,3,2,59,1,61,2,1,1,1,2,67,1,1,2,71,1,73,2,1,1,1,2,79,1,1,2,83,1,1,2,1,1,89,2,1,...
; A229277: Number of ascending runs in {1,...,3}^n. ; 0,3,15,63,243,891,3159,10935,37179,124659,413343,1358127,4428675,14348907,46235367,148272039,473513931,1506635235,4778186031,15109399071,47652720147,149931729243,470715894135,1474909801623,4613015762523,14403906360531,44906296300479,139802620558095,434659056644259,1...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r9 push %rax push %rdx push %rsi lea addresses_WC_ht+0x4ef, %r10 nop nop nop nop add %r9, %r9 movups (%r10), %xmm2 vpextrq $0, %xmm2, %r11 cmp %r9, %r9 lea addresses_D_ht+0x1aef, %rax sub $63480, %rsi mov $0x6162636465666768, %rdx movq %rdx, %xmm7 v...
// ----------------------------------------------------------------------------------------------------- // Copyright (c) 2006-2019, Knut Reinert & Freie Universität Berlin // Copyright (c) 2016-2019, Knut Reinert & MPI für molekulare Genetik // This file may be used, modified and/or redistributed under the terms of th...
; A269221: Factorial of the sum of decimal digits of n. ; 1,1,2,6,24,120,720,5040,40320,362880,1,2,6,24,120,720,5040,40320,362880,3628800,2,6,24,120,720,5040,40320,362880,3628800,39916800,6,24,120,720,5040,40320,362880,3628800,39916800,479001600,24,120,720,5040 lpb $0,1 mov $2,$0 div $0,10 mod $2,10 add $1,$2 ...
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, instal...
// Copyright 2020 The TensorFlow Runtime 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 ...
; ; LIBRARY.ASM - MagicKit Standard Library ; ; ; IMPORTANT NOTE: ; ---- ; almost all the library functions have been changed to automaticaly ; handle bank mapping (you don't have to map data yourself anymore), ; the change will be transparent to you if you were using only library ; macros to call function...
; A061600: a(n) = n^3 - n + 1. ; 1,1,7,25,61,121,211,337,505,721,991,1321,1717,2185,2731,3361,4081,4897,5815,6841,7981,9241,10627,12145,13801,15601,17551,19657,21925,24361,26971,29761,32737,35905,39271,42841,46621,50617,54835,59281,63961,68881,74047,79465,85141,91081,97291,103777,110545,117601,124951,132601,140557,1488...
.size 8000 .text@50 jp ltimaint .text@100 jp lbegin .data@143 c0 .text@150 lbegin: xor a, a ldff(0f), a ldff(ff), a ld a, fe ldff(05), a ldff(06), a ld a, 04 ldff(ff), a ld a, 04 ldff(07), a ei nop halt .text@1000 ltimaint: ld a, 00 ldff(07), a .text@10ef ld a, 04 ldff(07), a .text@13f0 ldff...
; A113968: Series expansion of Farey rational polynomial based on A112627. ; 0,0,1,1,15,17,239,273,3823,4369,61167,69905,978671,1118481,15658735,17895697,250539759,286331153,4008636143,4581298449,64138178287,73300775185,1026210852591,1172812402961,16419373641455,18764998447377 mov $2,$0 mov $5,$0 lpb $2 mov $0,$5 ...
.include "defaults_mod.asm" table_file_jp equ "exe4-utf8.tbl" table_file_en equ "bn4-utf8.tbl" game_code_len equ 3 game_code equ 0x4234574A // B4WJ game_code_2 equ 0x42345745 // B4WE game_code_3 equ 0x42345750 // B4WP card_type equ 1 card_id equ 107 card_no equ "107" card_sub equ "Mod Card 107" card_sub_x...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" // Including type: System.Net.WebCompletionSource #inc...
user/_forktest: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <print>: #define N 1000 void print(const char *s) { 0: 1101 addi sp,sp,-32 2: ec06 sd ra,24(sp) 4: e822 sd s0,16(sp) 6: e426 sd s1,8(sp) ...
global _start section .text _start: mov rax, 1 mov rdi, 1 mov rsi, hello_world mov rdx, length syscall mov rax, 60 mov rdi, 1 syscall section .data hello_world: db 'hello world', 0xa length: equ $-hello_world
; vim: ft=nasm section .text ; -------------------------------------------------------------- ; sys_write_stdout ; writes string at given address to stdout ; ; args: ecx = address of string to write ; edx = length of string to write ; out : nothing, all registers preserved ; ---------------------------------...
;============================================================== ; WLA-DX banking setup ;============================================================== ; do not complie still working on .... .memorymap defaultslot 0 slotsize $10000 slot 0 $0000 .endme .rombankmap bankstotal 1 banksize $10000 banks 1 .endro .define STA...
; A315335: Coordination sequence Gal.6.624.2 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. ; Submitted by Jon Maiga ; 1,6,10,16,22,27,33,39,44,50,56,60,66,72,76,82,88,93,99,105,110,116,122,126,132,138,142,148,154,159,165,171,176,182,...
; A118059: 288*n^2 - 168*n - 119. ; 1,697,1969,3817,6241,9241,12817,16969,21697,27001,32881,39337,46369,53977,62161,70921,80257,90169,100657,111721,123361,135577,148369,161737,175681,190201,205297,220969,237217,254041,271441,289417,307969,327097,346801,367081,387937,409369,431377,453961,477121,500857,525169,550057,5755...
/* * ConsensusVariable.cpp * * Created on: 30.05.2014 * Author: endy */ #include <cace/CaceType.h> #include <variables/ConsensusVariable.h> #include <cstdint> #include <string> namespace cace { ConsensusVariable::~ConsensusVariable() { } ConsensusVariable::ConsensusVariable(const ConsensusVariable& v...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r14 push %r8 push %r9 push %rcx push %rdi push %rsi lea addresses_normal_ht+0xc1ba, %r14 nop nop add $40514, %r9 movups (%r14), %xmm6 vpextrq $1, %xmm6, %r11 and %rdi, %rdi lea addresses_D_ht+0x272a, %r8 nop nop nop nop nop cmp %rdi, %rdi mov $0x616...
LIST p=16f876 INCLUDE "p16f876.inc" CBLOCK 0x20 CNT1 CNT2 CNT3 ENDC ORG 0x00 GOTO main ORG 0x04 GOTO main main BCF STATUS, RP0 BCF STATUS, RP1 CLRF PORTC BSF STATUS, RP0 CLRF TRISC ; all pins are outputs BCF STATUS, RP0 GOTO loop setcnt MOVLW 0xFF MOVWF CNT1 MOVLW 0xFF MOVWF CNT2 MOVLW 0x01 ...
#include "table_model.h" #include "base/logging.h" #include "SkBitmap.h" #include "ui_base/l10n/l10n_util.h" namespace ui { // TableColumn ----------------------------------------------------------------- TableColumn::TableColumn() : id(0), title(), alignment(LEFT), width(...
; template for program using standard Win32 headers format PE GUI 4.0 entry start include '%include%\win32a.inc' section '.data' data readable writeable _title db 'Win32 program template',0 _class db 'FASMWIN32',0 mainhwnd dd ? hinstance dd ? msg MSG wc WNDCLASS section '.code' co...
; A282121: Binary representation of the x-axis, from the left edge to the origin, of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 430", based on the 5-celled von Neumann neighborhood. ; Submitted by Christian Krause ; 1,11,110,1111,11010,111111,1101010,11111111,110101010,111111111...
/* * Copyright (c) 2013, Peter Thorson. 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 o...
; A133053: Squares of Motzkin numbers. ; Submitted by Jon Maiga ; 1,1,4,16,81,441,2601,16129,104329,697225,4787344,33616804,240591121,1750167225,12912685956,96454967184,728405920089,5554407254841,42724289649924,331213938112656,2585927836376361,20319806576858481,160611160909347729,1276358595300972225,1019351078573647320...
// Copyright 2016 Husky 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 writi...
; A051577: a(n) = (2*n + 3)!!/3 = A001147(n+2)/3. ; 1,5,35,315,3465,45045,675675,11486475,218243025,4583103525,105411381075,2635284526875,71152682225625,2063427784543125,63966261320836875,2110886623587616875,73881031825566590625,2733598177545963853125,106610328924292590271875,4371023485895996201146875,18795400989352783...
; A030945: [ exp(3/11)*n! ]. ; Submitted by Christian Krause ; 1,2,7,31,157,945,6620,52962,476658,4766581,52432391,629188699,8179453089,114512343252,1717685148793,27482962380696,467210360471843,8409786488493177,159785943281370370,3195718865627407416 add $0,1 mov $2,1 lpb $0 sub $1,3 add $1,$0 mul $2,$0 sub $0,...
#include <iostream> #include <vector> #include <algorithm> #include <string> #include <ctype.h> #include <queue> #include <cstring> #include <set> #include <bitset> #include <map> #include <chrono> #include <random> #include <unordered_map> #include <stdio.h> using namespace std; typedef long long ll; typedef long do...
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2012, John Haddon. All rights reserved. // Copyright (c) 2012-2019, Image Engine Design Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted pro...
; A060494: a(n) = floor(n^4/64). ; 0,0,0,1,4,9,20,37,64,102,156,228,324,446,600,791,1024,1305,1640,2036,2500,3038,3660,4372,5184,6103,7140,8303,9604,11051,12656,14430,16384,18530,20880,23447,26244,29283,32580,36147,40000,44152,48620,53418,58564,64072,69960,76245,82944,90075,97656,105706,114244,123288,132860,142978,1536...
;Zakładam, że zerowa liczba Fibonacciego to 0, a piersza to 1. ;Aby przywrócić interfejs należy odkomentować liniki 5, 6, 15, 16 ;SECTION .data ;instrukcja db 'Prosze podac ktora liczbe Fibonacciego mam wypisac. Zerowa to 0, a pierwsza to 1: ' SECTION .bss n: resb 255 SECTION .text global _start _start: ;mov eax...
EXTERN variable mov eax, variable mov ax, variable mov al, variable
; A223544: Triangle T(n,k), 0 < k <= n, T(n,1) = n - 1, T(n,k) = T(n,k-1) + n; read by rows. ; 0,1,3,2,5,8,3,7,11,15,4,9,14,19,24,5,11,17,23,29,35,6,13,20,27,34,41,48,7,15,23,31,39,47,55,63,8,17,26,35,44,53,62,71,80,9,19,29,39,49,59,69,79,89,99,10,21,32,43,54,65,76,87,98,109,120,11,23,35,47,59,71,83,95,107,119,131,143,...
.ktext 0x4180 _entry: mfc0 $k0, $14 mfc0 $k1, $13 ori $k0, $0, 0x1000 sw $sp, -4($k0) addiu $k0, $k0, -256 move $sp, $k0 j _save_context nop _main_handler: mfc0 $k0, $13 ori $k1, $0, 0x007c and $k0, $k1, $k0 beq $0, $k0, _restore_context nop mfc0 $k0, $14 addu $k0, $k0, 4 mtc0 $k0, $14 j _rest...
; A082390: Numbers on a computer numpad, read in a clockwise spiral. ; Submitted by Jamie Morken(s2) ; 0,1,4,7,8,9,6,3,2,5 pow $0,3 mov $1,$0 div $1,2 mul $1,2 bin $1,3 add $0,$1 mod $0,10
; identical test with i36b.asm, but first empty lines are included, to raise max-line ; number in listing file to three digits INC_DEPTH=0 INCLUDE "i36b_II.i.asm"
movi r1 _init # prepare to jump to _init jalr r0 r1 # jump there .space 4092 # 4092 + 3 = 4095 -- space for kernel? _init: sw r0 r0 0 sw r0 r0 1 sw r0 r0 2 # clear trampoline (movi is 2 instr + jalr) movi r29 1048575 # initialize ...
/* * This file is part of hipSYCL, a SYCL implementation based on CUDA/HIP * * Copyright (c) 2019 Aksel Alpay * 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 sou...
; A315188: Coordination sequence Gal.6.265.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. ; Submitted by Christian Krause ; 1,6,10,14,18,24,30,36,40,44,48,54,60,64,68,72,78,84,90,94,98,102,108,114,118,122,126,132,138,144,148,152,156...
;************************************************************************ ;** An Assembly File Listing to generate a 16K ROM for the ZX Spectrum ** ;************************************************************************ ; ------------------------- ; Last updated: 13-DEC-2004 ; ------------------------- ; TASM cross...
_TEXT SEGMENT pushaq MACRO push r15 push r14 push r13 push r12 push r11 push r10 push r9 push r8 push rdi push rsi push rbx push rdx push rcx push rax ENDM popaq MACRO pop rax pop rcx pop rdx pop rbx pop rsi pop rdi pop r8 pop r9 pop r10 pop r11 pop r12 pop r13 pop r14 pop r15 ENDM EXTERN...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <exception> #include <iomanip> #include <gflags/gflags.h> #include <glog/logging.h> #include "flashlight/app/imgcl...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r14 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0x1080e, %rsi lea addresses_WC_ht+0x5d34, %rdi clflush (%rdi) nop nop add %rbx, %rbx mov $71, %rcx rep movsq nop nop dec %r10 lea addresses_WC_ht+0xe730, %rdi nop nop sub $27413, %r9 mov ...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r9 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0xcdac, %rsi lea addresses_WC_ht+0xc0ac, %rdi and %r9, %r9 mov $72, %rcx rep movsl nop and $6900, %rdx lea addresses_WC_ht+0x136dc, %r12 clflush (%r12) nop nop nop nop nop inc %rdx mov $...
; A195035: Multiples of 15 and of 8 interleaved: a(2n-1) = 15n, a(2n) = 8n. ; 15,8,30,16,45,24,60,32,75,40,90,48,105,56,120,64,135,72,150,80,165,88,180,96,195,104,210,112,225,120,240,128,255,136,270,144,285,152,300,160,315,168,330,176,345,184,360,192,375,200,390,208,405,216,420,224,435,232,450,240,465,248,480,256,495,2...
public _lanternFlicker public _lanternList include "defs.inc" section CODE_2 ; ; On entry: ; hl - Pointer to lantern table ; _lanternFlicker: ld a, (hl) ; Number of lanterns or a ret z ...
%ifdef CONFIG { "RegData": { "XMM0": ["0x1111111111111111", "0x2222222222222222"], "XMM1": ["0x1111111111111111", "0x2222222222222222"], "XMM2": ["0x0101010101010101", "0x0202020202020202"] }, "MemoryRegions": { "0x100000000": "4096" } } %endif mov rdx, 0xe0000000 mov rax, 0x1010101010101010 m...
; A279318: Permutation of the nonnegative integers [6k+3, 6k+2, 6k+1, 6k, 6k+5, 6k+4]. ; 3,2,1,0,5,4,9,8,7,6,11,10,15,14,13,12,17,16,21,20,19,18,23,22,27,26,25,24,29,28,33,32,31,30,35,34,39,38,37,36,41,40,45,44,43,42,47,46,51,50,49,48,53,52,57,56,55,54,59,58,63,62,61,60,65,64,69 mov $2,$0 gcd $0,2 mov $3,$0 trn $0,2 a...
//========================================================================= // Copyright (C) 2018 The C++ Component Model(CCM) Open Source Project // // 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 Lic...
#pragma once #include <cerrno> #include <cstdint> #include <cstdio> #include <function2/function2.hpp> #include <functional> #include <memory> #include <sdeventplus/event.hpp> #include <sdeventplus/internal/utils.hpp> #include <sdeventplus/types.hpp> #include <stdplus/handle/copyable.hpp> #include <systemd/sd-bus.h> #...
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* * Main authors: * Guido Tack <tack@gecode.org> * * Copyright: * Guido Tack, 2011 * * Last modified: * $Date: 2016-06-17 15:43:08 +0200 (Fri, 17 Jun 2016) $ by $Author: schulte $ * $Revision: 15116 $ * * This file is part...
/*------------------------------------------------------------------------*/ /* Copyright 2010 Sandia Corporation. */ /* Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive */ /* license for use of this work by or on behalf of the U.S. Government. */ /* Export o...
copyright zengfr site:http://github.com/zengfr/romhack 003DE4 move.b (A1)+, ($17,A0) [enemy+5F] copyright zengfr site:http://github.com/zengfr/romhack
song1_header: .byte $04 ;4 streams .byte MUSIC_SQ1 ;which stream .byte $01 ;status byte (stream enabled) .byte SQUARE_1 ;which channel .byte $70 ;initial duty (01) .byte ve_tgl_1 ;volume envelope .word song1_square1 ;pointer to stream .byt...
/*;******************** (C) COPYRIGHT 2009 STMicroelectronics ******************** ;* File Name : cr4_fft_64_stm32.s ;* Author : MCD Application Team ;* Version : V2.0.0 ;* Date : 04/27/2009 ;* Description : Optimized 64-point radix-4 complex FFT for Cortex-M3 ;****...
; ----------------------------------------------------------------- ; os_modify_int_handler -- Change location of interrupt handler ; IN: CL = int number, DI:SI = handler location os_modify_int_handler: pusha cli push es mov es, [driversgmt] movzx bx, cl ; Move supplied int into BX shl bx, 2 ; Multipl...
; A013769: a(n) = 21^(3*n + 2). ; Submitted by Jon Maiga ; 441,4084101,37822859361,350277500542221,3243919932521508681,30041942495081691894741,278218429446951548637196401,2576580875108218291929075869661,23861715484377209601555171628930521,220983347100817338120002444455525554981,20465267775006693683293426381026221646790...
; A290661: Binary representation of the diagonal from the origin to the corner of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 899", based on the 5-celled von Neumann neighborhood. ; Submitted by Jamie Morken(s3) ; 1,11,101,1111,10111,111111,1011111,11111111,101111111,1111111111,1...