text
stringlengths
1
1.05M
; A047377: Numbers that are congruent to {0, 1, 4, 5} mod 7. ; 0,1,4,5,7,8,11,12,14,15,18,19,21,22,25,26,28,29,32,33,35,36,39,40,42,43,46,47,49,50,53,54,56,57,60,61,63,64,67,68,70,71,74,75,77,78,81,82,84,85,88,89,91,92,95,96,98,99,102,103,105,106,109,110 mov $2,$0 div $0,2 mov $1,3 mul $1,$0 add $1,1 div $1,2 add $1,$...
/* * GridTools * * Copyright (c) 2014-2021, ETH Zurich * All rights reserved. * * Please, refer to the LICENSE file in the root directory. * SPDX-License-Identifier: BSD-3-Clause */ #include <gridtools/stencil/core/level.hpp> using namespace gridtools; using namespace stencil; using namespace core; namespace...
.global s_prepare_buffers s_prepare_buffers: push %r14 push %r15 push %r8 push %rcx push %rdi push %rsi lea addresses_A_ht+0x163d1, %rsi lea addresses_normal_ht+0x1b211, %rdi nop cmp %r15, %r15 mov $39, %rcx rep movsq nop nop nop nop dec %r14 lea addresses_D_ht+0xa371, %r8 nop nop nop nop cmp %r15, %r15 movups (%r8), %...
; Move area (generalised PAN/SCROLL) V2.01  Tony Tebby ; QPC accelerated version Marcel Kilgus section con xdef cn_mblock xdef pt_mblock include 'dev8_smsq_qpc_keys' pt_mblock cn_mblock dc.w qpc.bmove rts end
; $Id: lrintl.asm $ ;; @file ; IPRT - No-CRT lrintl - AMD64 & X86. ; ; ; 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 modify it under the terms of the...
; A015242: a(n) = (2*n - 7)*n^2. ; 0,-5,-12,-9,16,75,180,343,576,891,1300,1815,2448,3211,4116,5175,6400,7803,9396,11191,13200,15435,17908,20631,23616,26875,30420,34263,38416,42891,47700,52855,58368,64251,70516,77175,84240,91723,99636,107991,116800,126075,135828,146071,156816,168075,179860,192183,205056,218491,232500,24...
HSCROLL HSCROLL_A dw 0 HSCROLL_B dw 0 VSCROLL VSCROLL_A dw 0 VSCROLL_B dw 0
TITLE GETSET - GETting and SETting MS-DOS system calls NAME GETSET ; ; System Calls which get and set various things ; ; $GET_VERSION ; $GET_VERIFY_ON_WRITE ; $SET_VERIFY_ON_WRITE ; $SET_CTRL_C_TRAPPING ; $INTERNATIONAL ; $GET_DRIVE_FREESPACE ; $GET_DMA ; $SET_DMA ; $GET_DEFAULT_DRIVE ; $SET_DEFAULT_DR...
; A158772: a(n) = A138635(n+18)-A138635(n). ; 21,21,21,42,42,42,84,84,84,168,168,168,336,336,336,672,672,672,1344,1344,1344,2688,2688,2688,5376,5376,5376,10752,10752,10752,21504,21504,21504,43008,43008,43008,86016,86016,86016,172032,172032,172032,344064 div $0,3 mov $1,2 pow $1,$0 mul $1,21
;=============================================================================== ; Copyright 2016-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") co...
;Reverse a given number. mov bx,4242 mov cx,10 mov di,0; here reverse number will be store loop1: mov ax,bx div cx mov bx,ax ;bx=bx/10 (In BX there will be store Quotient) mov si,dx ;si=bx%10 (In CX there will be store remainder) mov dx,0 mov ax,di mul cx mov...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Copyright(c) 2011-2015 Intel Corporation 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 s...
/** * Copyright (c) 2014-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "KvStore.h" #include <fbzmq/service/logging/LogSample.h> #include <fbzmq/zmq/Zmq.h> #include <folly/Format.h> #include <folly/...
<% from pwnlib.regsort import regsort from pwnlib.constants import Constant, eval from pwnlib.shellcraft import registers from pwnlib.shellcraft.arm import mov %> <%page args="reg_context, stack_allowed = True"/> <%docstring> Sets multiple registers, taking any register dependencies into account (i.e., given ea...
; ---------------------------------------------------------------- ; Z88DK INTERFACE LIBRARY FOR NIRVANA+ ENGINE - by Einar Saukas ; ; See "nirvana+.h" for further details ; ---------------------------------------------------------------- ; void NIRVANAP_drawW_raw(unsigned int tile, unsigned int lin, unsigned int col)...
; A008960: Final digit of cubes: n^3 mod 10. ; 0,1,8,7,4,5,6,3,2,9,0,1,8,7,4,5,6,3,2,9,0,1,8,7,4,5,6,3,2,9,0,1,8,7,4,5,6,3,2,9,0,1,8,7,4,5,6,3,2,9,0,1,8,7,4,5,6,3,2,9,0,1,8,7,4,5,6,3,2,9,0,1,8,7,4,5,6,3,2,9,0,1,8,7,4,5,6,3,2,9,0,1,8,7,4,5,6,3,2,9 pow $0,3 mod $0,10
#pragma once #include "Texture.hpp" #include "stb/Stb_Image.hpp" #include <glew/GL/glew.h> #include <iostream> Texture::Texture(const string & path, int cubemapIndex) : textureID(0), filePath(path), localBuffer(nullptr), width(0), height(0), bpp(0) { //stbi_set_flip_vertically_on_load(1); localBuffer = stbi_load(...
// Copyright (c) 2016-2018 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <bench/bench.h> #include <coins.h> #include <policy/policy.h> #include <wallet/crypter.h> #include <vector> // FIX...
; A018838: Number of steps for knight to reach (n,n) on infinite chessboard. ; 0,2,4,2,4,4,4,6,6,6,8,8,8,10,10,10,12,12,12,14,14,14,16,16,16,18,18,18,20,20,20,22,22,22,24,24,24,26,26,26,28,28,28,30,30,30,32,32,32,34,34,34,36,36,36,38,38,38,40,40,40,42,42,42,44,44,44,46,46,46,48,48,48,50,50,50,52,52,52,54,54,54,56,56,56...
;; ;; Copyright (c) 2012-2022, 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...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r13 push %r8 push %r9 push %rsi lea addresses_WC_ht+0x1dafe, %r13 nop nop and %r8, %r8 movw $0x6162, (%r13) nop nop nop nop nop cmp %r11, %r11 lea addresses_WT_ht+0x19f7e, %r13 nop nop nop nop nop sub %r9, %r9 mov $0x6162636465666768, %r12...
#include "signverifymessagedialog.h" #include "ui_signverifymessagedialog.h" #include "addressbookpage.h" #include "base58.h" #include "guiutil.h" #include "dialogwindowflags.h" #include "init.h" #include "main.h" #include "optionsmodel.h" #include "walletmodel.h" #include "wallet.h" #include <string> #include <vecto...
.model tiny .data start_row dw 00h start_col dw 00h end_row dw 250 end_col dw 150 color db 04h orig_vid_mode db ? row_width dw 23 col_width dw 13 rect_num db 6 .code .startup mov ah, 0fh ; get original video mode int 10h mov orig_vid_mode, al mov ah, 00h ; set the required video mode ...
/* Copyright 2012 - 2017 TeamWin This file is part of TWRP/TeamWin Recovery Project. TWRP 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) any later versi...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "orttraining/core/graph/gradient_builder_base.h" #include "orttraining/core/graph/optimizer/lamb_optimizer_builder.h" #include "orttraining/core/graph/optimizer_builder.h" #include "orttraining/core/graph/graph_aug...
; A107841: Series reversion of x(1-3x)/(1-x). ; Submitted by Christian Krause ; 1,2,10,62,430,3194,24850,199910,1649350,13879538,118669210,1027945934,9002083870,79568077034,708911026210,6359857112438,57403123415350,520895417047010,4749381474135850,43489017531266654,399755692955359630,3687437532852484442,341219111175729...
_wc: file format elf32-i386 Disassembly of section .text: 00001000 <wc>: char buf[512]; void wc(int fd, char *name) { 1000: 55 push %ebp 1001: 89 e5 mov %esp,%ebp 1003: 83 ec 48 sub $0x48,%esp int i, n; int l, w, c, inword; l = w = c =...
// Copyright (C) 2002-2012 Nikolaus Gebhardt // This file is part of the "Irrlicht Engine". // For conditions of distribution and use, see copyright notice in irrlicht.h #include "CLimitReadFile.h" #include "irrString.h" namespace irr { namespace io { CLimitReadFile::CLimitReadFile(IReadFile* alreadyOp...
############################################################################### # 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...
; A239053: Sum of divisors of 4*n-1. ; 4,8,12,24,20,24,40,32,48,56,44,48,72,72,60,104,68,72,124,80,84,120,112,120,156,104,108,152,144,144,168,128,132,240,140,168,228,152,192,216,164,168,260,248,180,248,216,192,336,200,240,312,212,264,296 mul $0,4 add $0,2 seq $0,203 ; a(n) = sigma(n), the sum of the divisors of n. Als...
object_const_def ; object_event constants const RUINSOFALPHHOOHITEMROOM_POKE_BALL1 const RUINSOFALPHHOOHITEMROOM_POKE_BALL2 const RUINSOFALPHHOOHITEMROOM_POKE_BALL3 const RUINSOFALPHHOOHITEMROOM_POKE_BALL4 RuinsOfAlphHoOhItemRoom_MapScripts: db 0 ; scene scripts db 0 ; callbacks RuinsOfAlphHoOhItemRoomGoldBer...
; $Id: memcpy.asm 69219 2017-10-24 15:01:30Z vboxsync $ ;; @file ; IPRT - No-CRT memcpy - AMD64 & X86. ; ; ; 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...
db 0 ; species ID placeholder db 45, 50, 40, 90, 40, 40 ; hp atk def spd sat sdf db WATER, WATER ; type db 255 ; catch rate db 77 ; 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/poliwag/fr...
#ifndef __LIBARCSTK_CALCULATE_APIS_HPP__ #define __LIBARCSTK_CALCULATE_APIS_HPP__ /** * \internal * * \file * * \brief Internal APIs for checksum calculation */ #ifndef __LIBARCSTK_CALCULATE_HPP__ #include "calculate.hpp" #endif #ifndef __LIBARCSTK_CALC_PARTITION_HPP__ #include "calc_partition.hpp" #endif #ifn...
; A049294: Number of subgroups of index 3 in free group of rank n+1. ; 1,13,97,625,3841,23233,139777,839425,5038081,30231553,181395457,1088385025,6530334721,39182057473,235092443137,1410554855425,8463329525761,50779977940993,304679869218817,1828079218458625 mov $2,$0 mov $3,2 lpb $2 mul $3,3 add $1,$3 mul $1,2 ...
#include <memory> #include "source/common/http/header_map_impl.h" #include "source/extensions/filters/http/on_demand/on_demand_update.h" #include "test/mocks/http/mocks.h" #include "test/mocks/runtime/mocks.h" #include "test/test_common/utility.h" #include "gmock/gmock.h" #include "gtest/gtest.h" using testing::Ret...
assume cs:code,ds:data data segment pa equ 20A0h pb equ 20A1h ;pc equ 20A2h cr equ 20A3h data ends code segment start: mov ax,data mov ds,ax mov dx,cr mov al,82h out dx,al mov cx,15h mov dx,pa mov al,00h next: out dx,al call delay ...
; ; Old School Computer Architecture - SD Card driver ; Taken from the OSCA Bootcode by Phil Ruston 2011 ; Port by Stefano Bodrato, 2012 ; ; int sd_write_sector(struct SD_INFO descriptor, long sector, unsigned char *address); ; ; sd_card_info and card_select must be accessible, ; a good place to put them is in the var...
/////////////////////////////////////////////////////////////////////////////// // // IMPORTANT NOTICE // // The following open source license statement does not apply to any // entity in the Exception List published by FMSoft. // // For more information, please visit: // // https://www.fmsoft....
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r14 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0xe75d, %rsi lea addresses_normal_ht+0x153ad, %rdi nop nop add $23298, %rax mov $3, %rcx rep movsq nop nop nop nop sub %rax, %rax lea addresses_WT_ht+0x7b5f, %rbx nop dec ...
// CodeGear C++Builder // Copyright (c) 1995, 2017 by Embarcadero Technologies, Inc. // All rights reserved // (DO NOT EDIT: machine generated header) 'ALMime.pas' rev: 32.00 (Windows) #ifndef AlmimeHPP #define AlmimeHPP #pragma delphiheader begin #pragma option push #pragma option -w- // All warnin...
.data message: .ascii "O valor maior e: \n" equal: .ascii "Eles sao iguais: \n" .text main: addi $t0, $zero, 20 addi $t1, $zero, 20 bgt $t1, $t0, printResult beq $t1, $t0, printEqual li $v0, 10 syscall printResult: li $v0, 4 la $a0, message syscall li $v0, 1 la $a0, ($t1) sys...
; A158313: a(n) = 400 * n + 1. ; 401,801,1201,1601,2001,2401,2801,3201,3601,4001,4401,4801,5201,5601,6001,6401,6801,7201,7601,8001,8401,8801,9201,9601,10001,10401,10801,11201,11601,12001,12401,12801,13201,13601,14001,14401,14801,15201,15601,16001,16401,16801,17201,17601,18001,18401,18801,19201,19601,20001,20401,20801,2...
;***************************************************************************** ;* x86inc.asm: x264asm abstraction layer ;***************************************************************************** ;* Copyright (C) 2005-2018 x264 project ;* ;* Authors: Loren Merritt <lorenm@u.washington.edu> ;* Henrik Gramner...
; A176517: Decimal expansion of (9+3*sqrt(10))/2. ; Submitted by Jamie Morken(s4) ; 9,2,4,3,4,1,6,4,9,0,2,5,2,5,6,8,9,9,7,9,9,8,3,4,0,3,1,6,6,4,9,0,7,7,8,0,0,5,7,9,3,3,2,7,0,8,9,8,7,8,2,5,2,4,0,2,8,6,2,5,7,2,7,9,1,8,8,8,9,1,6,5,7,9,5,8,8,5,7,3,3,2,0,1,6,3,7,2,1,6,2,5,6,8,9,5,0,4,4,2 mov $2,-2 mov $3,$0 mul $3,4 lpb $3...
#include "type.h" #include <cstdio> using namespace std; _1066c_bkq_in_t in_; _1066c_bkq_out_t out_; static int q; static bool getquery(int *op, int *id) { //fprintf(stderr, "!%d ", q); if (q > 0) { q--; static char c[20]; scanf("%s%d", c, id); //fprintf(stderr, "'%s' %d\...
;/** @file ; Low leve IA32 specific debug support functions. ; ; Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR> ; SPDX-License-Identifier: BSD-2-Clause-Patent ; ;**/ %define EXCPT32_DIVIDE_ERROR 0 %define EXCPT32_DEBUG 1 %define EXCPT32_NMI 2 %define EXCPT32_BREAKPOINT 3 %define EXCPT32_OVER...
; Top-hole Golf ; Copyright 2020-2021 Matthew Clarke sstore_c_BEGIN = * ; ***************** ; *** CONSTANTS *** ; ***************** ; Record where the 'loadable' sprites are placed and what the first ; sprite number is. sstore_c_BASE_NUM = sprd_c_LOADABLE_BASE sstore_c_DST_BASE = $c000+(sstore_c_BASE_NUM*64) ; Dat...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r15 push %r9 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x1c4e4, %rsi lea addresses_A_ht+0x67d8, %rdi nop nop nop nop nop sub %rbp, %rbp mov $118, %rcx rep movsb nop nop nop nop add $3269, %rcx lea addresses_A_ht+0x1ddbf, %rsi lea ad...
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) | +---------...
; item ids ; indexes for: ; - ItemNames (see data/items/names.asm) ; - ItemDescriptions (see data/items/descriptions.asm) ; - ItemAttributes (see data/items/attributes.asm) ; - ItemEffects (see engine/items/item_effects.asm) const_def const NO_ITEM ; 00 const MASTER_BALL ; 01 const ULTRA_BALL ; 02 const BR...
; $Id: cidet-appA.asm $ ;; @file ; CPU Instruction Decoding & Execution Tests - Ring-3 Driver Application, Assembly Code. ; ; ; Copyright (C) 2009-2015 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 ...
; ******************************************************************************************* ; ******************************************************************************************* ; ; Name : fpdivide.asm ; Purpose : Divide B into A (floating point) ; Date : 16th August 2019 ; Author : Paul Robson (paul@...
// Copyright 2018 The Fuchsia 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 "src/developer/debug/zxdb/console/console_main.h" #include <cstdlib> #include <filesystem> #include <cmdline/args_parser.h> #include "src/devel...
; A004348: Binomial coefficient C(5n, n-6). ; 1,35,780,14190,230300,3478761,50063860,696190560,9440350920,125595622175,1646492110120,21335200040700,273897571557780,3489735464257595,44186942677323600,556608279578340080,6981073962530525550,87237418624987818825,1086744939880326302940,13501757639441400606750,16735970219863...
; A041275: Denominators of continued fraction convergents to sqrt(150). ; Submitted by Jon Maiga ; 1,4,97,392,9505,38412,931393,3763984,91267009,368832020,8943235489,36141773976,876345810913,3541525017628,85872946233985,347033309953568,8414672385119617,34005722850432036,824552020795488481,3332213806032385960,8079768336...
; A101402: a(0)=0, a(1)=1; for n>=2, let k = smallest power of 2 that is >= n, then a(n) = a(k/2) + a(n-1-k/2). ; 0,1,1,1,2,2,3,3,3,3,4,4,4,5,5,6,6,6,7,7,7,8,8,9,9,9,9,10,10,10,11,11,12,12,13,13,13,14,14,15,15,15,15,16,16,16,17,17,18,18,18,19,19,19,20,20,21,21,21,21,22,22,22,23,23,23,24,24,24,25,25,26,26,26,26,27,27,27...
; A345451: Sum of the unitary divisors of n whose square does not divide n. ; Submitted by Simon Strandgaard ; 0,2,3,4,5,11,7,8,9,17,11,19,13,23,23,16,17,29,19,29,31,35,23,35,25,41,27,39,29,71,31,32,47,53,47,49,37,59,55,53,41,95,43,59,59,71,47,67,49,77,71,69,53,83,71,71,79,89,59,119,61,95,79,64,83,143,67,89,95,143,71 ...
#include "cpudef.asm" ; r1 -- loop counter ; r2 -- next prime candidate ; r3 -- temp ; r4 -- max n ; r7 -- output register move r4, 8 add r4, r4 add r4, r4 add r4, r4 add r4, r4 add r4, r4 add r4, r4 add r4, r4 add r4, r4 move r1, 1 move r2, 2 move r3, 3 move r5, 5 move r6, 1 initloop: add r1, 1 if.ne r1, r2 ...
#pragma once #include <cooling/export/cooling_dll.hpp> #include <cooling/utils/aabb.hpp> #include <cooling/object.hpp> #include <cooling/occlusion_query/query.hpp> #include <gl/glew.h> #include <vector> #include <functional> namespace Cooling { class COOLING_DLL QueriesManager { public: QueriesManager(std::functio...
/** * @file * @author __AUTHOR_NAME__ <mail@host.com> * @copyright 2021 __COMPANY_LTD__ * @license <a href="https://opensource.org/licenses/MIT">MIT License</a> */ #include "key_combo.hpp" #include <SDL2/SDL_events.h> #include <SDL2/SDL_keyboard.h> #include "../../../utils/messages.hpp" #include "../../../util...
// Copyright 2019 Google LLC. // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. #include "fiddle/examples.h" // HASH=ce6a5ef2df447970b4453489d9d67930 REG_FIDDLE(Canvas_int_int_const_SkSurfaceProps_star, 256, 256, true, 0) { void draw(SkCanvas* ) { SkCanvas canvas(1...
#include "../include/configreader.h" std::shared_ptr<spdlog::logger> Logger{ spdlog::stdout_color_mt("console") }; std::shared_ptr<spdlog::logger> ErrorLogger{ spdlog::stderr_color_mt("stderr") }; ConfigReader::ConfigReader() { Logger->trace("ConfigReader::ConfigReader()"); } ConfigReader::~ConfigReader() {} bool ...
; Copyright (c) 2009-2010, Michael Alyn Miller <malyn@strangeGizmo.com>. ; All rights reserved. ; ; Redistribution and use in source and binary forms, with or without ; modification, are permitted provided that the following conditions are met: ; ; 1. Redistributions of source code must retain the above copyright notic...
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. #include "CharcterScriptingGameMode.h" #include "CharcterScriptingCharacter.h" #include "UObject/ConstructorHelpers.h" ACharcterScriptingGameMode::ACharcterScriptingGameMode() { // set default pawn class to our Blueprinted character static ConstructorHelp...
; A346558: a(n) = Sum_{d|n} phi(n/d) * (2^d - 1). ; Submitted by Christian Krause ; 1,4,9,20,35,78,133,280,531,1070,2057,4212,8203,16534,32865,65840,131087,262818,524305,1049740,2097459,4196390,8388629,16782024,33554575,67117102,134218809,268452212,536870939,1073777010,2147483677,4295033440,8589938775,17180000318,34359...
#include "stdafx.h" #include "RecentsItemRenderer.h" #include "Common.h" #include "RecentsModel.h" #include "ContactList.h" #include "../../gui_settings.h" #include "../../controls/CommonStyle.h" #include "../../themes/ThemePixmap.h" #include "../../themes/ResourceIds.h" #include "../../utils/Text2DocConverter.h" #in...
#include <iostream> #include <string> #include <vector> #include <locale> #include <algorithm> #include <cmath> #include <unordered_map> #include <bitset> #include <climits> #include <queue> #include <stack> using namespace std; // TREE int countLeaves(Node* root){ if(root == NULL) return 0; if(root->l...
.model small .data numPrompt db 'Insert number: $' inputerror_message db 'ERROR: Invalid input$' num db 00h cont db 00h tmp db 00h .stack .code program: mov ax,@data mov ds,ax xor ax,ax ;Ask for number mov dx,offset numPrompt m...
#d le(-1) ; error: unsized
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r8 push %rax push %rcx push %rdi push %rsi lea addresses_normal_ht+0x162ef, %rsi lea addresses_UC_ht+0xb4c6, %rdi clflush (%rsi) nop nop nop nop add %r10, %r10 mov $7, %rcx rep movsq nop nop nop nop add %r13, %r13 lea addresses_WT_ht+0xc881, %rsi le...
.code ALIGN 16 aes128_key_expansion proc movdqu xmm1, xmmword ptr [rcx + 0] movdqu xmmword ptr [rdx + 0], xmm1 aeskeygenassist xmm2, xmm1, 1 pshufd xmm2, xmm2, 255 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 vpslldq xmm3, xmm1, 4 pxor xmm1, xmm3 pxor xmm1, xmm2 mo...
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ; hdboot.asm ; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ; Forrest Yu, 2008 ; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++...
; A195026: a(n) = 7*n*(2*n + 1). ; 0,21,70,147,252,385,546,735,952,1197,1470,1771,2100,2457,2842,3255,3696,4165,4662,5187,5740,6321,6930,7567,8232,8925,9646,10395,11172,11977,12810,13671,14560,15477,16422,17395,18396,19425,20482,21567,22680,23821,24990,26187,27412,28665,29946,31255,32592,33957,35350,36771,38220,39697,4...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "utilitydialog.h" #inc...
; A269552: Expansion of (-3*x^2 + 94*x - 3)/(x^3 - 99*x^2 + 99*x - 1). ; Submitted by Christian Krause ; 3,203,19803,1940403,190139603,18631740603,1825720439403,178901971320803,17530567468999203,1717816709990601003,168328507011609899003,16494475870427779501203,1616290306794910781218803,158379955590030828779941403,15519...
; A057362: a(n) = floor(5*n/13). ; 0,0,0,1,1,1,2,2,3,3,3,4,4,5,5,5,6,6,6,7,7,8,8,8,9,9,10,10,10,11,11,11,12,12,13,13,13,14,14,15,15,15,16,16,16,17,17,18,18,18,19,19,20,20,20,21,21,21,22,22,23,23,23,24,24,25,25,25,26,26,26,27,27,28,28,28,29,29,30,30,30,31,31,31,32,32,33,33,33,34,34,35,35,35,36,36,36,37,37,38 mul $0,5 d...
addi r1 r0 -100 bgtz r1 end addi r1 r0 2586 bgtz r1 print halt print: addi r10 r0 65 tty r10 end: halt #prints A
// Copyright (c) 2008-2010 Kent State University // Copyright (c) 2011-2012 Texas A&M University // // This file is distributed under the MIT License. See the accompanying file // LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms // and conditions. #include <origin/type/traits.hpp> using nam...
#include "SceneWidget.h" #include <imgui.h> #include "../Menu.h" namespace Interface { void SceneWidget::Render(Tracer::Settings& settings) { const char* integrators[] = { "Path tracer", "SMS", "AO" }; const char* scenes[] = { "Ajax", "Bedroom", "Boy", "Coffee cart", "Coffee maker", ...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Copyright(c) 2011-2016 Intel Corporation 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 so...
; A307688: a(n) = 2*a(n-1)-2*a(n-2)+a(n-3)+2*a(n-4) with a(0)=a(1)=0, a(2)=2, a(3)=3. ; Submitted by Christian Krause ; 0,0,2,3,2,0,3,14,26,27,22,44,123,234,310,363,586,1224,2259,3382,4642,7227,13070,23092,36555,54450,85022,143883,245282,396720,616803,973214,1600106,2664027,4334662,6887804,10970523,17828154,29272390,47...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Copyright(c) 2011-2015 Intel Corporation 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 so...
; A024151: a(n) = 12^n - n^11. ; 1,11,-1904,-175419,-4173568,-48579293,-359811072,-1941494935,-8159952896,-26221279257,-38082635776,457696700077,8173092077568,105201044985035,1279868899379200,15398371818726993,184866666708992000,2218576834844129359,26623269012475164672,319479882880364028629,3833759787647475122176,46005...
adc (ix) ; Error adc (ix+127) ; Error adc (ix-128) ; Error adc (iy) ; Error adc (iy+127) ; Error adc (iy-128) ; Error adc a', (hl) ; Error adc a', (ix) ; Error ...
;Expects sound_param_byte_0 to contain desired region (SOUND_REGION_NTSC, SOUND_REGION_PAL, SOUND_REGION_DENDY) ;Expects sound_param_word_0 to contain song list address. ;Expects sound_param_word_1 to contain sfx list address. ;Expects sound_param_word_2 to contain instrument list address. ;If FEATURE_DPCM is defin...
halt ; error: no match #include "code.asm" halt ; error: no match ; error: code.asm:1: no match ; error: code.asm:2: no match ; error: code.asm:3: no match
include LTexture.inc include SDL.inc include SDL_pixels.INC .const .data? .data .code initTexture proc uses rdi, pTexture:QWORD mov rdi, pTexture mov (LTexture PTR[rdi]).m_Texture, 0 mov (LTexture PTR[rdi]).m_Width, 0 mov (LTexture PTR[rdi]).m_Height, 0 ret initTexture endp freeTexture proc uses rdi, ...
PUBLIC VDP_DATA PUBLIC VDP_DATAIN PUBLIC VDP_CMD PUBLIC VDP_STATUS INCLUDE "msx/vdp.inc"
//====================================================================== // // mathlib.asm // ----------- // Library providing 32- and 64-bit integer operations as needed // by PRINCE, SipHash etc. // // // Copyright (c) 2020, Assured AB // All rights reserved. // // Redistribution and use in source and bina...
TITLE RTTOUL - Transfers control to user lib from runtime. ;*** ;RTtoUL - Transfers control from QB runtime to UL specific runtime. ; ; Copyright <C> 1986, 1987, Microsoft Corporation ; ;Purpose: ; This module causes control transfers from the QB runtime ; to the user library specific runtime. This module is linked ...
; A017102: a(n) = (8n + 3)^2. ; 9,121,361,729,1225,1849,2601,3481,4489,5625,6889,8281,9801,11449,13225,15129,17161,19321,21609,24025,26569,29241,32041,34969,38025,41209,44521,47961,51529,55225,59049,63001,67081,71289,75625,80089,84681,89401,94249,99225,104329,109561,114921,120409,126025,131769,137641,143641,149769,1560...
/*========================================================================= * * Copyright NumFOCUS * * 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.or...
// Copyright 2019 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/notifications/scheduler/internal/impression_types.h" namespace notifications { Impression::Impression() = default; Impression:...
; A couple of routines for +3 library ; Routine to call +3DOS Routines. Located in startup ; code to ensure we don't get paged out ; (These routines have to be below 49152) ; ; djm 17/3/2000 (after the manual!) ; ; $Id: dodos.asm,v 1.3 2016-03-07 13:44:48 dom Exp $ SECTION code_driver PUBLIC dodos EXTERN...
db DEX_WIGGLYTUFF ; pokedex id db 140 ; base hp db 70 ; base attack db 45 ; base defense db 45 ; base speed db 50 ; base special db NORMAL ; species type 1 db NORMAL ; species type 2 db 50 ; catch rate db 109 ; base exp yield INCBIN "pic/ymon/wigglytuff.pic",0,1 ; 66, sprite dimensions dw WigglytuffPicFront dw Wigglytu...
#include "mlfe/operators/relu.h" #include "mlfe/core/op_kernel.h" #include "mlfe/math/activations.h" #include "mlfe/device_context/cuda_context.h" namespace mlfe{ namespace operators{ namespace { template <typename T> void relu_fwd_impl(Tensor x, Tensor y) { auto x_ptr = x.device_data<T>(); auto y_ptr = y.mut...
/* * Copyright (c) 2019, NVIDIA CORPORATION. * * 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 ...
; Setup and unset a window definition 1993-94 Jochen Merz V0.01 include dev8_keys_wman include dev8_mac_xref section utility xdef ut_setups_l ; Setup a (scaled) window definition xdef ut_setup_l ; Setup a fixed size window definition ;;; xdef ut_unset ; Unset a window def. and free memory ;+++ ;...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_src_wchar_t_ncat_09.cpp Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_src.label.xml Template File: sources-sink-09.tmpl.cpp */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Initialize ...