text
stringlengths
1
1.05M
// Copyright 2022 The IREE Authors // // Licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception #include "iree/compiler/Dialect/Flow/IR/PartitionableLoopsInterface.h" #include "iree/compiler/Di...
; A104512: a(n) is the minimum number that is the first of k > 1 consecutive integers whose sum equals n, or 0 if impossible. ; Submitted by Jamie Morken(s2) ; 0,0,1,0,2,1,3,0,2,1,5,3,6,2,1,0,8,3,9,2,1,4,11,7,3,5,2,1,14,4,15,0,3,7,2,1,18,8,4,6,20,3,21,2,1,10,23,15,4,8,6,3,26,2,1,5,7,13,29,4,30,14,3,0,2,1,33,5,9,7,35,4,...
include loader.asm init call PTxPlay ret interrupt call PTxPlay+5 ei ret ; Loop until space is pressed main halt ld a,$7f in a,($fe) rra jr c,main ret clean call PTxPlay+8 ret org $c000 PTxPlay incbin PTxPlay incbin cycler.pt3 end loader
global _start section .text _start: xor eax, eax ; zero out EAX xor ebx, ebx ; xor ecx, ecx ; xor edx, edx ; socket: ; /usr/include/asm/unistd_64.h ; #define __NR_socket 41 ; sockfd = socket(AF_INET, SOCK_STREAM, 0); xor rdi, rdi ; mov rdx, rdi ; // 0 add rdi, 2 ; // python -c 'import socket; p...
LCMasks label byte word C_BLACK Bitmap <71,100,BMC_PACKBITS,BMF_4BIT or mask BMT_MASK> db 0x00, 0x1f, 0xfa, 0xff, 0x00, 0xf0 db 0x01, 0xdd, 0xd0, 0xe1, 0x00, 0x01, 0xdd, 0xd0 db 0x00, 0x7f, 0xfa, 0xff, 0x00, 0xfc db 0x01, 0xd0, 0x09, 0xe1, 0x99, 0x01, 0x00, 0xd0 db 0x00, 0x7f, 0xfa, 0xff, 0x00, 0xfc db ...
# check if arch is X86_64 A = arch A == ARCH_X86_64 ? next : dead A = sys_number A >= 0x40000000 ? dead : next A == fstat ? ok : next A == openat ? ok : next A == write ? ok : next A == exit ? ok : next A == exit_group ? ok : next A == mprotect ? ok : next A == mmap ? ok : next A == munmap ? ok : next A == brk ? ok : n...
; A002110 o=0: Primorial numbers (first definition): product of first n primes. Sometimes written prime(n)#. ; Coded manually 2021-02-24 by Antti Karttunen, https://github.com/karttu ; With 64-bit implementation this is even in theory good only up to n=15, as A002110(15) = 614889782588491410 is the greatest primorial <...
; A047620: Numbers that are congruent to {0, 1, 2, 5} mod 8. ; 0,1,2,5,8,9,10,13,16,17,18,21,24,25,26,29,32,33,34,37,40,41,42,45,48,49,50,53,56,57,58,61,64,65,66,69,72,73,74,77,80,81,82,85,88,89,90,93,96,97,98,101,104,105,106,109,112,113,114,117,120,121,122 add $0,4 mov $1,$0 div $1,4 mul $1,2 mov $2,$0 lpb $2,1 mov...
; A190974: a(n) = 7*a(n-1) - 5*a(n-2), with a(0)=0, a(1)=1. ; 0,1,7,44,273,1691,10472,64849,401583,2486836,15399937,95365379,590557968,3657078881,22646762327,140241941884,868459781553,5378008761451,33303762422392,206236293149489,1277135239934463,7908765213793796,48975680296884257 mov $2,$0 mov $3,1 lpb $2 add $4,$3 ...
#pragma once #include <future> #include <thread> #include "doctest.h" #include <hydra/mpsc_queue.hpp> TEST_CASE("mpsc_queue::mpsc_queue()") { hydra::mpsc_queue<int> target; REQUIRE(target.capacity() == 0); REQUIRE(!target); REQUIRE(target.size() == 0); } TEST_CASE("mpsc_queue::mpsc_queue(capa...
; void *b_vector_size(b_vector_t *v) SECTION code_adt_b_vector PUBLIC _b_vector_size EXTERN _b_array_size defc _b_vector_size = _b_array_size
db 0 ; species ID placeholder db 55, 104, 105, 52, 94, 75 ; hp atk def spd sat sdf db WATER, WATER ; type db 60 ; catch rate db 178 ; base exp db NO_ITEM, DEEPSEATOOTH ; items db GENDER_F50 ; gender ratio db 20 ; step cycles to hatch INCBIN "gfx/pokemon/huntail/front.dimensions" db GROWTH_ERRATI...
include ksamd64.inc SkFrame struct ReturnAddress dq ? HomeRcx dq ? HomeRdx dq ? HomeR8 dq ? HomeR9 dq ? Param5 dq ? Param6 dq ? Param7 dq ? Param8 dq ? SkFrame ends ...
;La problema de la S4 sa se selecteze octetul de rang3 din fiecare dublucuvant care este divizibil cu 11, sa se aleaga ;maximul dintre ele si sa se afiseze in baza 10 assume cs:code, ds:data data segment sir dd 11223344h, 0aabbccddh, 0b0b0b0bh, 16161616h, 79797979h ls equ $ - sir maxi db 0 data ends code segmen...
global test_case extern sys.error section .text test_case: mov rax, 42 call sys.error
; constants.asm ; Game Stack equ Start-1 ; Put our stack right below the program BinPath equ "..\bin" ; Relative to main.asm TapFile equ BinPath+"\ZalaXa.tap" ; Filename of tap file SMC equ 0 ...
/* * Copyright 2018-present Facebook, Inc. * * 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...
dnl AMD K6 mpn_sqr_basecase -- square an mpn number. dnl Copyright 1999, 2000, 2001, 2002 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 dnl modify it under the terms of the GNU Lesser General Public Licen...
// Copyright (c) 2012-2016 The Ilcoin Core developers // All Rights Reserved. Ilgamos International 2017© #include "bench.h" #include "wallet/wallet.h" #include <boost/foreach.hpp> #include <set> static void addCoin(const CAmount& nValue, const CWallet& wallet, std::vector<COutput>& vCoins) { int nInput = 0; ...
#ifdef OC_ARM_ASM @******************************************************************** @* * @* THIS FILE IS PART OF THE OggTheora SOFTWARE CODEC SOURCE CODE. * @* USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS * @* GOVERNED BY A BSD-S...
#include <iostream> #include "unit_test_image_function_cuda.h" #include "../unit_test_framework.h" #include "../unit_test_helper.h" #include "../../../src/cuda/cuda_device.cuh" #include "../../../src/cuda/cuda_helper.cuh" int main( int argc, char* argv[] ) { if ( !multiCuda::isCudaSupported() ) { std::cout...
// Copyright 2009 Google Inc. // // 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 ...
;**************************************************************************** ;* BOOT.ASM ;* ;* THIS IS THE INITAL BOOT ROUTINE FOR TMS470 C++ PROGRAMS. ;* IT MUST BE LINKED AND LOADED WITH ALL C++ PROGRAMS. ;* ;* THIS MODULE PERFORMS THE FOLLOWING ACTIONS: ;* 1) ALLOCATES THE STACK AND INITIALIZES THE STACK POINTER...
.file "diskio" .init main .string exampleFile "/tmp/myfile.txt" .string prompt "Please enter something to write to file: " <main: size r0 gs pushw ls r0 ; Store the current size of the global stack locally call prompt_user call get_user_input popw r0 ls ; Get the original size...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2018 The Arowanacoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include <config/bitcoin-config.h> #endif #inclu...
; A010589: Decimal expansion of cube root of 17. ; Submitted by Christian Krause ; 2,5,7,1,2,8,1,5,9,0,6,5,8,2,3,5,3,5,5,4,5,3,1,8,7,2,0,8,7,3,9,7,2,6,1,1,6,4,2,7,9,0,1,6,3,2,4,5,4,6,9,6,2,5,9,8,4,8,0,2,2,3,7,6,2,1,9,9,3,9,9,3,3,0,3,0,6,7,0,1,5,0,3,2,4,3,5,1,5,3,0,4,4,5,6,5,1,5,1,0 mov $2,1 mov $3,$0 mul $3,4 lpb $3 ...
; ; jmemdosa.asm ; ; Copyright (C) 1992, Thomas G. Lane. ; This file is part of the Independent JPEG Group's software. ; For conditions of distribution and use, see the accompanying README file. ; ; This file contains low-level interface routines to support the MS-DOS ; backing store manager (jmemdos.c). Routines are ...
// Fill out your copyright notice in the Description page of Project Settings. #include "ProjectileBase.h" #include "Components/StaticMeshComponent.h" #include "GameFramework/ProjectileMovementComponent.h" #include "Kismet/GameplayStatics.h" #include "Particles/ParticleSystem.h" #include "Particles/ParticleSystemCom...
.size 8000 .text@48 ei jp lstatint .text@100 jp lbegin .text@150 lbegin: ld c, 41 ld b, 03 lbegin_waitm3: ldff a, (c) and a, b cmp a, b jrnz lbegin_waitm3 ld a, 20 ldff(c), a ld a, 02 ldff(ff), a xor a, a ldff(0f), a ei ld c, 47 ld a, ff ldff(c), a inc a .text@1000 lstatint: nop nop nop nop ...
; $Id: bs3-mode-SwitchToPAE32.asm $ ;; @file ; BS3Kit - Bs3SwitchToPAE32 ; ; ; Copyright (C) 2007-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/or modify it under the terms ...
; ; BASIC-DOS Command Interpreter ; ; @author Jeff Parsons <Jeff@pcjs.org> ; @copyright (c) 2020-2021 Jeff Parsons ; @license MIT <https://basicdos.com/LICENSE.txt> ; ; This file is part of PCjs, a computer emulation software project at pcjs.org ; include cmd.inc CODE SEGMENT org 100h EXTNEAR <all...
/****************************************************************************** * ____ _ _____ * * / ___| / \ | ___| C++ * * | | / _ \ | |_ Actor * ...
; A117828: Start with 1 and repeatedly reverse the decimal digits and add 4 to get the next term. ; 1,5,9,13,35,57,79,101,105,505,509,909,913,323,327,727,731,141,145,545,549,949,953,363,367,767,771,181,185,585,589,989,993,403,308,807,712,221,126,625,530,39,97,83,42,28,86,72,31,17,75,61,20,6,10,5,9,13,35,57,79,101,105,5...
; A040757: Continued fraction for sqrt(786). ; 28,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56 pow $1,$0 sub $1,2 gcd $1,$0 mul $1,28 mov $0,$1
; size_t w_vector_insert_n_callee(w_vector_t *v, size_t idx, size_t n, void *item) SECTION code_clib SECTION code_adt_w_vector PUBLIC _w_vector_insert_n_callee EXTERN asm_w_vector_insert_n _w_vector_insert_n_callee: pop ix pop hl pop bc pop de pop af push ix jp asm_w_vector_insert_n
PUBLIC cleararea EXTERN pixeladdress EXTERN leftbitmask, rightbitmask ; ; $Id: clrarea2.asm,v 1.4 2015/01/19 01:32:46 pauloscustodio Exp $ ; ; *********************************************************************** ; ; Clear specified graphics area in map. ; ; Design & programming by Gunther Strube, Copyright (C)...
PAGE 60,132 ; TITLE DEBMES.ASM - DEBUGGER MESSAGES PC DOS ;/* ; * Microsoft Confidential ; * Copyright (C) Microsoft Corporation 1991 ; * All Rights Reserved. ; */ IF1 %OUT COMPONENT=DEBUG, MODULE=DEBMES ENDIF ;******************* START OF S...
/* * wavetable.cpp * Samuel Laing - 2019 * * just a few utility functions to be used by the GendyOscillator */ #include "wavetable.hpp" namespace rack { float wrap(float in, float lb, float ub) { float out = in; if (in > ub) out = lb; else if (in < lb) out = ub; return out; } ...
#include "getAminoacidChanges.h" #include <fmt/format.h> #include <nextclade/nextclade.h> #include <nextclade/private/nextclade_private.h> #include <boost/algorithm/string/join.hpp> #include <vector> #include "../utils/contract.h" #include "../utils/mapFind.h" #include "../utils/safe_cast.h" namespace { std::vect...
/* core_mesh.cpp - Copyright 2019/2020 Utrecht University 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 l...
; A054254: a(n) is n plus the minimum of the a(i)*a(n-i) of the previous i=1..n-1. ; 0,1,2,5,8,13,19,26,34,43,53,64,76,89,103,118,134,151,169,188,208,229,251,274,298,323,349,376,404,433,463,494,526,559,593,628,664,701,739,778,818,859,901,944,988,1033,1079,1126,1174,1223,1273 mov $2,$0 pow $0,2 add $0,5 sub $2,3 trn $2...
SECTION "Rant #0", ROMX[$6000] SRAMCommonPattern:: db "Well, I need to make a $1000 (minus 3! :p) byte long pattern. So I thought I would write some nice rant to fill that up, yeah?" ds 16 db "First, let me give some credits to some guys who helped me quite a bit. " db "DevEd has been a big help, giving m...
#include <iostream> #include <string> #include <random> struct Position { int x, y; }; unsigned N = 6; std::vector<Position> HISTORIQUE; void afficher(const Position& last_move={0, 0}) { std::vector<std::string> liste{N*N, " ."}; int x, y; for(unsigned i = 0; i < HISTORIQUE.size(); ++i) { ...
[BITS 32] ; This code lives at the bottom of memory, because it's executed before paging is set up, unlike ; the rest of the kernel that lives at the top of memory. [SECTION .boot] ; The multiboot boot loader starts executing the kernel from here. [GLOBAL EntryPoint] [EXTERN Stack] EntryPoint: ; Save the pointer to ...
; A310372: Coordination sequence Gal.4.52.4 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. ; 1,4,10,14,18,22,28,32,36,42,46,50,54,60,64,68,74,78,82,86,92,96,100,106,110,114,118,124,128,132,138,142,146,150,156,160,164,170,174,178,182,1...
; ; Copyright (c) 2010 The WebM 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 proje...
; A025740: Index of 10^n within sequence of numbers of form 2^i*10^j. ; 1,5,12,22,36,53,73,97,124,154,188,225,265,309,356,406,460,517,577,641,708,778,852,929,1009,1093,1180,1270,1364,1461,1561,1664,1771,1881,1994,2111,2231,2354,2481,2611,2744,2881,3021,3164,3311,3461,3614,3771,3931 mov $14,$0 mov $16,$0 add $16,1 lpb ...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Copyright (c) 2018 The Trustron developers // Distributed under the MIT software license, see the accompanying // file COPYING or...
/** \file Lexer.cpp * Lexer implementation * * \author Filip Smola */ #include <basilisk/Lexer.h> #include <basilisk/Tokens.h> #include <sstream> #include <algorithm> #include <cctype> #include <string> namespace basilisk::lexer { //! Symbols that translate directly to tokens constexpr char special_symbo...
sum: (__TEXT,__text) section _main: 0000000100000fd0 pushq %rbp 0000000100000fd1 movq %rsp, %rbp 0000000100000fd4 subq $0x30, %rsp 0000000100000fd8 movq 0x1039(%rip), %rdi 0000000100000fdf movl $0x0, -0x4(%rbp) 0000000100000fe6 leaq 0xf5f(%rip), %rsi 0000000100000fed callq 0x100001db0 0000000100000ff2 movq 0x1017(%rip)...
// 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 "ui/views/test/platform_test_helper.h" #include "base/callback.h" #include "base/logging.h" #include "base/memory/ptr_util.h" #include "ui/compo...
// Copyright 2018 The Beam Team // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agre...
/* Copyright 2017 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...
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r15 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x1d592, %r9 nop lfence mov (%r9), %cx nop nop nop and %r15, %r15 lea addresses_WT_ht+0x3260, %rsi lea addresses_normal_ht+0x641e, %rdi nop cmp %rbx, %rbx mov $58, %rcx rep movsq nop nop ...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Microsoft Research Singularity ;;; ;;; Copyright (c) Microsoft Corporation. All rights reserved. ;;; ;;; This file contains ARM-specific assembly code. ;;; ; __dtou64 double precision floating point to unsigne...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r15 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x14d7a, %rdx nop nop sub $17645, %rbp movl $0x61626364, (%rdx) nop nop nop sub $28773, %r15 lea addresses_WC_ht+0xce8a, %rsi lea addresses_D_ht+0x15ffa, %rdi nop inc %r10 mov $25, %rcx ...
; process ; int recv_callee(int sockfd, const void *buf, int len, int flags); ; The flags field is not currently used by the Spectranet implementation ; of recv, but it must be provided for compatibility. PUBLIC recv_callee PUBLIC ASMDISP_RECV_CALLEE include "spectranet.asm" .recv_callee pop hl ; return addr pop i...
// // Created by Anthony J. Thibault 2018/08/06 // Copyright 2018 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #include "AnimStats.h" #include <avatar/AvatarManager.h> #include <OffscreenUi.h...
.size 8000 .text@48 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 a, ff ldff(45), a ld b, 91 call lwaitly_b ld hl, fe00 ld d, 10 ld a, d ld(hl++), a ld a, 08 ld(hl++), a inc l inc l ld a, d ld(hl++), ...
/**************************************************************************** * Copyright (c) 2018-2019 by the Cabana authors * * All rights reserved. * * * * This ...
# Print 10 down to 1 PUSH 10 STA A PUSH 1 STA B loop: # Print A value to the console LDA A SYS 3 # Print break line PUSH 10 SYS 4 POP LDA B LDA A DEC STA A LDA A GEQ JT Loop HLT
_cat: file format elf32-i386 Disassembly of section .text: 00000000 <cat>: char buf[512]; void cat(int fd) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 ec 18 sub $0x18,%esp int n; while((n = read(fd, buf, sizeof(buf))) > 0) 6: eb 15 ...
#include "fake_location_provider.h" void FakeLocationProvider::request_location_updates(location_callback_t callback) { location_callback_ = callback; timer_.async_wait(std::bind(&FakeLocationProvider::compute_next_location, this)); } // Rudimentary location provider whose successive lat, lon combination // ...
#include <iostream> #include <math.h> #include <vector> #include <chrono> #include <thread> #include <atomic> // #include <SFML/Graphics.hpp> #include "ivec.hpp" #include "server/server.hpp" #include "objects/wall.hpp" #include "objects/player.hpp" #include "client/client.hpp" int main() { std::cout << "Main Thre...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r14 push %r15 push %r9 push %rbp push %rcx push %rdi push %rsi lea addresses_UC_ht+0x3b3c, %rbp xor $301, %r15 mov $0x6162636465666768, %r9 movq %r9, %xmm7 vmovups %ymm7, (%rbp) nop nop nop nop cmp $38978, %r9 lea addresses_UC_ht+0x1b03c, %r14 nop nop nop cmp...
; A174060: Sum_{k=1..n} {floor(sqrt(k))^2}. ; Submitted by Jon Maiga ; 0,1,2,3,7,11,15,19,23,32,41,50,59,68,77,86,102,118,134,150,166,182,198,214,230,255,280,305,330,355,380,405,430,455,480,505,541,577,613,649,685,721,757,793,829,865,901,937,973,1022,1071,1120,1169,1218,1267,1316 mov $3,1 lpb $0 mov $2,$3 mul $2,$...
; A030897: [ exp(3/17)*n! ]. ; Submitted by Jamie Morken(s4) ; 1,2,7,28,143,858,6012,48101,432915,4329155,47620715,571448591,7428831692,104003643691,1560054655379,24960874486078,424334866263326,7638027592739873,145122524262057596,2902450485241151923 add $0,1 mov $2,1 lpb $0 div $1,2 mul $1,2 mul $2,$0 sub $0,1...
// atcoder/abc179/F/main.cpp // author: @___Johniel // github: https://github.com/johniel/ #include <bits/stdc++.h> #define each(i, c) for (auto& i : c) #define unless(cond) if (!(cond)) using namespace std; template<typename P, typename Q> ostream& operator << (ostream& os, pair<P, Q> p) { os << "(" << p.first << ...
/* * Copyright (c) 2011, Willow Garage, Inc. * 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 l...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r14 push %r8 lea addresses_normal_ht+0x43d4, %r11 nop xor %r14, %r14 movl $0x61626364, (%r11) nop nop nop add $50367, %r13 pop %r8 pop %r14 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r9 push %rax push %rbp push %rdi push %...
; A065355: a(n) = n! - Sum_{k=0..n-1} k!. ; 1,0,0,2,14,86,566,4166,34406,316646,3219686,35878886,435046886,5704064486,80428314086,1213746099686,19521187251686,333363035571686,6024361885107686,114864714882483686,2304476522241459686,48529614677597619686,1070348458111786419686,24674363741441547699686,593418731996911033779...
; A056834: a(n) = floor(n^2/7). ; 0,0,0,1,2,3,5,7,9,11,14,17,20,24,28,32,36,41,46,51,57,63,69,75,82,89,96,104,112,120,128,137,146,155,165,175,185,195,206,217,228,240,252,264,276,289,302,315,329,343,357,371,386,401,416,432,448,464,480,497,514,531,549,567,585,603,622,641,660,680,700,720,740,761,782,803,825,847,869,891,91...
C arm/aes-encrypt-internal.asm ifelse(< Copyright (C) 2013 Niels Möller This file is part of GNU Nettle. GNU Nettle is free software: you can redistribute it and/or modify it under the terms of either: * the GNU Lesser General Public License as published by the Free Software Foundation; eith...
Map_SStageTails_:dc.w word_908EA-Map_SStageTails_ dc.w word_90904-Map_SStageTails_ dc.w word_90912-Map_SStageTails_ dc.w word_90926-Map_SStageTails_ dc.w word_9093A-Map_SStageTails_ dc.w word_9094E-Map_SStageTails_ dc.w word_90962-Map_SStageTails_ dc.w word_90976-Map_SStageTails_ dc.w word_9098A-Map_SSt...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r15 push %r8 push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x8b9, %rdx xor %r10, %r10 movl $0x61626364, (%rdx) nop nop nop nop nop mfence lea addresses_A_ht+0x42af, %rdi nop nop nop nop xor %r15, %r15 movb $0x61, (%rdi) nop sub %rcx, %...
;-------------------------------------------------------- ; File Created by SDCC : free open source ANSI-C Compiler ; Version 4.1.4 #12246 (Mac OS X x86_64) ;-------------------------------------------------------- .module spritesheet_4 .optsdcc -mgbz80 ;-------------------------------------------------------- ; Pu...
name "add-2" ; this example calculates the sum of a vector with ; another vector and saves result in third vector. ; you can see the result if you click the "vars" button. ; set elements for vec1, vec2 and vec3 to 4 and show as "signed". org 100h jmp start vec1 db 1, 2, 5, 6 vec2 db 3, 5, 6, 1 vec3 db ?, ?, ?, ? ...
; Small C+ Math Library ; sqrt(a) function, compiled C..hence the size! ; Compiled using some inline optimizations (gchar etc) ; Fine tuned by hand...so don't recompile! ; Tuned to: only keep one zero constant ; Pointer stuff made nicer.. ; ; But still not working! IN...
#include "imageviewer.h" #include <QFile> #include <QPainter> #include <QDebug> #include <QTime> #include <QtEndian> #include <QPen> #include <QColor> #include <QTimer> ImageViewer::ImageViewer(QWidget *parent) : QWidget(parent) { this->setMouseTracking(true); // Notify this widget of changes to the image...
; A142260: Primes congruent to 11 mod 43. ; Submitted by Jon Maiga ; 11,97,269,613,1129,1301,1559,2161,2333,2591,2677,3623,3709,3881,3967,4139,4397,4483,4999,5171,6203,6547,6719,6977,7321,8009,8353,8783,9041,9127,9643,9901,10159,10331,10589,10847,11621,12653,12739,12911,13513,14029,14717,15061,15233,15319,15749,16007,1...
; A113071: Expansion of ((1+x)/(1-3*x))^2. ; 1,8,40,168,648,2376,8424,29160,99144,332424,1102248,3621672,11809800,38263752,123294312,395392104,1262703816,4017693960,12741829416,40291730856,127073920392,399817944648,1255242384360,3933092804328 mov $1,4 add $1,$0 sub $1,3 mov $3,$0 add $3,$0 lpb $0,1 sub $0,1 mov $2...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r14 push %r15 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x6d97, %r15 nop nop inc %rbx movl $0x61626364, (%r15) sub $60903, %r14 lea addresses_D_ht+0xa797, %r15 dec %rcx movb (%r15), %bl nop nop nop nop sub $8020, %r14 lea addresses...
; A182627: Total number of digits in binary expansion of all divisors of n. ; 1,3,3,6,4,8,4,10,7,10,5,15,5,10,10,15,6,17,6,18,11,12,6,24,9,12,12,18,6,24,6,21,13,14,13,30,7,14,13,28,7,26,7,21,20,14,7,35,10,21,14,21,7,28,14,28,14,14,7,42,7,14,21,28,15,30,8,24,15,30,8,46,8,16,22,24,15,30,8,40,19,16,8,45,16,16,15,32,8,46,1...
%define BE(a) ( ((((a)>>24)&0xFF) << 0) + ((((a)>>16)&0xFF) << 8) + ((((a)>>8)&0xFF) << 16) + ((((a)>>0)&0xFF) << 24) ) ftyp_start: dd BE(ftyp_end - ftyp_start) db "ftyp" db "isom" dd BE(0x00) db "mif1" ftyp_end: meta_start: dd BE(meta_end - meta_start) db "meta" dd BE(0) hdlr_start: dd BE(hdlr_end - hdlr_start) ...
;int writebyte(int handle, int byte) ;returns 0 when OK ; ;ZXVGS buffers bytes, when drives a disk interface. ;In case of cable (TMX, UPB), the byte is transmitted each time... ; ; $Id: writebyte.asm,v 1.1 2002/06/23 12:11:31 dom Exp $ ; XLIB writebyte .writebyte LD HL,2 ADD HL,SP ;pointer to byte LD D,(IX+3) ;f...
/* Copyright 2018 The Blueoil 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 agre...
; A234904: a(n)*Pi is the total length of irregular spiral (center points: 2, 1, 3) after n rotations. ; 3,12,18,21,30,36,39,48,54,57,66,72,75,84,90,93,102,108,111,120,126,129,138,144,147,156,162,165,174,180,183,192,198,201,210,216,219,228,234,237,246,252,255,264,270,273,282,288,291,300,306,309,318,324,327,336,342,345,...
/* * BSD 2-Clause License * * Copyright (c) 2020, Christoph Neuhauser * 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 ...
; ; Include code from halx86 ; This is a cpp style symbolic link include ..\..\halx86\i386\ixcmos.asm
L0: ori $2, $0, 0x1234 addu $3, $2, $2 beq $2, $3,L0 subu $4, $3, $2 beq $2, $4,L0
; NEC PC8001 graphics library, by @Stosstruppe ; Adapted to z88dk by Stefano Bodrato, 2018 ; ; ; Get pixel at (x,y) coordinate. ; ; ; $Id:$ ; INCLUDE "graphics/grafix.inc" SECTION code_clib PUBLIC pointxy EXTERN __gfx_coords EXTERN pcalc .pointxy ld a,h cp maxx ret nc ld a,l cp maxy ...
; A032086: Number of reversible strings with n beads of 3 colors. If more than 1 bead, not palindromic. ; Submitted by Jamie Morken(s3) ; 3,3,9,36,108,351,1053,3240,9720,29403,88209,265356,796068,2390391,7171173,21520080,64560240,193700403,581101209,1743362676,5230088028,15690441231,47071323693,141214502520,42364350756...
// C++ program to illustrate // recursive approach to ternary search #include <bits/stdc++.h> using namespace std; // Function to perform Ternary Search int ternarySearch(int l, int r, int key, int ar[]) { if (r >= l) { // Find the mid1 and mid2 int mid1 = l + (r - l) / 3; int mid2 = r - (r - l) / 3; // Che...
; ; ANSI Video handling for the Sharp X1 ; ; Clean a text line ; ; in: A = text row number ; ; ; $Id: f_ansi_dline.asm,v 1.7 2016-07-20 05:45:02 stefano Exp $ ; SECTION code_clib PUBLIC ansi_del_line EXTERN ansicolumns EXTERN __x1_attr .ansi_del_line ld hl,$3000 and a jr z,isz push af ld a,ansicol...
; Desenvolvido em Visual Studio 2012 com MASM .686p .model tiny .code main proc mov eax, 05h ; move 05h para o registrador eax mov ebx, 02h ; move 02h para o registrador ebx add eax, ebx ; soma ebx ao eax e deixa o resultado em eax main endp end main
; A288260: a(n) = 2*a(n-1) + 2*a(n-3) - 3*a(n-4), where a(0) = 2, a(1) = 4, a(2) = 8, a(3) = 16. ; Submitted by Stefano Spezia ; 2,4,8,16,34,72,152,324,690,1468,3128,6664,14194,30240,64424,137244,292386,622900,1327016,2827072,6022786,12830904,27334904,58234164,124061778,264300652,563064920,1199550904,2555517778,5444263...
// 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 "chrome/browser/ui/android/infobars/grouped_permission_infobar.h" #include "base/android/jni_android.h" #include "base/android/jni_array.h" #inc...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r15 push %rax push %rdi lea addresses_WT_ht+0x4f1c, %rax clflush (%rax) nop nop nop nop sub %r15, %r15 mov $0x6162636465666768, %rdi movq %rdi, %xmm2 vmovups %ymm2, (%rax) nop xor %r11, %r11 pop %rdi pop %rax pop %r15 pop %r11 ret .global s_faulty_load s...
; A134449: Sum of even products minus sum of odd products of different pairs of numbers from 1 to n. ; 0,2,5,29,39,129,150,374,410,860,915,1707,1785,3059,3164,5084,5220,7974,8145,11945,12155,17237,17490,24114,24414,32864,33215,43799,44205,57255,57720,73592,74120,93194,93789,116469,117135,143849,144590,175790,176610,212...
; A076004: Fourth column of triangle A075503. ; Submitted by Jon Maiga ; 1,80,4160,179200,6967296,254607360,8940421120,305659904000,10259284361216,339910422691840,11158051230842880,363834840082022400,11805930580539867136,381715961976738283520,12309283295632755261440,396164311565124134502400,12731708769807667933741056,4...