text
stringlengths
1
1.05M
// Copyright (c) 2011-2013 The Bitcoin Core developers // Copyright (c) 2017-2018 The CruZeta developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #define BOOST_TEST_MODULE Bitcoin Test Suite #include "test_bitcoin.h" #i...
; A182619: Number of vertices that are connected to two edges in a spiral without holes constructed with n hexagons. ; Submitted by Jon Maiga ; 6,8,9,10,11,12,12,13,14,14,15,15,16,16,17,17,18,18,18,19,19,20,20,20,21,21,21,22,22,22,23,23,23,24,24,24,24 mul $0,4 add $0,2 mul $0,3 mov $1,3 lpb $0 sub $0,$1 add $1,2 l...
db TENTACOOL ; 072 db 40, 40, 35, 70, 50, 100 ; hp atk def spd sat sdf db WATER, POISON ; type db 190 ; catch rate db 105 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F50 ; gender ratio db 100 ; unknown 1 db 20 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/tentacool/front.dim...
; A005442: a(n) = n!*Fibonacci(n+1). ; Submitted by Jamie Morken(s1) ; 1,1,4,18,120,960,9360,105840,1370880,19958400,322963200,5748019200,111607372800,2347586841600,53178757632000,1290674601216000,33413695451136000,919096314200064000,26768324463648768000,822929104265748480000,26630545381501501440000,9048716768031458918...
; A212976: Number of (w,x,y) with all terms in {0,...,n} and odd range. ; 0,6,12,36,60,114,168,264,360,510,660,876,1092,1386,1680,2064,2448,2934,3420,4020,4620,5346,6072,6936,7800,8814,9828,11004,12180,13530,14880,16416,17952,19686,21420,23364,25308,27474,29640,32040 mov $12,$0 mov $14,$0 lpb $14,1 clr $0,12 mov $...
#include<bits/stdc++.h> using namespace std; typedef long long int ll; typedef unsigned long long int ull; typedef long double ld; #define MOD 1000000007 #define INF 1000000000000000000 #define endll "\n" #define pb push_back #define forn(i,n) for(i=0;i<n;i++) #define forab(i,a,b) for(i=a;i<=b;i++) #define v...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r15 push %r9 push %rbx push %rdi push %rsi lea addresses_WT_ht+0x288f, %rdi clflush (%rdi) nop nop nop nop and $38612, %rsi movups (%rdi), %xmm1 vpextrq $0, %xmm1, %r10 sub %rbx, %rbx lea addresses_normal_ht+0xb26b, %r9 nop nop nop nop nop cmp %rdi,...
; SLAE64 assignment 2 ; by Jasper Lievisse Adriaanse ; Student ID: SLAE64-1614 global _start %define SYS_WRITE 1 %define SYS_DUP2 33 %define SYS_SOCKET 41 %define SYS_EXECVE 59 %define SYS_CONNECT 42 section .text _start: ; Start by opening a socket(2) ; syscall: ; socket: 41 on Linux/x86_64 ; arguments: ; %rd...
user/mytest.b: file format elf32-tradbigmips Disassembly of section .text: 00400000 <_start>: 400000: 8fa40000 lw a0,0(sp) 400004: 8fa50004 lw a1,4(sp) 400008: 0c1002f8 jal 400be0 <libmain> 40000c: 00000000 nop 400010: 00000000 nop 00400014 <__asm_pgfault_handler>: 400014: 00000000 nop 40001...
; A326663: Column 3 of the array at A309157; see Comments. ; 5,12,20,26,33,41,47,54,61,68,75,83,89,96,104,110,117,124,131,138,146,152,159,167,173,180,188,194,201,209,215,222,230,236,243,250,257,264,272,278,285,293,299,306,313,320,327,335,341,348,356,362,369,377,383,390,398,404,411,419,425,432,439,446,453,461,467,474,48...
; ; ZX Spectrum specific routines ; ; int if1_installed(); ; ; The result is: ; - 0 (false) if the ZX Interface1 is missing or not paged in ; - 1 (true) if the ZX Interface1 is connected and activated. ; ; $Id: if1_installed.asm,v 1.3 2016/06/10 20:02:04 dom Exp $ ; SECTION code_clib PUBLIC if1_installed PUBLIC _if...
/** * Copyright Soramitsu Co., Ltd. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ #ifndef KAGOME_CORE_SCALE_SCALE_ENCODER_STREAM_HPP #define KAGOME_CORE_SCALE_SCALE_ENCODER_STREAM_HPP #include <deque> #include <boost/optional.hpp> #include <gsl/span> #include "scale/detail/fixed_witdh_integer.hpp"...
; A006097: Gaussian binomial coefficient [ n,4 ] for q=2. ; Submitted by Christian Krause ; 1,31,651,11811,200787,3309747,53743987,866251507,13910980083,222984027123,3571013994483,57162391576563,914807651274739,14638597687734259,234230965858250739,3747802679431278579,59965700687947706355,959458073589354016755,153513840...
%ifdef CONFIG { "RegData": { "RAX": "0xF2F2F2F2F2F2F2F2", "RDX": "0x0", "RDI": "0xE000000F" }, "MemoryRegions": { "0x100000000": "4096" } } %endif mov rdx, 0xe0000000 mov rax, 0x4142434445464748 mov [rdx + 8 * 0], rax mov rax, 0x5152535455565758 mov [rdx + 8 * 1], rax mov rax, 0x0 mov [rdx + 8...
-- HUMAN RESOURCE MACHINE PROGRAM -- -- fibseq[fibseq <= in1], ... -> out a: INBOX COPYTO 2 BUMPUP 2 COPYFROM 9 COPYTO 0 BUMPUP 0 COPYTO 1 OUTBOX b: COPYFROM 1 OUTBOX COPYFROM 1 ADD 0 COPYTO 0 SUB 2 JUMPN c JUMP a c: COPY...
;******************************************************************************* ;* Tutorial Twenty-Five Debugging Test Program * ;* * ;* Written By John C. Dale ...
; A146559: Expansion of (1-x)/(1 - 2*x + 2*x^2). ; 1,1,0,-2,-4,-4,0,8,16,16,0,-32,-64,-64,0,128,256,256,0,-512,-1024,-1024,0,2048,4096,4096,0,-8192,-16384,-16384,0,32768,65536,65536,0,-131072,-262144,-262144,0,524288,1048576,1048576,0,-2097152,-4194304,-4194304,0,8388608,16777216,16777216,0,-33554432,-67108864,-6710886...
//===- AMDGPUAsmParser.cpp - Parse SI asm to MCInst instructions ----------===// // // Part of the LLVM Project, 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 // //===---------------------------...
; General IO utility: fetch byte with cursor V2.00  1988 Tony Tebby section gen_util xdef gu_fbcur xref gu_iow include 'dev8_keys_qdos_io' ;+++ ; This routine does fetch byte with cursor enabled ; ; d1 r byte fetched ; a0 c p channel ID ; a1 p ; ...
; A130235: Partial sums of the 'lower' Fibonacci Inverse A130233. ; 0,2,5,9,13,18,23,28,34,40,46,52,58,65,72,79,86,93,100,107,114,122,130,138,146,154,162,170,178,186,194,202,210,218,227,236,245,254,263,272,281,290,299,308,317,326,335,344,353,362,371,380,389,398,407,417,427 lpb $0 mov $2,$0 sub $0,1 seq $2,131234...
#include bitsstdc++.h using namespace std; Structure for storing meeting pair(start, finish) position of meeting. struct meeting { int start; int end; int pos; }; Sorting meetings based on finish time bool endSort(struct meeting m1, meeting m2) { return (m1.end m2.end); } Function for finding max...
#include "drape/vulkan/vulkan_utils.hpp" #include <array> namespace dp { namespace vulkan { namespace { // Sampler package. uint8_t constexpr kWrapSModeByte = 3; uint8_t constexpr kWrapTModeByte = 2; uint8_t constexpr kMagFilterByte = 1; uint8_t constexpr kMinFilterByte = 0; } // namespace std::string GetVulkanResu...
; A040063: Continued fraction for sqrt(72). ; 8,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,16,2,...
; SBAS_JOB - SBASIC Job V2.00  1994 Tony Tebby QJUMP section sbas xdef sb_job xdef sb_die xdef sb_fatal xdef sb_name xdef sb_thing xref sb_initv xref sb_initc xref sb_main xref sb_start xref sb_xcmd xref sb_qd5 xref sb_anam2 xref sb_aldat xref sb_resch xref sb_inchan xref.l sb.vers xre...
; A168059: Denominator of (n+2)/(n*(n+1)). ; 2,3,12,10,30,21,56,36,90,55,132,78,182,105,240,136,306,171,380,210,462,253,552,300,650,351,756,406,870,465,992,528,1122,595,1260,666,1406,741,1560,820,1722,903,1892,990,2070,1081,2256,1176,2450,1275,2652,1378,2862,1485,3080,1596,3306,1711,3540,1830,3782,1953,4032,2080,4290,2...
object_const_def Shimoda_MapScripts: db 0 ; scene scripts db 0 ; callbacks ;callback MAPCALLBACK_NEWMAP, .InitializeRoom ;callback MAPCALLBACK_TILES, .SetSpawn Shimoda_MapEvents: db 0, 0 ; filler db 0 ; warp events db 0 ; coord events db 0 ; bg events ;bg_event 0, 1, BGEVENT_READ, RedsHouse1FBookshelf...
; Repeat Block Examples (Repeat.asm) ; This program demonstrates the REPEAT, FOR, ; FORC, and WHILE directives. INCLUDE Irvine32.inc INCLUDE Macros.inc COURSE STRUCT Number BYTE 9 DUP(?) Credits BYTE ? COURSE ENDS ; A semester contains an array of courses. SEMESTER STRUCT Courses COURSE...
;; 32-bit mode bits 32 MBOOT_HEADER_MAGIC equ 0xe85250d6 MBOOT_I386_ARCHITECTURE equ 0 extern kernel_main extern stack_top global start section .multiboot mboot_start: ;; Magic number dd MBOOT_HEADER_MAGIC ;; Architecture (protected mode i386) dd MBOOT_I386_ARCHITECTURE ;; Header length ...
; A143831: Numbers n such that 12n^2 - 1 is prime. ; Submitted by Jamie Morken(w3) ; 1,2,3,4,6,7,9,11,13,14,15,17,20,22,24,25,26,27,29,30,35,36,37,38,39,46,48,55,59,61,68,69,72,75,77,79,82,88,91,93,94,102,105,107,108,115,116,117,118,121,124,130,134,136,137,140,149,152,154,157,158,159,162,167 mov $1,2 mov $2,332202 mov...
; PipisX86 ; By Nathaniel Carman ; Wheres all the pipis? ; aowww yeahhhhhhhhhh ; Pipis Room. section .text global _start _start: mov edx,amo ; sussy mov ecx,gus ; imposter mov ebx,1 mov eax,4 int 0x80 mov edx,len1 mov ecx,msg1 mov ebx,1 mov eax,4 int 0x80 mov edx,len2 ...
; A141620: First differences of A120070. ; Submitted by Jon Maiga ; 5,-3,10,-3,-5,17,-3,-5,-7,26,-3,-5,-7,-9,37,-3,-5,-7,-9,-11,50,-3,-5,-7,-9,-11,-13,65,-3,-5,-7,-9,-11,-13,-15,82,-3,-5,-7,-9,-11,-13,-15,-17,101,-3,-5,-7,-9,-11,-13,-15,-17,-19,122,-3,-5,-7,-9,-11,-13,-15,-17,-19,-21 mov $3,2 mov $4,$0 lpb $3 mov $0...
; ; ZX Spectrum OPUS DISCOVERY specific routines ; ; Stefano Bodrato - Jun. 2006 ; ; This routine get the kempston joystick emulation status. ; ; $Id: get_kempston.asm,v 1.3 2016/06/27 19:16:33 dom Exp $ ; SECTION code_clib PUBLIC get_kempston PUBLIC _get_kempston get_kempston: _get_kempston: call $1708 ; pag...
; Making sure the edge case of instructions directly specified as data is handled ; in this case, just for safety, the blocks before and after the "db" statement ; should not be moved. ld a, 1 jp label1 label2: ; ideally, we would want this block to be moved at the very end, ; but the "db 0" breaks the blo...
; A302245: Maximum remainder of p*q divided by p+q with 0 < p <= q <= n. ; 1,2,3,5,7,8,11,11,15,15,19,19,23,23,27,27,31,31,35,35,39,39,43,43,47,47,51,51,55,55,59,59,63,63,67,67,71,71,75,75,79,79,83,83,87,87,91,91,95,95,99,99,103,103,107,107,111,111,115,115,119,119,123,123 mov $2,$0 lpb $2 add $0,$1 mul $1,$2 gcd...
<% import collections import pwnlib.abi import pwnlib.constants import pwnlib.shellcraft import six %> <%docstring>close(fd) -> str Invokes the syscall close. See 'man 2 close' for more information. Arguments: fd(int): fd Returns: int </%docstring> <%page args="fd=0"/> <% abi = pwnlib.abi.ABI.syscall() ...
// smtc_VdfBlockDataScope.inl // #ifdef LZZ_ENABLE_INLINE #define LZZ_INLINE inline #else #define LZZ_INLINE #endif namespace smtc { LZZ_INLINE VdfDataFuncDefnPtr const & VdfBlockDataScope::getVdfDataFuncDefn () const { return m_vdf_data_func_defn; } } #undef LZZ_INLINE
/* * Copyright (c) 2015 The WebRTC 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 contribut...
dnl AMD64 mpn_divexact_1 -- mpn by limb exact division. dnl Copyright 2001, 2002, 2004-2006, 2010-2012 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 ...
;------------------------------------------------------------------------------ ; ; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR> ; This program and the accompanying materials ; are licensed and made available under the terms and conditions of the BSD License ; which accompanies this distribution. Th...
; https://github.com/leiradel/qrc1 ; ------------------------------------------------------------------------ ; Macros for some undocumented Z80 instructions. ; ------------------------------------------------------------------------ addixl: macro db $dd add a, l endm ldixh_a: macro db $dd ld h, a en...
Name: mn_hp_smsub0.asm Type: file Size: 117589 Last-Modified: '1993-08-25T07:36:08Z' SHA-1: 5CEFDF104B5612100CE778789D8B0E1147C1FC01 Description: null
//===--- SILGenFunction.cpp - Top-level lowering for functions ------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
; A208044: Number of n X 3 0..3 arrays with new values 0..3 introduced in row major order and no element equal to any horizontal, vertical or antidiagonal neighbor (colorings ignoring permutations of colors). ; 2,8,44,244,1356,7540,41932,233204,1296972,7213172,40116428,223109620,1240835916,6900974452,38380133836,213453...
_ls: file format elf32-i386 Disassembly of section .text: 00000000 <main>: break; } close(fd); } int main(int argc, char *argv[]) { 0: 8d 4c 24 04 lea 0x4(%esp),%ecx 4: 83 e4 f0 and $0xfffffff0,%esp 7: ff 71 fc pushl -0x4(%ecx) a: 55 ...
; $Id: bootsector2-cpu-xcpt-1.asm $ ;; @file ; Bootsector test for basic exception stuff. ; ; Recommended (but not necessary): ; VBoxManage setextradata bs-cpu-xcpt-1 VBoxInternal/Devices/VMMDev/0/Config/TestingEnabled 1 ; ; ; Copyright (C) 2007-2015 Oracle Corporation ; ; This file is part of VirtualBox Open Sourc...
; This file is generated from a similarly-named Perl script in the BoringSSL ; source tree. Do not edit by hand. %ifdef BORINGSSL_PREFIX %include "boringssl_prefix_symbols_nasm.inc" %endif %ifidn __OUTPUT_FORMAT__,obj section code use32 class=code align=64 %elifidn __OUTPUT_FORMAT__,win32 %ifdef __YASM_VERSION_ID__ %i...
; A141534: Derived from the centered polygonal numbers: start with the first triangular number, then the sum of the first square number and the second triangular number, then the sum of first pentagonal number, the second square number and the third triangular number, and so on and so on... ; 1,4,11,26,55,105,184,301,4...
; A263941: Minimal most likely sum for a roll of n 8-sided dice. ; 1,9,13,18,22,27,31,36,40,45,49,54,58,63,67,72,76,81,85,90,94,99,103,108,112,117,121,126,130,135,139,144,148,153,157,162,166,171,175,180,184,189,193,198,202,207,211,216,220,225 mov $2,$0 mul $0,8 sub $0,1 mov $1,1 add $2,$0 div $2,2 lpb $0,1 mov $0,2 ...
.include "header.inc" .include "snesregs.inc" .include "misc_macros.inc" .include "zeropage.inc" .include "puzzles.inc" .include "grid.inc" .bank 0 slot 1 .ramsection "sound_variables" SLOT RAM_SLOT kick: db .ends .16BIT .section "apu_payload" FREE apu_dst_address: .dw 200h apu_entry_point: .dw 200h .ends .sect...
; A033280: Number of diagonal dissections of a convex (n+8)-gon into n+1 regions. ; Submitted by Jamie Morken(s4) ; 1,27,385,4004,34398,259896,1790712,11511720,70114902,409003595,2303105805,12593413560,67173369900,350777861280,1798432526880,9073909567440,45140379405030,221768094898350,1077403874372826,5182007298602904,...
/// @copyright /// Copyright (C) 2020 Assured Information Security, Inc. /// /// @copyright /// 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 limita...
; A159287: Expansion of x^2/(1-x^2-2*x^3) ; Submitted by Jamie Morken(s4) ; 0,0,1,0,1,2,1,4,5,6,13,16,25,42,57,92,141,206,325,488,737,1138,1713,2612,3989,6038,9213,14016,21289,32442,49321,75020,114205,173662,264245,402072,611569,930562,1415713,2153700,3276837,4985126,7584237,11538800,17554489,26707274,40632089,61816252...
BITS 64 global getFeatureInfo getFeatureInfo: mov r10,rbx mov eax, 0x01 cpuid mov [rdi], dword ecx mov [rdi+4], dword edx mov [rdi+8], dword eax mov [rdi+12], dword ebx mov rbx, r10 ret
; ------------------------------------------------------------- ; nasm -f elf64 -o 00_arithmetics_if.o 00_arithmetics_if.asm ; ld -o 00_arithmetics_if 00_arithmetics_if.o ; ./00_arithmetics_if ; ------------------------------------------------------------- section .data ; define constants num1: equ 100 n...
// Copyright 2016 Brave 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 "brave/browser/component_updater/brave_component_updater_configurator.h" #include <stdint.h> #include <string> #include <vector> #include "base/comma...
;; ;; Copyright (c) 2019-2021, Intel Corporation ;; ;; Redistribution and use in source and binary forms, with or without ;; modification, are permitted provided that the following conditions are met: ;; ;; * Redistributions of source code must retain the above copyright notice, ;; this list of conditions and...
; A111572: a(n) = a(n-1) + a(n-3) + a(n-4), n >= 4. ; Submitted by Jon Maiga ; -1,3,2,1,3,8,11,15,26,45,71,112,183,299,482,777,1259,2040,3299,5335,8634,13973,22607,36576,59183,95763,154946,250705,405651,656360,1062011,1718367,2780378,4498749,7279127,11777872,19056999,30834875,49891874,80726745 mov $1,1 mov $2,3 mov $4...
#include "Precomp.h" #include "Shader.h" #include <Core/File.h> Shader::Shader() : myType(IShader::Type::Invalid) { } Shader::Shader(Resource::Id anId, const std::string& aPath) : Resource(anId, aPath) , myType(IShader::Type::Invalid) { if (aPath.length() > 4) { myType = DetermineType(aPath); } } void Shader...
; A200039: Number of -n..n arrays x(0..2) of 3 elements with sum zero and with zeroth through 2nd differences all nonzero. ; 0,2,14,28,52,78,114,152,200,250,310,372,444,518,602,688,784,882,990,1100,1220,1342,1474,1608,1752,1898,2054,2212,2380,2550,2730,2912,3104,3298,3502,3708,3924,4142,4370,4600,4840,5082,5334,5588,58...
#include <QNetworkAccessManager> #include <QNetworkRequest> #include <QNetworkReply> #include <QDebug> #include "AuthFlow.h" #include <Application.h> AuthFlow::AuthFlow(AccountData * data, QObject *parent) : AccountTask(data, parent) { } void AuthFlow::succeed() { m_data->validity_ = AccountValidity::Valid;...
; A051437: Number of undirected walks of length n+1 on an oriented triangle, visiting n+2 vertices, with n "corners"; the symmetry group is C3. Walks are not self-avoiding. ; 1,3,4,10,16,36,64,136,256,528,1024,2080,4096,8256,16384,32896,65536,131328,262144,524800,1048576,2098176,4194304,8390656,16777216,33558528,671088...
; DDT RELOCATOR PROGRAM, INCLUDED WITH THE MODULE TO PERFORM ; THE MOVE FROM 200H TO THE DESTINATION ADDRESS VERSION EQU 14 ;1.4 ; ; COPYRIGHT (C) 1976, 1977, 1978 ; DIGITAL RESEARCH ; BOX 579 PACIFIC GROVE ; CALIFORNIA 93950 ; ORG 100H STACK EQU 200H BDOS EQU 0005H PRNT EQU 9 ;BDOS PRINT FUNCTION MODULE ...
.global s_prepare_buffers s_prepare_buffers: push %r14 push %r15 push %r9 push %rax push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x1a9c6, %r14 nop nop inc %rax movl $0x61626364, (%r14) cmp %rdx, %rdx lea addresses_normal_ht+0x1b77e, %r15 nop nop xor $18023, %rdx mov (%r15), %cx nop nop lfence l...
.model small .stack 100h .data message db "Hello world!$" .code main: mov ax, @data mov ds, ax mov ah, 09h lea dx, message int 21h return: mov ah, 4ch int 21h end main
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
/*========================================================================= * * Copyright SINAPSE: Scalable Informatics for Neuroscience, Processing and Software Engineering * The University of Iowa * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file excep...
; A316867: Number of times 6 appears in decimal expansion of n. ; 0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,1,1,1,1,1,1,2,1,1,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0 mov $1,6 lpb $0 mov $2,$0 div $0,10 mod $2,10 ...
#include "App.h" #include "Render.h" #include "KnightHelmet.h" bool KnightHelmet::Load() { atlasSection = { 96, 225, 32, 32 }; return true; } void KnightHelmet::Draw(bool showColliders) { app->render->DrawTexture(texture, bounds.x, bounds.y, &atlasSection); } bool KnightHelmet::SaveState(pugi::xml_node& n) { p...
;---------------------------------------------------------------- ; constants ;---------------------------------------------------------------- PRG_COUNT = 1 ;1 = 16KB, 2 = 32KB MIRRORING = %0001 ;%0000 = horizontal, %0001 = vertical, %1000 = four-screen ;-------------------------------------------------------...
; A031368: Odd-indexed primes: a(n) = prime(2n-1). ; 2,5,11,17,23,31,41,47,59,67,73,83,97,103,109,127,137,149,157,167,179,191,197,211,227,233,241,257,269,277,283,307,313,331,347,353,367,379,389,401,419,431,439,449,461,467,487,499,509,523,547,563,571,587,599,607,617,631,643,653,661,677,691,709,727,739,751,761,773,797,81...
; A095248: a(n) = least k > 0 such that n-th partial sum is divisible by n if and only if n is not prime. ; 1,2,1,4,1,3,1,3,2,2,1,3,1,3,2,2,1,3,1,3,2,2,1,3,2,2,2,2,1,3,1,3,2,2,2,2,1,3,2,2,1,3,1,3,2,2,1,3,2,2,2,2,1,3,2,2,2,2,1,3,1,3,2,2,2,2,1,3,2,2,1,3,1,3,2,2,2,2,1,3,2,2,1,3,2,2,2,2,1,3,2,2,2,2,2,2,1,3,2,2,1,3,1,3,2,2,...
; ; 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...
; is string a valid alpha lower string 12/02-92 O.Fink section string include win1_keys_err xdef st_isalc ; is character alpha lower xdef st_isals ; is string alpha lower ;+++ ; is character alpha lower character ; ; Entr...
; A128496: Row sums of unsigned triangle |A128495|=|S(2;n,m)| (sums of squares of Chebyshev's S-polynomials). ; 1,2,4,9,20,50,125,324,840,2195,5736,15012,39289,102854,269260,704925,1845500,4831574,12649205,33116040,86698896,226980647,594243024,1555748424,4073002225,10663258250,27916772500,73087059249,191344405220 mov ...
; A037156: 10^n*(10^n+1)/2. ; 1,55,5050,500500,50005000,5000050000,500000500000,50000005000000,5000000050000000,500000000500000000,50000000005000000000,5000000000050000000000,500000000000500000000000 mov $1,10 pow $1,$0 add $1,1 bin $1,2 mov $0,$1
; A273409: Partial sums of the number of active (ON,black) cells in n-th stage of growth of two-dimensional cellular automaton defined by "Rule 678", based on the 5-celled von Neumann neighborhood. ; 1,6,11,28,37,66,87,152,177,254,291,404,453,602,687,944,1033,1302,1403,1708,1821,2162,2311,2760,2921,3406,3603,4196,4429,...
SECTION code_clib PUBLIC xor_MODE1 .xor_MODE1 defc NEEDxor = 1 INCLUDE "target/gal/graphics/pixel_MODE1.inc"
.section .text.entry # 指定段名为 .text.entry,对应 linker.ld 中第一部分,所以这个 asm 会被放在 .text 的首部,即 0x8020000 .globl _start # 声明全局符号 _start,在 linker.ld 中将它指定为了整个 os 镜像的入口 _start: la sp, boot_stack_top # 设置 sp 寄存器 call rust_main # 初始化栈结束,跳到 rust 入口 .section .bss.stack # 此栈被放入 linker.ld 指定的 .bss 段的低地址空间 .globl...
version https://git-lfs.github.com/spec/v1 oid sha256:2d9f170fdecb359c434387e6379fe5f16f9ffc77ef8dc4ba111ca517c3359023 size 42185
; int vfprintf(FILE *fp, unsigned char *fmt,void *ap) MODULE vfprintf SECTION code_clib PUBLIC vfprintf EXTERN fputc_callee EXTERN asm_printf ; Cores have signature (in __smallc) ; int vfprintf1(FILE *fp, void (*output_fn)(FILE *fp,int c), int sccz80, unsigned char *fmt,void *ap) ; sccz80 vfprintf: po...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__wchar_t_file_execlp_72a.cpp Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-72a.tmpl.cpp */ /* * @description * CWE: 78 OS Command Injection * BadSource: file Read input from a file * G...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r15 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_UC_ht+0x1272e, %rdi nop cmp %r9, %r9 movl $0x61626364, (%rdi) nop nop nop nop nop add %rbx, %rbx lea addresses_WC_ht+0x1ae3a, %rbx nop nop nop nop nop inc %r10 movw $0x6162, (%rbx) n...
; A065760: Concatenation of increasing number of alternating digits in base 2, starting with 1. ; Submitted by Jon Maiga ; 1,4,39,624,19999,1279936,163831935,41940975360,21473779384831,21989150090066944,45033779384457103359,184458360358736295358464,1511082888058767731576545279,24757582037954850514150117851136,811256448...
; $Id: ASMBitFirstSet.asm 69111 2017-10-17 14:26:02Z vboxsync $ ;; @file ; IPRT - ASMBitFirstSet(). ; ; ; Copyright (C) 2006-2017 Oracle Corporation ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; ; you can redistribute it and/or...
; Music struct RSRESET CTRL_BYTE RB 1 ; Bit 0: Active (0: Off 1: On) ; Bit 1: Muted (0: Off 1: On) WAITING_TIME RW 1 CURRENT_ELEM_PTR RW 1 NB_REGISTERS RB 1 REGISTERS_PTR RW 1 FREQUENCY_PTR RW 1 NB_REPEAT RB 1 REPEAT_PTR RW 1 MUSIC_STRUCT_SIZE RB 1 ; Music SEMIQUAVER EQU ...
; A160128: a(n) = number of grid points that are covered after (2^n)th stage of A139250. ; 3,7,19,63,235,919,3651,14575,58267,233031,932083,3728287,14913099,59652343,238609315,954437199,3817748731,15270994855,61083979347,244335917311,977343669163,3909374676567,15637498706179 mov $1,$0 mov $2,4 pow $2,$0 add $1,$2 mul ...
BitmasksPointers: dw BulbasaurBitmasks dw IvysaurBitmasks dw VenusaurBitmasks dw CharmanderBitmasks dw CharmeleonBitmasks dw CharizardBitmasks dw SquirtleBitmasks dw WartortleBitmasks dw BlastoiseBitmasks dw CaterpieBitmasks dw MetapodBitmasks dw ButterfreeBitmasks dw WeedleBitmasks dw KakunaBitmasks dw ...
// -*- c-basic-offset: 4; related-file-name: "../include/click/flow/flow.hh" -*- /* * flow.{cc,hh} -- the Flow class * Tom Barbette * * Copyright (c) 2015 University of Liege * Copyright (c) 2019-2021 KTH Royal Institute of Technology * * Permission is hereby granted, free of charge, to any person obtaining a *...
/* * FreeRTOS Kernel V10.3.1 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * 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, ...
; A305272: a(n) = 836*2^n - 676. ; 160,996,2668,6012,12700,26076,52828,106332,213340,427356,855388,1711452,3423580,6847836,13696348,27393372,54787420,109575516,219151708,438304092,876608860,1753218396,3506437468,7012875612,14025751900,28051504476,56103009628,112206019932,224412040540,448824081756,897648164188,179529632...
; A090381: Expansion of (1+4x+7x^2)/((1-x)^2*(1-x^2)). ; 1,6,19,36,61,90,127,168,217,270,331,396,469,546,631,720,817,918,1027,1140,1261,1386,1519,1656,1801,1950,2107,2268,2437,2610,2791,2976,3169,3366,3571,3780,3997,4218,4447,4680,4921,5166,5419,5676,5941,6210,6487,6768,7057,7350,7651,7956,8269,8586,8911,9240,9577,9918...
; A245243: Triangle, read by rows, defined by T(n,k) = C(n^2 - k^2, n*k - k^2), for k=0..n, n>=0. ; Submitted by Christian Krause ; 1,1,1,1,3,1,1,28,10,1,1,455,495,35,1,1,10626,54264,8008,126,1,1,324632,10518300,4686825,125970,462,1,1,12271512,3190187286,5586853480,354817320,1961256,1716,1,1,553270671,1399358844975,118...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r15 push %r8 push %r9 push %rax push %rcx push %rdi push %rsi lea addresses_D_ht+0x1ebe6, %rsi lea addresses_normal_ht+0x1c016, %rdi and %r12, %r12 mov $124, %rcx rep movsb nop nop nop nop nop add %rax, %rax lea addresses_D_ht+0x33a2, %rsi lea addresses_norma...
#include "Adapter.h" Adapter::Adapter() { } Adapter::~Adapter() { }
template<> std::optional<std::string> ConfigProxy::Get<std::string>(const std::string&) const; template<> std::optional<bool> ConfigProxy::Get<bool>(const std::string&) const; template<> std::optional<int64_t> ConfigProxy::Get<int64_t>(const std::string&) const; template<> std::optional<int32_t> ConfigProxy::Get<int32_...
; =============================================================== ; Mar 2014 ; =============================================================== ; ; int b_vector_back(b_vector_t *v) ; ; Return char stored at the end of the vector. ; If the vector is empty, return -1. ; ; ================================================...
;; ;; Copyright (c) Microsoft Corporation. All rights reserved. ;; ;;;;;;;;;;;;;;;;;;;; ; Concerns ; 1 - there is no error checking on the int13 calls ; 2 - we assume that the block size is 2048 bytes ; 3 - this cannot handle large root directories (>64KB) ;;;;;;;;;;;;;;;;;;;; ; Constants BootSecOr...
#include "WindowsMessageQueue.h" Event::Event() { hEvent = CreateEvent(0, 0, 0, 0); } Event::~Event() { CloseHandle(hEvent); } void Event::SetEvent() { ::SetEvent(hEvent); } void Event::WaitForEvent() { WaitForSingleObject(hEvent, INFINITE); } Event::WaitResult Event::WaitForEventOrMessage() { ...
; A225144: a(n) = Sum_{i=n..2*n} i^2*(-1)^i. ; 0,3,11,18,42,45,93,84,164,135,255,198,366,273,497,360,648,459,819,570,1010,693,1221,828,1452,975,1703,1134,1974,1305,2265,1488,2576,1683,2907,1890,3258,2109,3629,2340,4020,2583,4431,2838,4862,3105,5313,3384,5784,3675,6275,3978,6786,4293,7317,4620,7868,4959,8439,5310,9030,5...
; ; idct8x8_xmm.asm ; ; Originally provided by Intel at AP-922 ; http://developer.intel.com/vtune/cbts/strmsimd/922down.htm ; (See more app notes at http://developer.intel.com/vtune/cbts/strmsimd/appnotes.htm) ; but in a limited edition. ; New macro implements a column part for precise iDCT ; The routine precision now ...