text
stringlengths
1
1.05M
// Copyright (c) 2017-2018 The PIVX developers // Copyright (c) 2021-2022 The FunCoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "bip38.h" #include "base58.h" #include "hash.h" #include "pubkey.h" #inclu...
class ValidBrackets { public: bool isValid(string s) { std::stack<char> st; for(char ch: s){ if (ch == '(') st.push(')'); else if (ch == '[') st.push(']'); else if (ch == '{') st.push('}'); else if (!st.empty() && ch == st.top()) st.pop(); ...
/// @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...
#include "TruthValueSet.h" #include <ostream> namespace fovris { TruthValueSet::TruthValueSet(const std::vector<TruthValue> &values) { for (TruthValue t : values) { set.set(static_cast<size_t>(t), 1); } } TruthValueSet::TruthValueSet(std::initializer_list<TruthValue> values) { for (TruthValue t : ...
; A314674: Coordination sequence Gal.4.58.4 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. ; 1,5,9,13,17,21,25,30,35,39,43,47,51,55,60,65,69,73,77,81,85,90,95,99,103,107,111,115,120,125,129,133,137,141,145,150,155,159,163,167,171,175,...
; A065140: a(n) = 2^n*(2*n)!. ; 1,4,96,5760,645120,116121600,30656102400,11158821273600,5356234211328000,3278015337332736000,2491291656372879360000,2301953490488540528640000,2541356653499348743618560000,3303763649549153366704128000000,4995290638118319890456641536000000,8691805710325876609394556272640000000,172445425292...
/* * Copyright 2018-2021 Mahdi Khanalizadeh * * 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 o...
#include <cstdlib> #include <cstdio> #include <glog/logging.h> #include <gtest/gtest.h> #include "common.h" namespace paradigm4 { namespace pico { namespace core { TEST(VectorMoveAppend, ok) { std::vector<std::vector<int>> vect = {{3, 4}, {5}, {6, 7, 8}}; std::vector<std::vector<int>> result = {{0}, {1, 2}}...
/****************************************************************************** * $Id$ * * Project: GDAL * Purpose: Implements the Golden Software Binary Grid Format. * Author: Kevin Locke, kwl7@cornell.edu * (Based largely on aaigriddataset.cpp by Frank Warmerdam) * ***********************************...
// Copyright (c) 2012 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 "ui/views/widget/native_widget_aura.h" #include "base/bind.h" #include "base/strings/string_util.h" #include "third_party/skia/include/core/...
// This code is under MIT licence // you can find the complete file in project-root / LICENSE.txt #include <iostream> #include <pthread.h> #include <sched.h> #include <time.h> #include <unistd.h> #include "Navigation.h" /** Interval constants - Develop Frequency. * There are 1M microseconds per second - 1000 mic...
;name: dwordbcd2bin.asm ; ;description: dwordbcd2bin: packed bcd dword to binary conversion. ; ;use: ;packed bcd: mov rdi,packedbcd ; call dwordbcd2bin ;The algorithm is the same as for a single nibble. The number of necessary ;loops is determined empirically. Because we use this algorithm we...
SECTION "sec", ROM0 SECTION "sec", ROM0
; A109112: a(n) = 6*a(n-1) - 3*a(n-2), a(0)=2, a(1)=13. ; 2,13,72,393,2142,11673,63612,346653,1889082,10294533,56099952,305716113,1665996822,9078832593,49475005092,269613532773,1469256181362,8006696489853,43632410395032,237774372900633,1295749006218702 mov $1,2 lpb $0 sub $0,1 mov $3,$1 add $1,3 mul $3,2 add...
; A316828: Image of the Thue-Morse sequence A010060 under the morphism {1 -> 1,2; 0 -> 0,2}. ; 0,2,1,2,1,2,0,2,1,2,0,2,0,2,1,2,1,2,0,2,0,2,1,2,0,2,1,2,1,2,0,2,1,2,0,2,0,2,1,2,0,2,1,2,1,2,0,2,0,2,1,2,1,2,0,2,1,2,0,2,0,2,1,2,1,2,0,2,0,2,1,2,0,2,1,2,1,2,0,2,0,2,1,2,1,2,0,2,1,2,0,2,0,2,1,2,0,2,1,2,1,2,0,2,1,2,0,2,0,2,1,2,1...
; A179103: A variation on A119505 that gives a limited digit set {2, 3, 4, 6, 8}. ; 4,3,6,3,2,3,8,6,2,4,2,3,3,4,3,4,8,4,3,6,6,8,6,6,4,4,3,4,8,4,3,2,2,8,3,3,6,3,3,4,3,6,3,4,3,3,4,4,2,3,2,2,3,8,2,3,4,6,3,6,6,2,3,8,4,2,4,3,3,6,6,2,6,8,3,6,8,2,3,3,3,3,6,8,3,2,4,6,3,8,2,4,6,8,3,3,4,2,6,4 mov $2,13 lpb $2 seq $0,59833 ; "...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r14 push %r9 push %rax push %rcx push %rdi push %rsi lea addresses_D_ht+0xb186, %r9 nop nop nop nop add %rsi, %rsi mov $0x6162636465666768, %r12 movq %r12, (%r9) nop xor %rdi, %rdi lea addresses_D_ht+0x1dc75, %rsi lea addresses_normal_ht+0x7dde, %rdi nop nop ...
;Never Virus ;COM/EXE/Boot sector/partition table/full Stealth and polymorphic ;Tunnels ;Does other stuff ;link with eng.asm .model tiny .code file_size equ file_end - v_start sect_size equ (decrypt - v_start + 511) / 512 para_size equ (v_end - v_start + 15) / 16 kilo_size equ ...
; int mtx_init(mtx_t *mtx, int type) SECTION code_threads_mutex PUBLIC _mtx_init EXTERN asm_mtx_init _mtx_init: pop af pop hl pop bc push bc push hl push af jp asm_mtx_init
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r13 push %r14 push %rcx push %rdi push %rsi lea addresses_UC_ht+0xb88c, %rsi lea addresses_WC_ht+0x17348, %rdi clflush (%rdi) nop nop nop xor %r10, %r10 mov $27, %rcx rep movsw nop dec %r10 lea addresses_A_ht+0x8a4c, %r14 and %rsi, %rsi mov $0x61626...
; ; Sprite Rendering Routine ; original code by Patrick Davidson (TI 85) ; modified by Stefano Bodrato - Jan 2009 ; ; MSX version ; ; ; $Id: putsprite.asm,v 1.9 2016-07-02 09:01:36 dom Exp $ ; SECTION smc_clib PUBLIC putsprite PUBLIC _putsprite EXTERN pixeladdress EXTERN pixelbyte EXTERN swapgfxbk ...
; A185868: (Odd,odd)-polka dot array in the natural number array A000027, by antidiagonals. ; 1,4,6,11,13,15,22,24,26,28,37,39,41,43,45,56,58,60,62,64,66,79,81,83,85,87,89,91,106,108,110,112,114,116,118,120,137,139,141,143,145,147,149,151,153,172,174,176,178,180,182,184,186,188,190,211,213,215,217,219,221,223,225,227,2...
BITS 64 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS= ;TEST_FILE_META_END ; ADD16rm ;TEST_BEGIN_RECORDING lea rax, [rsp-0x10] mov DWORD [rax], 0x1000 mov bx, 0x2 add bx, [rax] mov eax, [rax] ;TEST_END_RECORDING
Name: zel_enmy2.asm Type: file Size: 366508 Last-Modified: '2016-05-13T04:22:15Z' SHA-1: 4FF220226013A57D654B3C3E8411A56C6DADE19D Description: null
SECTION code_clib SECTION code_l PUBLIC l_small_ultob EXTERN l_small_utob l_small_ultob: ; write unsigned binary long to ascii buffer ; ; enter : dehl = unsigned long ; bc = char *buffer ; carry set to write leading zeroes ; ; exit : de = char *buffer (one byte past las...
#include <dirent.h> #include <sstream> #include <string> #include <vector> #include "linux_parser.h" #include "parser_helper.h" using std::stof; using std::string; using std::to_string; using std::vector; // DONE: An example of how to read data from the filesystem string LinuxParser::OperatingSystem() { string lin...
ld a, 31 ld (basescradr + #05d2), a ld (basescradr + #08ca), a ld (basescradr + #09ca), a ld (basescradr + #0d0a), a ld (basescradr + #0faa), a ld a, 64 ld (basescradr + #05d3), a ld (basescradr + #0935), a ld (basescradr + #09b6), a ld (basescradr + #09d6), a ld (basescradr + #0d15), a ld (ba...
#pragma once #include <array> // array #include <cmath> // signbit, isfinite #include <cstdint> // intN_t, uintN_t #include <cstring> // memcpy, memmove #include <limits> // numeric_limits #include <type_traits> // conditional #include <nlohmann/detail/macro_scope.hpp> namespace nlohmann { inline namespace vt { na...
;=============================================================================== ; gameMenu.asm - Game Main Menu ; ; Copyright (C) 2017,2018 Marcelo Lv Cabral - <https://lvcabral.com> ; ; Distributed under the MIT software license, see the accompanying ; file LICENSE or https://opensource.org/licenses/MIT ; ;======...
; $Id: deps.asm $ ;; @file ; Solaris kernel module dependency ; ; ; Copyright (C) 2012-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 redistribute it and/or modify it under the terms of the GNU ...
; A188480: a(n) = (n^4 + 16*n^3 + 65*n^2 + 26*n + 12)/12. ; 1,10,39,99,203,366,605,939,1389,1978,2731,3675,4839,6254,7953,9971,12345,15114,18319,22003,26211,30990,36389,42459,49253,56826,65235,74539,84799,96078,108441,121955,136689,152714,170103,188931,209275,231214,254829,280203,307421,336570,367739,401019,436503,4742...
; A281392: Number of occurrences of "01" as a subsequence in the binary expansion of n. ; Submitted by Jamie Morken(s4) ; 0,1,1,2,1,3,2,3,1,4,3,5,2,4,3,4,1,5,4,7,3,6,5,7,2,5,4,6,3,5,4,5,1,6,5,9,4,8,7,10,3,7,6,9,5,8,7,9,2,6,5,8,4,7,6,8,3,6,5,7,4,6,5,6,1,7,6,11,5,10,9,13,4,9,8,12,7,11,10,13,3,8,7,11,6,10,9,12,5,9,8,11,7,...
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r15 push %r8 push %rax push %rbp push %rcx push %rdi push %rsi // Store lea addresses_D+0xaf43, %r15 nop nop sub $62815, %r8 movb $0x51, (%r15) nop nop sub %rax, %rax // Store lea addresses_normal+0x89f7, %rcx nop nop nop...
; A258388: a(n) = n^(n+1) + (n-1)^n. ; 1,1,9,89,1105,16649,295561,6044737,139982529,3621002129,103486784401,3238428376721,110131633755793,4044369591078361,159505471943511513,6723976451270702849,301716313535065716481,14358232357247077816865,722298429807405401348641,38298208802901295869713233,2134741973457545958193355601...
#include <iostream> #include "TopdownGroupView.h" #include "TopdownTreeView.h" void TopdownGroupView::displayTrace(Trace& trace) { this->removeAllTabs(); for (int i = 0; i < trace.getTaskCount(); i++) { auto* task = trace.getTaskAt(i); this->createTab(task); } } void TopdownGroupView:...
; A317945: Filter sequence constructed from the coefficients of the Stern polynomials B(d,t) collected for each divisor d of n. Restricted growth sequence transform of A317944. ; Submitted by Jamie Morken(s3) ; 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,4...
; Program to accept a signed decimal number in the format +/-xxxx ; Calculate the 8-bit "quarter precision" IEEE-754 encoding and print it to screen. ; Format -/+xxxx in decimal, entered as ASCII. ; 1) Get sign ; 2) Get number ; 3) Normalize number to get exponent ; 3) Compute bias-** representation of expone...
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: task_spec.proto #include "task_spec.pb.h" #include <algorithm> #include <google/protobuf/io/coded_stream.h> #include <google/protobuf/extension_set.h> #include <google/protobuf/wire_format_lite.h> #include <google/protobuf/io/zero_copy_stream_imp...
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 version 2.1 of the License, or (at your C op...
/* Copyright (c) 2013 Ghassen Hamrouni Abstract: This module provides IO functions for PNG images. Author: Ghassen Hamrouni <ghamrouni.iptech@gmail.com> 23-07-2013 Revision History: */ #pragma once #ifndef ___IMAGE_PNG_H__ #define ___IMAGE_PNG_H__ #include <iostream> #include <vector> #include "lodepng.h" #...
; A011874: a(n) = floor(n*(n-1)/21). ; 0,0,0,0,0,0,1,2,2,3,4,5,6,7,8,10,11,12,14,16,18,20,22,24,26,28,30,33,36,38,41,44,47,50,53,56,60,63,66,70,74,78,82,86,90,94,98,102,107,112,116,121,126,131,136,141,146,152,157,162,168 bin $0,2 mul $0,2 div $0,21
; A319988: a(n) = 1 if n is divisible by the square of its largest prime factor, 0 otherwise. ; 0,0,0,1,0,0,0,1,1,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,1,0,1,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1 seq $0,71178 ; Exponent...
%ifdef CONFIG { "RegData": { "RBX": "0x0000000000000003", "RCX": "0x0000000000000002", "RDX": "0x0000000000000001", "RSI": "0x0000000000000000", "R8": "0x0", "R9": "0x0", "R10": "0x1", "R11": "0x1" } } %endif mov rbx, 0x0000000000000001 mov rcx, 0x0000000000000001 mov rdx, 0x80000...
; A070497: a(n) = n^3 mod 35. ; 0,1,8,27,29,20,6,28,22,29,20,1,13,27,14,15,1,13,22,34,20,21,8,22,34,15,6,13,7,29,15,6,8,27,34,0,1,8,27,29,20,6,28,22,29,20,1,13,27,14,15,1,13,22,34,20,21,8,22,34,15,6,13,7,29,15,6,8,27,34,0,1,8,27,29,20,6,28,22,29,20,1,13,27,14,15,1,13,22,34,20,21,8,22,34,15,6,13,7,29 pow $0,3 mod $0,35...
/**************************************************************************** ** ** Copyright (C) 2015 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing/ ** ** This file is part of the test suite of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL21$ ** Commercial License Usage ** Licensees holding valid commercia...
; A017168: a(n) = (9*n)^8. ; 0,43046721,11019960576,282429536481,2821109907456,16815125390625,72301961339136,248155780267521,722204136308736,1853020188851841,4304672100000000,9227446944279201,18509302102818816,35114532758015841,63527879748485376,110324037687890625,184884258895036416,300283484326400961,47437316834607129...
.MODEL SMALL .STACK 100h .DATA N1 DB ? N2 DB ? .CODE MOV AX, @DATA MOV DS, AX MOV AH, 1 INT 21h MOV N1, AL SUB N1, 30h MOV AH, 1 INT 21h MOV N2, AL SUB N2, 30h MOV BL, N1 MOV BH, N2 SUB BH, BL CMP BH, 0 JG N2GREATER JS N2SMALLER JMP EXIT N2...
; MMURTL Operating System Source Code ; Written by Richard A. Burgess ; This code is released to the public domain. ; "Share and enjoy....." ;) ;This module contains ALL Video code & Data ; (along with EdLine for lack of a better place) ; ;This module supports MMURTL's Virtual Text Video. ;All...
// Copyright (C) 2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #pragma once #include "ngraph/node.hpp" std::vector<std::int64_t> evaluateTargetShape(const ngraph::Output<ngraph::Node>& value);
; int __CALLEE__ adt_QueuePushBack_callee(struct adt_Queue *q, void *item) ; 09.2005 aralbrec SECTION code_clib PUBLIC adt_QueuePushBack_callee PUBLIC _adt_QueuePushBack_callee PUBLIC asm_adt_QueuePushBack EXTERN _u_malloc .adt_QueuePushBack_callee ._adt_QueuePushBack_callee pop hl pop de ex (sp),hl .asm_...
; A170752: Expansion of g.f.: (1+x)/(1-32*x). ; 1,33,1056,33792,1081344,34603008,1107296256,35433480192,1133871366144,36283883716608,1161084278931456,37154696925806592,1188950301625810944,38046409652025950208,1217485108864830406656,38959523483674573012992,1246704751477586336415744,39894552047282762765303808,12766256655...
; A019489: Define the sequence T(a(0),a(1)) by a(n+2) is the greatest integer such that a(n+2)/a(n+1) < a(n+1)/a(n) for n >= 0. This is T(3,7). ; 3,7,16,36,80,177,391,863,1904,4200,9264,20433,45067,99399,219232,483532,1066464,2352161,5187855,11442175,25236512,55660880,122763936,270764385,597189651,1317143239,2905050864...
#include <boost/bimap/relation/structured_pair.hpp>
MODULE __printf_handle_x SECTION code_clib PUBLIC __printf_handle_x PUBLIC __printf_handle_p EXTERN __printf_number EXTERN __printf_set_base EXTERN __printf_disable_plus_flag EXTERN __printf_set_upper __printf_handle_x: __printf_handle_p: IF __CPU_INTEL__ | __CPU_GBZ80__ ld ...
LXI H,4000 MOV C,M DCR C REPEAT: MOV D,C LXI H,4001 ZONE: MOV A,M INX H CMP M JC TEST MOV B,M MOV M,A DCX H MOV M,B INX H TEST: DCR D JNZ ZONE DCR C JNZ REPEAT RST 1
Entity start Constants 0 S start 1 S var1 2 I 10 3 I 1 4 S writeln End Def start Local variables 0 int var1 End ldconst 2 --> [10] stvar 0 --> [var1] ldvar 0 --> [var1] ldconst 3 --> [1] lcall 4 --> [writeln] stop End End
; ; 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...
;-------------------------------------------------------- ; Category 4 Function 75H Peek character data record ;-------------------------------------------------------- ; ;Purpose ;Peek Character Data Record ;Parameter Packet Format ;I Fleld ;Status ;Data Packet Format ;Length ;WORD ;See "KbdCharln - Read Character, Sc...
; A187107: Number of nontrivial compositions of differential operations and directional derivative of the n-th order on the space R^9. ; 8,8,9,10,12,15,20,28,41,62,96,151,240,384,617,994,1604,2591,4188,6772,10953,17718,28664,46375,75032,121400,196425,317818,514236,832047,1346276,2178316,3524585,5702894,9227472,14930359...
#include "TestUtils.h" #include "stencil/stencil.h" struct TestInterface : public ReflectionBase::Interface<TestInterface> { public: TestInterface() = default; virtual ~TestInterface() = default; DELETE_COPY_AND_MOVE(TestInterface); virtual uint64_t AddNumber(uint64_t...
; --------------------------------------------------------------------------- ; Sprite mappings - Sonic ; --------------------------------------------------------------------------- Map_Sonic_internal: ptr_MS_Null: dc.w MS_Null-Map_Sonic_internal ptr_MS_Stand: dc.w MS_Stand-Map_Sonic_internal ptr_MS_Wait1: dc.w MS_Wai...
; Ellipse Workstation 1100 (fictitious computer) ; Ellipse DOS sample executable (HELLO.COM) ; ; Copyright (c) 2020 Sampo Hippeläinen (hisahi) ; ; 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 th...
/* * Copyright 2008-2010, Ingo Weinhold, ingo_weinhold@gmx.de. * Distributed under the terms of the MIT License. */ // included by vfs.cpp //#define TRACE_VFS_REQUEST_IO #ifdef TRACE_VFS_REQUEST_IO # define TRACE_RIO(x...) dprintf(x) #else # define TRACE_RIO(x...) do {} while (false) #endif #include <heap.h> ...
; A269132: a(n) = n + floor(n*(2*n+1)/5). ; 0,1,4,7,11,16,21,28,35,43,52,61,72,83,95,108,121,136,151,167,184,201,220,239,259,280,301,324,347,371,396,421,448,475,503,532,561,592,623,655,688,721,756,791,827,864,901,940,979,1019,1060,1101,1144,1187,1231 mov $1,$0 add $1,$0 add $1,6 mul $1,$0 div $1,5
// Autogenerated from CppHeaderCreator on 7/27/2020 3:10:13 PM // Created by Sc2ad // ========================================================================= #pragma once #pragma pack(push, 8) // Begin includes #include "utils/typedefs.h" // Including type: System.MulticastDelegate #include "System/MulticastDelegate....
# procedura che converte in maiuscolo una stringa di byte (assumiamo solo caratteri minuscoli) # conversione inplace -> sovrascrive il vettore in argomento # $a0 <- indirizzo del vettore .data a: .ascii "a" z: .ascii "z" .text .globl upper_case_letter upper_case_letter: #preambolo move $t0 $fp addi $fp $sp -4 sw ...
// Copyright 2018 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #include "fxbarcode/cbc_eancode.h" #include <utility> #include "fxbarcode/on...
Name: en-init-3.asm Type: file Size: 4141 Last-Modified: '1993-07-20T07:13:23Z' SHA-1: BCE8CC7A9B52431CC25DDE345521AB8C5985AC11 Description: null
%include "io.inc" section .data N dd 9 ; compute the sum of the first N fibonacci numbers section .text global CMAIN CMAIN: push ebp mov ebp, esp ; TODO: calculate the sum of first N fibonacci numbers ; (f(0) = 0, f(1) = 1) ; store the sum in eax ; use lo...
; A038873: Primes p such that 2 is a square mod p; or, primes congruent to {1, 2, 7} mod 8. ; Submitted by Jon Maiga ; 2,7,17,23,31,41,47,71,73,79,89,97,103,113,127,137,151,167,191,193,199,223,233,239,241,257,263,271,281,311,313,337,353,359,367,383,401,409,431,433,439,449,457,463,479,487,503,521,569,577,593,599,601,607...
; ****************************************************** ; BASIC .ASM template file for AVR ; ****************************************************** .include "C:\VMLAB\include\m8def.inc" ; Define here the variables ; .def temp =r16 ; Define here Reset and interrupt vectors, if any ; reset: rjmp sta...
SECTION code_clib ;INCLUDE "psg/sn76489.inc" PUBLIC bit_open PUBLIC _bit_open PUBLIC bit_open_di PUBLIC _bit_open_di PUBLIC bit_close PUBLIC _bit_close PUBLIC bit_close_ei PUBLIC _bit_close_ei EXTERN __snd_tick EXTERN __bit_irqstatus EXTERN psg_init...
; A302254: Exponent of the group of the Gaussian integers in a reduced system modulo (1+i)^n. ; 1,1,2,4,4,4,4,4,8,8,16,16,32,32,64,64,128,128,256,256,512,512,1024,1024,2048,2048,4096,4096,8192,8192,16384,16384,32768,32768,65536,65536,131072,131072,262144,262144,524288,524288,1048576,1048576,2097152,2097152,4194304,4194...
#include <fstream> using namespace std; ifstream cin("ordsume.in"); ofstream cout("ordsume.out"); void sortare(int n, int a[]){ for(int i=1; i<n; i++) for(int j=i+1; j<=n; j++) if(a[i]>a[j]) swap(a[i], a[j]); } int main(){ int n, x, a[1001], b[10001], k=1; cin>>n; for(int i=1;...
;------------------------------------------------------------------------------ ; ; Copyright (c) 2006 - 2016, 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 distr...
;code start address * = $c000 ;VSCode extension VS64 (ACME cross-assembler) will automatially set output path and filename to the .cache directory ;!to "./testprogram.prg" ;copy $1000-10ff to $2000-200ff ldx #0 loop: lda $1000,x sta $2000,x inx bne loop ;In emulator, setup hitting brk instruction to stop brk
; A016978: a(n) = (6*n + 5)^10. ; 9765625,25937424601,2015993900449,41426511213649,420707233300201,2758547353515625,13422659310152401,52599132235830049,174887470365513049,511116753300641401,1346274334462890625,3255243551009881201,7326680472586200649,15516041187205853449,31181719929966183601,59873693923837890625,1104622...
// Copyright (c) 2005-2014 Code Synthesis Tools CC // // This program was generated by CodeSynthesis XSD, an XML Schema to // C++ data binding compiler. // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as // published by the Fre...
/* * Copyright (c) 2015-2017, 2019-2020 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implementat...
/* * TLS server tickets callbacks implementation * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * 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 cop...
#include "FWCore/Framework/interface/one/EDAnalyzer.h" #include "FWCore/ServiceRegistry/interface/Service.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "FWCore/Framework/interface/Event.h" #include "CondCore/DBOutputService/interface/PoolDBOutputService.h" #include "FWCore/Framework/interface/Even...
; $Id: bit_close_ei.asm,v 1.1 2011/03/18 07:12:41 stefano Exp $ ; ; Enterprise 64/128 1 bit sound functions ; ; (Close sound) and restore interrupts ; ; Stefano Bodrato - 2011 ; XLIB bit_close_ei .bit_close_ei ei ret
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" #include "beatsaber-hook/shared/utils/il2cpp-ut...
_ln: file format elf32-i386 Disassembly of section .text: 00001000 <main>: #include "stat.h" #include "user.h" int main(int argc, char *argv[]) { 1000: f3 0f 1e fb endbr32 1004: 8d 4c 24 04 lea 0x4(%esp),%ecx 1008: 83 e4 f0 and $0xfffffff0,%esp 100b: ff 7...
; A024102: a(n) = 9^n - n. ; 1,8,79,726,6557,59044,531435,4782962,43046713,387420480,3486784391,31381059598,282429536469,2541865828316,22876792454947,205891132094634,1853020188851825,16677181699666552,150094635296999103,1350851717672992070,12157665459056928781,109418989131512359188,984770902183611232859,886293811965250...
_rm: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "stat.h" #include "user.h" 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 ...
//------------------------------------------------------------------------------ // // Copyright (c) 2015, Linaro Limited. All rights reserved. // // SPDX-License-Identifier: BSD-2-Clause-Patent // //------------------------------------------------------------------------------ EXPORT __aeabi_cdrcmple...
INCLUDE "clib_cfg.asm" ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; IF __CLIB_OPT_ERROR ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; verbose mode SECTION code_clib SECTION code_error PUBLIC error_eacces_mc EXTERN __EACCES, errno_mc pop hl error_eacces_mc: ; set hl = -1 ; set carry fl...
/*------------------------------------------------------------------------- * OpenGL Conformance Test Suite * ----------------------------- * * Copyright (c) 2017 The Khronos Group Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the L...
* --------------------------------------------------------------------------- * DisplaySprite * ------------- * Subroutine to manage sprite priority. * Object's priority is read and object is (un)registred in display engine. * priority: 0 - unregistred * priority: 1 - register non moving overlay sprite * priority; 2-8 ...
; A304513: a(n) = 57*2^(n-1) - 38 (n >= 1). ; 19,76,190,418,874,1786,3610,7258,14554,29146,58330,116698,233434,466906,933850,1867738,3735514,7471066,14942170,29884378,59768794,119537626,239075290,478150618,956301274,1912602586,3825205210,7650410458,15300820954,30601641946,61203283930,122406567898,244813135834,489626271...
; A170355: Number of reduced words of length n in Coxeter group on 10 generators S_i with relations (S_i)^2 = (S_i S_j)^43 = I. ; 1,10,90,810,7290,65610,590490,5314410,47829690,430467210,3874204890,34867844010,313810596090,2824295364810,25418658283290,228767924549610,2058911320946490,18530201888518410,16677181699666569...
bits 64 val: default abs mov rax, val ; 32-bit imm mov rax, dword val ; 32-bit imm mov rax, qword val ; 64-bit imm mov rbx, val ; 32-bit imm mov rbx, dword val ; 32-bit imm mov rbx, qword val ; 64-bit imm mov rax, [val] ; 48 8b ... (32-bit disp) mov rax, [dword val] ; 48 8b ... (32-bit disp) mov rax, [qwo...
; A053307: Number of nonnegative integer 2 X 2 matrices with sum of elements equal to n, under row and column permutations. ; 1,1,4,5,11,14,24,30,45,55,76,91,119,140,176,204,249,285,340,385,451,506,584,650,741,819,924,1015,1135,1240,1376,1496,1649,1785,1956,2109,2299,2470,2680,2870,3101,3311,3564,3795,4071,4324,4624,49...
;Initialize PMG PmgInit .PROC mva #>PMG_BUF PMBASE mva #%00000011 PMCNTL ;players + missiles mva #%00110001 GTICTL ;multicolor_player + fifth_player mva #%01010101 SIZEM ;quadruple size of missiles ;Erase PMG mwa #PMG_BUF scr ldx #8 @t ldy #0 @ lda #$0 sta (scr),y iny ...
; Helper functions for setting and restoring the MxCsr register ; ; Author: Daan Sprenkels <hello@dsprenkels.com> global crypto_scalarmult_curve13318_ref12_replace_mxcsr global crypto_scalarmult_curve13318_ref12_restore_mxcsr crypto_scalarmult_curve13318_ref12_replace_mxcsr: stmxcsr dword [rsp-4] mov eax, dwo...
db 0 ; species ID placeholder db 60, 75, 100, 50, 55, 80 ; hp atk def spd sat sdf db STEEL, PSYCHIC ; type db 3 ; catch rate db 153 ; base exp db NO_ITEM, METAL_COAT ; items db GENDER_UNKNOWN ; gender ratio db 40 ; step cycles to hatch INCBIN "gfx/pokemon/metang/front.dimensions" db GROWTH_SLOW...
// // Created by Thijs on 07/04/2019. // #include "SandPiles.h" namespace grid { void SandPiles::draw(unsigned char*&image) { for (auto &a : grid) { for (auto &gp : a) { if (gp->ints.empty()) return; int index = gp->thisX + gp->thisY * HEIGHT; switch (gp->ints[0]) { ...
; A097837: Chebyshev polynomials S(n,51) + S(n-1,51) with Diophantine property. ; Submitted by Jamie Morken(s4) ; 1,52,2651,135149,6889948,351252199,17906972201,912904330052,46540213860451,2372638002552949,120957997916339948,6166485255730784399,314369790044353664401,16026692807006306100052,817046963367277257438251,4165...
; A211221: For any partition of n consider the product of the sigma of each element. Sequence gives the maximum of such values. ; 1,3,4,9,12,27,36,81,108,243,324,729,972,2187,2916,6561,8748,19683,26244,59049,78732,177147,236196,531441,708588,1594323,2125764,4782969,6377292,14348907,19131876,43046721,57395628,129140163,...