text
stringlengths
1
1.05M
// // Created by User on 2020-06-09. // #include <iostream> #include <fstream> #include <string> #include <sstream> #include "perceptron.h" perceptron doTraining(const std::string& name, int iterations, float learningRate); std::vector<std::vector<float>> getTrainingData(const std::string& fileName); int XORComputat...
; Listing generated by Microsoft (R) Optimizing Compiler Version 13.10.3077 ; Generated by VC++ for Common Language Runtime .file "\Documents and Settings\stasiek.TC12\My Documents\prc++\x86_libraries\Bhapi\src\kits\support\Locker.cpp" .rdata .space 20 $SG5653: .ascii "BLocker::Unlock\000" $SG5655: .ascii "[SUP...
.386p dubsize EQU 13 testEqu EQU 1 _DATA segment use32 dword public 'DATA' ;IGNORE var0 db 10 dup (?) var db 4 dup (5) var2 db 5 dup (0) var3 db 5*5 dup (0,testEqu*2,2*2,3) _DATA ends ;IGNORE _TEXT segment use32 dword public 'CODE' ;IGNORE assume cs:_TEXT,ds:_DATA start: ;IGNORE cmp [var],5 jne failure cmp...
; A127210: a(n) = 3^n*Lucas(n), where Lucas = A000204. ; 3,27,108,567,2673,13122,63423,308367,1495908,7263027,35252253,171124002,830642283,4032042867,19571909148,95004113247,461159522073,2238515585442,10865982454983,52744587633927,256027604996628,1242784103695227,6032600756055333,29282859201423042 add $0,1 mov $2,1 mo...
; A129204: The denominator of 2/n^3. ; 1,1,4,27,32,125,108,343,256,729,500,1331,864,2197,1372,3375,2048,4913,2916,6859,4000,9261,5324,12167,6912,15625,8788,19683,10976,24389,13500,29791,16384,35937,19652,42875,23328,50653,27436,59319,32000 pow $0,3 dif $0,2 trn $0,1 mov $1,$0 add $1,1
; A047413: Numbers that are congruent to {3, 4, 6} mod 8. ; 3,4,6,11,12,14,19,20,22,27,28,30,35,36,38,43,44,46,51,52,54,59,60,62,67,68,70,75,76,78,83,84,86,91,92,94,99,100,102,107,108,110,115,116,118,123,124,126,131,132,134,139,140,142,147,148,150,155,156,158 mul $0,8 sub $0,2 div $0,3 mov $2,-1 pow $2,$0 trn $0,$2 ad...
gdt_start: gdt_null: dd 0x0 ; 4 NULL bytes dd 0x0 ; 4 NULL bytes gdt_code: dw 0xffff ; segment limit (bits 0-15) dw 0x0000 ; segment base (bit 0-15) db 0x00 ; segment base (bit 16-23) db 10011010b ; Present = 1, DPL = 00, Type = 1, ; Code = 1, Conforming = 0, ; Readable = 1, Access...
;worksheet 2 ;exercise 18 ;AH = 07h - DIRECT CHARACTER INPUT, WITHOUT ECHO ;Return: AL = character read from standard input ;Set cursor position ;10h ;AH = 02h BH = Page Number, DH = Row, DL = Column ;Write character and attribute at cursor position ;10h ;AH = 09h AL = Character, BH = Page Number, BL = Color, ...
; debug routines ; print a string to the terminal ; inputs: ; r0: pointer to null-terminated string ; outputs: ; none debug_print: push r1 debug_print_loop: mov r1, 0x00000000 out r1, [r0] inc r0 cmp.8 [r0], 0x00 ifnz jmp debug_print_loop pop r1 ret
main: li $t1, 1 add $t0, $t1, 2 li $v0, 10 syscall
#ifndef KEYBOARDREPEAT_HPP #define KEYBOARDREPEAT_HPP #include "Config.hpp" #include "KeyCode.hpp" #include "List.hpp" #include "Params.hpp" #include "TimerWrapper.hpp" namespace org_pqrs_Karabiner { class KeyboardRepeat final { public: enum { // getID() will return [0 .. MAX_KEYBOARDREPEATID] (including edge)....
// Copyright (c) 2019-2020 The PIVX developers // Copyright (c) 2020 The CryptoDev developers // Copyright (c) 2020 The peony developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "qt/pny/settings/settingsexportcsv...
; =============================================================== ; May 2016 ; =============================================================== ; ; char *ulltoa(uint64_t num, char *buf, int radix) ; ; Write number to ascii buffer in radix indicated and zero ; terminate. ; ; ============================================...
; A036291: a(n) = n*5^n. ; 0,5,50,375,2500,15625,93750,546875,3125000,17578125,97656250,537109375,2929687500,15869140625,85449218750,457763671875,2441406250000,12969970703125,68664550781250,362396240234375,1907348632812500,10013580322265625,52452087402343750,274181365966796875,1430511474609375000,7450580596923828125,38...
BITS 64 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS= ;TEST_FILE_META_END ; allocate 16 byte aligned stack space for the packed values lea rcx, [rsp-33] and rcx, 0xfffffffffffffff0 ; load a 128 bit value into xmm0 mov DWORD [rcx], 0x55555555 mov DWORD [rcx+4], 0x14530451 mov DWORD [rcx+8], 0x1badb002 mov...
; ; ANSI Video handling for the Galaksija ; By Stefano Bodrato - 2017 ; ; Text Attributes (useless unless a font is redefined in ROM) ; m - Set Graphic Rendition ; ; ; $Id: f_ansi_attr.asm $ ; SECTION code_clib PUBLIC ansi_attr EXTERN gal_inverse .ansi_attr and a jr nz,noreset...
;================================================= ; Name: Sungho Ahn ; Email: sahn025@ucr.edu ; GitHub username: ptr2578 ; ; Lab: lab 6 ; Lab section: B21 ; TA: Jason Goulding ;================================================= .ORIG x3000 ;-------------- ; Instructions ;-------------- LD R1, ARRAY_PTR ; Load address...
// This file is part of www.nand2tetris.org // and the book "The Elements of Computing Systems" // by Nisan and Schocken, MIT Press. // File name: projects/04/Mult.asm // Multiplies R0 and R1 and stores the result in R2. // (R0, R1, R2 refer to RAM[0], RAM[1], and RAM[2], respectively.) // Put your code here....
#include "window.hpp" #include "circle.hpp" #include <GLFW/glfw3.h> #include <utility> #include <cmath> #include <vector> #include <iostream> #include <set> std::multiset<Circle, std::function<bool(Circle, Circle)>> circles ( [](Circle const& c1, Circle const& c2) -> bool { return c1.radius() < c2.radius();});...
; A037795: Base 6 digits are, in order, the first n terms of the periodic sequence with initial period 3,2,1,0. ; Submitted by Christian Krause ; 3,20,121,726,4359,26156,156937,941622,5649735,33898412,203390473,1220342838,7322057031,43932342188,263594053129,1581564318774,9489385912647,56936315475884,341617892855305,204...
; A138438: a(n) = ((n-th prime)^5-(n-th prime)^3)/24. ; 1,9,125,686,6655,15379,58956,102885,267674,853615,1191640,2887221,4824470,6122039,9551716,17418609,29779955,35182055,56242681,75161310,86361774,128190140,164102869,232639770,357767816,437877925,482985334,584345511,641039355,767621204,1376513376,1607385065,20107980...
#include <stdio.h> #include <stdlib.h> #include <iostream> #include <vector> #include <random> #include <vector> #include <bitset> #include<fstream> #include <functional> //for std::function #include <algorithm> //for std::generate_n typedef std::vector<char> char_array; char_array charset() { //Change this to...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r14 push %r15 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0x22ea, %rax nop nop nop nop add $527, %r12 movw $0x6162, (%rax) nop nop cmp %rbx, %rbx lea addresses_A_ht+0x1358a, %r11 nop nop nop nop nop lfence mov $0x...
/* * 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...
; A127229: a(n)= numerator of ((n + 5)! - (n - 5)!)/(n!). ; 3628799,39916799,239500799,1037836799,3632428799,10897286399,29059430399,70572902399,158789030399,335221286399,670442572799,1279935820799,2346549004799,4151586700799,7117005772799,11861676287999,19275223967999,30613591007999,47621141567999,72684900287999,10902...
; A215746: Numerator of sum(i=0..n, (-1)^i*4/(2*i + 1)). ; Submitted by Jamie Morken(w3) ; 4,8,52,304,1052,10312,147916,135904,2490548,44257352,47028692,1023461776,5385020324,15411418072,467009482388,13895021563328,14442004718228,13926277743608,533322720625196,516197940314096,21831981985010836,911392701638017048,937558...
// // Created by jhwangbo on 18. 1. 7. // #ifndef RAISIM_HEIGHTMAP_HPP #define RAISIM_HEIGHTMAP_HPP #include <raisim/object/singleBodies/SingleBodyObject.hpp> #include <raisim/Terrain.hpp> namespace raisim { class HeightMap : public SingleBodyObject { public: /// loading heightmap from a text file HeightMap(...
// Copyright 2018 The Abseil 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agr...
/**************************************************************************** * * Copyright (c) 2020 PX4 Development Team. 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. Redistri...
; A168097: a(n) = number of natural numbers m such that n - 7 <= m <= n + 7. ; 7,8,9,10,11,12,13,14,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15 mov $1,$0 trn $0,8 sub $1,$0 add $1,7
#pragma once #include <bunsan/curl/options/traits.hpp> #include <curl/curl.h> #include <boost/cast.hpp> #include <type_traits> namespace bunsan::curl::options::wrapper { namespace detail { template <typename T> inline typename std::enable_if<!std::is_enum<T>::value, long>::type bitmask_cast(const T data) { retu...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1991 -- All Rights Reserved PROJECT: PC GEOS MODULE: Ruler Library FILE: rulerView.asm AUTHOR: Jon Witort REVISION HISTORY: Name Date Description ---- ---- ----------- jon 10 OCT 91 Initial version. ...
Snd_LRZ2_Header: smpsHeaderStartSong 3 smpsHeaderVoiceUVB smpsHeaderChan $06, $03 smpsHeaderTempo $01, $33 smpsHeaderDAC Snd_LRZ2_DAC smpsHeaderFM Snd_LRZ2_FM1, $0C, $15 smpsHeaderFM Snd_LRZ2_FM2, $00, $11 smpsHeaderFM Snd_LRZ2_FM3, $0C, $18 smpsHeaderFM Snd_LRZ2_FM4...
; A321257: Start with an equilateral triangle, and repeatedly append along the triangles of the previous step equilateral triangles with half their side length that do not overlap with any prior triangle; a(n) gives the number of triangles appended at n-th step. ; 1,6,21,60,147,330,705,1464,2991,6054,12189,24468,49035,...
; A331152: Triangle read by rows: T(n,k) (n>=k>=1) = f(n,n-k+1) where f(n,k) = ceiling((n/k)*floor(n/k)). ; Submitted by Christian Krause ; 1,1,4,1,2,9,1,2,4,16,1,2,2,5,25,1,2,2,4,9,36,1,2,2,2,5,11,49,1,2,2,2,4,6,16,64,1,2,2,2,2,5,9,18,81,1,2,2,2,2,4,5,10,25,100,1,2,2,2,2,2,5,6,11,28,121,1,2,2,2,2,2,4,5,9,16,36,144,1,2...
; A236652: Positive integers n such that n^2 divided by the digital root of n is a square. ; 1,4,9,10,18,19,22,27,28,36,37,40,45,46,54,55,58,63,64,72,73,76,81,82,90,91,94,99,100,108,109,112,117,118,126,127,130,135,136,144,145,148,153,154,162,163,166,171,172,180,181,184,189,190,198,199,202,207,208,216,217,220,225,226,23...
//------------------------------------------------------------------------------ /* This file is part of rippled: https://github.com/ripple/rippled Copyright (c) 2012, 2013 Ripple Labs Inc. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby ...
; A168336: a(n) = 5 + 7*floor((n-1)/2). ; 5,5,12,12,19,19,26,26,33,33,40,40,47,47,54,54,61,61,68,68,75,75,82,82,89,89,96,96,103,103,110,110,117,117,124,124,131,131,138,138,145,145,152,152,159,159,166,166,173,173,180,180,187,187,194,194,201,201,208,208,215,215,222,222,229,229,236,236,243,243,250,250,257,257,264,264,271,...
; A017629: a(n) = 12*n + 9. ; 9,21,33,45,57,69,81,93,105,117,129,141,153,165,177,189,201,213,225,237,249,261,273,285,297,309,321,333,345,357,369,381,393,405,417,429,441,453,465,477,489,501,513,525,537,549,561,573,585,597,609,621,633 mul $0,12 add $0,9
; ********* SINCE INTEGRATION TO INTERFACE.asm ; ********* THIS FILE IS NOW DEPRECATED org 0x0000 ljmp setup ; org 0x000B ; ljmp T0_ISR org 0x002B ljmp T2_ISR ; standard library $NOLIST $MODLP52 $LIST $include(macros.inc) $include(LCD_4bit.inc) ; Preprocessor constants CLK equ 22...
// This file is made available under Elastic License 2.0. // This file is based on code available under the Apache license here: // https://github.com/apache/incubator-doris/blob/master/be/src/exprs/like_predicate.cpp // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreem...
.text .globl main main: mtc1 $zero, $f5 li $v0, 6 syscall c.lt.s $f0, $f5 bc1t raggio_neg l.s $f1, pi mul.s $f12, $f0, $f0 mul.s $f12, $f12, $f1 li $v0, 2 syscall j fine raggio_neg: li $v0, 4 la $a0, Msg_Err syscall fine: li $v0, 10 syscall .data pi: .float 3.14 Msg_Err: .asciiz "inserire raggio...
MODULE ENTITY INCLUDE "entity_macros.asm" K_IS_UP EQU 0 K_IS_UP_RIGHT EQU 1 K_IS_RIGHT EQU 2 K_IS_DOWN_RIGHT EQU 3 K_IS_DOWN EQU 4 K_IS_DOWN_LEFT ...
/* * Copyright 2013 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gm.h" #include "SkBitmap.h" #include "SkGradientShader.h" #include "SkXfermode.h" #include "SkColorPriv.h" #if SK_SUPPORT_GPU #include "GrContext.h" #include "SkGpu...
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r9 push %rax push %rbx push %rdx // Load mov $0xca3, %rbx nop nop sub %r9, %r9 mov (%rbx), %dx nop nop add %rax, %rax // Faulty Load lea addresses_RW+0x5243, %r10 nop nop xor $62541, %r9 mov (%r10), %r...
C -*- mode: asm; asm-comment-char: ?C; -*- C nettle, low-level cryptographics library C C Copyright (C) 2013, Niels Möller C C The nettle library is free software; you can redistribute it and/or modify C it under the terms of the GNU Lesser General Public License as published by C the Free Software Foundation; either v...
;@com.wudsn.ide.asm.hardware=ATARI2600 icl "vcs.asm" icl "macro.asm" opt h-f+l+ org $f000 ; We're going to mess with the playfield registers, PF0, PF1 and PF2. ; Between them, they represent 20 bits of bitmap information ; which are replicated over 40 wide pixels for each scanline. ; By changing the regist...
// Copyright (c) 2018 The Crowdcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "bench.h" #include "tinyformat.h" #include "utilstrencodings.h" #include <boost/lexical_cast.hpp> #include <string> t...
/* * helloworld.asm * Written for use with GNU AS * Copyright © 2020 Ben Sampson <github.com/billyrayvalentine> * This work is free. You can redistribute it and/or modify it under the * terms of the Do What The Fuck You Want To Public License, Version 2, * as published by Sam Hocevar. See the COPYING file for mo...
; A193911: Sums of the diagonals of the matrix formed by listing the h-Stohr sequences in increasing order. ; 1,3,7,14,25,43,69,110,167,255,375,558,805,1179,1681,2438,3451,4975,7011,10070,14153,20283,28461,40734,57103,81663,114415,163550,229069,327355,458409,654998,917123,1310319,1834587,2620998,3669553,5242395,7339525...
; A099483: A Fibonacci convolution. ; 0,1,3,7,18,48,126,329,861,2255,5904,15456,40464,105937,277347,726103,1900962,4976784,13029390,34111385,89304765,233802911,612103968,1602508992,4195423008,10983760033,28755857091,75283811239,197095576626 mov $4,2 mov $5,$0 lpb $4,1 mov $0,$5 sub $4,1 add $0,$4 sub $0,1 mo...
; A048759: Longest perimeter of a Pythagorean triangle with n as length of one of the three sides. ; 12,12,30,24,56,40,90,60,132,84,182,112,240,144,306,180,380,220,462,264,552,312,650,364,756,420,870,480,992,544,1122,612,1260,684,1406,760,1560,840,1722,924,1892,1012,2070,1104,2256,1200,2450,1300,2652 add $0,3 mov $1,$...
/* this file has been autogenerated by vtkNodeJsWrap */ /* editing this might proof futile */ #define VTK_WRAPPING_CXX #define VTK_STREAMS_FWD_ONLY #include <nan.h> #include "vtkObjectWrap.h" #include "vtkIncrementalForceLayoutWrap.h" #include "vtkGraphWrap.h" #include "../../plus/plus.h" using namespace v8; extern...
/* //@HEADER // ************************************************************************ // // Kokkos v. 3.0 // Copyright (2020) National Technology & Engineering // Solutions of Sandia, LLC (NTESS). // // Under the terms of Contract DE-NA0003525 with NTESS, // the U.S. Govern...
; A045383: Primes congruent to {0, 2} mod 7. ; Submitted by Jon Maiga ; 2,7,23,37,79,107,149,163,191,233,317,331,359,373,401,443,457,499,541,569,653,709,751,821,863,877,919,947,1031,1087,1129,1171,1213,1283,1297,1367,1381,1409,1423,1451,1493,1549,1619,1759,1787,1801,1871,1913,1997,2011,2039,2053,2081,2137,2179,2207,222...
// Copyright 2016 the V8 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. #include "src/builtins/builtins-utils-inl.h" #include "src/builtins/builtins.h" #include "src/code-factory.h" #include "src/conversions.h" #include "src...
/*! * \author Umut A. Acar * \author Arthur Chargueraud * \author Mike Rainey * \date 2013-2018 * \copyright 2014 Umut A. Acar, Arthur Chargueraud, Mike Rainey * * \brief Fixed capacity vectors * \file fixedcapacity.hpp * */ #include "fixedcapacitybase.hpp" #ifndef _PASL_DATA_FIXEDCAPACITY_H_ #define _PASL_...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r15 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0xda4a, %rdi dec %rbx movb (%rdi), %al nop nop nop nop cmp %r13, %r13 lea addresses_A_ht+0x53f2, %rsi lea addresses_UC_ht+0x12922, %rdi nop nop cmp $27693, %rax mov $46, %rcx ...
// Copyright 2019 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/expr/expr_token_type.h" #include "src/lib/fxl/arraysize.h" #include "src/lib/fxl/logging.h" namespace zxdb { namespac...
SECTION code_clib SECTION code_fp_math48 PUBLIC asm_dip EXTERN am48_dip defc asm_dip = am48_dip
; A040005: Continued fraction for sqrt(8). ; 2,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1...
#include "global.h" #include "RageSoundDriver_DSound_Software.h" #include "DSoundHelpers.h" #include "RageLog.h" #include "RageUtil.h" #include "RageSoundManager.h" #include "PrefsManager.h" #include "archutils/Win32/ErrorStrings.h" REGISTER_SOUND_DRIVER_CLASS2( DirectSound-sw, DSound_Software ); static ...
_forktest: file format elf32-i386 Disassembly of section .text: 00000000 <main>: printf(1, "fork test OK\n"); } int main(void) { 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 push...
; A309715: Number of even parts appearing among the third largest parts of the partitions of n into 4 parts. ; 0,0,0,0,0,0,0,1,2,3,4,5,6,8,10,13,16,19,22,26,30,35,40,46,52,59,66,74,82,91,100,111,122,134,146,159,172,187,202,219,236,254,272,292,312,334,356,380,404,430,456,484,512,542,572,605,638,673,708,745,782,822,862,9...
; A190787: Odd powers of 2 and 9 times odd powers of 2, sorted. ; 2,8,18,32,72,128,288,512,1152,2048,4608,8192,18432,32768,73728,131072,294912,524288,1179648,2097152,4718592,8388608,18874368,33554432,75497472,134217728,301989888,536870912,1207959552,2147483648,4831838208,8589934592,19327352832,34359738368,77309411328,1...
ViridianNicknameHouse_h: db HOUSE ; tileset db VIRIDIAN_NICKNAME_HOUSE_HEIGHT, VIRIDIAN_NICKNAME_HOUSE_WIDTH ; dimensions (y, x) dw ViridianNicknameHouse_Blocks ; blocks dw ViridianNicknameHouse_TextPointers ; texts dw ViridianNicknameHouse_Script ; scripts db 0 ; connections dw ViridianNicknameHouse_Object ; ob...
#ifndef SEMANTIC_POINT_CLOUD_HPP_ #define SEMANTIC_POINT_CLOUD_HPP_ #include <cmath> #include <iostream> #include <pcl/common/transforms.h> namespace semanticicp { template<typename PointT, typename SemanticT> void SemanticPointCloud<PointT, SemanticT>::addSemanticCloud( SemanticT label, PointCl...
section .text global distance distance: xor rax, rax loop: mov cl, [rsi] mov dl, [rdi] test cl, cl jz done test dl, dl jz fail inc rsi inc rdi cmp cl, dl je loop inc rax jmp loop fail: mov rax, -1 ret done: test dl, dl jne fail ret
; load 'dh' sectors from drive 'dl' into ES:BX disk_load: pusha ; reading from disk requires setting specific values in all registers ; so we will overwrite our input parameters from 'dx'. Let's save it ; to the stack for later use. push dx mov ah, 0x02 ; ah <- int 0x13 function. 0x02 = 'read' ...
/* * FreeRTOS V202112.00 * 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, incl...
; A178348: a(n) = Sum_{k=0..n} 1100^k. ; 1,1101,1211101,1332211101,1465432211101,1611975432211101,1773172975432211101,1950490272975432211101,2145539300272975432211101,2360093230300272975432211101,2596102553330300272975432211101,2855712808663330300272975432211101,3141284089529663330300272975432211101,3455412498482629663...
; A261681: a(n) = 2^n + binomial(n, floor(n/2)) - 1. ; 1,2,5,10,21,41,83,162,325,637,1275,2509,5019,9907,19815,39202,78405,155381,310763,616665,1233331,2449867,4899735,9740685,19481371,38754731,77509463,154276027,308552055,614429671,1228859343,2448023842,4896047685,9756737701 mov $1,2 pow $1,$0 mov $2,$0 div $0,2 bin ...
BITS 32 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS=FLAG_FPU_PE|FLAG_FPU_C1 ;TEST_FILE_META_END ; set up st0 to be PI FLDPI ;TEST_BEGIN_RECORDING lea edi, [esp-08] mov dword [edi], 0x10000 FIADD dword [edi] mov edi, 0x0 ;TEST_END_RECORDING
; A296063: a(n) is the smallest number (in absolute value) not yet in the sequence such that the arithmetic mean of the first n terms a(1), a(2), ..., a(n) is an integer. Preference is given to positive values of a(n); a(1)=1; 0 not allowed. ; 1,-1,3,-3,5,-5,7,-7,9,-9,11,-11,13,-13,15,-15,17,-17,19,-19,21,-21,23,-23,25...
; void PSGSFXPlayLoop(void *sfx,unsigned char channels) SECTION code_clib SECTION code_PSGlib PUBLIC PSGSFXPlayLoop EXTERN asm_PSGlib_SFXPlayLoop PSGSFXPlayLoop: pop af pop bc pop de push de push bc push af jp asm_PSGlib_SFXPlayLoop ; SDCC bridge for Classic IF __CLASSIC PUBLIC _PSGSFXPlayLoop defc _P...
class Fraction { vlong num, denom; void simplify() { vlong g = gcd ( num, denom ); num /= g; denom /= g; if ( denom < 0 ) { num *= -1; denom *= -1; } } public: ///First deal with initiation of the class Fraction () { num = 0;...
ori $1, $0, 15 ori $2, $0, 10 ori $3, $0, 9 ori $4, $0, 6 sw $4, 0($0) sw $3, 4($0) sw $2, 8($0) sw $1, 12($0) sw $4, 16($0) sw $4, 20($0) sw $4, 24($0) sw $3, 28($0) sw $4, 32($0) sw $4, 36($0) sw $3, 40($0) sw $2, 44($0) sw $2, 48($0) sw $1, 52($0) sw $2, 56($0) sw $4, 60($0) sw $2, 64($0) sw $1, 68($0) sw $4, 72($0)...
; ; Small C+ Runtime Library ; ; CP/M functions ; ; CPM Plus "userf" custom Amstrad calls, for Amstrad CPC & PCW and ZX Spectrum +3 ; ; ; $Id: a_machinever.asm,v 1.2 2017-01-02 20:06:48 aralbrec Exp $ ; SECTION code_clib PUBLIC a_machinever PUBLIC _a_machinever EXTERN subuserf INCLU...
/* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may not use this file except in compliance with the License. * * You may ...
; A120950: 3^n+5^n-2n. ; 2,6,30,146,698,3358,16342,80298,397170,1972790,9824654,49005250,244672042,1222297422,6108298566,30531927002,152630937314,763068593254,3815084686078,19074648589554,95370918424986,476847618556286,2384217172075190 mov $2,$0 cal $0,81186 ; 4th binomial transform of (1,0,1,0,1,...), A059841. sub $0...
; ================================================================== ; MikeOS -- The Mike Operating System kernel ; Copyright (C) 2006 - 2013 MikeOS Developers -- see doc/LICENSE.TXT ; ; MATH ROUTINES ; ================================================================== ; ----------------------------------------...
#ifndef LLARP_PRINTER_HPP #define LLARP_PRINTER_HPP #include <util/string_view.hpp> #include <util/meta/traits.hpp> #include <util/meta/variant.hpp> #include <absl/types/variant.h> #include <functional> #include <iostream> #include <cassert> namespace llarp { /// simple guard class to restore stream flags. struc...
//---------------------------------------------------------------------------- // // TSDuck - The MPEG Transport Stream Toolkit // Copyright (c) 2005-2021, Thierry Lelegard // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the f...
/* Qt4xHb - Bindings libraries for Harbour/xHarbour and Qt Framework 4 Copyright (C) 2021 Marcos Antonio Gambeta <marcosgambeta AT outlook DOT com> */ /* DO NOT EDIT THIS FILE - the content was created using a source code generator */ #include "QLocalSocketSlots.h" QLocalSocketSlots::QLocalSoc...
; A105635: a(n) = (2*Pell(n+1) - (1+(-1)^n))/4. ; Submitted by Jamie Morken(s3) ; 0,1,2,6,14,35,84,204,492,1189,2870,6930,16730,40391,97512,235416,568344,1372105,3312554,7997214,19306982,46611179,112529340,271669860,655869060,1583407981,3822685022,9228778026,22280241074,53789260175,129858761424,313506783024,75687232747...
; A098663: a(n) = Sum_{k=0..n} binomial(n,k) * binomial(n+1,k+1) * 3^k. ; Submitted by Christian Krause ; 1,5,30,193,1286,8754,60460,421985,2968902,21019510,149572292,1068795930,7664092060,55121602436,397464604440,2872406652001,20799171328070,150869330458830,1096046132412628,7973709600124958,58081342410990516,423551998...
<% import collections import pwnlib.abi import pwnlib.constants import pwnlib.shellcraft import six %> <%docstring>pivot_root(new_root, put_old) -> str Invokes the syscall pivot_root. See 'man 2 pivot_root' for more information. Arguments: new_root(char*): new_root put_old(char*): put_old Returns: int </...
// $Id: Token_Request_Reply.cpp 96985 2013-04-11 15:50:32Z huangh $ #include "ace/Token_Request_Reply.h" #if defined (ACE_HAS_TOKENS_LIBRARY) #if !defined (__ACE_INLINE__) #include "ace/Token_Request_Reply.inl" #endif /* __ACE_INLINE__ */ ACE_BEGIN_VERSIONED_NAMESPACE_DECL // Default "do nothing" constructor. A...
;----------------------------------------------- instrument_profiles: SquareWave_instrument_profile: db 12 Piano_instrument_profile: db 14,13,12,11,10,10,9,9,8,8,7,7,6,#ff ;Soft_Piano_instrument_profile: ; db 12,11,10,9,8,8,7,7,6,6,5,5,4,#ff ;Wind_instrument_profile: ; db 0,3,6,8,10,11,12, #ff ; This is ...
// // Copyright 2016 Pixar // // Licensed under the Apache License, Version 2.0 (the "Apache License") // with the following modification; you may not use this file except in // compliance with the Apache License and the following modification to it: // Section 6. Trademarks. is deleted and replaced with: // // 6. Trad...
// #include <biogears/cdm/utils/Logger.h> // #include <biogears/cdm/substance/SESubstanceManager.h> // #include <biogears/cdm/utils/DataTrack.h> // #include <biogears/cdm/scenario/requests/SEDataRequest.h> #include <biogears/cdm/properties/SEScalar0To1.h> #include <biogears/exports.h> #include <string> #include <pybind...
; A052970: Expansion of (1-2x)/(1-2x-2x^2+2x^3). ; Submitted by Christian Krause ; 1,0,2,2,8,16,44,104,264,648,1616,4000,9936,24640,61152,151712,376448,934016,2317504,5750144,14267264,35399808,87833856,217932800,540733696,1341665280,3328932352,8259727872,20493989888,50849570816,126167665664 mov $1,1 lpb $0 sub $0,1 ...
/* * Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #include <EMotionFX/Source/EventDataSyncable.h> #include <AzCore/Serialization/EditContext.h> names...
; MIT License ; ; Copyright (c) 2018 Thomas Woinke, Marko Lauke, www.steckschwein.de ; ; 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...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
; A016996: a(n) = (7*n + 1)^4. ; 1,4096,50625,234256,707281,1679616,3418801,6250000,10556001,16777216,25411681,37015056,52200625,71639296,96059601,126247696,163047361,207360000,260144641,322417936,395254161,479785216,577200625,688747536,815730721,959512576,1121513121,1303210000,1506138481,1731891456,1982119441,22585305...
; A051754: Consider problem of placing N queens on an n X n board so that each queen attacks precisely 1 other. Sequence gives maximal number of queens. ; 2,2,4,4,8,8,10,12,12,14 mul $0,2 add $0,1 mov $1,$0 mul $1,3 mov $2,$0 sub $2,2 div $1,$2 div $0,$1 mul $0,2 add $0,2
// Adds up two numbers // RAM[2] = RAM[0] + RAM[1] // Usage: put the value that you wish to add // in RAM[0] and RAM[1] @R0 D=M // D = RAM[0] @R1 D=D+M // D = D + RAM[0] @R2 M=D // RAM[2] = D @6 0;JMP // 以无限循环结束程序
/** * Copyright (c) 2017-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of tnhis source tree. */ #include "logdevice/common/configuration/nodes/NodesConfigLegacyConverter.h" #include <chrono> #include ...
#include <cvode/cvode.h> /* prototypes for CVODE fcts., consts. */ #ifdef AMREX_USE_CUDA #include <nvector/nvector_cuda.h> /* access to CUDA N_Vector */ #include <sunlinsol/sunlinsol_spgmr.h> /* access to SPGMR SUNLinearSolver */ #include <cvode/cvode_spils.h> ...