text
stringlengths
1
1.05M
#ifndef SRC_GRAPH_GRAPH_HPP_ #define SRC_GRAPH_GRAPH_HPP_ #include <flexcore/core/traits.hpp> #include <boost/functional/hash.hpp> #include <boost/uuid/uuid.hpp> #include <map> #include <set> #include <unordered_set> namespace fc { class parallel_region; /** * \brief Contains all classes and functions to access ...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1990 -- All Rights Reserved PROJECT: PC GEOS MODULE: Kernel -- High-level disk module routines FILE: diskHigh.asm AUTHOR: Adam de Boor, Feb 14, 1990 ROUTINES: Name Description ---- -----------...
// Copyright (c) 2013-2020 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <clientversion.h> #include <crypto/siphash.h> #include <hash.h> #include <test/util/setup_common.h> #include <util/s...
#include "ecs/component/MeshRenderer.h" #include "ecs/Registry.h" #include "assets/AssetService.h" #ifdef NC_EDITOR_ENABLED #include "ui/editor/Widgets.h" #endif namespace nc { MeshRenderer::MeshRenderer(Entity entity, std::string meshUid, Material material, TechniqueType techniqueType) : ComponentBase{entity...
// Copyright (c) 2020 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...
;=============================================================================== ; Copyright 2015-2020 Intel 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.apa...
#include "DataFormats/HeavyIonEvent/interface/CentralityBins.h" #include <iostream> using namespace std; int CentralityBins::getBin(double value) const { int bin = table_.size() - 1; for (unsigned int i = 0; i < table_.size(); ++i) { if (value >= table_[i].bin_edge) { bin = i; return bin; } }...
// push constant 3030 @3030 D=A @SP A=M M=D @SP M=M+1 // pop pointer 0 @SP M=M-1 // ==> regNum(pointer,0)=3 @SP A=M D=M @R3 M=D // push constant 3040 @3040 D=A @SP A=M M=D @SP M=M+1 // pop pointer 1 @SP M=M-1 // ==> regNum(pointer,1)=4 @SP A=M D=M @R4 M=D // push constant 32 @32 D=A @SP A=M M=D @SP M=M+1 // pop this ...
; A208950: a(4*n) = n*(16*n^2-1)/3, a(2*n+1) = n*(n+1)*(2*n+1)/6, a(4*n+2) = (4*n+1)*(4*n+2)*(4*n+3)/6. ; 0,0,1,1,5,5,35,14,42,30,165,55,143,91,455,140,340,204,969,285,665,385,1771,506,1150,650,2925,819,1827,1015,4495,1240,2728,1496,6545,1785,3885,2109,9139,2470,5330,2870,12341,3311,7095,3795,16215,4324,9212,4900,20825...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r13 push %r9 push %rcx push %rdi push %rsi lea addresses_A_ht+0x1a214, %rsi lea addresses_UC_ht+0xb1a4, %rdi clflush (%rsi) nop nop nop nop inc %r11 mov $60, %rcx rep movsq nop nop nop nop sub $39471, %r12 lea addresses_A_ht+0x1b624, %rsi lea addres...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r8 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x11c65, %r12 nop nop add %rax, %rax movups (%r12), %xmm4 vpextrq $0, %xmm4, %rdi nop nop nop nop add %r10, %r10 lea addresses_A_ht+0xf665, %r8 nop nop nop add $46462, %rsi mov...
_big: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "user.h" #include "fcntl.h" int main() { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 e4 f0 and $0xfffffff0,%esp 6: 57 push %edi 7: 56...
/* * PCG Random Number Generation for C++ * * Copyright 2014-2019 Melissa O'Neill <oneill@pcg-random.org>, * and the PCG Project contributors. * * SPDX-License-Identifier: (Apache-2.0 OR MIT) * * Licensed under the Apache License, Version 2.0 (provided in * LICENSE-APACHE.txt and at http://...
/* * Copyright (c) 2017, Intel Corporation * * 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, publi...
#include <iostream> #include "Log_test.hpp" #include "Log.hpp" #include "Test.hpp" #include "TestCases.hpp" #include "TestMacros.hpp" TEST_PROGRAM_MAIN(Log_test); //============================================================================== void Log_test::addTestCases() { ADD_TEST_CASE(GreenwichMeanTime); ...
; A047401: Numbers that are congruent to {0, 1, 3, 6} mod 8. ; 0,1,3,6,8,9,11,14,16,17,19,22,24,25,27,30,32,33,35,38,40,41,43,46,48,49,51,54,56,57,59,62,64,65,67,70,72,73,75,78,80,81,83,86,88,89,91,94,96,97,99,102,104,105,107,110,112,113,115,118,120,121,123 mov $1,$0 mul $0,8 add $1,11 mod $1,4 add $0,$1 sub $0,2 div ...
############################################################################### # Copyright 2018 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...
%ifdef CONFIG { "RegData": { "RAX": "0x41424344" }, "Mode": "32BIT" } %endif ; Tests for 32-bit signed displacement wrapping ; Testing for underflow specifically ; Will crash or hit the code we emit to memory ; We map ten pages to 0xe000'0000 ; Generate a mov eax + hlt over there first ; 0xb8'44'43'42'41: m...
/*************************************************************************** * Copyright 2013 CertiVox IOM Ltd. * * This file i...
; void *tshc_saddrcright(void *saddr) SECTION code_clib SECTION code_arch PUBLIC tshc_saddrcright EXTERN zx_saddrcright defc tshc_saddrcright = zx_saddrcright
; SCCSID = @(#)emsincos.asm 13.5 90/03/27 page ,132 subttl emsincos - fsin, fcos and fsincos ;*** ;emulator.asm - 80387 emulator ; ; IBM/Microsoft Confidential ; ; Copyright (c) IBM Corporation 1987, 1989 ; Copyright (c) Microsoft Corporation 1987, 1989 ; ; All Rights Reserved ; ;Purpose...
#ifndef _SESSION_DETECT_HH_ #define _SESSION_DETECT_HH_ #include "api/http/session/plain.hh" #include "api/http/session/secure.hh" #include <boost/logic/tribool.hpp> #include <ctype.h> namespace token { namespace api { namespace http { template < typename T > void hexdump( std::ostream &os, T begin...
// RUN: %clang_cc1 -std=c++11 -emit-llvm %s -o - -triple x86_64-w64-mingw32 | FileCheck %s extern thread_local int var; int get() { return var; } // CHECK: declare extern_weak void @_ZTH3var()
; int strcasecmp(const char *s1, const char *s2) SECTION code_clib SECTION code_string PUBLIC strcasecmp EXTERN asm_strcasecmp strcasecmp: pop bc pop hl pop de push de push hl push bc IF __CLASSIC && __CPU_GBZ80__ call asm_strcasecmp ld d,h ld e,l ret ELSE jp asm_strcasecmp EN...
; A176415: Periodic sequence: repeat 7,1. ; 7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1 mod $0,2 gcd $0,7
#include <migraphx/fwd_conv_batchnorm_rewrite.hpp> #include <migraphx/program.hpp> #include <migraphx/instruction.hpp> #include <migraphx/op/batch_norm.hpp> #include <migraphx/op/broadcast.hpp> #include <migraphx/op/add.hpp> #include <migraphx/iterator_for.hpp> #include <migraphx/ranges.hpp> #include <migraphx/dfor.hpp...
; char __fsgt_callee(float left, float right) SECTION code_fp_math48 PUBLIC cm48_sdccixp_dsgt_callee EXTERN cm48_sdccixp_dcallee2, am48_dgt cm48_sdccixp_dsgt_callee: ; (left > right) ; ; enter : sdcc_float right, sdcc_float left, ret ; ; exit : HL = 0 and carry reset if false ; HL = 1 a...
/*============================================================================== ofxVisualProgramming: A visual programming patching environment for OF Copyright (c) 2018 Emanuele Mazza aka n3m3da <emanuelemazza@d3cod3.org> ofxVisualProgramming is distributed under the MIT License. This gives everyon...
[bits 64] [extern _Z5patchPcm] [global memset_fast1] [global memcpy_fast1] [global memset_fast2] [global memcpy_fast2] [global init_fast_mem] memset_fast1: mov r9, rdi mov al, sil mov rcx, rdx rep stosb mov rax, r9 ret memcpy_fast1: mov rax, rdi mov rcx, rdx rep movsb ret memcpy_fast2: mov rax, rdi mov r...
; A239794: 5*n^2 + 4*n - 15. ; -6,13,42,81,130,189,258,337,426,525,634,753,882,1021,1170,1329,1498,1677,1866,2065,2274,2493,2722,2961,3210,3469,3738,4017,4306,4605,4914,5233,5562,5901,6250,6609,6978,7357,7746,8145,8554,8973,9402,9841,10290,10749,11218,11697,12186,12685,13194,13713,14242,14781,15330,15889,16458,17037,17...
; A257934: Expansion of 1/(1-x-x^2-x^3-x^4+x^5+x^6+x^7). ; 1,1,2,4,8,14,26,48,89,163,300,552,1016,1868,3436,6320,11625,21381,39326,72332,133040,244698,450070,827808,1522577,2800455,5150840,9473872,17425168,32049880,58948920,108423968,199422769,366795657,674642394,1240860820,2282298872,4197802086,7720961778 sub $0,1 ca...
/* * ModSecurity, http://www.modsecurity.org/ * Copyright (c) 2015 - 2021 Trustwave Holdings, Inc. (http://www.trustwave.com/) * * 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 * * If any of the fil...
; Switching from real mode to protected mode %include "src/boot/gdt.asm" [bits 16] ; real mode switch_to_pm: cli ; 1. disable interrupts lgdt [GDT_descriptor] ; 2. load the GDT descriptor mov eax, cr0 or eax, 0x1 ; 3. set 32-bit mode bit in cr0 m...
_ln: 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 ...
// Copyright 2020 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 "third_party/blink/renderer/core/frame/overlay_interstitial_ad_detector.h" #include "third_party/blink/public/common/features.h" #include "third...
// Copyright (c) 2015 Daniel Bourgeois // // Distributed under 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) #include <hpx/hpx_init.hpp> #include <hpx/hpx.hpp> #include <hpx/include/parallel_remove_copy.hpp> #include <hpx/util/lig...
; ; Copyright (c) 2010 The VP8 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 in the root of the source ; tree. An additional intellectual property rights grant can be found ; in the file PATENTS. All contributing projec...
; A005894: Centered tetrahedral numbers. ; 1,5,15,35,69,121,195,295,425,589,791,1035,1325,1665,2059,2511,3025,3605,4255,4979,5781,6665,7635,8695,9849,11101,12455,13915,15485,17169,18971,20895,22945,25125,27439,29891,32485,35225,38115,41159,44361,47725,51255,54955,58829,62881,67115,71535,76145,80949,85951,91155,96565,10...
; ; MC6847 All ASCII CHAR List ; for SBC6800+SBC Adapter ; CPU 6800 TARGET: equ "MC6800" org $0100 ; VRAM_TOP EQU $C000 VRAM_END EQU $C200 SPC EQU $20 ; VDG_MODE EQU %00000000 VDG_CTL_AD EQU $8110 ; MAIN: JSR VDG_INIT ...
.MODEL SMALL .STACK 100H .DATA NUM1 DB ? NUM2 DB ? RESULT DB ? MSG1 DB 10,13,"ENTER FIRST NUMBER TO MULTIPLY : $" MSG2 DB 10,13,"ENTER SECOND NUMBER TO MULTIPLY : $" MSG3 DB 10,13,"RESULT OF MULTIPLICATION IS : $" .CODE MAIN PROC ASSUME DS:DATA CS:CODE MOV AX,DATA MOV DS,AX LEA DX,MSG1 MOV AH,9 INT 21H MOV AH,1 INT 2...
// Module name: AVS .kernel PL3_TO_PL3 .code #include "VP_Setup.g4a" #include "Set_Layer_0.g4a" #include "Set_AVS_Buf_0123_PL3.g4a" #include "PL3_AVS_Buf_0.g4a" #include "PL3_AVS_Buf_1.g4a" #include "PL3_AVS_Buf_2.g4a" #include "PL3_AVS_Buf_3.g4a" #include "Save_AVS_PL3.g4a" #include "EOT.g4a" .end_code .e...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #include "pch.h" #include "TestCommon.h" #include "TestRestRequestHandler.h" #include <Rest/RestClient.h> #include <Rest/Schema/IRestClient.h> #include <AppInstallerVersions.h> #include <set> #include <AppInstallerErrors.h> using nam...
; int zx_setint(char *variable, int value) ; CALLER linkage for function pointers SECTION code_clib PUBLIC zx_setint PUBLIC _zx_setint EXTERN asm_zx_setint .zx_setint ._zx_setint pop bc pop de pop hl push hl push de push bc jp asm_zx_setint
; A158373: 625n^2 - 2n. ; 623,2496,5619,9992,15615,22488,30611,39984,50607,62480,75603,89976,105599,122472,140595,159968,180591,202464,225587,249960,275583,302456,330579,359952,390575,422448,455571,489944,525567,562440,600563,639936,680559,722432,765555,809928,855551,902424,950547,999920,1050543,1102416,1155539,1209912...
.include "defaults_item.asm" table_file_jp equ "exe5-utf8.tbl" table_file_en equ "bn5-utf8.tbl" game_code_len equ 3 game_code equ 0x4252424A // BRBJ game_code_2 equ 0x42524245 // BRBE game_code_3 equ 0x42524250 // BRBP card_type equ 0 card_id equ 12 card_no equ "012" card_sub equ "Item Card 012" card_sub_...
/** * @copyright (c) 2015-2021 Ing. Buero Rothfuss * Riedlinger Str. 8 * 70327 Stuttgart * Germany * http://www.rothfuss-web.de * * @author <a href="mailto:armin@rothfuss-web.de">Armin Rothfuss</a> * * Projec...
; A134393: Row sums of triangle A134392. ; 1,3,8,20,45,91,168,288,465,715,1056,1508,2093,2835,3760,4896,6273,7923,9880,12180,14861,17963,21528,25600,30225,35451,41328,47908,55245,63395,72416,82368,93313,105315,118440,132756,148333,165243,183560,203360,224721,247723,272448,298980,327405,357811,390288,424928,461825,50107...
; A272756: a(n) is the least k such that k > A070939(n * k). ; 3,5,5,6,6,7,7,7,7,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,...
; Listing generated by Microsoft (R) Optimizing Compiler Version 17.00.50727.1 include listing.inc INCLUDELIB LIBCMT INCLUDELIB OLDNAMES PUBLIC ?svga_dev@@3U_svga_drive_@@A ; svga_dev _BSS SEGMENT ?svga_dev@@3U_svga_drive_@@A DB 0100060H DUP (?) ; svga_dev _BSS ENDS CONST SEGMENT $SG5799 DB 'No VMware SVGA device...
; A239140: Number of strict partitions of n having standard deviation σ < 1. ; 1,1,2,1,2,2,2,1,3,1,2,2,2,1,3,1,2,2,2,1,3,1,2,2,2,1,3,1,2,2,2,1,3,1,2,2,2,1,3,1,2,2,2,1,3,1,2,2,2,1,3,1,2,2,2,1,3,1,2,2,2,1,3,1,2,2,2,1,3,1,2,2,2,1,3,1,2,2,2,1,3,1,2,2,2,1 mov $2,$0 lpb $0 lpb $2 div $0,2 add $1,1 mod $2,2 ...
#include <v8.h> #include "../v8Object.h" #include "../../src/opengl/love_opengl.h" #include "../../src/opengl/image.h" #include "../../src/opengl/color.h" #include "../../src/opengl/font.h" #include "../../src/opengl/animation.h" using namespace love_opengl; // extern // forward declaractions v8::Handle...
;------------------------------------------------------------------------------ ; ; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR> ; SPDX-License-Identifier: BSD-2-Clause-Patent ; ; Module Name: ; ; CopyMem.nasm ; ; Abstract: ; ; CopyMem function ; ; Notes: ; ;-----------------------...
;; xOS32 ;; Copyright (C) 2016-2017 by Omar Mohammad. use32 ; ; struct task { ; u16 state; // 00 ; u16 parent; // 02 ; u32 eip; // 04 ; u32 esp; // 08 ; u32 eflags; // 0C ; u32 pmem_base; // 10 ; u32 mem_size; // 14 ; u32 reserved1; // 18 ; u32 reserved2; // 1C ; u8 filename[32]; // 20 ; u8 path[120]; // 40 ;...
; A005369: a(n) = 1 if n is of the form m(m+1), else 0. ; 1,0,1,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0 lpb $0 sub $2,2 add $0,$2 lpe bin $1,$0 mov $0,$1
song395restored_pri equ 100 song395restored_rev equ 0 song395restored_mvl equ 127 song395restored_key equ 0 song395restored_tbs equ 1 song395restored_exg equ 0 song395restored_cmp equ 1 .align 4 ;**************** Track 1 (Midi-Chn.7) ****************; @song395restored_1: .byte TEMPO , 66 .byte KEYSH , so...
; A135668: a(n) = ceiling(n + sqrt(n)). ; 2,4,5,6,8,9,10,11,12,14,15,16,17,18,19,20,22,23,24,25,26,27,28,29,30,32,33,34,35,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,92,93,94,95,96,97,98,99,100,101,102,103,1...
; Modified by Yao Wei Tjong for Urho3D .code ; procedure exec_cpuid ; Signature: void exec_cpuid(uint32_t *regs) exec_cpuid Proc push rbx push rcx push rdx push rdi mov rdi, rcx mov eax, [rdi] mov ebx, [rdi+4] mov ecx, [rdi+8] mov edx, [rdi+12] cpuid mov [rdi], eax mov [rdi+4],...
; A047225: Numbers that are congruent to {0, 1} mod 6. ; 0,1,6,7,12,13,18,19,24,25,30,31,36,37,42,43,48,49,54,55,60,61,66,67,72,73,78,79,84,85,90,91,96,97,102,103,108,109,114,115,120,121,126,127,132,133,138,139,144,145,150 mov $1,$0 div $0,2 mul $0,4 add $1,$0
; A195026: a(n) = 7*n*(2*n + 1). ; 0,21,70,147,252,385,546,735,952,1197,1470,1771,2100,2457,2842,3255,3696,4165,4662,5187,5740,6321,6930,7567,8232,8925,9646,10395,11172,11977,12810,13671,14560,15477,16422,17395,18396,19425,20482,21567,22680,23821,24990,26187,27412,28665,29946,31255,32592,33957,35350,36771,38220,39697,4...
// Copyright 2016 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 <device/bluetooth/bluez/bluetooth_local_gatt_service_bluez.h> #include "base/guid.h" #include "base/logging.h" #include "base/memory/ptr_util.h"...
; A234571: a(n) = 4*binomial(10*n+8,n)/(5*n+4). ; Submitted by Christian Krause ; 1,8,108,1776,32430,632016,12876864,270964320,5843355957,128462407840,2868356980060,64869895026144,1482877843096650,34207542810153216,795318309360948240,18617396126132233920,438423206616057162258,10379232525028947311160,2468786599841952229...
xor %ecx,%ecx mov %fs:0x30(%ecx),%eax mov 0xc(%eax),%eax mov 0x14(%eax),%esi lods %ds:(%esi),%eax xchg %eax,%esi lods %ds:(%esi),%eax mov 0x10(%eax),%ebx mov 0x3c(%ebx),%edx add %ebx,%edx mov 0x78(%edx),%edx add %ebx,%edx mov 0x20(%edx),%esi add %ebx,%esi xor %ecx,%ecx inc %...
/* +------------------------------------------------------------------------+ | Mobile Robot Programming Toolkit (MRPT) | | https://www.mrpt.org/ | | | | Cop...
; TODO INSERT CONFIG CODE HERE USING CONFIG BITS GENERATOR #include "p16f15313.inc" ; CONFIG1 ; __config 0xFF8F __CONFIG _CONFIG1, _FEXTOSC_ECH & _RSTOSC_HFINT32 & _CLKOUTEN_OFF & _CSWEN_ON & _FCMEN_ON ; CONFIG2 ; __config 0xF7FE __CONFIG _CONFIG2, _MCLRE_OFF & _PWRTE_OFF & _LPBOREN_OFF & _BOREN_ON & _BO...
; ; Z88 Graphics Functions - Small C+ stubs ; ; Written around the Interlogic Standard Library ; ; Stubs Written by D Morris - 30/9/98 ; ; ; $Id: clg.asm,v 1.4 2015/01/19 01:32:46 pauloscustodio Exp $ ; PUBLIC clg EXTERN swapgfxbk EXTERN swapgfxbk1 ...
/*############################################################################## HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems. 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 ...
; A132728: Triangle T(n, k) = 4 - 3*(-1)^k, read by rows. ; 1,1,7,1,7,1,1,7,1,7,1,7,1,7,1,1,7,1,7,1,7,1,7,1,7,1,7,1,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1 mov $4,2 mov $6,$0 lpb $4,1 mov $0,$6 sub $4,1 add $0,$4 sub $0,1 mov $3,$0 add $0,38 mov $2,$4 mul $3,$0 add...
############################################################################### # 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...
global setupPageTables, enablePaging, stackTop section .text bits 32 setupPageTables: mov eax, pageTableL3 or eax, 0b11 ; writeable entries mov [pageTableL4], eax ; move flags to first entry in L4 mov eax, pageTableL2 or eax, 0b11 mov [pageTableL3], eax mov ecx, 0 ; counter .loop: mov eax, 0x200000 ; map 2MB ...
; A076824: Let a(1)=a(2)=1, a(n)=(2^ceiling(a(n-1)/2)+1)/a(n-2). ; 1,1,3,5,3,1,1,3,5,3,1,1,3,5,3,1,1,3,5,3,1,1,3,5,3,1,1,3,5,3,1,1,3,5,3,1,1,3,5,3,1,1,3,5,3,1,1,3,5,3,1,1,3,5,3,1,1,3,5,3,1,1,3,5,3,1,1,3,5,3,1,1,3,5,3,1,1,3,5,3,1,1,3,5,3,1,1,3,5,3,1,1,3,5,3,1,1,3,5,3,1,1,3,5,3 bin $0,2 pow $0,3 mod $0,5 mov $1,$0 mul $...
// // Copyright 2010-2011 Ettus Research LLC // // 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, either version 3 of the License, or // (at your option) any later version. // // This p...
############################################################################### # 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...
SECTION "Map_0566", ROM0[$B800] Map_0566_Header: hdr_tileset 5 hdr_dimensions 6, 6 hdr_pointers_a Map_0566_Blocks, Map_0566_TextPointers hdr_pointers_b Map_0566_Script, Map_0566_Objects hdr_pointers_c Map_0566_InitScript, Map_0566_RAMScript hdr_palette $00 ...
%ifdef CONFIG { "RegData": { "RAX": "0x4142434441424748", "RBX": "0x5152535441424340", "RCX": "0x0000000061626360", "RDX": "0x6162636465666700" }, "MemoryRegions": { "0x100000000": "4096" } } %endif mov rdx, 0xe0000000 mov rax, 0x4142434445464748 mov [rdx + 8 * 0], rax mov rax, 0x515253545...
; A275788: a(0) = 0, a(n+1) = 2*a(n) + (-1)^floor(n/3). ; 0,1,3,7,13,25,49,99,199,399,797,1593,3185,6371,12743,25487,50973,101945,203889,407779,815559,1631119,3262237,6524473,13048945,26097891,52195783,104391567,208783133,417566265,835132529,1670265059,3340530119,6681060239,13362120477,26724240953,53448481905,106896963...
; A142314: Primes congruent to 4 mod 45. ; Submitted by Jon Maiga ; 139,229,409,499,769,859,1039,1129,1399,1489,1579,1669,1759,2029,2389,2659,2749,3019,3109,3469,3559,3739,3919,4099,4549,4639,4729,4909,4999,5179,5449,6079,6529,6619,6709,7069,7159,7699,7789,7879,8059,8329,8419,8599,8689,8779,9049,9319,9679,9769,9859,994...
; void *z80_otdr(void *src, uint8_t port, uint8_t num) SECTION code_clib SECTION code_z80 PUBLIC z80_otdr EXTERN asm_z80_otdr z80_otdr: pop af pop de pop bc pop hl push hl push bc push de push af ld b,e jp asm_z80_otdr
internal void LoadGameAssets(platform_api *Platform, game_state *GameState, memory_arena *Arena) { read_file_result AssetFile = Platform->ReadFile("assets/data.fasset"); asset_header *AssetHeader = (asset_header *)AssetFile.Contents; Assert(AssetHeader->MagicValue == 0x451); GameState->FontAssetCount...
; ; File: bm/main.asm ; ; Main file of Boot manager. ; ; Video modes: ; ============ ; ; VirtualBox: ; =============== ; Oracle VirtualBox: 0x0112 640x480x24bpp ; Oracle VirtualBox: 0x0115 800x600x24BPP ; Oracle VirtualBox: 0x0118 1024x768x24BPP ; ; ; Nvidia GeForce: ; ================= ; GeForce_8400_GS eq...
; A005389: Number of Hamiltonian circuits on 2n times 4 rectangle. ; Submitted by Jon Maiga ; 1,6,37,236,1517,9770,62953,405688,2614457,16849006,108584525,699780452,4509783909,29063617746,187302518353,1207084188912,7779138543857,50133202843990,323086934794997,2082156365731164,13418602439355485,86477122654688250,5573078...
; This table translates key presses into ascii codes. ; Also used by 'GetKey' and 'LookupKey'. An effort has been made for ; this key translation table to emulate a PC keyboard with the 'CTRL' key SECTION rodata_clib PUBLIC in_keytranstbl .in_keytranstbl ; Bit 7 is always unused, so skip it: 84 bytes per table ;Un...
; A001752: Expansion of 1/((1+x)*(1-x)^5). ; 1,4,11,24,46,80,130,200,295,420,581,784,1036,1344,1716,2160,2685,3300,4015,4840,5786,6864,8086,9464,11011,12740,14665,16800,19160,21760,24616,27744,31161,34884,38931,43320,48070,53200,58730,64680,71071,77924,85261,93104,101476,110400,119900,130000,140725,152100,164151,176904...
#if VERBOSE = 1 LASTINIT SET . #endif ; this is at $801 ; and it MUST be exactly at this location in order to autostart ; 10 SYS2060 ($80c) BASIC autostart BYTE #$0b,#$08,#$0a,#$00,#$9e,#$32,#$30,#$36,#$31,#$00,#$00,#$00 ; this is at (2061 dec)=($80d) ; and it MUST be exactly after the above BASI...
TITLE WINSTUB - Assembly stub program for Winword ; ; This guy just boots excel by inserting the word "winword" in front of the ; command line and starting up windows ; StackSize equ 1024 .xlist include cmacros.inc .list sBegin CODE assumes CS,CODE assumes DS,CODE assumes SS,CODE ;==============================...
; A040272: Continued fraction for sqrt(290). ; Submitted by Christian Krause ; 17,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34 min $0,1 add $0,1 mul $0,17
/* * Copyright 2010-2016 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...
l2_initialise: nextreg LAYER2_RAM_PAGE_REGISTER, LAYER2_SCREEN_BANK1 nextreg LAYER2_RAM_SHADOW_REGISTER, LAYER2_SHADOW_BANK1 nextreg TRANSPARENCY_COLOUR_REGISTER, COLOUR_TRANSPARENT ret
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r15 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_UC_ht+0x1b1e1, %rsi lea addresses_D_ht+0x11d61, %rdi nop nop nop cmp %rax, %rax mov $78, %rcx rep movsb nop add $34923, %rbp lea addresses_WC_ht+0x4941, %rsi lea addresses_D_ht+0xeed1, %rdi n...
bits 64 section .text global _start _start: jmp jmp_call64 call_back64: pop rsi mov rax, 59 mov rdi, rsi ; *filename mov rsi, 0 ; *argv mov rdx, 0 ; *envp syscall ; exit xor rdi,rdi ; zero rdi (rdi hold return value) mov rax, 0x3c ; set syscall n...
; A061483: Numerator of 1 + 1/2 + 2/3 + 3/4 + ... + (n-1)/n. ; Submitted by Jon Maiga ; 1,1,3,13,35,223,91,757,1759,18071,20339,248929,274339,3899047,4233667,4570003,9815681,178398097,63323219,1276654601,270074449,94951643,99889667,2411272037,7575891845,197964062333,206544557333 mov $1,1 lpb $0 mov $2,$0 mul $2,2 ...
INCLUDE "clib_cfg.asm" SECTION code_clib SECTION code_stdio PUBLIC __stdio_input_sm_gets __stdio_input_sm_gets: ; GETS STATE MACHINE ; ; Qualify function for STDIO_MSG_EATC ; ; Write all chars up to but not including '\n' ; to the buffer. '\n' is rejected to cause ; immediate return to the c...
/* -------------------------------------------------------------------------- */ /* Copyright 2002-2020, OpenNebula Project, OpenNebula Systems */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); you may ...
; A123168: Continued fraction for c = sqrt(2)*(exp(sqrt(2))-1)/(exp(sqrt(2))+1). ; 0,1,6,5,14,9,22,13,30,17,38,21,46,25,54,29,62,33,70,37,78,41,86,45,94,49,102,53,110,57,118,61,126,65,134,69,142,73,150,77,158,81,166,85,174,89,182,93,190,97,198,101,206,105,214,109,222,113,230,117,238,121,246,125,254,129,262,133,270,137,...
/* * $Id: KX_ScalarInterpolator.cpp 35171 2011-02-25 13:35:59Z jesterking $ * ***** BEGIN GPL LICENSE BLOCK ***** * * 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; either version 2 * of t...
SaffronPidgeyHouse_Object: db $a ; border block def_warps warp 2, 7, 3, LAST_MAP warp 3, 7, 3, LAST_MAP def_signs def_objects object SPRITE_BRUNETTE_GIRL, 2, 3, STAY, RIGHT, 1 ; person object SPRITE_BIRD, 0, 4, WALK, UP_DOWN, 2 ; person object SPRITE_YOUNGSTER, 4, 1, STAY, DOWN, 3 ; person object SPRIT...
SECTION code_fp_dai32 PUBLIC ___dai32_setup_comparison EXTERN ___dai32_fpac EXTERN ___dai32_tempval EXTERN ___dai32_fpcomp ; Put the two arguments into the required places ; ; This is for comparison routines, where we need to use ; double precision values (so pad them out) ; ; Entry: dehl = right hand ...
bits 64 global __asm_fill_zero __asm_fill_zero: push rdi xor rax, rax shr rcx, 3 mov rdi, rdx rep stosq pop rdi ret
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2007 INRIA * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed...
;-------------------------------------------------------------------------------------------- ;7. Faça um programa que inverta um frase. O programa deve tomar como entrada uma ;“string” contendo um frase e deve exibir a frase invertida. Por exemplo, para a entrada ;“ Isto é uma frase de teste ” deve ser exibida a saíd...
#include "J.h" int main() { J j; j.solve(); return 0; }