text
stringlengths
1
1.05M
segment .bss align 4 f: resb 8 segment .text align 4 global _main:function _main: align 4 xpl: push ebp mov ebp, esp sub esp, 12 push dword 0 lea eax, [ebp+-4] push eax pop ecx pop eax mov [ecx], eax push dword 0 lea eax, [ebp+-8] push eax pop ecx pop eax mov [ecx], eax push dword 0 lea eax, [ebp+-12]...
.filenamespace sl .namespace interrupts { /* * initialises the system for a custom raster line interrupt handler. */ .macro @sl_interrupts_raster_init(trigger_line, handler_address, quick) { // ignore interrupts during init sei // disable CIA-1 and CIA-2 timer interrupts ...
#include<iostream> int main() { using std::cout; using std::cin; using std::endl; int by; cin>>by; cout<<by<<endl; for(int i=0;i<100;i=i+by) cout<<i<<endl; return 0; }
/* * * Copyright (c) 2020 Project CHIP 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 requir...
#ifndef EBITEN_RESOURCES_HPP #define EBITEN_RESOURCES_HPP #include "ebiten/platform.hpp" #ifdef EBITEN_MACOSX # include "ebiten/detail/macosx/resources.hpp" #endif #ifdef EBITEN_IOS # include "ebiten/detail/ios/resources.hpp" #endif #include <fstream> #include <string> namespace ebiten { namespace { std::string g...
; A184656: floor(nr+h), where r=(1+sqrt(5))/2, h=-1/2; complement of A184657. ; 1,2,4,5,7,9,10,12,14,15,17,18,20,22,23,25,27,28,30,31,33,35,36,38,39,41,43,44,46,48,49,51,52,54,56,57,59,60,62,64,65,67,69,70,72,73,75,77,78,80,82,83,85,86,88,90,91,93,94,96,98,99,101,103,104,106,107,109,111,112,114,115,117,119,120,122,124,...
// // Created by beck on 21/11/18. // #include "armor_detect.h" /** * Light constructor and private functions */ Light::Light(RotatedRect &_rect, vector<cv::Point> &contour) : rect(_rect) { Point2f d(-sinf(rect.angle / 180.0 * CV_PI), cosf(rect.angle / 180.0 * CV_PI)); float max = cont...
/** * Copyright Soramitsu Co., Ltd. 2017 All Rights Reserved. * http://soramitsu.co.jp * * 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/LICENS...
; void tshc_scroll_wc_up_attr(struct r_Rect8 *r, uchar rows, uchar attr) SECTION code_clib SECTION code_arch PUBLIC tshc_scroll_wc_up_attr EXTERN asm0_tshc_scroll_wc_up_attr tshc_scroll_wc_up_attr: pop af pop hl pop de pop ix push de push de push hl push af jp asm0_tshc_scroll_wc_up...
bfi2(8) g31<1>UD g88<4,4,1>UD g90<4,4,1>UD g91<4,4,1>UD { align16 1Q }; bfi2(16) g5<1>UD g42<4,4,1>UD g40<4,4,1>UD g126<4,4,1>UD { align16 1H };
******************************** * VDKDUMP * * DUMP DISK TO SERIAL PORT IN * * THE VDK VIRTUAL DISK FORMAT. * * * * (C) ROLF MICHELSEN, 2010 * * HTTP://WWW.ROLFMICHELSEN.COM * ******************************** ORG $0C00 PUT $0C00 @RUN LBRA MAI...
/* * libcryptoplus - C++ portable OpenSSL cryptographic wrapper library. * Copyright (C) 2010-2011 Julien Kauffmann <julien.kauffmann@freelan.org> * * This file is part of libcryptoplus. * * libcryptoplus is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public Licen...
#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...
; A155599: 8^n-2^n+1^n ; 1,7,61,505,4081,32737,262081,2097025,16776961,134217217,1073740801,8589932545,68719472641,549755805697,4398046494721,35184372056065,281474976645121,2251799813554177,18014398509219841,144115188075331585 mov $1,2 pow $1,$0 add $1,1 bin $1,3 mul $1,6 add $1,1 mov $0,$1
; A142107: Primes congruent to 23 mod 36. ; Submitted by Jon Maiga ; 23,59,131,167,239,311,347,383,419,491,563,599,743,887,1031,1103,1283,1319,1427,1499,1571,1607,1787,1823,1931,2003,2039,2111,2399,2543,2579,2687,2903,2939,3011,3083,3119,3191,3299,3371,3407,3623,3659,3767,3803,3911,3947,4019,4091,4127,4271,4451,4523,47...
#include <Magick++.h> #include <napi.h> #include <iostream> #include <list> using namespace std; using namespace Magick; Napi::Value Watermark(const Napi::CallbackInfo &info) { Napi::Env env = info.Env(); try { Napi::Object obj = info[0].As<Napi::Object>(); Napi::Buffer<char> data = obj.Get("data").As<N...
PokedexOrder: table_width 1, PokedexOrder db DEX_RHYDON db DEX_KANGASKHAN db DEX_NIDORAN_M db DEX_CLEFAIRY db DEX_SPEAROW db DEX_VOLTORB db DEX_NIDOKING db DEX_SLOWBRO db DEX_IVYSAUR db DEX_EXEGGUTOR db DEX_LICKITUNG db DEX_EXEGGCUTE db DEX_GRIMER db DEX_GENGAR db DEX_NIDORAN_F db DEX_NIDOQUEEN db DEX...
; ********************************************************************************* ; ********************************************************************************* ; ; File: divide.asm ; Purpose: 16 bit unsigned divide ; Date : 7th December 2018 ; Author: paul@robsons.org.uk ; ; ****************************...
SFX_BANK = CURRENT_BANK_NUMBER sfx_crash: .( AUDIO_NOISE_PLAY_TIMED_FREQ(11,4) AUDIO_NOISE_SET_VOLUME(8) AUDIO_NOISE_PLAY_TIMED_FREQ(7,4) AUDIO_NOISE_SET_VOLUME(15) AUDIO_NOISE_PLAY_TIMED_FREQ(11,4) AUDIO_NOISE_SET_VOLUME(8) AUDIO_NOISE_PLAY_TIMED_FREQ(7,4) AUDIO_NOISE_SET_VOLUME(4) AUDIO_NOISE_WAIT(3) AUDIO...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r14 push %r8 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x1bda2, %rsi lea addresses_UC_ht+0x56c2, %rdi nop nop nop nop nop dec %rbx mov $90, %rcx rep movsl nop nop nop nop nop xor $38057, %rcx lea addresses_UC_ht+0x1d0a2, %r11 nop n...
// ReRap Version 0.9 // Copyright 2011 Matthew Mikolay. // // This file is part of ReRap. // // ReRap is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) a...
; --------------------------------------------------------------------------- ; Sprite mappings - lava geyser / lava that falls from the ceiling (MZ) ; --------------------------------------------------------------------------- dc.w byte_F272-Map_obj4C, byte_F27D-Map_obj4C dc.w byte_F288-Map_obj4C, byte_F29D-Map_ob...
// ----------------------------------------------------------------------------------------- // NVEnc by rigaya // ----------------------------------------------------------------------------------------- // The MIT License // // Copyright (c) 2014-2016 rigaya // // Permission is hereby granted, free of charge,...
;******************************************************************************************************** ; uC/CPU ; CPU CONFIGURATION & PORT LAYER ; ; Copyright 2004-2021 Silicon Laboratories Inc. www.silabs.com ; ; ...
; Copyright (c) 2004, Intel Corporation ; All rights reserved. This program and the accompanying materials ; are licensed and made available under the terms and conditions of the BSD License ; which accompanies this distribution...
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r14 push %rax push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0xd1af, %r13 nop nop nop nop sub %rax, %rax vmovups (%r13), %ymm2 vextracti128 $1, %ymm2, %xmm2 vpextrq $0, %xmm2, %rdi nop nop nop and %rsi, %rsi lea addresses_D_ht+0x14af, %...
; A157263: a(n) = 1728*n - 1320. ; 408,2136,3864,5592,7320,9048,10776,12504,14232,15960,17688,19416,21144,22872,24600,26328,28056,29784,31512,33240,34968,36696,38424,40152,41880,43608,45336,47064,48792,50520,52248,53976,55704,57432,59160,60888,62616,64344,66072,67800,69528,71256,72984,74712,76440,78168,79896,81624,8335...
; A116955: a(n+1) = a(n) + (if a(n) is odd then (next odd square) else (next even square)), a(0) = 1. ; 1,10,14,30,66,130,230,374,570,826,1150,1550,2034,2610,3286,4070,4970,5994,7150,8446,9890,11490,13254,15190,17306,19610,22110,24814,27730,30866,34230,37830,41674,45770,50126,54750,59650,64834,70310,76086,82170,88570 ...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r14 push %r15 push %r8 push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x1206f, %r15 nop add $6068, %r8 movw $0x6162, (%r15) nop nop sub $3143, %r11 lea addresses_WC_ht+0x6c6f, %r13 nop nop nop nop inc %r14 movups (%r13), %xmm5 vpextrq $0...
;*************************************************************************** ; DEFINE SECTION ;*************************************************************************** INCLUDE "VECTREX.I" ; vectrex function includes ; start of vectrex memory with cartridge name... ORG...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; SELECT CRT0 FROM -STARTUP=N COMMANDLINE OPTION ;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; INCLUDE "zcc_opt.def" IFNDEF startup ; startup undefined so select a default defc startup = 0 ENDIF ;;;;;;;;;;;...
[XCX_OFFLINEWE] moduleMatches = 0xF882D5CF, 0x30B6E091 ; 1.0.1E, 1.0.2U .origin = codecave ; cfs::CfSocialManager::update((float)) 0x022879D0 = nop ; (network test?) allow call to cfs::CfSocialQuestManager::update((void)) ; Autoriser accès aux missions d'escouade depuis la console réseau 0x02AC5C10 = li r3, 0 ; menu...
//我改的部分都用zhangfeifan进行注释了,想只看差别的可搜索此关键字进行这部分的查看 //思路 //从OnlineNnet2FeaturePipelineConfig->OnlineNnet2FeaturePipelineInfo //->OnlineNnet2FeaturePipeline //主要修改两处,一是看读入的config文件中有没有cmvn处理;二是在构造函数中,判断若有cmvn配置,则进行特征提取 // online2/online-nnet2-feature-pipeline.cc // Copyright 2013-2014 Johns Hopkins University (author: Dan...
#ifndef DZN_META_HH #define DZN_META_HH #include <algorithm> #include <functional> #include <string> #include <stdexcept> #include <vector> inline std::string to_string() { return "return"; } namespace dzn { struct meta; namespace port { struct meta { struct { std::string port; ...
; A281680: a(0)=1; for n > 0, if 2n+1 is prime, then a(n)=1, otherwise a(n) = (2n+1)/(largest proper divisor of 2n+1). ; 1,1,1,1,3,1,1,3,1,1,3,1,5,3,1,1,3,5,1,3,1,1,3,1,7,3,1,5,3,1,1,3,5,1,3,1,1,3,7,1,3,1,5,3,1,7,3,5,1,3,1,1,3,1,1,3,1,5,3,7,11,3,5,1,3,1,7,3,1,1,3,11,5,3,1,1,3,5,1,3,7,1,3,1,13,3,1,5,3,1,1,3,5,11,3,1,1,3...
; A105944: C(n+8,n)*C(n+11,8) ; 165,4455,57915,495495,3185325,16563690,73002930,281582730,972740340,3062330700,8904315420,24168856140,61764854580,149660993790,345855237750,766005304350,1632800780325,3361648665375,6705510829875,12993932469375,24518985616125 mov $1,4 mov $2,$0 add $2,8 sub $1,$2 bin $1,8 bin $2,$0 mul $...
; A247841: Sum(8^k, k=2..n). ; 0,64,576,4672,37440,299584,2396736,19173952,153391680,1227133504,9817068096,78536544832,628292358720,5026338869824,40210710958656,321685687669312,2573485501354560 mov $1,8 pow $1,$0 div $1,7 mul $1,64
//====== Copyright Valve Corporation, All rights reserved. ==================== #include "steamnetworkingsockets_udp.h" #include "csteamnetworkingsockets.h" #include "crypto.h" // memdbgon must be the last include file in a .cpp file!!! #include "tier0/memdbgon.h" // Put everything in a namespace, so we don't violat...
// Generated by Haxe 4.2.1+bf9ff69 #include <hxcpp.h> #ifndef INCLUDED___ASSET__flixel_flixel_ui_img_chrome_png #include <__ASSET__flixel_flixel_ui_img_chrome_png.h> #endif #ifndef INCLUDED_haxe_Resource #include <haxe/Resource.h> #endif #ifndef INCLUDED_haxe_io_Bytes #include <haxe/io/Bytes.h> #endif #ifndef INCLUDED...
; A054974: Number of nonnegative integer 2 X 2 matrices with no zero rows or columns and with sum of elements equal to n, up to row and column permutation. ; 1,2,6,9,17,23,36,46,65,80,106,127,161,189,232,268,321,366,430,485,561,627,716,794,897,988,1106,1211,1345,1465,1616,1752,1921,2074,2262,2433,2641,2831,3060,3270,35...
; A120200: a(1)=7; a(n)=floor((62+sum(a(1) to a(n-1)))/8). ; 7,8,9,10,12,13,15,17,19,21,24,27,30,34,38,43,48,54,61,69,77,87,98,110,124,139,157,176,198,223,251,282,317,357,402,452,508,572,643,724 mov $24,$0 mov $26,$0 add $26,1 lpb $26 mov $0,$24 sub $26,1 sub $0,$26 mov $20,$0 mov $22,2 lpb $22 mov $0,...
; A118152: Start with 1 and repeatedly reverse the digits and add 56 to get the next term. ; 1,57,131,187,837,794,553,411,170,127,777,833,394,549,1001,1057,7557,7613,3223,3279,9779,9835,5445,5501,1111,1167,7667,7723,3333,3389,9889,9945,5555,5611,1221,1277,7777,7833,3443,3499,9999,10055,55057,75111 mov $2,$0 mov $0,1 l...
#include <RcppEigen.h> #include <cmath> using namespace Rcpp; // given a square grid x = {x_i}, e.g. 32x32 or something // with each x_i in {-1,+1} // the following computes sum_{i~j} x_i x_j // where i~j denotes the neighboring relation; here we use perodic boundary condition // so (0,0) is neighbor with (32,0) in a ...
; A001405: a(n) = binomial(n, floor(n/2)). ; 1,1,2,3,6,10,20,35,70,126,252,462,924,1716,3432,6435,12870,24310,48620,92378,184756,352716,705432,1352078,2704156,5200300,10400600,20058300,40116600,77558760,155117520,300540195,601080390,1166803110,2333606220,4537567650,9075135300,17672631900,35345263800,68923264410,1378465...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" // Including type: Zenject.PlaceholderFactory`1 #include "Zenject/PlaceholderFactory_1.hp...
// #pragma once #ifndef MICA_UTIL_STOPWATCH_CC_ #define MICA_UTIL_STOPWATCH_CC_ #include <cstdio> #include "mica/util/stopwatch.h" #include "mica/util/barrier.h" namespace mica { namespace util { void Stopwatch::init_start() { init_t_ = now(); gettimeofday(&init_tv_, nullptr); } void Stopwatch::init_end() { st...
; ######################################################################### .486 ; create 32 bit code .model flat, stdcall ; 32 bit memory model option casemap :none ; case sensitive include slave.inc ; local includes for this file include dbmacros.a...
; ; jidctfst.asm - fast integer IDCT (MMX) ; ; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB ; Copyright (C) 2016, D. R. Commander. ; ; Based on the x86 SIMD extension for IJG JPEG library ; Copyright (C) 1999-2006, MIYASAKA Masaru. ; For conditions of distribution and use, see copyright notice in jsimd...
; A332937: a(n) is the greatest common divisor of the first two terms of row n of the Wythoff array (A035513). ; 1,1,2,3,4,1,1,1,2,1,1,1,3,1,2,5,1,1,6,1,1,7,1,1,8,1,1,9,2,1,10,1,1,11,2,1,1,1,1,1,2,1,3,1,4,1,2,1,1,1,2,3,1,1,2,5,4,3,1,1,2,1,1,1,1,1,6,1,1,1,2,1,2,1,1,1,4,7,1,1,1,3,2,1,1,1 mov $2,$0 cal $0,90908 ; Terms a...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r15 push %r8 push %rbp push %rcx push %rdi push %rsi lea addresses_D_ht+0x1d101, %rsi lea addresses_D_ht+0x17c89, %rdi nop nop nop sub $62595, %r15 mov $89, %rcx rep movsl add %r11, %r11 lea addresses_normal_ht+0x1dde1, %r8 nop nop sub $45175, %rbp ...
; A282853: 36-gonal numbers: a(n) = n*(17*n-16). ; 0,1,36,105,208,345,516,721,960,1233,1540,1881,2256,2665,3108,3585,4096,4641,5220,5833,6480,7161,7876,8625,9408,10225,11076,11961,12880,13833,14820,15841,16896,17985,19108,20265,21456,22681,23940,25233 mov $1,$0 mul $1,17 sub $1,16 mul $0,$1
_aread: file format elf64-x86-64 Disassembly of section .text: 0000000000001000 <print_16B>: #include "user.h" #include "fs.h" static void print_16B(char * buf) { 1000: f3 0f 1e fa endbr64 1004: 55 push %rbp 1005: 48 89 e5 mov %rsp,%rbp 1008: 48...
; A066247: Characteristic function of composite numbers: 1 if n is composite else 0. ; 0,0,0,1,0,1,0,1,1,1,0,1,0,1,1,1,0,1,0,1,1,1,0,1,1,1,1,1,0,1,0,1,1,1,1,1,0,1,1,1,0,1,0,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,0,1,1,1,1,1,0,1,1,1,0,1,0,1,1,1,1,1,0,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,1,1,0,1,1,1,0,1,0,1,1,1,0,1,0,1,1,1,0,1,1,1,1...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except...
db DEX_STARYU ; pokedex id db 30 ; base hp db 45 ; base attack db 55 ; base defense db 85 ; base speed db 70 ; base special db WATER ; species type 1 db PSYCHIC ; species type 2 db 60 ; catch rate db 106 ; base exp yield INCBIN "pic/ymon/staryu.pic",0,1 ; 66, sprite dimensions dw StaryuPicFront dw StaryuPicBack ; attac...
; A069078: a(n) = n(4*n^4 + 1). ; 0,5,130,975,4100,12505,31110,67235,131080,236205,400010,644215,995340,1485185,2151310,3037515,4194320,5679445,7558290,9904415,12800020,16336425,20614550,25745395,31850520,39062525,47525530,57395655 mov $1,$0 pow $1,5 mul $1,4 add $0,$1
<% from pwnlib.shellcraft.amd64.linux import syscall %> <%page args="sig, act, oact"/> <%docstring> Invokes the syscall sigaction. See 'man 2 sigaction' for more information. Arguments: sig(int): sig act(sigaction): act oact(sigaction): oact </%docstring> ${syscall('SYS_sigaction', sig, act, oact...
//============================================================================== // Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II // Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI // // Distributed under the Boost Software License, Version 1.0. // ...
// // detail/winrt_utils.hpp // ~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2016 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #ifndef ASIO_DETAIL_WIN...
@ This file was created from a .asm file @ using the ads2gas.pl script. .equ DO1STROUNDING, 0 .equ yv12_buffer_config_y_width , 0 .equ yv12_buffer_config_y_height , 4 .equ yv12_buffer_config_y_stride , 8 .equ yv12_buffer_config_uv_width , 12 .equ yv12_buffer_config_uv_height , 16 .equ yv12_buffer_config_uv_strid...
%ifdef CONFIG { "RegData": { "MM0": "0x2020202020202020", "MM1": "0x2020202020202020" }, "MemoryRegions": { "0x100000000": "4096" } } %endif mov rdx, 0xe0000000 mov rax, 0x6162636465666768 mov [rdx + 8 * 0], rax mov rax, 0x7172737475767778 mov [rdx + 8 * 1], rax mov rax, 0x4142434445464748 mov [r...
; A328982: Sorted list of the numbers of the form 5m+2 (m>=0) together with numbers of the form 5m-2+eps (m>=1), where eps = 1 if the binary expansion of m ends in an odd number of 0's and is otherwise 0. ; 2,3,7,9,12,13,17,18,22,23,27,29,32,33,37,39,42,43,47,49,52,53,57,58,62,63,67,69,72,73,77,78,82,83,87,89,92,93,97,...
; A040300: Continued fraction for sqrt(318). ; 17,1,4,1,34,1,4,1,34,1,4,1,34,1,4,1,34,1,4,1,34,1,4,1,34,1,4,1,34,1,4,1,34,1,4,1,34,1,4,1,34,1,4,1,34,1,4,1,34,1,4,1,34,1,4,1,34,1,4,1,34,1,4,1,34,1,4,1,34,1,4,1,34,1,4,1,34,1,4,1,34,1,4,1 cal $0,10199 ; Continued fraction for sqrt(140). cal $0,47562 ; Numbers that are co...
_stressfs: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "fs.h" #include "fcntl.h" int main(int argc, char *argv[]) { 0: 8d 4c 24 04 lea 0x4(%esp),%ecx 4: 83 e4 f0 and $0xfffffff0,%esp int fd, i; char path[] = "stressfs0"; 7: b8 30 00 0...
; size_t strlcat(char * restrict s1, const char * restrict s2, size_t n) SECTION code_clib SECTION code_string PUBLIC strlcat_callee EXTERN asm_strlcat strlcat_callee: pop hl pop bc pop de ex (sp),hl jp asm_strlcat ; SDCC bridge for Classic IF __CLASSIC PUBLIC _strlcat_callee defc _strlcat_callee ...
; A137798: Partial sums of A137797. ; 0,0,4,8,16,14,16,18,24,30,30,30,34,38,46,44,46,48,54,60,60,60,64,68,76,74,76,78,84,90,90,90,94,98,106,104,106,108,114,120,120,120,124,128,136,134,136,138,144,150,150,150,154,158,166,164,166,168,174,180,180,180 lpb $0 sub $0,1 mov $2,$0 max $2,0 seq $2,137797 ; a(n) = 2*( (...
#include "cpu.asm" ; biggest = 0xfd ; second = 0xfe ; temp = 0xff reset: lda $1 sta 0xfd lda $0 sta 0xfe sta 0xff loop: lda 0xfd sta 0xff ; temp = biggest out add 0xfe ; if overflow jc reset sta 0xfd ; biggest = biggest + second lda 0xff sta 0xfe ; other = temp jmp loop
; A168240: 1+7*n+13*n^2. ; 21,67,139,237,361,511,687,889,1117,1371,1651,1957,2289,2647,3031,3441,3877,4339,4827,5341,5881,6447,7039,7657,8301,8971,9667,10389,11137,11911,12711,13537,14389,15267,16171,17101,18057,19039,20047,21081,22141,23227,24339,25477,26641,27831,29047,30289,31557,32851,34171,35517,36889,38287,39711,...
; void __FASTCALL__ delay(unsigned int tstates) XLIB delay ; Z80 delay routine ; by JB, z88dk artistic license ; ; Delays an exact amount of time measured in Z80 cycles. ; This time includes the CALL to and RET from this ; subroutine. ; ; enter : hl = delay in T states (at least 160) ; uses : af, de, hl .delay .b0...
SECTION code_l_sccz80 PUBLIC l_i64_asl PUBLIC l_i64_aslo EXTERN __i64_acc EXTERN l_lsl_dehldehl ; Entry: __i64_acc = shift count ; sp + 2 = value to shift l_i64_asl: ld a,(__i64_acc+0) l_i64_aslo: pop bc pop hl pop de exx pop hl pop de ex...
/** * @file omnicore.cpp * * This file contains the core of Omni Core. */ #include "omnicore/omnicore.h" #include "omnicore/activation.h" #include "omnicore/consensushash.h" #include "omnicore/convert.h" #include "omnicore/dex.h" #include "omnicore/encoding.h" #include "omnicore/errors.h" #include "omnicore/log.h...
bits 32 section .text align 4 dd 0x1BADB002 ; this word is some sort of magical word that allows our os to boot dd 0x00 dd - (0x1BADB002+0x00) global start extern kmain ; this function is gonna be located in our c code(kernel.c) start: cli ; clears the interrupts call kmain ; send processor to ...
; =============================================================== ; Jan 2014 ; =============================================================== ; ; void insertion_sort(void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *)) ; ; Insertion sort the array using the comparison function supplied. ...
; A230601: a(n) = Lucas(2^n + 2). ; Submitted by Christian Krause ; 4,7,18,123,5778,12752043,62113250390418,1473646213395791149646646123,829490056885282616312940022414182153153900944625970578,262813148121156922478324605390890951672774150584488451750823334086851733999224817160730017360019778038580843 seq $0,79 ; Powers...
; A032742: a(1) = 1; for n > 1, a(n) = largest proper divisor of n. ; 1,1,1,2,1,3,1,4,3,5,1,6,1,7,5,8,1,9,1,10,7,11,1,12,5,13,9,14,1,15,1,16,11,17,7,18,1,19,13,20,1,21,1,22,15,23,1,24,7,25,17,26,1,27,11,28,19,29,1,30,1,31,21,32,13,33,1,34,23,35,1,36,1,37,25,38,11,39,1,40,27,41,1,42,17,43,29,44,1,45,13,46,31,47,19,48,1,...
/** \file Testing reading of nD volumes from file tiff. @cond TEST_F \todo APPEND test */ #include <gtest/gtest.h> #include "config.h" #include "nd.h" #include "helpers.h" #define countof(e) (sizeof(e)/sizeof(*e)) static struct _files_t { const char *path; nd_type_id_t type; size_t ndim; si...
// ------------------------------------------------------------------------------------------------- // Copyright 2016 - NumScale SAS // // Distributed under the Boost Software License, Version 1.0. // See accompanying file LICENSE.txt or copy at // ...
alias tt_AND 0b0001 alias tt_OR 0b0111 alias tt_XOR 0b0110 alias tt_XNOT 0b1001 macro test(x){ gpu g1 x g1 tt_XOR } alias y g2 test(y[u])
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r15 push %rax push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x1430e, %rbp nop nop xor %rdx, %rdx mov $0x6162636465666768, %rdi movq %rdi, (%rbp) nop nop nop nop nop add %r15, %r15 lea addresses_normal_ht+0x1d60e, %r10 and %rb...
; /***************************************************************************** ; * ugBASIC - an isomorphic BASIC language compiler for retrocomputers * ; ***************************************************************************** ; * Copyright 2021 Marco Spedaletti (asimov@mclink.it) ; * ; * Licensed un...
// Copyright (c) 2010-2022, Lawrence Livermore National Security, LLC. Produced // at the Lawrence Livermore National Laboratory. All Rights reserved. See files // LICENSE and NOTICE for details. LLNL-CODE-806117. // // This file is part of the MFEM library. For more information and source code // availability visit ht...
class Solution { public: bool isValid(vector<vector<char>>& board, int row, int col, char c){ for(int i=0; i<9; i++){ if(board[i][col]==c) return false; if(board[row][i]==c) return false; if(board[3 * (row/3) + i/3][3 * (col/3) +...
; A212350: Maximal number of "good" manifolds in an n-serial polytope. ; 6,8,12,20,32,64,128,256,512,1024,2048,4096,8192,16384,32768,65536,131072,262144,524288,1048576 mov $1,2 pow $1,$0 add $0,15 add $1,8 lpb $0 sub $0,$1 trn $0,1 add $1,2 lpe sub $1,10 mul $1,2 mov $0,$1
; A038765: Next-to-last diagonal of A024462. ; 1,2,7,24,81,270,891,2916,9477,30618,98415,314928,1003833,3188646,10097379,31886460,100442349,315675954,990074583,3099363912,9685512225,30218798142,94143178827,292889889684,910050728661,2824295364810,8755315630911,27113235502176,83881572334857,259270314489558,80068773592363...
; A336212: a(n) = Sum_{k=0..n} 3^k * binomial(n,k)^n. ; Submitted by Christian Krause ; 1,4,22,352,19426,3862744,2764634356,7403121210496,73087416841865890,2751096296949421766824,387442256655054793494004132,210421903024207931092658380560256,431805731803048897945138363105712865124,344330066867411129803628756091386049827...
; ; Generic console that maps into RK86 codes ; SECTION code_clib PUBLIC generic_console_cls PUBLIC generic_console_vpeek PUBLIC generic_console_scrollup PUBLIC generic_console_printc PUBLIC generic_console_ioctl PUBLIC generic_console_set_ink PUBLIC ...
; A202964: Number of arrays of 4 integers in -n..n with sum zero and adjacent elements differing in absolute value. ; 4,28,108,268,544,972,1576,2392,3456,4792,6436,8424,10780,13540,16740,20404,24568,29268,34528,40384,46872,54016,61852,70416,79732,89836,100764,112540,125200,138780,153304,168808,185328,202888,221524,2412...
############################################################################### # Copyright 2018 Intel Corporation # All Rights Reserved. # # If this software was obtained under the Intel Simplified Software License, # the following terms apply: # # The source code, information and material ("Material") containe...
#include <iostream> #include <vector> using namespace std; class Solution { public: int maxArea(vector<int>& height) { int max = 0; for (uint i = 0; i < height.size() - 1; i++) { for (uint j = i + 1; j < height.size(); j++) { int area = min(height[j], height[i]) * (j - i); if ( area > max ) max =...
#include <iostream> #include <string> #include <vector> using namespace std; string filter(string str){ string newstr; for(int i=0;i<str.length();i++){ //replace capital letters with small ones if(int(str[i])<=90 && int(str[i])>=65 && !(((int(newstr[newstr.size()-2])==33 || int(newst...
;; -------------------------------------------------------------------------------- ;; jmp example ;; -------------------------------------------------------------------------------- .data val sw 5 .code jmp skip load val push 5 add stor val skip: load val push 16 ...
#include "xconnection.h" #include <X11/Xatom.h> #include <X11/Xlib.h> #include <X11/Xproto.h> #include <X11/Xutil.h> #include <climits> #include <iostream> #include "globals.h" using std::endl; using std::make_pair; using std::pair; using std::string; using std::vector; bool XConnection::exitOnError_ = false; void...
; A115535: Numbers k such that the concatenation of k with 4*k gives a square. ; 25721,28836,32129,35600,39249,43076,47081,51264,55625,60164,64881,69776,74849,80100,85529,91136,96921,102884,109025,115344,121841,128516,135369,142400,149609,156996,164561,172304,180225,188324,196601,205056 add $0,17 pow $0,2 mul $0,89
#include "toy/canvas/Brush.hpp" #include "toy/canvas/Program.hpp" #include "toy/canvas/detail/GcArrayBufferA.hpp" #include "toy/canvas/detail/GcIndicesA.hpp" #include "toy/canvas/detail/ImageA.hpp" static inline std::string GetVertexShaderCode() { #if defined(TOY_LINUX) // Ubuntu need this to use VertexAttribPointe...
section .text org 0x0000 mov ax, 9ch mov ss, ax ;set stack segment mov sp, 4096d ;set stack pointer mov ax, 7c0h ;?sets the AL? (AH is rewritten); no ;-------------- mov ah, 0eh mov al, 66h int 10h ;BIOS call to print a character ;----------------- section .data times 510-($-$$) db 0 ;$ should ...
#ifndef BOOST_MPL_DEREF_HPP_INCLUDED #define BOOST_MPL_DEREF_HPP_INCLUDED // Copyright Aleksey Gurtovoy 2002-2004 // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // // See http://www.boost.org/libs/mpl for...
; Small C+ Z80 Run time library ; The new case statement..maybe things will work now! ; 13/10/98 SECTION code_crt0_sccz80 PUBLIC l_case .l_case ex de,hl ;de = switch value pop hl ;hl -> switch table .swloop ld c,...
dnl PowerPC-32 mpn_divexact_by3 -- mpn by 3 exact division dnl Copyright 2002, 2003, 2005, 2006 Free Software Foundation, Inc. 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 either: dnl dnl * the GNU Les...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r14 push %r15 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0x7759, %r14 nop add $55351, %r15 mov (%r14), %rsi nop nop nop nop nop dec %r11 lea addresses_A_ht+0xb259, %rbx nop nop nop nop nop cmp $2318, %rax movw $0x6162, (%rbx) nop no...
; void sms_vdp_init(void *vdp_register_array) SECTION code_clib SECTION code_arch PUBLIC _sms_vdp_init_fastcall EXTERN asm_sms_vdp_init _sms_vdp_init_fastcall: di call asm_sms_vdp_init ei ret