text
stringlengths
1
1.05M
; Graylib interrupt installer ; Ported and heavily modified by Stefano Bodrato - Mar 2000 ; Lateron more modified by Henk Poley - Sep 2001 ; ; original code (graydraw.asm) by: ; ;------------------------------------------------------------ ; Date: Sun, 5 May 1996 12:44:17 -0400 (EDT) ; From: Jingyang Xu [br004...
; A026898: a(n) = Sum_{k=0..n} (n-k+1)^k. ; 1,2,4,9,23,66,210,733,2781,11378,49864,232769,1151915,6018786,33087206,190780213,1150653921,7241710930,47454745804,323154696185,2282779990495,16700904488706,126356632390298,987303454928973,7957133905608837,66071772829247410,564631291138143984,4961039091344431217,4477518507904...
; asm_iscntrl SECTION code_clib PUBLIC asm_iscntrl ; determine if the char is in [A-Za-z] ; enter : a = char ; exit : carry = not a control char ; uses : f .asm_iscntrl cp 127 ccf ret z cp 32 ccf ret
#include "my_application.h" #include <flutter_linux/flutter_linux.h> #ifdef GDK_WINDOWING_X11 #include <gdk/gdkx.h> #endif #include "flutter/generated_plugin_registrant.h" struct _MyApplication { GtkApplication parent_instance; char** dart_entrypoint_arguments; }; G_DEFINE_TYPE(MyApplication, my_application, GT...
; A152822: Periodic sequence [1,1,0,1] of length 4. ; 1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1 gcd $0,8 cmp $0,2 pow $1,$0 mov $0,$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...
############################################################################### # 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 "../macros/long_mode_macros.mac" %include "../macros/asm_screen_utils.mac" BITS 64 ;; PIC extern fin_intr_pic1 ;; contextManager extern notificarRelojTick extern notificarTecla ;; kmain64 extern kernel_panic %define eoi_register_apic 0xFEE000B0 %macro interrupt_finished 0 push rax mov rax, eoi_regi...
Title Bitmap Display Program (bitmap.asm) ; by Diego Escala, 5/98 ; Used by Permission. ; The following procedures will load a Windows type BMP file ; and display it on the screen. ShowBMP calls the necessary ; procedures in the right order. When it's called, DS:DX must ; point to an ASCIIZ stri...
;Testname=aout; Arguments=-faout -olnxhello.o -Ox; Files=stdout stderr lnxhello.o ;Testname=aoutb; Arguments=-faoutb -olnxhello.o -Ox; Files=stdout stderr lnxhello.o ;Testname=as86; Arguments=-fas86 -olnxhello.o -Ox; Files=stdout stderr lnxhello.o ;Testname=elf32; Arguments=-felf32 -olnxhello.o -Ox; Files=stdout st...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: Video Drivers FILE: vga8Chars.asm AUTHOR: Jim DeFrisco, Oct 8, 1992 ROUTINES: Name Description ---- ----------- REVISION HISTORY: N...
// stdafx.cpp : source file that includes just the standard includes // Cache.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h"
#include "vscpworksconfig.h" /////////////////////////////////////////////////////////////////////////////// /// \brief canalInterface::canalInterface /// canalInterface::canalInterface() { m_flags = 0; } /////////////////////////////////////////////////////////////////////////////// /// \brief tcpip...
; RTL8139 Network Driver for xOS ; Copyright (c) 2017 by Omar Mohammad use32 hex_values: db "0123456789ABCDEF" ; strlen: ; Calculates string length ; In\ ESI = String ; Out\ EAX = String size strlen: push esi xor ecx, ecx .loop: lodsb cmp al, 0 je .done inc ecx jmp .loop .done: mov eax, ecx pop esi r...
; RC Car --- Control an RC car using a Nunchuk controller to drive a dual H-bridge such as L298N. ; Uses arduino pins 7-10 for controlling the H-bridge jmp main include "libraries/Nunchuk.asm" main: jsr nunchuck_init ldr #7,A out {arduino_output},A ldr #8,A out {arduino_output},A ld...
; A187391: Floor(r*n), where r=1+sqrt(8)+sqrt(7); complement of A187392. ; Submitted by Christian Krause ; 6,12,19,25,32,38,45,51,58,64,71,77,84,90,97,103,110,116,123,129,135,142,148,155,161,168,174,181,187,194,200,207,213,220,226,233,239,246,252,258,265,271,278,284,291,297,304,310,317,323,330,336,343,349,356,362,369,3...
; A333871: Sum of the iterated absolute Möbius divisor function (A173557). ; Submitted by Christian Krause ; 0,1,3,1,5,3,9,1,3,5,15,3,15,9,9,1,17,3,21,5,15,15,37,3,5,15,3,9,37,9,39,1,25,17,27,3,39,21,27,5,45,15,57,15,9,37,83,3,9,5,33,15,67,3,45,9,39,37,95,9,69,39,15,1,51,25,91,17,59,27,97,3,75,39,9,21,69,27,105,5,3,45,...
; A250024: 40n - 21. ; 19,59,99,139,179,219,259,299,339,379,419,459,499,539,579,619,659,699,739,779,819,859,899,939,979,1019,1059,1099,1139,1179,1219,1259,1299,1339,1379,1419,1459,1499,1539,1579,1619,1659,1699,1739,1779,1819,1859,1899,1939,1979,2019,2059,2099,2139,2179,2219,2259,2299,2339,2379,2419,2459,2499,2539,2579,...
; A010943: Binomial coefficient C(27,n). ; 1,27,351,2925,17550,80730,296010,888030,2220075,4686825,8436285,13037895,17383860,20058300,20058300,17383860,13037895,8436285,4686825,2220075,888030,296010,80730,17550,2925,351,27,1 mov $1,27 bin $1,$0
// 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 "components/password_manager/core/browser/login_database.h" #include "components/os_crypt/os_crypt.h" namespace password_manager { // static L...
// 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 // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-licens...
/*============================================================================== Copyright (c) 2001-2010 Joel de Guzman Copyright (c) 2010 Thomas Heller 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) ===...
; A244149: a(n) = 2*(n*Denominator(((n-1)*(n^2)+2^(n+1)-4)/(2*n))-n)/n+1. ; Submitted by Jon Maiga ; 1,1,1,3,1,5,1,7,5,9,1,11,1,13,9,15,1,17,1,19,13,21,1,23,9,25,17,3,1,29,1,31,21,33,69,35,1,37,25,39,1,41,1,43,5,45,1,47,13,49,33,51,1,53,109,55,37,57,1,59,1,61,41,63,25,65,1,67,45,9,1,71,1,73,49,75,153,77,1,79 mov $1,$0...
; ; Generic pseudo graphics routines for text-only platforms ; Version for the 2x3 graphics symbols ; ; Written by Stefano Bodrato 05/09/2007 ; ; ; Get pixel at (x,y) coordinate. ; ; ; $Id: pointxy.asm,v 1.7 2016-07-02 09:01:36 dom Exp $ ; INCLUDE "graphics/grafix.inc" SECTION code_cli...
dnl Intel Pentium-4 mpn_cnd_sub_n -- mpn subtraction. dnl Copyright 2001, 2002, 2013 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 Lesser General...
;================================================================================ ; Randomize Catfish ;-------------------------------------------------------------------------------- !HEART_REDRAW = "$7F5000" LoadCatfishItemGFX: LDA.l $1DE185 ; location randomizer writes catfish item to JML PrepDynamicTile ;-----...
* Reset windows V0.8  Tony Tebby QJUMP * * WMON mode resets windows to monitor defaults * WTV mode resets windows to tv defaults * section exten * xdef wmon xdef wtv * xref wmon_def xref wtv_def xref ut_gtint xref ut_gtin1 * include 'dev8_keys_qdos_io' include 'dev8_keys_qdos_sms' include 'dev8_...
; A261807: a(n) = n XOR n^3. ; Coded manually 2021-03-30 by Simon Strandgaard, https://github.com/neoneye ; 0,0,10,24,68,120,222,336,520,720,994,1336,1740,2200,2742,3360,4112,4896,5850,6872,8020,9272,10638,12176,13848,15632,17586,19704,21980,24408,26982,29760,32800,35904,39338,42840,46692,50680,54910,59280,64040,68880,...
; A155859: a(n) = (1/162)*(61*10^n + 18*n + 20). ; Submitted by Christian Krause ; 4,38,377,3766,37655,376544,3765433,37654322,376543211,3765432100,37654320989,376543209878,3765432098767,37654320987656,376543209876545,3765432098765434,37654320987654323,376543209876543212,3765432098765432101,37654320987654320990,3765432...
;The MIT License (MIT) ;Copyright (c) 2017 Robert L. Taylor ;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, modif...
// Copyright 2015 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 "net/proxy/in_process_mojo_proxy_resolver_factory.h" #include <utility> #include "base/memory/singleton.h" #include "net/proxy/mojo_proxy_resol...
MOV 0x20,#0x01 MOV 0x21,#0x02 MOV 0x22,#0x04 MOV 0x23,#0x08 MOV 0x24,#0x10 MOV 0x25,#0x20 MOV 0x26,#0x40 MOV 0x27,#0x80 MOV 0x28,#0x01 MOV 0x29,#0x02 MOV 0x2A,#0x04 MOV 0x2B,#0x08 MOV 0x2C,#0x10 MOV 0x2D,#0x20 MOV 0x2E,#0x40 MOV 0x2F,#0x80 SJMP L15 START: L0: MOV A,#0 JBC 0x00,START L1: MOV A,#1 JBC 0x09,L0 L2: MOV A...
/* * All Video Processing kernels * Copyright © <2010>, Intel Corporation. * * 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 ri...
!source "../loader/start_glob.inc" !zone mc *=$11C0 mcstart_mine sei lda #47 sta $9001 lda #40 sta $9003 lda #128+21 sta $9002 lda #$08 sta $900f lda #$08 sta $900e ldx #7 .hsf lda shape,x ;sta $200,x ;sta $208,x ;sta $210,x sta $298,x ; $218,x ;sta $220,x ;sta $228,x ;sta $230,x ;sta $238,x de...
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r12 push %r14 push %r8 push %rax push %rbp push %rcx push %rdi push %rsi // Store lea addresses_UC+0x1727b, %r12 nop nop dec %r14 mov $0x5152535455565758, %r8 movq %r8, %xmm2 movups %xmm2, (%r12) nop nop nop nop cmp $371, ...
; A143008: Crystal ball sequence for the A2 x A2 lattice. ; 1,13,73,253,661,1441,2773,4873,7993,12421,18481,26533,36973,50233,66781,87121,111793,141373,176473,217741,265861,321553,385573,458713,541801,635701,741313,859573,991453,1137961,1300141,1479073,1675873,1891693,2127721 add $0,1 bin $0,2 add $0,1 bin $0,2 mov $1...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r15 push %rax push %rbp push %rbx push %rsi lea addresses_UC_ht+0x3bd4, %rax clflush (%rax) nop nop nop nop nop and $50805, %r15 movb (%rax), %r12b add %r13, %r13 lea addresses_normal_ht+0x164d4, %rbp nop nop nop xor $23640, %rsi movl $0x61626364, (...
;------------------------------------------------------------------------------ ; ; Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR> ; Copyright (c) 2015, Linaro Ltd. All rights reserved.<BR> ; This program and the accompanying materials ; are licensed and made available under the terms and c...
; ; jquanti.asm - sample data conversion and quantization (64-bit SSE2) ; ; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB ; Copyright (C) 2009, 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...
Name: zel_sub3.asm Type: file Size: 2519 Last-Modified: '2016-05-13T04:23:03Z' SHA-1: CB1FA09CFD4C77A8348BF21A4D1F719DA1B874BD Description: null
; A186322: Adjusted joint rank sequence of (f(i)) and (g(j)) with f(i) after g(j) when f(i)=g(j), where f and g are the squares and heptagonal numbers. Complement of A186323. ; 2,3,5,6,8,10,11,13,15,16,18,19,21,23,24,26,28,29,31,32,34,36,37,39,41,42,44,46,47,49,50,52,54,55,57,59,60,62,63,65,67,68,70,72,73,75,77,78,80,...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Microsoft Research Singularity ;;; ;;; Copyright (c) Microsoft Corporation. All rights reserved. ;;; ;;; This file contains ARM-specific assembly code. ;;; ; __stoi64 single precision floating point to signed ...
// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*- //----------------------------------------------------------------------------- // Copyright 2000-2022 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com) // See the top-level COPYRIGHT file for details. // SPDX-License-Identifier: Apache-2...
; A015552: a(n) = 6*a(n-1) + 7*a(n-2), a(0) = 0, a(1) = 1. ; 0,1,6,43,300,2101,14706,102943,720600,5044201,35309406,247165843,1730160900,12111126301,84777884106,593445188743,4154116321200,29078814248401,203551699738806,1424861898171643,9974033287201500,69818233010410501,488727631072873506,3421093417510114543,2394765392...
db 0 ; species ID placeholder db 60, 90, 140, 40, 50, 50 ; hp atk def spd sat sdf db STEEL, ROCK ; type db 90 ; catch rate db 152 ; base exp db NO_ITEM, HARD_STONE ; items db GENDER_F50 ; gender ratio db 35 ; step cycles to hatch INCBIN "gfx/pokemon/lairon/front.dimensions" db GROWTH_SLOW ; gro...
#include <DataTypes/DataTypeString.h> #include <Columns/ColumnString.h> #include <Functions/IFunction.h> #include <Functions/FunctionHelpers.h> #include <Functions/FunctionFactory.h> #include <Functions/DateTimeTransforms.h> #include <Functions/extractTimeZoneFromFunctionArguments.h> #include <IO/WriteHelpers.h> #in...
; A276882: Sums-complement of the Beatty sequence for 2 + sqrt(2). ; 1,2,5,8,9,12,15,16,19,22,25,26,29,32,33,36,39,42,43,46,49,50,53,56,57,60,63,66,67,70,73,74,77,80,83,84,87,90,91,94,97,98,101,104,107,108,111,114,115,118,121,124,125,128,131,132,135,138,141,142,145 mov $2,$0 mul $2,$0 lpb $2 add $2,$3 sub $3,2 a...
; A044770: Numbers n such that string 5,7 occurs in the base 10 representation of n but not of n+1. ; Submitted by Christian Krause ; 57,157,257,357,457,557,579,657,757,857,957,1057,1157,1257,1357,1457,1557,1579,1657,1757,1857,1957,2057,2157,2257,2357,2457,2557,2579,2657,2757,2857,2957,3057,3157,3257,3357,3457,3557 ad...
/* * Copyright (c) 2015, Nagoya University * 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 ...
; A097741: Pell equation solutions (10*a(n))^2 - 101*b(n)^2 = -1 with b(n) = A097742(n), n >= 0. ; Submitted by Jamie Morken(w1) ; 1,403,162005,65125607,26180332009,10524428342011,4230794013156413,1700768668860536015,683704774087922321617,274847618414675912754019,110488058897925629004794021,4441592482934768818401444242...
; A105577: a(n+3) = 2*a(n+2) - 3*a(n+1) + 2*a(n); a(0) = 1, a(1) = 5, a(2) = 6. ; Submitted by Jon Maiga ; 1,5,6,-1,-10,-5,18,31,-2,-61,-54,71,182,43,-318,-401,238,1043,570,-1513,-2650,379,5682,4927,-6434,-16285,-3414,29159,35990,-22325,-94302,-49649,138958,238259,-39654,-516169,-436858,595483,1469202,278239,-2660162,-...
; A085810: Number of three-choice paths along a corridor of height 5, starting from the lower side. ; Submitted by Jamie Morken(s4) ; 1,2,5,13,35,96,266,741,2070,5791,16213,45409,127206,356384,998509,2797678,7838801,21963661,61540563,172432468,483144522,1353740121,3793094450,10628012915,29779028189,83438979561,23379082...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r14 push %r8 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x16f21, %rsi lea addresses_WC_ht+0x13df9, %rdi clflush (%rsi) and %rbp, %rbp mov $110, %rcx rep movsb nop nop add %rbp, %rbp lea addresses_normal_ht+0xd581, %r11 nop inc %r8 mo...
#pragma once // compiler_directives.hpp: #if defined(_MSC_VER) #pragma warning(disable : 4514) // unreferenced function is removed #pragma warning(disable : 4515) // unreferenced inline function has been removed #pragma warning(disable : 4710) // function is not inlined #pragma warning(disable : 4820) // bytes paddin...
############################################################################### # 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...
; A226903: Shiraishi numbers: a parametrized family of solutions c to the Diophantine equation a^3 + b^3 + c^3 = d^3 with d = c+1. ; 5,18,53,102,197,306,491,684,989,1290,1745,2178,2813,3402,4247,5016,6101,7074,8429,9630,11285,12738,14723,16452,18797,20826,23561,25914,29069,31770,35375,38448,42533,46002,50597,54486,5962...
;****************************************************************************** .define dir_reg, 0x00 .define port_reg, 0x01 .define pin_reg, 0x02 .define prescaler_l, 0x03 .define prescaler_h, 0x04 .define count_ctrl, 0x05 .define gpu_addr, 0x2000 .defi...
OPTION DOTNAME .text$ SEGMENT ALIGN(256) 'CODE' EXTERN OPENSSL_ia32cap_P:NEAR PUBLIC RC4 ALIGN 16 RC4 PROC PUBLIC mov QWORD PTR[8+rsp],rdi ;WIN64 prologue mov QWORD PTR[16+rsp],rsi mov rax,rsp $L$SEH_begin_RC4:: mov rdi,rcx mov rsi,rdx mov rdx,r8 mov rcx,r9 or rsi,rsi jne $L$entry mov rdi,QWORD PTR[8+rsp...
// MIT License // // Copyright (c) 2020, The Regents of the University of California, // through Lawrence Berkeley National Laboratory (subject to receipt of any // required approvals from the U.S. Dept. of Energy). All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r14 push %rax push %rsi lea addresses_normal_ht+0x16512, %rax nop nop nop nop nop inc %r11 mov (%rax), %esi inc %r14 pop %rsi pop %rax pop %r14 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r14 push %r9 push %rax push %rbx ...
0000 CLS 0004 SPR 04, 04 0008 BGC 3 000c LDIR 0, 0a20 0010 LDIR 0, 0b20 0014 LDIR 0, 0020 0018 LDIR 0, 0120 001c LDIR 0, 0220 0020 LDIR 0, 0320 0024 LDIR 0, 0420 0028 LDIR 0, 0520 002c LDIR 0, 0620 0030 LDIR 0, 0d20 0034 LDIR 0, 0e20 0038 LDIR 0, 0f20 003c SUBR3 2, 2, 2 0040 JX N, 0012 0044 JX N, 0912 0048 SUBR3 2, 2, ...
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r14 push %r9 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0xa6e4, %rsi lea addresses_A_ht+0xb2f7, %rdi clflush (%rdi) nop nop nop and $1390, %r14 mov $5, %rcx rep movsw nop nop nop nop nop xor %rdx, %rdx lea addresses_WT_ht+0x17fc3, %...
; receiving the data in 'dx' ; For the examples we'll assume that we're called with dx=0x1234 print_hex: pusha mov cx, 0 ; our index variable ; Strategy: get the last char of 'dx', then convert to ASCII ; Numeric ASCII values: '0' (ASCII 0x30) to '9' (0x39), so just add 0x30 to byte N. ; For alphabetic charac...
#include <AK/Bitmap.h> #include <AK/BufferStream.h> #include <AK/StdLibExtras.h> #include <Kernel/FileSystem/Ext2FileSystem.h> #include <Kernel/FileSystem/ext2_fs.h> #include <Kernel/Process.h> #include <Kernel/RTC.h> #include <Kernel/UnixTypes.h> #include <LibC/errno_numbers.h> //#define EXT2_DEBUG static const size...
// Copyright (c) 2014-2018 The Dash Core Developers // Copyright (c) 2016-2018 Duality Blockchain Solutions Developers // Copyright (c) 2017-2018 Credits Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "m...
; A260479: Positions of 0 in the infinite palindromic word at A260455. ; 1,3,4,6,8,10,11,13,14,16,17,19,21,23,24,26,28,30,31,33,35,37,38,40,41,43,44,46,48,50,51,53,54,56,57,59,61,63,64,66,67,69,70,72,74,76,77,79,81,83,84,86,88,90,91,93,94,96,97,99,101,103,104,106,108,110,111,113,115,117,118,120,121,123,124,126,128,130,...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2016 The Bitcoin Core developers // Copyright (c) 2016-2017 The Coinium Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "chainparams.h" #inclu...
.ORIG x3000 JSR INPUT ADD R3, R0, #0 ; copy Input to R3 JSR INPUT ADD R4, R0, #0 ; copy Input to R4 JSR MULTIP HALT INPUT ADD R4, R7, #0 IN ; read a character from console (and store it in R0) LD R1, O ADD R0, R0, R1 ; R0=int(IN) ADD R7, R4, #0 ;...
SECTION .data msg: db "HelloWorld!", 0x0a len: equ $-msg SECTION .text global _main _main: mov rax,0x2000004 ;0x2000004 表示 syscall 调用号 write mov rdi,1 ;表示控制台输出 mov rsi,msg ;syscall 调用会到 rsi 来获取字符 mov rdx,len ;字符串长度 syscall mov rax,0x2000001 ;0x2000001 表示退出 syscal...
; Taken from https://hackerpulp.com/os/os-development-windows-2-booting-64-bit-kernel-uefi/ ; ; the UEFI definitions we use in our application ; see http://www.uefi.org/sites/default/files/resources/UEFI Spec 2_7_A Sept 6.pdf#G45.1342862 EFI_SUCCESS equ 0 EFI_LOAD_ERROR equ 0x80...
#include <ciso646> #include <array> #include <filesystem> #include <fstream> #include <iostream.hpp> // <iostream> + nl, sp etc. defined... #include <iterator> #include <list> #include <map> #include <random> #include <string> #include <type_traits> #include <vector> namespace fs = std::experimental::filesystem; #i...
; A286357: One more than the exponent of the highest power of 2 dividing sigma(n): a(n) = A001511(A000203(n)). ; 1,1,3,1,2,3,4,1,1,2,3,3,2,4,4,1,2,1,3,2,6,3,4,3,1,2,4,4,2,4,6,1,5,2,5,1,2,3,4,2,2,6,3,3,2,4,5,3,1,1,4,2,2,4,4,4,5,2,3,4,2,6,4,1,3,5,3,2,6,5,4,1,2,2,3,3,6,4,5,2,1,2,3,6,3,3,4,3,2,2,5,4,8,5,4,3,2,1,3,1 seq $0...
#include "template.hpp" int main() { int a, b; cin >> a >> b; cout << (a - (a > b ? 1 : 0)) << endl; }
// test suite for Quaternion class #include <cmath> #include <vector> #include <Eigen/Dense> #include <Eigen/Geometry> #include <gtest/gtest.h> #include <isce3/core/DenseMatrix.h> #include <isce3/core/EulerAngles.h> #include <isce3/core/Quaternion.h> #include <isce3/core/Vector.h> using namespace isce3::core; struc...
; AtieDOS 2.10 System Calls Linker ; Copyright (c) 2020 AtieSoftware. ; See LICENSE in root folder %include "syscalls/commands.asm" %include "syscalls/keyboard.asm" %include "syscalls/print.asm" %include "syscalls/screen.asm" %include "syscalls/strings.asm"
.MODEL small .DATA strlen db ? msg1 db "Enter array elements:$" msg2 db " Sorted array:$" num dw 10h ? .CODE .STARTUP ;Print message1 mov dx,offset msg1 mov ah,09h int 21h ;Input array elements (Ex:235701269$) mov dx,offset num mov ah,0Ah int 21h ;Finding length of array mov si,offs...
; A084221: a(n+2) = 4*a(n), with a(0)=1, a(1)=3. ; 1,3,4,12,16,48,64,192,256,768,1024,3072,4096,12288,16384,49152,65536,196608,262144,786432,1048576,3145728,4194304,12582912,16777216,50331648,67108864,201326592,268435456,805306368,1073741824,3221225472,4294967296,12884901888,17179869184,51539607552,68719476736,20615843...
module DEGBUG grid: ld hl,#5800 ld bc,(%01000111 * 256) + %01000000 .loop: ld (hl),b inc hl ld a,l and #1f jr z,.loop ld a,b xor c ld b,a ld a,h cp #5b jr c,.loop ret endmodule
############################################################################### # 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...
; Listing generated by Microsoft (R) Optimizing Compiler Version 16.00.40219.01 TITLE D:\Projects\TaintAnalysis\AntiTaint\Epilog\src\func-iparam-stdcall.c .686P .XMM include listing.inc .model flat INCLUDELIB MSVCRT INCLUDELIB OLDNAMES _DATA SEGMENT $SG3571 DB '%d %d %d %d %s', 0aH, 00H _DATA ENDS...
dnl Intel Pentium-II mpn_rshift -- mpn left shift. dnl Copyright 2001 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 License as dnl published...
;/* ; * FreeRTOS Kernel <DEVELOPMENT BRANCH> ; * Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. ; * ; * SPDX-License-Identifier: MIT ; * ; * Permission is hereby granted, free of charge, to any person obtaining a copy of ; * this software and associated documentation files (the "Software")...
; A157910: a(n) = 18*n^2 - 1. ; 17,71,161,287,449,647,881,1151,1457,1799,2177,2591,3041,3527,4049,4607,5201,5831,6497,7199,7937,8711,9521,10367,11249,12167,13121,14111,15137,16199,17297,18431,19601,20807,22049,23327,24641,25991,27377,28799,30257,31751,33281,34847,36449,38087,39761,41471,43217,44999,46817,48671,50561,52...
; A017230: a(n) = (9*n + 5)^10. ; 9765625,289254654976,41426511213649,1125899906842624,13422659310152401,97656250000000000,511116753300641401,2113922820157210624,7326680472586200649,22130157888803070976,59873693923837890625,148024428491834392576,339456738992222314849,730463141542791783424,1488377021731616101801,2892546...
#include "common.h" #include <pybind11/stl.h> #define GET_SKSCALAR_PTR(pos) \ ((pos.is_none()) ? nullptr : &(pos.cast<std::vector<SkScalar>>())[0]) void initShader(py::module &m) { py::class_<SkShader, sk_sp<SkShader>, SkFlattenable> shader( m, "Shader", R"docstring( Shaders specify the source color(s) for wh...
; A194391: Numbers m such that Sum_{k=1..m} (<1/2 + k*r> - <k*r>) > 0, where r=sqrt(12) and < > denotes fractional part. ; 1,3,5,7,9,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,29,31,33,35,37,39,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,57,59,61,63,65,67,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,85,87,89,91,9...
; ;================================================================================================== ; ROMWBW 2.X CONFIGURATION DEFAULTS FOR ZETA V2 ;================================================================================================== ; ; THIS FILE CONTAINS THE FULL SET OF DEFAULT CONFIGURATION SE...
; A347671: a(n) = n^n mod 100. ; Submitted by Jon Maiga ; 1,1,4,27,56,25,56,43,16,89,0,11,56,53,16,75,16,77,24,79,0,21,84,67,76,25,76,3,36,69,0,31,76,13,36,75,36,17,4,59,0,41,64,7,96,25,96,63,56,49,0,51,96,73,56,75,56,57,84,39,0,61,44,47,16,25,16,23 pow $0,$0 mod $0,100
; A052153: Rhombi (in 3 different orientations) in a rhombus with 60-degree acute angles. ; 1,9,26,54,95,151,224,316,429,565,726,914,1131,1379,1660,1976,2329,2721,3154,3630,4151,4719,5336,6004,6725,7501,8334,9226,10179,11195,12276,13424,14641,15929,17290,18726,20239,21831,23504,25260,27101,29029,31046,33154,35355,37651...
; A210101: Number of (n+1) X 3 0..2 arrays with every 2 X 2 subblock having one or three distinct values, and new values 0..2 introduced in row major order. ; Submitted by Jamie Morken(s1) ; 30,225,1690,12725,95830,721705,5435250,40933565,308275950,2321665905,17484765130,131680019525,991699197190,7468614458425,56247097...
; A212501: Number of (w,x,y,z) with all terms in {1,...,n} and w > x < y >= z. ; 0,0,2,13,45,115,245,462,798,1290,1980,2915,4147,5733,7735,10220,13260,16932,21318,26505,32585,39655,47817,57178,67850,79950,93600,108927,126063,145145,166315,189720,215512,243848,274890,308805 mov $2,$0 lpb $0,1 sub $0,1 lpb $0,1 ...
#include "vtkTestGraphAlgorithmFilter.h" #include <vtkObjectFactory.h> #include <vtkStreamingDemandDrivenPipeline.h> #include <vtkInformationVector.h> #include <vtkInformation.h> #include <vtkDataObject.h> #include <vtkSmartPointer.h> #include <vtkMutableUndirectedGraph.h> #include <vtkMutableDirectedGraph.h> #include...
// Copyright (c) 2011-2013 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "splashscreen.h" #include "clientversion.h" #include "util.h" #include <QPainter> #undef loop /* ugh, remove this wh...
.macro FL_JUMP,jump_address .byte 0x01 .word jump_address .endmacro .macro FL_JUMP_IF_PROGRESS_BETWEEN,progress_low,progress_high,jump_address .byte 0x02, progress_low, progress_high .word jump_address .endmacro .macro FL_JUMP_IF_FLAG_NOT_ON,flag,jump_address .byte 0x05, 0xFF .halfword flag .word jump_address...
; A093417: Row sums of A093415. ; Submitted by Jon Maiga ; 1,2,5,7,9,15,21,22,28,40,37,57,58,55,85,100,83,126,112,113,151,187,149,194,214,204,230,301,202,345,341,292,373,340,327,495,469,413,448,610,414,672,595,481,694,805,597,786,715,718,842,1027,751,877,918,902 add $0,2 mov $2,$0 lpb $0 mov $3,$2 gcd $3,$0 mov ...
; A131768: 2*(A007318 * A097807) - A000012. ; 1,3,1,5,5,1,7,11,7,1,9,19,19,9,1,11,29,39,29,11,1,13,41,69,69,41,13,1,15,55,111,139,111,55,15,1,17,71,167,251,251,167,71,17,1,19,89,239,419,503,419,239,89,19,1 mov $1,2 lpb $0 add $0,1 add $1,1 sub $0,$1 lpe bin $1,$0 sub $1,1 mul $1,2 add $1,1 mov $0,$1
/*************************************************************************/ /* javascript_eval.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
; A006368: The "amusical permutation" of the nonnegative numbers: a(2n)=3n, a(4n+1)=3n+1, a(4n-1)=3n-1. ; 0,1,3,2,6,4,9,5,12,7,15,8,18,10,21,11,24,13,27,14,30,16,33,17,36,19,39,20,42,22,45,23,48,25,51,26,54,28,57,29,60,31,63,32,66,34,69,35,72,37,75,38,78,40,81,41,84,43,87,44,90,46,93,47,96,49,99,50,102,52,105,53,108,55...
; A003314: Binary entropy function: a(1)=0; for n > 1, a(n) = n + min { a(k)+a(n-k) : 1 <= k <= n-1 }. ; 0,2,5,8,12,16,20,24,29,34,39,44,49,54,59,64,70,76,82,88,94,100,106,112,118,124,130,136,142,148,154,160,167,174,181,188,195,202,209,216,223,230,237,244,251,258,265,272,279,286,293,300,307,314,321,328,335,342,349,356,...
; A010098: a(n) = a(n-1)*a(n-2) with a(0)=1, a(1)=3. ; 1,3,3,9,27,243,6561,1594323,10460353203,16677181699666569,174449211009120179071170507,2909321189362570808630465826492242446680483,507528786056415600719754159741696356908742250191663887263627442114881,14765642514853927789278577213138371809338697082885696639320770790...