text
stringlengths
1
1.05M
bits 32 %define WRK ebp ; // alias for unit workspace %define VAL esi ; // alias for unit values (transformed/untransformed) %define COM ebx ; // alias for instrument opcodes %include "4klang.inc" ;// conditional defines %ifdef GO4K_USE_VCO_SHAPE %define INCLUDE_WAVESHAPER %endif %ifdef GO4K_USE_DST %def...
; A113630: 1 + 2*n + 3*n^2 + 4*n^3 + 5*n^4 + 6*n^5 + 7*n^6 + 8*n^7 + 9*n^8. ; 1,45,4097,83653,757305,4272461,17736745,59409477,169826513,429794605,987654321,2098573445,4178995657,7879732173,14181546905,24517448581,40926266145,66242446637,104327377633,160347899205,241108033241,355440320845,514663521417,733113789893,1028...
// 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 "base/android/jni_android.h" #include "chrome/android/native_j_unittests_jni_headers/TabPersistentStoreUnitTest_jni.h" #include "testing/gtest/in...
/* ********************************************************************************************************* * uC/Probe Communication * * (c) Copyright 2007; Micrium, Inc.; Weston, FL * * All rights reserved. Protected by international copyri...
; OAM flags used by this game OAMFLAG_ENDOFDATA EQU %00000001 ; pseudo OAM flag, only used by game logic OAMFLAG_CANBEMASKED EQU %00000010 ; pseudo OAM flag, only used by game logic OAMFLAG_VFLIPPED EQU %00100000 ; OAM flag flips the sprite vertically. ; Used for making left facing sprites face right and to altern...
; esp.asm ; Copyright 2019-2020 Robin Verhagen-Guest ; ; 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...
#pragma once #include "global_state.hxx" #include "game_info.hxx" class engine { public: static auto initialize(const game_info&, int argc, const char** argv) -> void; static auto game_information() -> const game_info&; private: static game_info m_GameInfo; };
; A087811: Numbers n such that ceiling(sqrt(n)) divides n. ; 1,2,4,6,9,12,16,20,25,30,36,42,49,56,64,72,81,90,100,110,121,132,144,156,169,182,196,210,225,240,256,272,289,306,324,342,361,380,400,420,441,462,484,506,529,552,576,600,625,650,676,702,729,756,784,812,841,870,900,930,961,992,1024,1056,1089,1122,1156,1190,1225...
; -------------------------------------- ; Test OUT to the serial monitor. ; -------------------------------------- org 0 jmp Start ; Jump to Start to bypass declarations...
LXI H,20F0 MOV D,M MVI B,00 MVI C,01 MVI A,00 INX H REPEAT: MOV M,A MOV B,C MOV C,A MVI A,00 ADD B ADD C INX H DCR D JNZ REPEAT RST 1
; A137483: a(n+1) = 9*a(n) - 6, a(0) = 2. ; Submitted by Christian Krause ; 2,12,102,912,8202,73812,664302,5978712,53808402,484275612,4358480502,39226324512,353036920602,3177332285412,28595990568702,257363915118312,2316275236064802,20846477124583212,187618294121248902,1688564647091240112,15197081823821161002,1367737364...
; A121671: Real part of (1 + n*i)^5. ; 1,-4,41,316,1121,2876,6121,11516,19841,31996,49001,71996,102241,141116,190121,250876,325121,414716,521641,647996,796001,967996,1166441,1393916,1653121,1946876,2278121,2649916,3065441,3527996,4041001,4607996,5232641,5918716,6670121,7490876,8385121,9357116,10411241,11551996,12784001...
; A240277: Minimal number of people such that exactly n days are required to spread gossip. ; 1,2,4,3,5,9,17,33,65,129,257,513,1025,2049,4097,8193,16385,32769,65537,131073,262145,524289,1048577,2097153,4194305,8388609,16777217,33554433,67108865,134217729,268435457,536870913,1073741825,2147483649,4294967297 mov $1,1 mo...
// Copyright (c) 2019-2020 The Mantle Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <amount.h> #include <arith_uint256.h> #include <compressor.h> #include <consensus/merkle.h> #include <core_io.h> #inc...
; A052591: E.g.f. x/((1-x)(1-x^2)). ; 0,1,2,12,48,360,2160,20160,161280,1814400,18144000,239500800,2874009600,43589145600,610248038400,10461394944000,167382319104000,3201186852864000 gcd $1,$0 mov $2,1 add $2,$0 div $2,2 cal $1,142 mul $1,$2
; A286986: Number of connected dominating sets in the n-antiprism graph. ; 3,15,54,175,543,1642,4875,14271,41310,118487,337263,953810,2682579,7508655,20929158,58121407,160877055,443993146,1222110555,3355879647,9195143598,25144855655,68635721679,187035899810,508896450723,1382653280847,3751638404310 mov $1,$0 mul $1,2 m...
;========================================= ; ; " ORION-PRO " ; Расширенные функции ; V0.06 12.02.95 ; V2.10 18.04.00 ;========================================= ; ============================================== ; Блок внешней загрузки CM/M для режима Орион-128 ; ================================...
*PROCESS DUPALIAS * * Compiled by DCC Version 2.25.07 Mar 6 2021 08:51:07 * on Fri Apr 30 15:36:18 2021 * WXTRN @@ZARCH# * * * * Code Section * @CODE ALIAS C'@RDLOG' @CODE CSECT @CODE AMODE ANY @CODE RMODE ANY @DATA ALIAS C'@rdlog' __stdoutp ALIAS C'@@STDOUP' __stdoutp DXD 0F f...
; A243561: Number of simple connected graphs with n nodes that are distance regular and have no subgraph isomorphic to diamond graph. ; 1,1,1,1,1,2,1,3,2,4 dif $0,2 trn $0,2 div $0,2 add $0,1
; $Id: bit_close.asm,v 1.3 2016-06-16 20:23:52 dom Exp $ ; ; VZ 200 - 1 bit sound functions ; ; void bit_close(); ; ; Stefano Bodrato - 31/03/2008 ; SECTION code_clib PUBLIC bit_close PUBLIC _bit_close .bit_close ._bit_close ret
INCL "../inc/1802.inc" INCL "../inc/i2c_io.inc" ORG $4000 ;------------------------------------------------------------------------ ;This library contains routines to implement the i2c protocol using two ;bits of a parallel port. The two bits should be connected to open- ;c...
; A048726: a(n) = Xmult(n,6), or 2*A048724(n). ; 0,6,12,10,24,30,20,18,48,54,60,58,40,46,36,34,96,102,108,106,120,126,116,114,80,86,92,90,72,78,68,66,192,198,204,202,216,222,212,210,240,246,252,250,232,238,228,226,160,166,172,170,184,190,180,178,144,150 seq $0,48724 ; Write n and 2n in binary and add them mod 2. mul $...
; A168491: a(n) = (-1)^n*Catalan(n). ; 1,-1,2,-5,14,-42,132,-429,1430,-4862,16796,-58786,208012,-742900,2674440,-9694845,35357670,-129644790,477638700,-1767263190,6564120420,-24466267020,91482563640,-343059613650,1289904147324,-4861946401452,18367353072152,-69533550916004,263747951750360,-1002242216651368,3814986502092...
COMMENT @---------------------------------------------------------------------- Copyright (c) GeoWorks 1990 -- All Rights Reserved PROJECT: PC GEOS MODULE: Bitmap Library FILE: rectTool.asm REVISION HISTORY: Name Date Description ---- ---- ----------- Jon 5/91 Initial Version DESCRIPTION: Th...
BITS 16 ORG 0x7c00 GLOBAL main main: mov ah, 0x06 mov al, 0 int 10h mov al, 0x06 in al, 61h or al, 00000011b out 61h, al xor ax, ax ; AX = 0 mov ds, ax ; DS = 0 mov bx, 0x7c00 cli ; Turn off interrupts for SS:SP update ...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r14 push %r8 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x13c1c, %rsi lea addresses_A_ht+0x1577c, %rdi nop nop nop nop lfence mov $69, %rcx rep movsq nop nop nop inc %r14 lea addresses_WC_ht+0x15a9c, %rdx nop nop nop nop nop xor $338...
/* Copyright 2019 The TensorFlow 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 a...
; ; ; ; This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. ; ; Copyright 2007-2019 Broadcom Inc. All rights reserved. ; ; This example is used for showing the serial to parallel EGPHY LEDs on ; BCM953446R. ; To enalbe serial to parallel ...
; Original address was $AE94 ; Pipe junction B2 .word $0000 ; Alternate level layout .word $0000 ; Alternate object layout .byte LEVEL1_SIZE_01 | LEVEL1_YSTART_0F0 .byte LEVEL2_BGPAL_04 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_D8 .byte LEVEL3_TILESET_03 | LEVEL3_VSCROLL_LOCKED .byte LEVEL4_BGBANK_INDEX(3) | LEVEL4_INIT...
.size 8000 .text@48 dec d jrnz l4c ret l4c: jp l1000 .text@100 jp lbegin .data@143 80 .text@150 lbegin: ld a, ff ldff(45), a ld b, 8d call lwaitly_b ld a, 50 ldff(41), a ld a, 02 ldff(ff), a ei ld a, b inc a inc a ldff(45), a ld c, 0f xor a, a ldff(0f), a ld b, 03 ld d, 02 .text@1000 l1000:...
Label -mem-manager-initialize DLabel $heap-start-ptr DataZ 4 DLabel $heap-after-ptr DataZ 4 DLabel $heap-first-free DataZ 4 ...
include uXmx86asm.inc option casemap:none ifndef __X64__ .686P .xmm .model flat, c else .X64P .xmm option win64:11 option stackbase:rsp endif option frame:auto .code align 16 uXm_has_AVX512_IFMA_VL proto VECCALL (byte) align 16 uXm_has_AVX512_IFMA_VL proc VECCALL (byte) m...
; =============================================================== ; Apr 2016 ; =============================================================== ; ; uint32_t ntohl(uint32_t) ; ; Change network byte order to host byte order. ; ; =============================================================== SECTION code_clib SECTION c...
reset: sei cld lda #$40 sta $4017 ldx #$FF txs inx stx $2000 stx $2001 stx $4010 stx addr stx addr+1 @wait1: bit $2002 bpl @wait1 @wait2: bit $2002 bpl @wait2 @wait3: bit $2002 bpl @wait3 ldx #0 @seeresetflg: inx cpx #8 beq @norm lda resetflag,x cmp...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %rbp push %rcx push %rdi push %rsi lea addresses_A_ht+0x643, %rsi lea addresses_A_ht+0x1b4c3, %rdi nop cmp %r11, %r11 mov $0, %rcx rep movsq nop nop nop nop and %rbp, %rbp pop %rsi pop %rdi pop %rcx pop %rbp pop %r11 ret .global s_faulty_load s_faulty_loa...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %rax push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0x1a13c, %rsi lea addresses_WC_ht+0xc6bc, %rdi nop nop and $63941, %rbp mov $112, %rcx rep movsb nop nop nop nop nop cmp %r10, %r10 lea addresses_A_ht+0x803c, %r10 nop nop...
; ; Sharp specific routines ; by Stefano Bodrato, Fall 2013 ; ; int set_psg(int reg, int val); ; ; Play a sound by PSG ; ; ; $Id: psg_init.asm,v 1.2 2015/01/19 01:33:04 pauloscustodio Exp $ ; PUBLIC psg_init psg_init: ld e,@01010101 xor a ; R0: Channel A frequency low bits call outpsg ld e,a ld d,12 psg_in...
; A022348: Fibonacci sequence beginning 0, 14. ; 0,14,14,28,42,70,112,182,294,476,770,1246,2016,3262,5278,8540,13818,22358,36176,58534,94710,153244,247954,401198,649152,1050350,1699502,2749852,4449354,7199206,11648560,18847766,30496326,49344092,79840418,129184510,209024928,338209438,547234366,885443804,1432678170,23181...
SECTION "timer_irq", ROM0[$50] jp timer_interrupt SECTION "Header", ROM0[$100] jp start ds $150 - @, 0 ; Header start: di ; Disable interrupts ; Enable timer interrupt ld hl, $FFFF ; Interrupt Enable register ld a, 4 ; 00100: Timer interrupt bit ld [hl], a ...
// Copyright (c) 2012-2014 The Bitcoin 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 "tinyformat.h" #include <string> /** * Name of client reported in the 'version' message. R...
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "ngraph/descriptor/tensor.hpp" #include "ngraph/node.hpp" #include "ngraph/runtime/host_tensor.hpp" using namespace ngraph; using namespace std; descriptor::Tensor::Tensor(const element::Type& element_type, ...
.text task_3: #_________________________________________________________________________ # Get familiar with RISC-V pseudoinstructions (mv, li, la, b, j, etc). # What instructions are used to replace them when a program is assembled?: # mv t0, t1 # li t0, 0x12345678 # li t0, 16 # b label # j label # la t0,...
; A275615: Decimal expansion of 22/111. ; 1,9,8,1,9,8,1,9,8,1,9,8,1,9,8,1,9,8,1,9,8,1,9,8,1,9,8,1,9,8,1,9,8,1,9,8,1,9,8,1,9,8,1,9,8,1,9,8,1,9,8,1,9,8,1,9,8,1,9,8,1,9,8,1,9,8,1,9,8,1,9,8,1,9,8,1,9,8,1,9,8,1,9,8,1,9,8,1,9,8,1,9,8,1,9,8,1,9,8,1,9,8 mod $0,3 mov $2,6 mov $4,2 mul $4,$0 lpb $0,1 trn $0,2 sub $2,$4 ad...
// // Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.16384 // // /// // // Input signature: // // Name Index Mask Register SysValue Format Used // -------------------- ----- ------ -------- -------- ------- ------ // POSITION 0 xyz 0 NONE float xyz // /...
// Copyright (c) 2020, The Monero Project, 2020 The Electroneum Project // Copyright (c) 2014-2019, The Monero Project // // 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. Redistributio...
segment .data fmt: db "%d",0 fmt2: dq "%d is prime",10,0 fmt3: dq "%d is not prime",10,0 segment .bss a: resq 1 b: resq 1 segment .text global main extern printf extern scanf main: push RBP mov rdi, fmt mov rsi, a mov rax ,0 call scanf mov rax,0 mov rbx,0 mov rcx,0 mov rdx,0 mov rcx,[a] cmp rcx,2 jz printprime cmp...
; A128132: A natural number transform, companion to A127701. ; Submitted by Christian Krause ; 1,-1,2,0,-1,3,0,0,-1,4,0,0,0,-1,5,0,0,0,0,-1,6,0,0,0,0,0,-1,7,0,0,0,0,0,0,-1,8,0,0,0,0,0,0,0,-1,9,0,0,0,0,0,0,0,0,-1,10,0,0,0,0,0,0,0,0,0,-1,11,0,0,0,0,0,0,0,0,0,0,-1,12 add $0,1 seq $0,131033 ; A130296 * A097806. sub $0,2
; uintmax_t strtoumax_callee(const char *nptr, char **endptr, int base) SECTION code_inttypes PUBLIC _strtoumax_callee EXTERN _strtoul_callee defc _strtoumax_callee = _strtoul_callee
#include "Geom.h" #include "Group.h" #include "Logging.h" namespace fake { Group::~Group() { } } // fake
; A295297: a(n) = (A000120(n) + A000203(n)) mod 2. ; 0,0,0,0,0,0,1,0,1,0,1,0,1,1,0,0,0,1,1,0,1,1,0,0,0,1,0,1,0,0,1,0,0,0,1,1,1,1,0,0,1,1,0,1,0,0,1,0,0,0,0,1,0,0,1,1,0,0,1,0,1,1,0,0,0,0,1,0,1,1,0,1,1,1,0,1,0,0,1,0,0,1,0,1,0,0,1,1,0,0,1,0,1,1,0,0,1,0,0,0 mov $2,$0 seq $0,48881 ; a(n) = A000120(n+1) - 1 = wt(n+1) - 1. se...
; A177075: n^5 - n^3 - 2n^2 + 1. ; 1,-1,17,199,929,2951,7489,16367,32129,58159,98801,159479,246817,368759,534689,755551,1043969,1414367,1883089,2468519,3191201,4073959,5142017,6423119,7947649,9748751,11862449,14327767,17186849,20485079,24271201,28597439,33519617,39097279,45393809,52476551,60416929,69290567,79177409,901...
; ; Old School Computer Architecture - interfacing FLOS ; Stefano Bodrato, 2011 ; ; Set paper color ; ; $Id: flos_paper.asm,v 1.2 2015/01/19 01:33:00 pauloscustodio Exp $ ; INCLUDE "flos.def" PUBLIC flos_paper flos_paper: ld b,h ld c,l ld d,h ld e,l jp kjt_background_colours
#include <algorithm> #include <cfloat> #include <cmath> #include <vector> #include "caffe/layer.hpp" #include "caffe/util/io.hpp" #include "caffe/util/math_functions.hpp" #include "caffe/vision_layers.hpp" namespace caffe { template <typename Dtype> void InfogainLossLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*...
#include "main.h" int pipe(void) { int pipefd[2]; pipe(pipefd); pid_t pid = fork(); if (0 != pid) { close(pipefd[0]); char buff[256]; sprintf(buff, "Child(PID=%d) is sending a message to parent!", pid); write(pipefd[1], buff, strlen(buff)); } else { close(pipefd[1]); char buff[256]; ...
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/searchlib/attribute/attributefactory.h> #include <vespa/searchlib/attribute/attributeiterators.h> #include <vespa/searchlib/attribute/searchcontextelementiterator.h> #include <vespa/se...
; A170019: Number of reduced words of length n in Coxeter group on 10 generators S_i with relations (S_i)^2 = (S_i S_j)^36 = I. ; 1,10,90,810,7290,65610,590490,5314410,47829690,430467210,3874204890,34867844010,313810596090,2824295364810,25418658283290,228767924549610,2058911320946490,18530201888518410,16677181699666569...
/* * FreeRTOS Kernel V10.1.1 * Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * 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, includ...
db DEX_CELEBI ; pokedex id db 100 ; base hp db 100 ; base attack db 100 ; base defense db 100 ; base speed db 100 ; base special db PSYCHIC ; species type 1 db GRASS ; species type 2 db 3 ; catch rate db 64 ; base exp yield INCBIN "pic/ymon/celebi.pic",0,1 ; 55, sprite dimensions dw CelebiPicFront dw Cele...
.intel_syntax noprefix .test_case_enter: test_case_main: .test_case_main.entry: IMUL EDI, EDI, 2891336453 ADD EDI, 12345 MOV EAX, EDI IMUL EDI, EDI, 2891336453 ADD EDI, 12345 MOV EBX, EDI IMUL EDI, EDI, 2891336453 ADD EDI, 12345 MOV ECX, EDI IMUL EDI, EDI, 2891336453 ADD EDI, 12345 MOV EDX, EDI IMUL EDI, EDI, 289133645...
; A063197: Dimension of the space of weight 2n cuspidal newforms for Gamma_0( 9 ). ; 0,1,1,3,3,4,5,6,6,8,8,9,10,11,11,13,13,14,15,16,16,18,18,19,20,21,21,23,23,24,25,26,26,28,28,29,30,31,31,33,33,34,35,36,36,38,38,39,40,41 mov $1,$0 add $0,1 div $0,2 div $1,3 add $1,$0
; A170826: a(n) = gcd(n^2, n!). ; 1,2,3,8,5,36,7,64,81,100,11,144,13,196,225,256,17,324,19,400,441,484,23,576,625,676,729,784,29,900,31,1024,1089,1156,1225,1296,37,1444,1521,1600,41,1764,43,1936,2025,2116,47,2304,2401,2500,2601,2704,53,2916 add $0,1 mov $1,1 mov $3,$0 mov $4,$0 lpb $3 mov $5,$4 lpb $5 gcd $1,$...
; Tests instructions INC & DEC with all addressing modes. ; Assumes that LDA/LDX/LDY & STA/STX/STY work with all addressing modes. ; ; Expected Results: $71=0xFF start: LDA #$FF LDX #$00 STA $90 INC $90 INC $90 LDA $90 LDX $90 STA $90,X INC $90,X LDA $90,X LDX $91 STA $0190,X INC $0192 LDA $0190,X LDX $0192 STA $...
## Program for ECTE432 Laboratory Project .text .globl main main: addi $t0, $zero, 5 # store 5 as our first number addi $t1, $zero, 7 # store 7 as our second number add $t2, $zero, $zero # the answer spot is cleared lui $t3, 0x1000 # memory data top two bytes addi $t4, $zero, 1 # save temp value 1 add $t5, $zero, $zero...
db "BAGWORM@" ; species name dw 311, 2770 ; height, weight db "Usually found" next "hanging on to a" next "fat tree trunk. It" page "shoots out bits of" next "its shell when it" next "sees action.@"
; A270870: a(n) = n^6 + 5*n^5 + 19*n^4 + 44*n^3 + 72*n^2 + 69*n + 5. ; 5,215,1311,5531,18329,50775,122675,266411,531501,989879,1741895,2923035,4711361,7335671,11084379,16315115,23465045,33061911,45735791,62231579,83422185,110322455,144103811,186109611,237871229,301124855,377829015,470182811,580644881,711953079,86714487...
;=================================================================================================== ; PRESET DATA HEADER ;=================================================================================================== presetheader_defeattrinexx: dw presetSRAM_defeattrinexx ; location of SRAM dw presetpersistent_...
#include <iostream> #include <vector> #include <cmath> #include <random> #include <set> #include <map> #include <unordered_map> #include <unordered_set> #include <queue> #include <algorithm> using namespace std; template<class T, class S> ostream& operator<<(ostream& os, const unordered_map<T, S>& v) { bool f = true...
;------------------------------------------------------------------------- ; Native terminal i/o functionality for micro8085_cilb (stdio interface) ; Functions below assumes support for INTEL 8085 "undocumented" opcodes SECTION code_clib EXTERN puartd EXTERN puartc PUBLIC fputc_con...
/* MIT License Copyright (c) 2018 Janos Buttgereit 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...
/** * Copyright (c) 2021, Tobias Hienzsch * 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 con...
; A173807: (7*10^n-43)/9 for n>0. ; 3,73,773,7773,77773,777773,7777773,77777773,777777773,7777777773,77777777773,777777777773,7777777777773,77777777777773,777777777777773,7777777777777773,77777777777777773,777777777777777773,7777777777777777773,77777777777777777773,777777777777777777773,7777777777777777777773,777777777...
;***************************************************************************** ;* sad-a.asm: x86 sad functions ;***************************************************************************** ;* Copyright (C) 2003-2013 x264 project ;* Copyright (C) 2013-2017 MulticoreWare, Inc ;* ;* Authors: Loren Merritt <lorenm@u.washi...
_init: file format elf32-i386 Disassembly of section .text: 00000000 <main>: char *argv[] = { "sh", 0 }; int main(void) { 0: f3 0f 1e fb endbr32 4: 8d 4c 24 04 lea 0x4(%esp),%ecx 8: 83 e4 f0 and $0xfffffff0,%esp b: ff 71 fc pushl -0x4(%ecx) ...
#define BOOST_TEST_MODULE TestStaticMatrix #include <boost/test/unit_test.hpp> #include <amgcl/value_type/static_matrix.hpp> BOOST_AUTO_TEST_SUITE( test_static_matrix ) BOOST_AUTO_TEST_CASE( sum ) { amgcl::static_matrix<int, 2, 2> a = {{1, 2, 3, 4}}; amgcl::static_matrix<int, 2, 2> b = {{4, 3, 2, 1}}; am...
; ; ; ; This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. ; ; Copyright 2007-2019 Broadcom Inc. All rights reserved. ; ; ; This is the default program for the Galahad (BCM95690R24). ; ; To start it on both units, use the following comma...
/***************************************************************************** Licensed to Accellera Systems Initiative Inc. (Accellera) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Accellera licenses...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r14 push %rbp push %rcx push %rdi push %rsi lea addresses_normal_ht+0x3aba, %rsi clflush (%rsi) nop add $27916, %r11 and $0xffffffffffffffc0, %rsi vmovntdqa (%rsi), %ymm5 vextracti128 $1, %ymm5, %xmm5 vpextrq $0, %xmm5, %rdi nop nop and %rcx, %rcx l...
_Route12HouseText_564c0:: text "I'm the FISHING" line "GURU's brother!" para "I simply Looove" line "fishing!" para "Do you like to" line "fish?" done _Route12HouseText_564c5:: text "Grand! I like" line "your style!" para "Take this and" line "fish, young one!" para "<PLAYER> received" line "a @" tex...
#ifndef LDLT_H #define LDLT_H #include <Eigen/Dense> #include "mtao/type_utils.h" namespace mtao::solvers::cholesky { template <typename Matrix> struct DenseLDLT_MIC0 { typedef typename Matrix::Scalar Scalar; template <typename A, typename B, typename C> inline Scalar tripleVectorProduct(const A & a, cons...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r13 push %r8 push %rbp push %rcx push %rdi push %rsi lea addresses_normal_ht+0x4cff, %rcx nop and %r13, %r13 mov $0x6162636465666768, %rdi movq %rdi, %xmm1 vmovups %ymm1, (%rcx) nop nop inc %r8 lea addresses_UC_ht+0x40af, %r12 nop nop nop nop dec %r...
;SMSQ Q68 DV3 Main Routine W. Lenerz 2017-2018 ; 2018-05-08 1.01 preset card type in sysvars section header xref smsq_end xref.l dv3_vers header_base dc.l dv3_base-header_base ; length of header dc.l 0 ; module length unknown dc.l smsq_end-dv3_base ; loaded length dc.l 0 ; checksum dc.l 0 ; alwa...
; x86 crti.s section .init global _init:function _init: push ebp mov ebp, esp ; gcc will nicely put the contents of crtbegin.o's .init section here. section .fini global _fini:function _fini: push ebp mov ebp, esp ; gcc will nicely put the contents of crtbegin.o's .fini section here.
#include <uWS/uWS.h> #include <iostream> #include "json.hpp" #include <math.h> #include "particle_filter.h" using namespace std; using json = nlohmann::json; std::string hasData(std::string s) { auto found_null = s.find("null"); auto b1 = s.find_first_of("["); auto b2 = s.find_first_of("]"); if (found_null !...
/*========================================================================= Program: Visualization Toolkit Module: $RCSfile: vtkParallelopipedRepresentation.cxx,v $ Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r15 push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x460b, %rsi lea addresses_UC_ht+0x1e998, %rdi nop nop add %r15, %r15 mov $17, %rcx rep movsl nop nop nop sub %rcx, %rcx lea addresses_UC_ht+0x1adbb, %rcx nop add $11620, %rdx movb (%rcx), %r10b ...
; A007956: Product of proper divisors of n. ; 1,1,1,2,1,6,1,8,3,10,1,144,1,14,15,64,1,324,1,400,21,22,1,13824,5,26,27,784,1,27000,1,1024,33,34,35,279936,1,38,39,64000,1,74088,1,1936,2025,46,1,5308416,7,2500,51,2704,1,157464,55,175616,57,58,1,777600000,1,62,3969,32768,65,287496,1,4624,69,343000,1,1934917632,1,74,5625,57...
#include <iostream> #include <fstream> #include "graf.h" using namespace std; ifstream f("date.in"); int n,m,nod; int *v; int main() { f>>n>>m>>nod; //n= nr de noduri ale grafului //m= nr de muchii ale grafului n++; graf g(n); for(int i = 1; i <= m; i++) { int x,y; f >> x >>...
; A266434: Triangle read by rows giving successive states of cellular automaton generated by "Rule 23" initiated with a single ON (black) cell. ; 1,1,1,1,0,0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,...
/*============================================================================== Program: 3D Slicer Portions (c) Copyright Brigham and Women's Hospital (BWH) All Rights Reserved. See COPYRIGHT.txt or http://www.slicer.org/copyright/copyright.txt for details. Unless required by applicable law or agreed to ...
#include <bits/stdc++.h> using namespace std; string ltrim(const string &); string rtrim(const string &); vector<string> split(const string &); /* * Complete the 'getTotalX' function below. * * The function is expected to return an INTEGER. * The function accepts following parameters: * 1. INTEGER_ARRAY a * ...
// test select #include <iostream> #include <algorithm> // has copy #include "select.h" using namespace std; int main() { int a[10] = {10,7,8,9,4, 2, 3, 6, 5,1}; int n = 10; // output the elements cout << "a[0:9] = "; copy(a, a+10, ostream_iterator<int>(cout, " ")); cout << endl; ...
Name: Compress-p.asm Type: file Size: 15200 Last-Modified: '1992-07-29T15:00:00Z' SHA-1: AFFFB5E7C83314EE4C54A6DCC5A02E4E61857EA5 Description: null
.MODEL flat, c .CONST ALIGN 16 AbsMaskFloat dword 7fffffffh, 0fffffffh, 0fffffffh, 0fffffffh AbsMaskDouble qword 7fffffffffffffffh, 0fffffffffffffffh .CODE SseArithmeticOperationsFloat PROC push ebp mov ebp, esp movss xmm0, real4 ptr[ebp+8] ; xmm0 = a movss xmm1, real4 ptr[ebp+12] ; xmm1 = b mov eax, [eb...
; freemco NES Corelib Example 00: Skeleton Project (NROM) ;==============================================================================; ; The skeleton project targets NROM, as the examples are meant to be small. ; Whether or not that's NROM-128 or NROM-256 is up to the example. ; Other examples may need to use a dif...
; A195158: Concentric 24-gonal numbers. ; 0,1,24,49,96,145,216,289,384,481,600,721,864,1009,1176,1345,1536,1729,1944,2161,2400,2641,2904,3169,3456,3745,4056,4369,4704,5041,5400,5761,6144,6529,6936,7345,7776,8209,8664,9121,9600,10081,10584,11089,11616,12145,12696,13249,13824,14401,15000,15601,16224,16849,17496,18145,188...
; A006234: a(n) = n*3^(n-4). ; 1,4,15,54,189,648,2187,7290,24057,78732,255879,826686,2657205,8503056,27103491,86093442,272629233,860934420,2711943423,8523250758,26732013741,83682825624,261508830075,815907549834,2541865828329,7908027021468,24571369673847,76255974849870,236393522034597,732057358558752,2264802453041139,70...
.386p .387 include chars.dat assume cs:FLAT,ds:FLAT,es:FLAT,fs:FLAT,gs:FLAT,ss:FLAT _TEXT segment para use32 public 'CODE' include chars.equ ini_chr proc near ret ini_chr endp _TEXT ends end
;; xOS32 ;; Copyright (C) 2016-2017 by Omar Mohammad. use32 ; wm_pixel_offset: ; Returns pixel offset within window canvas ; In\ EAX = Window handle ; In\ CX/DX = X/Y pos within the window ; Out\ EAX = Pixel offset, -1 on error align 32 wm_pixel_offset: mov [.x], cx mov [.y], dx call wm_get_window jc .error c...
// // Created by lionell on 5/14/15. // #include "BigInteger.h" #include "exceptions.h" #include <iostream> #include <algorithm> #include <iomanip> using namespace std; BigInteger::BigInteger(const BigInteger &example): BigInteger() { this->data = example.data; this->positive = example.positive; } BigIntege...
; ; boot.s -- Kernel start location. Also defines multiboot header. ; Based on Bran's kernel development tutorial file start.asm ; MBOOT_PAGE_ALIGN equ 1<<0 ; Load kernel and modules on a page boundary MBOOT_MEM_INFO equ 1<<1 ; Provide your kernel with memory info MBOOT_HEADER_MAGIC equ 0x1BAD...