text
stringlengths
1
1.05M
#include <bits/stdc++.h> /* Problem: 616 - Coconuts, Revisited Link : https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=557 Solution by: Mohamed Hisham El-Banna Gmail : Mohamed00Hisham@Gmail.com Github : www.github.com/Mhmd-Hisham LinkedIn: www.linkedin.c...
; Memory map and section setup ; ; Contains the generic variables + features ; ; crt_model = 0 ; everything in RAM ; crt_model = 1 ; ROM model, data section copied ; crt_model = 2 ; ROM model, data section compressed with zx7 ; crt_model = 3 ; ROM model, data section compressed with zx0 ; Include the default memo...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r15 push %r9 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_D_ht+0xd5ff, %rsi lea addresses_UC_ht+0xdf, %rdi clflush (%rdi) nop nop nop nop nop xor %r15, %r15 mov $81, %rcx rep movsw nop nop nop nop nop and $56831, %r9 lea addresses_WC_ht+0x4...
set_sprt: lda #$80 sta $07f8 //sprite is $80 * $64 bytes away from address 0 sta $07f9 //set sprite 1 to same sprite lda #$81 sta $07fa //give sprite 2 ball sprite lda #$FF sta $d01c //Enable multi-color mode on all sprites lda #%00000011 sta $d017 //Enable y-expansion of sprite 0 and 1 lda #%00000111 s...
user/_kalloctest: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <test0>: test1(); exit(0); } void test0() { 0: 7179 addi sp,sp,-48 2: f406 sd ra,40(sp) 4: f022 sd s0,32(sp) 6: ec26 sd s1,24(sp) 8: ...
cmp #{c1} bne {la1}
SECTION rodata_font SECTION rodata_font_fzx PUBLIC _ff_dkud2_Italika _ff_dkud2_Italika: BINARY "font/fzx/fonts/dkud2/Italika/italika.fzx"
; A050509: House numbers (version 2): a(n) = (n+1)^3 + (n+1)*Sum_{i=0..n} i. ; 1,10,36,88,175,306,490,736,1053,1450,1936,2520,3211,4018,4950,6016,7225,8586,10108,11800,13671,15730,17986,20448,23125,26026,29160,32536,36163,40050,44206,48640,53361,58378,63700,69336,75295,81586,88218,95200,102541,110250,118336,126808,1356...
LinkMonStatsScreen: ld a, [wMenuCursorY] dec a ld [wCurPartyMon], a call LowVolume predef StatsScreenInit ld a, [wCurPartyMon] inc a ld [wMenuCursorY], a call ClearScreen call ClearBGPalettes call MaxVolume farcall LoadTradeScreenBorder farcall Link_WaitBGMap farcall InitTradeSpeciesList farcall SetTrade...
#include <stdint.h> #include <stdlib.h> #include <algorithm> #include <iostream> #include <numeric> #include <vector> using namespace std; using default_counter_t = int64_t; // macro #define let auto const& #define overload4(a, b, c, d, name, ...) name #define rep1(n) \ for (default_counter_t i = 0, end_i = default...
#include <unistd.h> #include <cctype> #include <sstream> #include <string> #include <vector> #include "process.h" #include "linux_parser.h" using std::string; using std::to_string; using std::vector; // TODO: Return this process's ID int Process::Pid() { return pid_; } // TODO: Return this process's CPU utilization...
; char *strnset(char *s, int c, size_t n) SECTION code_clib SECTION code_string PUBLIC strnset EXTERN asm_strnset strnset: pop af pop bc pop de pop hl push hl push de push bc push af jp asm_strnset ; SDCC bridge for Classic IF __CLASSIC PUBLIC _strnset defc _strnset = strnset E...
/* * \file gemm_op_test.cc * \brief The gemm op test unit */ #include "gtest/gtest.h" #include <thread> #include "blaze/test/operator/operator_test_common.h" namespace blaze { TEST(TestGemm, TestCPU) { std::vector<std::string> output_str; output_str.push_back("output"); TestOperatorOutput<float>("./utest_d...
;------------------------------------------------------------------------------- ; File: SW_Mult.asm (CPE 325 Lab 5) ; Function: Uses Software multiplier to multiply numbers ; Input: base and base^n-1 ; Output: base^n ; Author: Tyler Phillips ; Date: 09/22/20 ;----------------------------------------------------...
dnl ARM mpn_mul_1 -- Multiply a limb vector with a limb and store the result dnl in a second limb vector. dnl Contributed by Robert Harley. dnl Copyright 1998, 2000, 2001, 2003 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl The GNU MP Library is free software; you can redistrib...
;****************************************************************************** ;* FS_CMP_T2.ASM - THUMB-2 STATE - * ;* * ;* Copyright (c) 1996 Texas Instruments Incorporated * ...
# dm-exec files begin with declarations of devices, and tables device bar = {name = "bar", uuid = "LKJDSFLS"} device foo = {name = "foo"} table t1 = [ error 1024 "", error 4096 "" ] # Then the special label .start annouces the begining of the # instructions .start remove-all begin-object "bar" create bar jmp-...
// Copyright 2013 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 <stdio.h> #include <cmath> #include <memory> #include <string> #include <vector> #include "gpu/command_buffer/client/gl_in_process_context.h" #...
# introductory example; finds the sum of the elements of an array .data # start of data segment x: .long 1 .long 5 .long 2 .long 18 sum: .long 0 .text # start of code segment .globl _start _start: movl $4, %eax # EAX will serve as a counter for ...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r13 push %rax push %rsi lea addresses_A_ht+0x13e32, %r10 nop nop nop nop cmp %r13, %r13 movw $0x6162, (%r10) nop nop nop sub $27344, %rsi lea addresses_normal_ht+0x16bf2, %r13 nop nop nop nop nop dec %rax mov (%r13), %esi nop nop nop add $4335, %r10...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r8 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0xf1a, %rbx nop nop nop cmp %rcx, %rcx mov $0x6162636465666768, %r13 movq %r13, (%rbx) nop nop nop nop xor %rbx, %rbx lea addresses_D_ht+0x1bd42, %rsi lea addresses_UC_ht+0x531...
;****************************************************************************** ;* ;* Adjustris - Block dropping puzzle game for Gameboy ;* ;* Written in 2017 by Dave VanEe (tbsp) dave.vanee@gmail.com ;* ;* To the extent possible under law, the author(s) have dedicated all copyright ;* and related and neighboring ri...
#include "TLS.h" #include <Windows.h> void GetTlsHandshakeInfo(const TLS_HANDSHAKE_PROTO* hsproto, uint8_t* hstype, uint32_t* hslen) { uint8_t handshake[4]; uint8_t type; uint32_t len; memcpy(handshake, hsproto->handshake, sizeof(handshake)); type = handshake[0]; handshake[0] = 0; len = ntohl(*((uint32_t*)(ha...
; A301686: Coordination sequence for node of type V1 in "krh" 2-D tiling (or net). ; 1,5,7,14,17,19,28,29,31,42,41,43,56,53,55,70,65,67,84,77,79,98,89,91,112,101,103,126,113,115,140,125,127,154,137,139,168,149,151,182,161,163,196,173,175,210,185,187,224,197,199,238,209,211,252,221,223,266,233,235,280,245,247,294,257,25...
/* Copyright (c) 2018 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #include "tools/db-upgrade/NebulaKeyUtilsV1.h" namespace nebula { // static std::string NebulaKeyUtilsV1::indexPrefix(...
/** * Copyright (C) 2016 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 usef...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1991 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: tlCommonGState.asm AUTHOR: John Wedgwood, Jan 3, 1992 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date...
; A070345: a(n) = 3^n mod 35. ; 1,3,9,27,11,33,29,17,16,13,4,12,1,3,9,27,11,33,29,17,16,13,4,12,1,3,9,27,11,33,29,17,16,13,4,12,1,3,9,27,11,33,29,17,16,13,4,12,1,3,9,27,11,33,29,17,16,13,4,12,1,3,9,27,11,33,29,17,16,13,4,12,1,3,9,27,11,33,29,17,16,13,4,12,1,3,9,27,11,33,29,17,16,13,4,12,1,3,9,27,11,33,29,17,16,13,4,12,...
; --------------------------------------------------------------------------- ; Animation script - special stage entry effect from beta ; --------------------------------------------------------------------------- Ani_Vanish: dc.w @vanish-Ani_Vanish @vanish: dc.b 5, 0, 1, 0, 1, 0, 7, 1, 7, 2, 7, 3, 7, 4, 7, 5, 7, 6, 7,...
;*********************************************************** ; Version 2.40.00 ;*********************************************************** ;**************************************************************** ; Function: maxidx34 ; Processor: C55xx ; Description: Descr...
// Copyright (c) 2011 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. // For WinDDK ATL compatibility, these ATL headers must come first. #include "build/build_config.h" #if defined(OS_WIN) #include <atlbase.h> // NOLIN...
;/===-- aes.asm --------------------*- shared/unix/amd64/aes-ni -*- ASM -*-===*/ ; AES-NI implementation ;/===----------------------------------------------------------------------===*/ BITS 64 global _aes_forward_ASM global _aes_inverse_ASM section .text _aes_forward_ASM: MOVDQU XMM0, [RDI] MOVDQU XMM1,...
; A100105: 2^prime(n)-prime(n). ; 2,5,27,121,2037,8179,131055,524269,8388585,536870883,2147483617,137438953435,2199023255511,8796093022165,140737488355281,9007199254740939,576460752303423429,2305843009213693891,147573952589676412861,2361183241434822606777,9444732965739290427319,604462909807314587353009,9671406556917033...
; A107767: a(n) = (1 + 3^n - 2*3^(n/2))/4 if n is even, (1 + 3^n - 4*3^((n-1)/2))/4 if n odd. ; 0,1,4,16,52,169,520,1600,4840,14641,44044,132496,397852,1194649,3585040,10758400,32278480,96845281,290545684,871666576,2615029252,7845176329,23535617560,70607118400,211821620920,635465659921,1906397776924,5719195722256,17157...
; ZX Spectrum emulator ; Opcode tables ; (c) Freeman, August 2000, Prague ; ----------------------------------------------------------------------------- ALIGN OpTable: DW nop_ ; 00 opcodes DW ld_bc_nn DW ld_ibc_a DW inc_bc DW inc_b DW dec_b DW ld_b_n DW rlca DW ex_af_af DW add_hl_b...
; void sp1_GetSprClrAddr(struct sp1_ss *s, uchar **sprdest) SECTION code_temp_sp1 PUBLIC _sp1_GetSprClrAddr _sp1_GetSprClrAddr: pop af pop hl pop de push de push hl push af INCLUDE "temp/sp1/zx/sprites/asm_sp1_GetSprClrAddr.asm"
; A014903: a(1)=1, a(n) = 19*a(n-1) + n. ; 1,21,402,7642,145203,2758863,52418404,995949684,18923044005,359537836105,6831218886006,129793158834126,2466070017848407,46855330339119747,890251276443275208,16914774252422228968,321380710796022350409,6106233505124424657789,116018436597364068498010,2204350295349917301462210,418...
MVI A, 00FFH ; 00FFH verisini A ya yükle MVI B, 10 ; 10 verisini B ye yükle LXI H, 0200H ; 0200H verisini HL ye yükle NXT: MOV M, A ; M(HL) ye A yı yükle INX H ; HL yi 1 arttır DCR B ; B yi 1 azalt JNZ NXT ; 0 değilse NXT ye atla HLT ; Sonlandır ; 0200H dan başlayarak ileri doğru 10 bellek boyunca ; tüm bellekler...
; Z80 test - the full version. ; ; Copyright (C) 2012 Patrik Rak (patrik@raxoft.cz) ; ; This source code is released under the MIT license, see included license.txt. macro testname db "FULL" endm maskflags equ 0 onlyflags equ 0 postccf equ ...
; A052518: Number of pairs of cycles of cardinality at least 2. ; Submitted by Christian Krause ; 0,0,0,0,6,40,260,1848,14616,128448,1246752,13273920,153996480,1935048960,26193473280,380120670720,5888620684800,97007636275200,1693590745190400,31237853849395200,607035345406156800,12396801856352256000,26544193320056832000...
STRUCT Hitbox x0 BYTE 0 ; min X x1 BYTE 0 ; max X (inclusive) y0 BYTE 0 ; min Y y1 BYTE 0 ; max Y (inclusive) ENDS ; ; Transform a sprite's hitbox from pattern space to screenspace ; IX = address of sprite attributes struct ; DE = address of pattern-space hitbox ; HL = address ...
#pragma once namespace itertools{ template <typename F , typename C> class filterfalse{ C container; F filter; public: filterfalse(F f, C c) : filter(f), container(c){} class iterator{ F filter; typename C::iterator it; t...
/* -*- Mode: C++; indent-tabs-mode: nil -*- */ #include <schwa/unicode.h> #include <cstring> #include <sstream> namespace schwa { // ============================================================================ // UnicodeException // ============================================================================ Unicod...
#include "bitcoinunits.h" #include <QStringList> BitcoinUnits::BitcoinUnits(QObject *parent): QAbstractListModel(parent), unitlist(availableUnits()) { } QList<BitcoinUnits::Unit> BitcoinUnits::availableUnits() { QList<BitcoinUnits::Unit> unitlist; unitlist.append(BTC); unitlist.append(mBT...
; A073760: Integers m such that A073758(m) = 4. ; 6,10,14,18,22,26,30,34,38,42,46,50,54,58,62,66,70,74,78,82,86,90,94,98,102,106,110,114,118,122,126,130,134,138,142,146,150,154,158,162,166,170,174,178,182,186,190,194,198,202,206,210,214,218,222,226,230 mov $1,$0 mul $1,4 add $1,6
; A255221: Number of (n+2) X (1+2) 0..1 arrays with no 3 x 3 subblock diagonal sum 0 and no antidiagonal sum 0 and no row sum 2 and no column sum 2. ; 23,22,31,43,61,88,127,184,268,391,571,835,1222,1789,2620,3838,5623,8239,12073,17692,25927,37996,55684,81607,119599,175279,256882,376477,551752,808630,1185103,1736851,254...
/*** DEVSIM Copyright 2013 Devsim LLC 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 writing, soft...
; A167320: Totally multiplicative sequence with a(p) = 10*(p-3) for prime p. ; Submitted by Jamie Morken(s2) ; 1,-10,0,100,20,0,40,-1000,0,-200,80,0,100,-400,0,10000,140,0,160,2000,0,-800,200,0,400,-1000,0,4000,260,0,280,-100000,0,-1400,800,0,340,-1600,0,-20000,380,0,400,8000,0,-2000,440,0,1600,-4000,0,10000,500,0,1600...
/* * FILE: gym101291F.cpp * * @author: Arafat Hasan Jenin <opendoor.arafat[at]gmail[dot]com> * * LINK: https://codeforces.com/gym/101291 * * DATE CREATED: 08-02-19 15:27:46 (+06) * LAST MODIFIED: 08-02-19 15:33:26 (+06) * * VERDICT: Accepetd * * DEVELOPMENT HISTORY: * Date Version Description ...
; A141325: a(n) = A000045(n) + A131531(n+3). ; 1,1,1,1,3,5,9,13,21,33,55,89,145,233,377,609,987,1597,2585,4181,6765,10945,17711,28657,46369,75025,121393,196417,317811,514229,832041,1346269,2178309,3524577,5702887,9227465,14930353,24157817,39088169,63245985,102334155,165580141,267914297,433494437,701408733,1134903169,18...
////////////////////////////////////////////////////////////////////////////// /// Copyright 2003 and onward LASMEA UMR 6602 CNRS/U.B.P Clermont-Ferrand /// Copyright 2009 and onward LRI UMR 8623 CNRS/Univ Paris Sud XI /// /// Distributed under the Boost Software License, Version 1.0 /// ...
//===-test_tfidfvectorizer_tf_onlybigrams_levelempty_dnnl.cc-----------------------------------------------------------===// // // Copyright (C) 2019-2020 Alibaba Group Holding Limited. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the Licen...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r13 push %r8 push %rdi push %rdx lea addresses_normal_ht+0x1a46d, %rdi add $51158, %r11 mov $0x6162636465666768, %rdx movq %rdx, %xmm3 vmovups %ymm3, (%rdi) nop nop nop nop nop and $36647, %r13 lea addresses_WT_ht+0xa46d, %r8 clflush (%r8)...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r15 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_UC_ht+0x1d5ef, %r15 nop nop nop nop nop and $3830, %rax movl $0x61626364, (%r15) and $37234, %rbp lea addresses_D_ht+0xdf6f, %rsi lea addresses_A_ht+0x18c93, %rdi add $2948, %r13 mo...
; A026390: Expansion of (2 + x + x^2)/((1 - x)*(1 - x - x^2)). ; Submitted by Jamie Morken(s1) ; 2,5,11,20,35,59,98,161,263,428,695,1127,1826,2957,4787,7748,12539,20291,32834,53129,85967,139100,225071,364175,589250,953429,1542683,2496116,4038803,6534923,10573730 mov $1,2 mov $2,1 lpb $0 sub $0,2 add $2,$1 add $1...
;/*! ; @file ; ; @ingroup fapi ; ; @brief DosOpen2 ; ; (c) osFree Project 2022, <http://www.osFree.org> ; for licence see licence.txt in root directory, or project website ; ; This is Family API implementation for DOS, used with BIND tools ; to link required API ; ; @author Yuri Prokushev (yuri.prokushe...
; A053644: Most significant bit of n, msb(n); largest power of 2 less than or equal to n; write n in binary and change all but the first digit to zero. ; 0,1,2,2,4,4,4,4,8,8,8,8,8,8,8,8,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32...
include mathhost.i CGROUP group code code segment dword 'CODE' assume cs:CGROUP,ds:CGROUP MATHLIB_2JUMP log10 _r_ml_log10 math_log10 code ends end
; ; Sharp OZ family functions ; ; ported from the OZ-7xx SDK by by Alexander R. Pruss ; by Stefano Bodrato - Oct. 2003 ; ; ; gfx functions ; ; void ozsetfont(int font) ; ; ; ------ ; $Id: ozsetfont.asm,v 1.4 2016/07/14 17:44:17 pauloscustodio Exp $ ; SECTION code_clib PUBLIC ozsetfont PUBLIC _ozsetfont ;PUB...
// © 2012 - 2019 Soverance Studios // https://soverance.com // 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 ap...
SFX_Battle_26_Ch1: unknownnoise0x20 10, 255, 80 unknownnoise0x20 15, 255, 81 unknownnoise0x20 8, 242, 81 unknownnoise0x20 6, 255, 82 unknownnoise0x20 6, 255, 83 unknownnoise0x20 8, 255, 84 unknownnoise0x20 15, 242, 84 endchannel
#include "repository/ISwiftMtParser.h" #include "SwiftMtMessage.pb.h" #include <vector> #include <string> #include "BaseErrorListener.h" #include "SwiftMtParser_MT970Lexer.h" // Generated from C:/programming/message-converter-c/message/generation/swift-mt-generation/repository/SR2018/grammars/SwiftMtParser_MT970.g4 ...
#include <cstdlib> #include <memory> #include "envoy/config/listener/v3/quic_config.pb.validate.h" #include "envoy/network/exception.h" #if defined(__GNUC__) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-parameter" #pragma GCC diagnostic ignored "-Winvalid-offsetof" #endif #include "quiche/qui...
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r14 push %rdi push %rsi lea addresses_WT_ht+0x1b733, %r14 nop nop cmp %rdi, %rdi mov $0x6162636465666768, %r13 movq %r13, (%r14) nop nop nop nop nop and $61322, %rsi pop %rsi pop %rdi pop %r14 pop %r13 ret .global s_faulty_load s_faulty_load: push %r10 p...
; ; $Id: lm48p5695_10.asm,v 1.7 2011/05/22 23:38:42 iakramov Exp $ ; ; This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. ; ; Copyright 2007-2020 Broadcom Inc. All rights reserved. ; ; ; This is the default program for 5695s on the 48 po...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The WIREX developers // Copyright (c) 2017-2018 The WIRE developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/m...
#include "gravity/NBodySolver.h" #include "bench/Session.h" #include "math/rng/VectorRng.h" #include "quantities/Iterate.h" #include "system/Settings.h" #include "tests/Setup.h" #include "thread/Tbb.h" using namespace Sph; static void benchmarkNBody(const RunSettings& settings, Benchmark::Context& context) { Body...
; void in_GetKeyReset(void) ; 09.2005 aralbrec SECTION code_clib PUBLIC in_GetKeyReset PUBLIC _in_GetKeyReset EXTERN _in_KeyDebounce, _in_KbdState .in_GetKeyReset ._in_GetKeyReset ld a,(_in_KeyDebounce) ld e,a ld d,0 IF __CPU_INTEL__ ex de,hl ld (_in_KbdState),hl ex de,hl ELSE ld (_in_KbdState),d...
;;;contains all system exception interrupts ;;;and other system interface interrupts ;;;note: exception 15 and 20-31 are Intel Reserved align 4 global call_c_test extern call_asm_test extern interrupt_default_handler extern keyboard_test section .text global sys_break sys_break: mov eax, 0x1000 int 0x30 ...
spawn: MACRO ; map, x, y map_id \1 db \2, \3 ENDM SpawnPoints: ; entries correspond to SPAWN_* constants spawn REDS_HOUSE_2F, 3, 3 spawn CINNABAR_ISLAND, 11, 12 spawn ROUTE_23, 9, 6 spawn SHIZUOKA, 5, 13 spawn KYOTO, 27, 29 ...
#include "stdafx.h" #include "updater.h" #include "../core.h" #include "../async_task.h" #include "../http_request.h" #include "../utils.h" #include "../../common.shared/version_info.h" #include "../../external/openssl/openssl/md5.h" namespace core { namespace update { const int32_t chec...
; A041038: Numerators of continued fraction convergents to sqrt(24). ; Submitted by Jon Maiga ; 4,5,44,49,436,485,4316,4801,42724,47525,422924,470449,4186516,4656965,41442236,46099201,410235844,456335045,4060916204,4517251249,40198926196,44716177445,397928345756,442644523201,3939084531364,4381729054565,38992916967884,4...
; A170642: Number of reduced words of length n in Coxeter group on 9 generators S_i with relations (S_i)^2 = (S_i S_j)^49 = I. ; 1,9,72,576,4608,36864,294912,2359296,18874368,150994944,1207959552,9663676416,77309411328,618475290624,4947802324992,39582418599936,316659348799488,2533274790395904 mov $1,1 lpb $0,1 mul $...
; size_t b_vector_erase_block(b_vector_t *v, size_t idx, size_t n) SECTION code_adt_b_vector PUBLIC b_vector_erase_block EXTERN b_array_erase_block defc b_vector_erase_block = b_array_erase_block
// // Created by Poliakoff, David Zoeller on 4/26/21. // #include <common/RAJAPerfSuite.hpp> #include <common/Executor.hpp> #include "sparse/tracked_testing.hpp" #include <iostream> #include <Kokkos_Core.hpp> // For RPS version of BLAS Level-1 Tests #include "blas/blas1/tracked_testing.hpp" #include "blas/blas2/tracked...
; BSD ; void bcopy(const void *src, void *dst, size_t len) SECTION code_string PUBLIC asm_bcopy EXTERN asm_memcpy defc asm_bcopy = asm_memcpy ; enter : bc = size_t len ; hl = void *s2 = src ; de = void *s1 = dst ; ; exit : hl = void *s1 = dst ; de = ptr in s1 to one byte...
.include "thunderboard.inc" .area code1 (abs) .org 0x0000 ljmp start .org 0x0100 start: mov WDTCN, #0xDE mov WDTCN, #0xAD mov P1MDOUT, #(1 << 4 | 1 << 5 | 1 << 6) mov P1SKIP, #(1 << 4 | 1 << 5 | 1 << 6) mov XBR2, #(1 << 6) loop: clr THB_LED_G mov a, #250 lcall delay setb THB_LED_G ...
; Madram/OVL version / modified roudoudou ; V1: replace D4 (32 bits) by A': 16.03 s ; V2: replace D3 by DE' 14.83 s / 217 bytes ; V3: exx' by default (prepare v4) 14.86 s / 234 bytes ; V4: replace D6 by HL' 14.23 s / 217 bytes #800 buffer ; v5: slight cleanup 14.10...
; A323409: Greatest common divisor of Product (p_i^e_i)-1 and n, when n = Product (p_i^e_i); a(n) = gcd(n, A047994(n)). ; Submitted by Jon Maiga ; 1,1,1,1,1,2,1,1,1,2,1,6,1,2,1,1,1,2,1,4,3,2,1,2,1,2,1,2,1,2,1,1,1,2,1,12,1,2,3,4,1,6,1,2,1,2,1,6,1,2,1,4,1,2,5,14,3,2,1,12,1,2,3,1,1,2,1,4,1,2,1,8,1,2,3,2,1,6,1,20,1,2,1,12,...
; A084159: Pell oblongs. ; 1,3,21,119,697,4059,23661,137903,803761,4684659,27304197,159140519,927538921,5406093003,31509019101,183648021599,1070379110497,6238626641379,36361380737781,211929657785303,1235216565974041,7199369738058939 mov $3,2 mov $5,$0 lpb $3,1 mov $0,$5 sub $3,1 add $0,$3 sub $0,1 mov $4,$0 ...
.file "a18.c" .intel_syntax .text .def _eax; .scl 2; .type 32; .endef _eax: push ebp mov ebp, esp pop ebp ret # ---------------------- .def _ebp; .scl 2; .type 32; .endef _ebp: push ebp mov ebp, esp pop ebp ret # ---------------------- .def _ezx; .scl 2; .ty...
dnl Alpha mpn_invert_limb -- Invert a normalized limb. dnl Copyright 1996, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. dnl 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 the GNU Lesser General Publ...
////////////////////////////////////////////////////////////////////////// // // dllmain.cpp : Implements DLL exports and COM class factory // // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO // THE IMPLIED WARRANTIES OF M...
// S-CPU-A hardware DMA bug test // ============================= // // Copyright (c) 2021, Marcus Rowe <undisbeliever@gmail.com>. // Distributed under The MIT License: https://opensource.org/licenses/MIT // I can also trigger this bug with MDMA ch 5, HDMA ch 0 define mChannel = 5 define hChannel = 0 include "dma-t...
#include "Platform.inc" #include "FarCalls.inc" #include "Motor.inc" #include "TestFixture.inc" radix decimal PstrconTest code global testArrange testArrange: banksel TMR0 movf TMR0, W banksel PSTRCON movwf PSTRCON testAct: fcall initialiseMotor testAssert: banksel PSTRCON .assert "(pstrcon & 0b000100...
#include "CC_Include.h" int _fastcall CC_PutTrigger_Count(DWORD This, DWORD cc_gui_type) { DWORD nItemCount, i; DWORD nItemClass; DWORD sum = 0; nItemCount = *(DWORD*)(This+0xC); for (i = 0; i < nItemCount; i++) { nItemClass = ((DWORD*)(*(DWORD*)(This+0x10)))[i]; if (Proc_G...
; ; $Id: 0x2a.asm,v 1.1.1.1 2016/03/27 08:40:13 raptor Exp $ ; ; 0x2a explanation - from xchg rax,rax by xorpd@xorpd.net ; Copyright (c) 2016 Marco Ivaldi <raptor@0xdeadbeef.info> ; ; This snippet shifts the qword(s) pointed by rbx by 1 ; qword (64 bits) in the stack. For instance, if the ; string "ABCDEFGHIJKLMNOPPQ...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r9 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0xe77f, %rsi lea addresses_UC_ht+0xecbf, %rdi nop nop sub $24480, %r9 mov $97, %rcx rep movsl nop add $61345, %r10 lea addresses_WT_ht+0x19b07, %rbx clflush (%rbx) nop nop nop ...
.const CIA2_BASE=$dc00 .const CIA2_PORTA=CIA2_BASE+0 .const CIA2_PORTB=CIA2_BASE+1 .const CIA2_PORTA_DIR=CIA2_BASE+2 .const CIA2_PORTb_DIR=CIA2_BASE+3 .const CIA2_TIMERA_LO=CIA2_BASE+4 .const CIA2_TIMERA_HI=CIA2_BASE+5 .const CIA2_TIMERB_LO=CIA2_BASE+6 .const CIA2_TIMERB_HI=CIA2_BASE+7 .const CIA2_TOD_TS=CIA2_BASE+8 ....
/* * By downloading, copying, installing or using the software you agree to this license. * If you do not agree to this license, do not download, install, * copy or use the software. * * * License Agreement * For Open Source Computer Vision Library * (3 - clause BSD License) * * Redistribution and use ...
setrepeat 2 frame 0, 10 frame 4, 10 dorepeat 1 endanim
/********************************************************************** * Copyright (c) 2008-2014, Alliance for Sustainable Energy. * All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as publishe...
############################################################################### # 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...
name "hi-world" ; this example prints out "hello world!" ; by writing directly to video memory. ; in vga memory: first byte is ascii character, byte that follows is character attribute. ; if you change the second byte, you can change the color of ; the character even after it is printed. ; character attribute ...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r14 push %r15 push %rax push %rcx push %rdi push %rsi lea addresses_D_ht+0x140bb, %r13 nop nop nop and %rax, %rax movb (%r13), %r10b nop nop sub %r14, %r14 lea addresses_normal_ht+0x15b91, %rsi lea addresses_D_ht+0xa8d9, %rdi nop nop nop nop dec %r1...
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * 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...
CGAGrapes label byte word C_BLACK Bitmap <67,41,BMC_PACKBITS,BMF_MONO> db 0xf8, 0x00 db 0xf8, 0x00 db 0xfd, 0x00, 0x04, 0x7f, 0xfc, 0x78, 0x00, 0x00 db 0xfe, 0x00, 0x05, 0x07, 0x80, 0x5f, 0x90, 0x00, 0x00 db 0xfe, 0x00, 0x05, 0x1c, 0x0c, 0xe0, 0x30, 0x00, 0x00 db 0x08, 0x00, 0x00, 0x01, 0xe7, 0x...
INKEY inkey HALT XOR A LD (aLAST_KEY+1),A EI ahl0 CALL KEYSCAN LD A,E INC A JR Z,INKEY LD A,D LD HL,SYMTAB CP $18 JR Z,aHLSM2 LD HL,CAPSTAB CP $27 JR Z,aHLSM2 ...
//========================================================================= // Copyright (c) Kitware, Inc. // All rights reserved. // See LICENSE.txt for details. // // This software is distributed WITHOUT ANY WARRANTY; without even // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // PURPOSE...
troll_idle: DB 0, 0, 0, 0, 0, 0, 81, 17, 21, 0, 0, 0 DB 0, 0, 0, 0, 0, 16, 21, 17, 17, 0, 0, 0 DB 0, 0, 0, 0, 0, 16, 85, 49, 51, 1, 0, 0 DB 0, 0, 0, 0, 0, 161, 17, 51, 51, 19, 0, 0 DB 0, 0, 0, 0, 0, 49, 51, 1...