text
stringlengths
1
1.05M
/* * Copyright (c) 2021-2022, 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...
/* Copyright (C) 2001, Alexander Pukhov, e-mail pukhov@theory.sinp.msu.ru */ #include<stdlib.h> #include<stdio.h> #include<math.h> #include"vegas.h" #include"drandXX.h" #include"chep_crt.h" #include"interface.h" #include"4_vector.h" #include"subproc.h" #include"alphas2.h" #include<unistd.h> #include"strfun.h" #inclu...
; A007662: Quadruple factorial numbers n!!!!: a(n) = n*a(n-4). ; 1,1,2,3,4,5,12,21,32,45,120,231,384,585,1680,3465,6144,9945,30240,65835,122880,208845,665280,1514205,2949120,5221125,17297280,40883535,82575360,151412625,518918400,1267389585,2642411520,4996616625,17643225600,44358635475,95126814720,184874815125,670442572...
Load R0 0 Add R0 1 Halt
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r8 push %r9 push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x1116b, %rsi lea addresses_UC_ht+0x14acb, %rdi nop nop nop nop nop sub $19836, %r9 mov $98, %rcx rep movsq nop nop nop nop xor $6785, %rsi lea addresses_WT_ht+0x1c46b, %rsi lea ...
;================================================================================================== ; Time Travel ;================================================================================================== ; After time travel ; Replaces: ; jr ra .org 0xAE59E0 ; In memory: 0x8006FA80 j after_ti...
<?xml version = '1.0' encoding = 'ISO-8859-1' ?> <asm version="1.0" name="0"> <cp> <constant value="GraphML2XML"/> <constant value="links"/> <constant value="NTransientLinkSet;"/> <constant value="col"/> <constant value="J"/> <constant value="getRoot"/> <constant value="allElements"/> <constant value="...
#include<bits/stdc++.h> using namespace std; #define all(x) x.begin(),x.end() #define INF (0x3f3f3f3f) #define ms(a,b) memset(a,b,sizeof(a)); int n; int main(){ freopen("pairup.in", "r", stdin); freopen("pairup.out", "w", stdout); cin >> n; vector<pair<int,int>>cow; for(int i = 0; i < n; i++){ ...
name Virus title Disassembly listing of the VHP-648 virus .radix 16 code segment assume cs:code,ds:code org 100 environ equ 2C start: jmp virus . . . virus: push cx ;Save CX mov dx,offse...
######################################################### # # # Zastepowanie co trzeciej malej litery # # odpowiadajaca jej wielka litera # # Autor: Jakub Sikora # # ...
uart_tx_d .equ 0F1h ; TX data (out) uart_tx_c .equ 0F3h ; TX status (in) uart_rx_d .equ 0F5h ; RX data (in) uart_rx_c .equ 0F7h ; RX status (in) ;************************************************************************ ;** An Assembly File Listing to generate a 16K ROM for the ZX Spectrum ** ;************************...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1991 -- All Rights Reserved PROJECT: PC GEOS MODULE: Printer/Fax/CCom FILE: ccomManager.asm AUTHOR: Adam de Boor, Feb 1, 1991 ROUTINES: Name Description ---- ----------- REVISION HISTOR...
; A056585: Eighth power of Fibonacci numbers A000045. ; 0,1,1,256,6561,390625,16777216,815730721,37822859361,1785793904896,83733937890625,3936588805702081,184884258895036416,8686550888106661441,408066367122340274881,19170731299728100000000,900610946612241479594721,42309639906666105858732961,1987650739374310984825962496...
lc r4, 0x00000002 lc r5, 0x00000003 ges r6, r4, r5 halt #@expected values #r4 = 0x00000002 #r5 = 0x00000003 #r6 = 0x00000000 #pc = -2147483632 #e0 = 0 #e1 = 0 #e2 = 0 #e3 = 0
/* =========================================================================== * Copyright 2010: Valentin Heinitz, www.heinitz-it.de * Simple Persistence framework for Qt * Author: Valentin Heinitz, 2010-12-24 * License: GPL, http://www.gnu.org/licenses/gpl.html * * D E S C R I P T I O N * Persistence imp...
; A023578: Least odd prime divisor of prime(n)+3, or 1 if prime(n)+3 is a power of 2. ; Submitted by Christian Krause ; 5,3,1,5,7,1,5,11,13,1,17,5,11,23,5,7,31,1,5,37,19,41,43,23,5,13,53,5,7,29,5,67,5,71,19,7,5,83,5,11,7,23,97,7,5,101,107,113,5,29,59,11,61,127,5,7,17,137,5,71,11,37,5,157,79,5,167,5,5,11,89,181,5,47,191...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Copyright(c) 2011-2016 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...
; A028250: Sequence arising in multiprocessor page migration. ; 2,5,7,10,12,15,17,20,23,25,28,30,33,35,38,40,43,46,48,51,53,56,58,61,64,66,69,71,74,76,79,81,84,87,89,92,94,97,99,102,105,107,110,112,115,117,120,122,125,128,130,133,135,138,140,143,146,148,151,153,156,158,161,163 mov $2,$0 lpb $0 sub $0,1 add $1,5 lp...
class Solution { public: vector < double > calcEquation(vector < vector < string >> & eqn, vector < double > & values, vector < vector < string >> & queries) { map < string, vector < pair < string, double >>> graph; for (int i = 0; i < eqn.size(); i++) { graph[eqn[i][...
; A180678: The Ze2 sums of the Pell-Jacobsthal triangle A013609. ; Submitted by Christian Krause ; 1,2,5,16,57,206,737,2612,9213,32442,114205,402072,1415713,4985126,17554489,61816252,217679141,766531986,2699251381,9505089568,33471028105,117864194430,415044573969,1461529529924,5146600421325,18123134290538,63818437348045...
; A293065: Number of vertices of type D at level n of the hyperbolic Pascal pyramid PP_(4,5). ; 0,0,0,1,3,7,16,38,94,239,617,1605,4190,10956,28668,75037,196431,514243,1346284,3524594,9227482,24157835,63246005,165580161,433494458,1134903192,2971215096,7778742073,20365011099,53316291199,139583862472,365435296190,95672202...
db 0 ; 311 DEX NO db 60, 50, 40, 95, 85, 75 ; hp atk def spd sat sdf db ELECTRIC, ELECTRIC ; type db 200 ; catch rate db 120 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F50 ; gender ratio db 100 ; unknown 1 db 20 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/hoenn/plusle/fro...
#include "pch.h" #include "LayerStack.h" namespace Base { LayerStack::LayerStack() { } LayerStack::~LayerStack() { for (Layer* layer : m_Layers) delete layer; } void LayerStack::PushLayer(Layer* layer) { m_Layers.insert(m_Layers.begin() + m_LayerInsert, layer); m_LayerInsert++; } void LayerStack:...
/************************************************************************** * Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors ...
; A114271: Numbers k such that k^2 + 8 is prime. ; Submitted by Jon Maiga ; 3,9,15,21,33,51,57,81,87,111,117,123,129,135,141,147,153,177,189,213,219,255,279,285,315,321,327,345,351,363,399,417,465,471,477,483,495,549,579,585,627,657,663,669,723,735,741,747,759,771,783,789,807,825,837,855,879,891,903,909,933,939,945,969...
; A295687: a(n) = a(n-1) + a(n-3) + a(n-4), where a(0) = 1, a(1) = 2, a(2) = 2, a(3) = 1. ; 1,2,2,1,4,8,11,16,28,47,74,118,193,314,506,817,1324,2144,3467,5608,9076,14687,23762,38446,62209,100658,162866,263521,426388,689912,1116299,1806208,2922508,4728719,7651226,12379942,20031169,32411114,52442282,84853393,137295676,22...
// license:BSD-3-Clause // copyright-holders:AJR,68bit /**************************************************************************** Driver for Southwest Technical Products video terminal 8210. MC6802P, 2xMC6821P, INS8250N, MCM66750, MC6845P, bank of 8 dips, crystals 17.0748 (video), 1.8432 (cpu/uart). On the back is...
//===--- SpeculativeDevirtualizer.cpp - Speculatively devirtualize calls --===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LI...
push ds push bx push ax mov bx,ds mov ss,bx mov bx,sp mov dx,bx
# JMH version: 1.19 # VM version: JDK 1.8.0_131, VM 25.131-b11 # VM invoker: /usr/lib/jvm/java-8-oracle/jre/bin/java # VM options: <none> # Warmup: 20 iterations, 1 s each # Measurement: 20 iterations, 1 s each # Timeout: 10 min per iteration # Threads: 1 thread, will synchronize iterations # Benchmark mode: Throughput...
.global s_prepare_buffers s_prepare_buffers: push %r13 push %rbp push %rdi push %rsi lea addresses_WC_ht+0x172cf, %rsi nop nop nop nop nop sub $27749, %rbp mov $0x6162636465666768, %rdi movq %rdi, %xmm2 vmovups %ymm2, (%rsi) nop nop nop nop sub $51636, %r13 pop %rsi pop %rdi pop %rbp pop %r13 ret .global s_faulty_...
; $Id: strcpy.asm 69219 2017-10-24 15:01:30Z vboxsync $ ;; @file ; IPRT - No-CRT strcpy - AMD64 & X86. ; ; ; Copyright (C) 2006-2017 Oracle Corporation ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; ; you can redistribute it and...
ViridianForestExitObject: db $a ; border block db $4 ; warps db $0, $4, $1, $ff db $0, $5, $2, $ff db $7, $4, $0, VIRIDIAN_FOREST db $7, $5, $1, VIRIDIAN_FOREST db $0 ; signs db $2 ; objects object SPRITE_BLACK_HAIR_BOY_2, $3, $2, STAY, NONE, $1 ; person object SPRITE_OLD_PERSON, $2, $5, STAY, NONE, $2 ; p...
#include "glarrays.h" #include <vector> static GLenum ToOpenGLDataType(ShaderDataType type) { switch (type) { case ShaderDataType::Float: return GL_FLOAT; case ShaderDataType::Float2: return GL_FLOAT; case ShaderDataType::Float3: return GL_FLOAT; case ShaderDataType::Float4: retur...
; Start locations for page 1 and page 2 ; to avoid use of top of stack. ; Page 2 must be a page boundary to ensure ; messages in following page are read correctly PART1 = $0100 PART2 = $0200 PART3 = $1780 PART4 = $0100 PART5 = $0200 include "KIM-Locations.asm" ; KIM-VENTURE © Copyright R.C.Leedom 1979 ; ** = $0000 i...
; A178874: Partial sums of round(5^n/8). ; 0,1,4,20,98,489,2442,12208,61036,305177,1525880,7629396,38146974,190734865,953674318,4768371584,23841857912,119209289553,596046447756,2980232238772,14901161193850,74505805969241,372529029846194,1862645149230960,9313225746154788,46566128730773929,232830643653869632,116415321826...
; A293137: a(0) = 0, and a(n) = floor(2*sqrt(n)) - 1 for n >= 1. ; 0,1,1,2,3,3,3,4,4,5,5,5,5,6,6,6,7,7,7,7,7,8,8,8,8,9,9,9,9,9,9,10,10,10,10,10,11,11,11,11,11,11,11,12,12,12,12,12,12,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,17,17,18,18,18,18...
; A184633: Floor(1/{(9+n^4)^(1/4)}), where {} = fractional part. ; Submitted by Jamie Morken(s3.) ; 1,4,12,28,55,96,152,227,324,444,591,768,976,1219,1500,1820,2183,2592,3048,3555,4116,4732,5407,6144,6944,7811,8748,9756,10839,12000,13240,14563,15972,17468,19055,20736,22512,24387,26364,28444,30631,32928,35336,37859,40500...
#include <iostream> #include <bits/stdc++.h> using namespace std; int main(int argc, char* argv[]) { int t; cin >> t; while(t--) { int quantidade_alunos, n, aux, status = 0; vector<int> vetor_notas; vector<int> changed; cin >> quantidade_alunos; for(i...
INCLUDE "constants.asm" SECTION "Pokedex Entries 001-064", ROMX BulbasaurPokedexEntry:: INCLUDE "data/pokemon/dex_entries/bulbasaur.asm" IvysaurPokedexEntry:: INCLUDE "data/pokemon/dex_entries/ivysaur.asm" VenusaurPokedexEntry:: INCLUDE "data/pokemon/dex_entries/venusaur.asm" CharmanderPokedexEntry:: INCLUDE "...
JUMP_HEIGHT_TABLE dta b(156) dta b(152) dta b(148) dta b(144) dta b(140) dta b(136) dta b(133) dta b(130) dta b(127) dta b(124) dta b(121) dta b(119) dta b(117) ...
; A092942: A Fibonacci sequence with "corrections" at every third step: -++-++-++-++-++..., i.e., at every 3rd step there is a subtraction instead of an addition. ; 0,1,1,2,3,1,4,5,1,6,7,1,8,9,1,10,11,1,12,13,1,14,15,1,16,17,1,18,19,1,20,21,1,22,23,1,24,25,1,26,27,1,28,29,1,30,31,1,32,33,1,34,35,1,36,37,1,38,39,1,40,41...
; A326122: a(n) = 10 * sigma(n). ; Submitted by Christian Krause ; 10,30,40,70,60,120,80,150,130,180,120,280,140,240,240,310,180,390,200,420,320,360,240,600,310,420,400,560,300,720,320,630,480,540,480,910,380,600,560,900,420,960,440,840,780,720,480,1240,570,930,720,980,540,1200,720,1200,800,900,600,1680,620,960 add $0...
Name: maped3.asm Type: file Size: 46302 Last-Modified: '1992-02-13T07:48:24Z' SHA-1: E711F6B7A5B3C9083B37828E025254FBF1DF6600 Description: null
; A083399: Number of divisors of n that are not divisors of other divisors of n. ; 1,2,2,2,2,3,2,2,2,3,2,3,2,3,3,2,2,3,2,3,3,3,2,3,2,3,2,3,2,4,2,2,3,3,3,3,2,3,3,3,2,4,2,3,3,3,2,3,2,3,3,3,2,3,3,3,3,3,2,4,2,3,3,2,3,4,2,3,3,4,2,3,2,3,3,3,3,4,2,3,2,3,2,4,3,3,3,3,2,4,3,3,3,3,3,3,2,3,3,3 lpb $0 mov $2,$0 seq $2,28233 ; ...
; A014942: ( 1+24^n*(23*n-1) ) / 529. ; 1,49,1777,57073,1715953,49491697,1387212529,38078983921,1028756811505,27446832213745,724884022832881,18985057740861169,493749574409596657,12764586312924606193,328300388160453422833,8406016915457191128817 add $0,1 lpb $0 add $2,$0 sub $0,1 mul $2,24 mov $1,$2 lpe div $1,2...
; A061091: Number of k with 1 <= k <= n relatively prime to phi(k). ; 1,2,3,3,4,4,5,5,5,5,6,6,7,7,8,8,9,9,10,10,10,10,11,11,11,11,11,11,12,12,13,13,14,14,15,15,16,16,16,16,17,17,18,18,18,18,19,19,19,19,20,20,21,21,21,21,21,21,22,22,23,23,23,23,24,24,25,25,26,26,27,27,28,28,28,28,29,29,30,30,30,30,31,31,32,32,33,33,34,3...
Name: ascii.asm Type: file Size: 12713 Last-Modified: '1992-09-30T08:55:01Z' SHA-1: 81FD8A6E43127FB2C1262F39ECFCAB41CCF51CF5 Description: null
/* * Copyright (c) 2015 Cryptonomex, Inc., and contributors. * * The MIT License * * 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...
# # mp_limb_t mulredc1(mp_limb_t * z, const mp_limb_t x, const mp_limb_t y, # const mp_limb_t m, mp_limb_t inv_m) # # Compute z := x*y mod m, in Montgomery representation, where x, y < m # and m is n limb wide. inv_m is the less significant limb of the # inverse of m modulo 2^(n*GMP_LIMB_BITS) # # ...
[BITS 64] ;----------------------------------------------------------- ; Handler de ServiceCall ; Recibe: por Rbx el servicio a llamar ; Devuelve: Nada ;----------------------------------------------------------- Int80Han: cmp ebx,0 ;Servicio "Random" ebx=0 je Rand_call cmp ebx,1 je print64_call cmp ebx,2 je...
; A028033: Expansion of 1/((1-3x)(1-4x)(1-6x)(1-8x)). ; Submitted by Jon Maiga ; 1,21,283,3129,31003,287217,2547091,21931833,185027755,1538650113,12663786499,103454051337,840560481307,6802315926609,54886579262707,441905197121241,3552134005816459,28518494951667105 mov $1,1 mov $2,$0 mov $3,$0 lpb $2 mov $0,$3 mul $...
#include "wsjcpp_hashes.h" #include <smallsha1.h> #include <md5.h> #include <iostream> #include <cstring> #include <fstream> // --------------------------------------------------------------------- // WsjcppHashes std::string WsjcppHashes::sha1_calc_hex(const std::string &sSource) { // deprecated char hexstring[4...
gui_file_name: ld hl,gui_layout + 8 - 1 ld b,255 gui_file_name_init: inc b inc hl ld a,(hl) cp '.' jr z,gui_file_name_init_end dec a jr nz,gui_file_name_init dec b gui_file_name_init_end: ld a,b ld (file_name_position),a ...
; A146086: Number of n-digit numbers with each digit odd where the digits 1 and 3 occur an even number of times. ; 3,11,45,197,903,4271,20625,100937,498123,2470931,12295605,61300877,305972943,1528270391,7636568985,38168496017,190799433363,953868026651,4768952712765,23843601302357,119214519727383,596062138283711,2980279...
%ifidn __OUTPUT_FORMAT__,obj section code use32 class=code align=64 %elifidn __OUTPUT_FORMAT__,win32 $@feat.00 equ 1 section .text code align=64 %else section .text code %endif global _Camellia_EncryptBlock_Rounds align 16 _Camellia_EncryptBlock_Rounds: L$_Camellia_EncryptBlock_Rounds_begin: push ebp push ebx push e...
/* * This file is part of the CitizenFX project - http://citizen.re/ * * See LICENSE and MENTIONS in the root of the source tree for information * regarding licensing. */ #include "StdInc.h" #include "ResourceManager.h" #include <fiDevice.h> #include <CachedResourceMounter.h> #include <ResourceCach...
; A093360: a(n) = prime(n)^(n-1). ; 1,3,25,343,14641,371293,24137569,893871739,78310985281,14507145975869,819628286980801,177917621779460413,22563490300366186081,1718264124282290785243,256666986187667409334369,73137151889028619724488157,21559177407076402401757871041,2241853325254885342546716970621,740195513856780056217...
// Copyright (c) 2003 Daniel Wallin and Arvid Norberg // 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,...
// Copyright 2017 The Ray 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 law or agreed to i...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0xc327, %rsi lea addresses_A_ht+0x4b27, %rdi nop nop nop nop nop sub $58407, %r12 mov $48, %rcx rep movsl nop xor %rcx, %rcx lea addresses_WT_ht+0x16f67, %rax nop inc %r10 mov...
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #include "PhonebookIceContacts.hpp" #include "application-phonebook/ApplicationPhonebook.hpp" #include "application-phonebook/data/PhonebookStyle.hpp" #include <service-db/DBNotifica...
; A215044: a(n) = F(2*n)^5 with F=A000045 (Fibonacci numbers). ; 0,1,243,32768,4084101,503284375,61917364224,7615646045657,936668172433707,115202670521319424,14168993617568728125,1742671044798615789551,214334370099947863277568,26361384861716322814590193,3242236003808840039125110051,398768667086996122009702400000,490453...
/* * Very simple algorithm to search for prime numbers by * dividing a candidate by all primes smaller than * the square root of the candidate itself. * * Written by Phoenix1747, 2018-11-25. Edit: 2020-11-10. */ #include <vector> #include <iostream> #include <cmath> using namespace std; bool isPrime(vector<uns...
/**************************************************************************** Copyright (c) 2013-2016 Chukong Technologies Inc. Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. http://www.cocos2d-x.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated d...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. /*===================================================================== ** ** Source: test2.c ** ** Purpose: Tests ...
// 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 "third_party/blink/renderer/modules/presentation/presentation_connection.h" #include <memory> #include "third_party/blink/public/platform/task_t...
[org 0x7c00] KERNEL_OFFSET equ 0x1000 ; The same as when linking the kernel mov [BOOT_DRIVE], dl ; The BIOS sets the boot drive in 'dl' on boot mov bp, 0x9000 mov sp, bp mov bx, MSG_REAL_MODE call print call print_nl call load_kernel call switch_to_pm jmp $ ; Never executed %include "boot_sector_print.asm" %inclu...
#include "gtest/gtest.h" #include "junctions/EntityManager.h" #include "junctions/SystemManager.h" namespace ju { struct MoveComponent { int x{0}; int y{0}; MoveComponent() = default; MoveComponent(int x, int y) : x(x), y(y) {} }; struct AnotherComponent { int someValue{10}; }; TEST(EntityManagerTest, ...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: prefInitFile.asm AUTHOR: Chris Boyke ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ---- ...
.size 8000 .text@48 ei 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 c, 44 ld b, 90 lbegin_waitly90: ldff a, (c) cmp a, b jrnz lbegin_waitly90 xor a, a ldff(40), a ld hl, 9f00 ld b, 20 lbegin_clearvram: ...
// Test provided by Karu // SEQ Rd, Rs, Rt // if (Rs <= Rt) then Rd <- 1 else Rd <- 0 //possible cases Rs=rt rs<rt rs>rt // Boundry cases rs and rt are all zeros or all ones // one all zeros and one all ones //jump to each test jal .test1 jal .test2 jal .test3 jal .test4 jal .test5 jal .test6 jal .test7 jal .test8...
; A045343: Primes congruent to {2, 3} mod 7. ; Submitted by Jon Maiga ; 2,3,17,23,31,37,59,73,79,101,107,149,157,163,191,199,227,233,241,269,283,311,317,331,353,359,367,373,401,409,443,457,479,499,521,541,563,569,577,619,647,653,661,709,751,773,787,821,829,857,863,877,919,941,947,983,997,1031,1039,1087,1109,1123,1129,1...
#include <iostream> using namespace std; const int SIZE = 5; int main() { int myArray[SIZE] = {1,10,100,1000,10000}; for(int index=0; index < SIZE; index++) { cout<<"Array location "<<index<<" is "<<myArray[index]<<endl; } //DANGER ZONE cout<<"Array location 5 is "<<myArray[5]<<endl; myArray[-1] ...
; A033130: Base-3 digits are, in order, the first n terms of the periodic sequence with initial period 1,1,0. ; 1,4,12,37,112,336,1009,3028,9084,27253,81760,245280,735841,2207524,6622572,19867717,59603152,178809456,536428369,1609285108,4827855324,14483565973,43450697920,130352093760,391056281281,1173168843844,351950653...
; Phantoon hijacks { ; 1st pattern if !FEATURE_PAL org $A7D5E9 else org $A7D5B5 endif ; $A7:D5B5 22 11 81 80 JSL $808111[$80:8111] JSL hook_phantoon_1st_dir_rng if !FEATURE_PAL org $A7D5DA else org $A7D5A6 endif ; $A7:D5A6 AD B6 05 LDA $05B6 [$7E:05B6] ; Frame counter ...
@ 1 @ 111 @ 1 .thumb .include "../../../../_FuncLib/_Definitions.h.s" .include "../../../../_FuncLib/MokhaRAMSpace.s" .include "_definations_ADDMAP.h.s" @(x,y,Direction) Func3_Fusillade: push {r4-r7,lr} mov r4, r0 @Target.x mov r5, r1 @Target.y cmp r2, #4 blt Normal mov r2, #0 Normal: mov r6, r2 ...
// Copyright 2020 The Fuchsia 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 "src/developer/forensics/feedback_data/metadata.h" #include <lib/fit/result.h> #include <lib/syslog/cpp/macros.h> #include <cstring> #include <m...
START: NOP LI R1 0X01 LI R2 0X01 LI R3 0XBF SLL R3 R3 0X00 LI R4 0XFF SLL R4 R4 0X00 MFPC R7 ADDIU R7 0X02 B TESTW NOP SW R3 R4 0X00 LOOP_START: ADDU R1 R2 R1 ADDU R1 R2 R2 ADDIU R4 0XFF BNEZ R4 LOOP_START NOP MFPC R7 ADDIU R7 0X02 B TESTW NOP SW R3 R2 0X00 NOP FOREVER: NOP B FO...
;code start address * = $c000 ;VSCode extension VS64 (ACME cross-assembler) will automatially set output path and filename to the .cache directory ;!to "./simple.prg" ;Add values in two memory locations, rotate right, and store in another memory location. lda $d000 clc adc $d001 ror sta $d002 ;In emulator, setup ...
___conversion_table_homecall: MACRO ; macro arguments: homecall type, function label ; all functions clobber af and hl (except for outputs) and preserve bc and de ; homecall types: ; - read: index to ID conversion (in: a = 8-bit ID; out: hl = 16-bit index) ; - write: ID to index conversion (in: hl = 16-bit index; ...
dirtrk .byte 18 ; directory track # bamsiz .byte 4 ; # bytes/track in bam mapoff .byte 4 ; offset of bam in sector dsknam .byte $90 ; offset of disk name in bam sector ; ; command search table cmdtbl .text 'VIDMBUP&CRSN' ; validate-dir init-drive duplicate ; memory-op block-op use...
.gba .thumb .open "rom.gba", "test.gba", 0x08000000 .org allocation .area allocation_size .importobj "build/linked.o" .endarea // // Player house PC script tile (for debugging) // .org 0x083B977C // .word WonderTradeScript .org gSpecials + SPECIAL_WonderTradeGenerateMon * 4 .word WonderTradeGenerateMon |1 .clo...
// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. // // Copyright (C) 2018 Intel Corporation #ifndef OPENCV_GAPI_GMAT_HPP #define OPENCV_GAPI_GMAT_HPP #include <ostream> #in...
; F-Zero Climax Translation by Normmatt .align 4 StoryEpisode2PointerList: .word Episode2_Line1 .word Episode2_Line2 .word Episode2_Line3 .word Episode2_Line4 .word Episode2_Line5 .word Episode2_Line6 .word Episode2_Line7 .word Episode2_Line8 .word Episode2_Line9 .word Episode2_Line10 .word Episode2_Line11...
#include "sendcoinsentry.h" #include "ui_sendcoinsentry.h" #include "guiutil.h" #include "bitcoinunits.h" #include "addressbookpage.h" #include "walletmodel.h" #include "optionsmodel.h" #include "addresstablemodel.h" #include <QApplication> #include <QClipboard> SendCoinsEntry::SendCoinsEntry(QWidget *parent) : Q...
// Copyright (c) 2013, Ford Motor Company // 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 co...
; FILE __CALLEE__ *fopen_callee(char *filename, char *mode) ; 07.2009 aralbrec XLIB fopen_callee XDEF ASMDISP_FOPEN_CALLEE, LIBDISP_FOPEN_CALLEE LIB open_callee, stdio_free LIB stdio_parseperm, stdio_findfileslot, stdio_malloc LIB stdio_error_einval_zc, stdio_error_enfile_zc, stdio_error_enomem_zc XREF ASMDISP_OPEN_C...
; A097539: Subtract 4 from primes == 1 (mod 4). ; 1,9,13,25,33,37,49,57,69,85,93,97,105,109,133,145,153,169,177,189,193,225,229,237,253,265,273,277,289,309,313,333,345,349,369,385,393,397,405,417,429,445,453,457,505,517,537,553,565,573,589,597,609,613,637,649,657,669,673,697,705,729,753,757,765,769,793,805,817,825,849,...
GAS LISTING C:\Users\jwall\AppData\Local\Temp\1\ccWLax3W.s page 1 1 .file "makerom.c" 2 .text 3 .comm arg_struct, 96, 5 4 .comm conversion_int, 4, 2 5 .globl define_str 6 .section .rdata,"dr" 7 ...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r15 push %r9 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x7c06, %rbx nop lfence mov (%rbx), %rbp nop nop nop nop nop and $37839, %r15 lea addresses_normal_ht+0xbc1e, %rsi lea addresses_WT_ht+0x1d06f, %rdi nop nop nop nop xor %r15, %...
; ------------------------------------------------------------------------ GETPC R14, #0 ; Get current program counter LDD R15,$blink_led ; Load our desired IRQ handler address ADD R15,R15,R14 ; Base + offset SETIV R15 ; Set our IRQ handler address ; *** Setup Timer0 ; **************** LDD R4,#0x...
/*! * \file Utils.hpp * \author S. Buchet * \brief utilities functions */ #ifndef UTILS_HPP #define UTILS_HPP #include <vector> #include <algorithm> #include <random> /*! * \class Utils * \brief utilities functions */ class Utils { public: /*! * \brief get the instance * \return the unique...
// (C) Copyright 2020 Xo Wang <xo@geekshavefeelings.com> // SPDX-License-Identifier: Apache-2.0 // vim: et:sw=2:ts=2:tw=100 #include "average.h" #include <catch2/catch.hpp> namespace mays { namespace { // NOLINTNEXTLINE TEMPLATE_TEST_CASE("Average(a, b) = Average(b, a)", "[average]", ...
; void *z180_otimr(void *src, uint8_t port, uint8_t num) SECTION code_clib SECTION code_z180 PUBLIC _z180_otimr EXTERN asm_z180_otimr _z180_otimr: pop af pop hl pop bc push bc push hl push af jp asm_z180_otimr
// This code is in the public domain -- Ignacio Castano <castano@gmail.com> #include "StrLib.h" #include "Memory.h" #include "Utils.h" // swap #include <math.h> // log #include <stdio.h> // vsnprintf #include <string.h> // strlen, strcmp, etc. #if NV_CC_MSVC #include <stdarg.h> // vsnprintf #endif using namespa...
; A347697: a(n) = max_{k <= n} A347696(k). ; Submitted by Jon Maiga ; 0,0,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,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,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12 mov $2,1 lpb ...
/** * Copyright 2015 MongoDB Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, ...
#include "common/grpc/json_transcoder_filter.h" #include "envoy/common/exception.h" #include "envoy/http/filter.h" #include "common/common/assert.h" #include "common/common/enum_to_int.h" #include "common/common/utility.h" #include "common/filesystem/filesystem_impl.h" #include "common/grpc/common.h" #include "common...
; A170570: Number of reduced words of length n in Coxeter group on 33 generators S_i with relations (S_i)^2 = (S_i S_j)^47 = I. ; 1,33,1056,33792,1081344,34603008,1107296256,35433480192,1133871366144,36283883716608,1161084278931456,37154696925806592,1188950301625810944,38046409652025950208,1217485108864830406656,389595...