text
stringlengths
1
1.05M
; A014690: a(n) = n + prime(n+1). ; 4,7,10,15,18,23,26,31,38,41,48,53,56,61,68,75,78,85,90,93,100,105,112,121,126,129,134,137,142,157,162,169,172,183,186,193,200,205,212,219,222,233,236,241,244,257,270,275,278,283,290,293,304,311,318,325,328 mov $1,$0 seq $1,98090 ; Numbers k such that 2k-3 is prime. add $0,$1 add $0,...
@@@@@@@@@@@@@@@@@@@@ @@ Gets loaded to 0x6150 (0x6156) 0x668b @@ Input: none???? @@ OR[257]: pointer to some kind of a 'concentrator ordinal' desc. @@ offset 0: some bit-field @@ bit 15 - 1: concentrator active @@ bit 14 - 1: initialization in progress @@ bit 13 - 1: te...
// ------------------------------------------------------------------------------------------------- // Copyright 2017 - NumScale SAS // // Distributed under the Boost Software License, Version 1.0. // See accompanying file LICENSE.txt or copy at // ...
; A201004: Triangular numbers, T(m), that are five-quarters of another triangular number; T(m) such that 4*T(m) = 5*T(k) for some k. ; Submitted by Christian Krause ; 0,45,14535,4680270,1507032450,485259768675,156252138480945,50312703331095660,16200534220474321620,5216521706289400466025,1679703788890966475738475,540859...
; A179006: Partial sums of floor(Fibonacci(n)/4). ; 0,0,0,0,0,1,3,6,11,19,32,54,90,148,242,394,640,1039,1685,2730,4421,7157,11584,18748,30340,49096,79444,128548,208000,336557,544567,881134,1425711,2306855,3732576,6039442,9772030,15811484,25583526,41395022,66978560,108373595,175352169,283725778,459077961,742803753,12018...
.586 .model flat, C .stack 100h .code pshtap macro src, bit ; pushes specified bit to the ebx register through carry flag bt src, bit adc ebx, 0 endm xortap macro src, bit ; xors pushed tap with tap in ebx pshtap src, bit and ebx, 1 endm ; ---ARGS--- ; DWORD - seed __random32 p...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: uiChart.asm AUTHOR: Gene Anderson, Sep 13, 1992 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Descri...
setrepeat 2 frame 0, 11 frame 3, 11 dorepeat 1 endanim
/* file: linear_regression_train_dense_qr_batch_fpt_dispatcher.cpp */ /******************************************************************************* * Copyright 2014 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License....
//////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2014-2019, Lawrence Livermore National Security, LLC. // Produced at the Lawrence Livermore National Laboratory. // Written by the LBANN Research Team (B. Van Essen, et al.) listed in // the CONTRIBUTORS file. <lbann-dev@l...
#pragma once #include "geometry/point2d.hpp" namespace geom_test { typedef m2::PointI P; P arrMain[] = { P(452984832, 654311423), P(452984832, 671088639), P(469762048, 671088639), P(469762048, 654311423) }; P arrB1[] = { P(453543869, 663407648), P(453541856, 663412556), P(453539892, 663412535), P(453539862, 66...
dnl x86 mpn_divrem_2 -- Divide an mpn number by a normalized 2-limb number. dnl Copyright 2007, 2008 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl The GNU MP Library is free software; you can redistribute it and/or modify dnl it under the terms of the GNU Lesser General Public ...
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, instal...
;=============================================================================== ; Copyright 2015-2021 Intel 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.apa...
/* * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, ...
// // Created by stybill on 11/04/2017. // #include "_3_a_false_position_beats_bisection.h" #include "Bisection.h" #include "False_position.h" static void _3_a_false_position_beats_bisection::False_position_beats_bisection() { Bisection::bisection(-100, 10000, 1e-6, 0, 1e3); False_position::false_position(-1...
MBALIGN equ 1 << 0 MEMINFO equ 1 << 1 FLAGS equ MBALIGN | MEMINFO MAGIC equ 0x1BADB002 CHECKSUM equ -(MAGIC + FLAGS) section .multiboot align 4 dd MAGIC dd FLAGS dd CHECKSUM section .bss align 16 stack_bottom: resb 8192 ; 8 KiB stack_top: section .text global _start...
; A186302: ( A007522(n)-1 )/2. ; 3,11,15,23,35,39,51,63,75,83,95,99,111,119,131,135,155,179,183,191,215,219,231,239,243,251,299,303,315,323,359,363,371,375,411,419,431,443,455,459,483,491,495,515,519,531,543,551 mov $2,$0 add $2,1 pow $2,2 lpb $2 add $1,6 sub $2,1 mov $3,$1 seq $3,10051 ; Characteristic functi...
; A268233: Excess of number of 1's over number of 0's in terms 0 through n of A047999. ; 1,2,3,4,3,4,5,6,7,8,9,8,7,6,7,8,9,8,7,8,9,10,9,10,9,10,9,10,11,12,13,14,15,16,17,18,19,18,17,16,15,14,13,12,13,14,15,14,13,12,11,10,9,10,11,12,11,12,11,10,9,8,7,8,7,8,9,10,11,12,11,10,9,8,9,10,11,12,13,12,11,10,11,10,9,8,9,8,7,6,7,...
/* * Vulkan Example - Using subpasses for G-Buffer compositing * * Copyright (C) 2016-2017 by Sascha Willems - www.saschawillems.de * * This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT) * * Summary: * Implements a deferred rendering setup with a forward transparency pass using sub p...
// // FILE NAME: CQCVoice_ThisFacility2.cpp // // AUTHOR: Dean Roddey // // CREATED: 01/02/2016 // // COPYRIGHT: Charmed Quark Systems, Ltd @ 2020 // // This software is copyrighted by 'Charmed Quark Systems, Ltd' and // the author (Dean Roddey.) It is licensed under the MIT Open Source // license: // // https://...
; A228748: Pell numbers (A000129) minus Lucas numbers beginning at 2 (A000032). ; Submitted by Jon Maiga ; -2,0,-1,1,5,18,52,140,361,909,2255,5542,13538,32940,79939,193661,468625,1133118,2738432,6615760,15979301,38589489,93182755,224994602,543236038,1311570360,3166544519,7644930841,18456845405,44559332298 mov $1,-2 mo...
#include "stdafx.h" #include "HotfixManager.h" #include "Hotfix_Manager.h" #ifndef DNS_MAX_NAME_LENGTH #define DNS_MAX_NAME_LENGTH 255 #endif #define REMOTE_STATE 0 #define HOTFIX_STATE 1 static CRITICAL_SECTION CritSec; BSTR CHotfix_ManagerData::m_bstrColumnType; BSTR CHotfix_ManagerData::m_bstrCol...
; A285957: {01->0}-transform of the Thue-Morse word A010060. ; Submitted by Jon Maiga ; 0,1,0,0,0,1,0,0,0,1,0,0,0,0,1,0,0,1,0,0,0,1,0,0,0,1,0,0,1,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,1,0,0,1,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,1,0,0,1,0,0,0,1,0,0,0,1,0,0,1,0,0,0,0,1,0,0 mul $0,2 add $0,1 seq $0,171947...
/* Extract of libtask, just the ARM specific portions. */ /* This software was developed as part of a project at MIT. Copyright (c) 2005-2007 Russ Cox, Massachusetts Institute of Technology Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associate...
;; ;; Upcaste Performance Libraries ;; Copyright (C) 2012-2013 Jesse W. Towner ;; ;; 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 limitatio...
;*------------------------------------------------------------------------ ;* ;* ;* Microsoft Word -- Graphics ;* ;* Hand-code versions of C routines ;* ;*------------------------------------------------------------------------ include w2.inc include noxport.inc include grtiff.inc midGrhc equ 17 ...
; A132798: Period 6: repeat [0, 2, 1, 0, -2, -1]. ; 0,2,1,0,-2,-1,0,2,1,0,-2,-1,0,2,1,0,-2,-1,0,2,1,0,-2,-1,0,2,1,0,-2,-1,0,2,1,0,-2,-1,0,2,1,0,-2,-1,0,2,1,0,-2,-1,0,2,1,0,-2,-1,0,2,1,0,-2,-1,0,2,1,0,-2,-1,0,2,1,0,-2,-1,0,2,1,0,-2,-1 mov $1,2 mov $2,8 lpb $0 sub $0,1 add $1,$2 sub $2,$1 lpe div $1,5 mov $0,$1
; A200262: Partial sums of A200261. ; Submitted by Jon Maiga ; 1,1,1,1,2,3,4,5,5,5,6,7,7,7,7,8,9,9,9,10,11,12,12,12,13,14,15,16,17,17,18,18,18,18,19,19,19,20,21,21,21,22,22,22,22,22,23,23,23,23,24,25,25,26,27,27,27,28,29,29,29,30,31,31,31,31,31,31,32,33,33,33,34,34,34,35,36,36,36,36,37,37,38,39,40,40,40,41,41,41,41,42,...
; A088680: a(n) = prime(2n+1) - prime(2n). ; 2,4,4,4,2,4,4,6,6,2,4,8,2,2,14,6,10,6,4,6,10,4,12,4,4,2,6,6,6,2,14,2,14,10,4,8,6,6,4,10,10,6,6,4,4,8,8,6,2,6,6,2,10,6,6,4,12,2,6,2,4,8,8,8,6,8,4,4,10,2,2,2,14,2,14,2,20,8,8,6,14,6,8,12,6,10,6,2,2,18,2,6,8,6,2 mul $0,2 add $0,2 seq $0,40 ; The prime numbers. div $0,2 mul $0,...
//Based on: https://www.binarytides.com/multiple-socket-connections-fdset-select-linux/ #include "server.h" int main(int argc , char *argv[]) { //Initialize various variables int opt = TRUE; int master_socket , addrlen , new_socket , client_socket[100] , max_clients = 100 , activity, i , valread , sd; in...
; A285474: Binary representation of the diagonal from the origin to the corner of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 3", based on the 5-celled von Neumann neighborhood. ; Submitted by Jon Maiga ; 1,11,100,1111,10000,111111,1000000,11111111,100000000,1111111111,1000000000...
;; ;; 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...
// // Create the top-level scripts for alignment. // #include "Cmdline.h" #include "Disk.h" #include "File.h" #include <string.h> #include <time.h> /* --------------------------------------------------------------- */ /* Macros -------------------------------------------------------- */ /* ------------------------...
INCLUDE MISC.INC MODULE SAFER .386 PUBLIC _saferEncryptBlock, _saferDecryptBlock ; Code to implement the improved SAFER-SK form of the SAFER cipher, ; originally published as "SAFER K-64: A Byte-Oriented Block-Ciphering ; Algorithm", James L. Massey, "Fast Software Encryption", Lecture Notes in ; C...
MOV 0x20,#0xF0 MOV 0x2F,#0xA0 MOV 0x22,#0xFF MOV 0x24,#0xE2 MOV 0xE0,#0x30 MOV 0xF0,#0x0F MOV 0x80,#0xFF CLR 0x07 ;0x20.7 0x70 CLR 0x7D ;0x2F.5 0x80 CLR 0x12 ;0x22.2 0xFB CLR 0x21 ;0x24.1 0xE0 CLR 0xE4 ;0xE0.4 0x20 CLR 0xF2 ;0xF0.2 0x0B CLR 0x87 ;0x80.7 0x7F
; A248423: Multiples of 4 with digits backwards. ; 0,4,8,21,61,2,42,82,23,63,4,44,84,25,65,6,46,86,27,67,8,48,88,29,69,1,401,801,211,611,21,421,821,231,631,41,441,841,251,651,61,461,861,271,671,81,481,881,291,691,2 mul $0,4 seq $0,4086 ; Read n backwards (referred to as R(n) in many sequences).
Include "p16F84A.inc" ; ---------------------------------------------------------- ; General Purpose RAM Assignments ; ---------------------------------------------------------- cblock 0x0C Counter Endc ; ---------------------------------------------------------- ; Macro Definitions ; -------------------------------...
SFX_Battle_28_Ch5: duty_cycle 0 square_note 0, 15, 1, 1984 square_note 0, 15, 1, 1792 sound_loop 12, SFX_Battle_28_Ch5 sound_ret SFX_Battle_28_Ch6: duty_cycle_pattern 2, 3, 0, 3 square_note 0, 14, 1, 1985 square_note 0, 14, 1, 1793 sound_loop 12, SFX_Battle_28_Ch6 sound_ret SFX_Battle_28_Ch8: noise_note ...
#pragma once #ifndef TEST_HELPER_HPP #define TEST_HELPER_HPP #include<gtest/gtest.h> #include <vector> inline void assertFloatArrayEq(std::vector<float> arr1, std::vector<float> arr2, float tol) { ASSERT_EQ(arr1.size(), arr2.size()) << "The two float arrays are not of equal size"; for (int i = 0; i < arr1.size(); +...
#include "Blackboard.h" #include <QDebug> Blackboard::Blackboard() : m_items() { // this space is blank } Topic Blackboard::inspect(QString name) { Topic topic; if (m_items.contains(name)) { topic = m_items[name]; } return topic; } void Blackboard::update(const Topic &a_topic) {...
/* Copyright (C) 1994, 1995, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This file 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 2, or (at your optio...
user/_sh: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <getcmd>: exit(0); } int getcmd(char *buf, int nbuf) { 0: 1101 addi sp,sp,-32 2: ec06 sd ra,24(sp) 4: e822 sd s0,16(sp) 6: e426 sd...
// Copyright (c) 2018 Hartmut Kaiser // // SPDX-License-Identifier: BSL-1.0 // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #3182: bulk_then_execute has unexpected return type/does not compile #include <pik...
// push constant 7 @7 D=A @SP AM=M+1 A=A-1 M=D // push constant 8 @8 D=A @SP AM=M+1 A=A-1 M=D // add @SP A=M-1 D=M @SP M=M-1 A=M-1 MD=D+M
/******************************************************************************* * Copyright 2019 Intel 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.o...
/*******************************************************************\ Module: Author: Daniel Kroening, kroening@kroening.com \*******************************************************************/ #include <assert.h> #include <algorithm> #include <config.h> #include <options.h> #include "simplify_expr_class.h" #inc...
.include "nesaudio.h" .include "pr8.h" .segment "ZEROPAGE" vblankFlag: .RES 1 vblankLastFlag: .RES 1 doNotInterrupt: .RES 1 curPrgBank: .RES 1 oldPrgBank: .RES 1 curWramBank: .RES 1 oldWramBank: .RES 1 tmp0: .RES 1 tmp1: .RES 1 tmp2: .RES 1 tmp3: .RES 1 tmp4: .RES 1 debug0: .RES 1 debug1: .RES 1 VAPU: .RES $15...
; ; Z88dk Generic Floating Point Math Library ; ; divide bc ix de by FA, leave result in FA ; ; $Id: fdiv.asm,v 1.2 2012/04/17 16:37:46 stefano Exp $ XLIB fdiv LIB sgn LIB div14 LIB pack2 LIB norm4 XREF FA XREF EXTRA .fdiv call sgn ret z ;dividing by zero.. LD L,$FF ;"quotie...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r8 push %r9 push %rax push %rcx push %rdi push %rsi lea addresses_D_ht+0xb281, %r12 nop nop nop nop nop add %rdi, %rdi movw $0x6162, (%r12) nop nop nop and %r9, %r9 lea addresses_UC_ht+0x17481, %rax nop nop nop nop nop inc %r10 mov $0x61626364656667...
SECTION code_fp_mbf32 PUBLIC floor EXTERN msbios EXTERN ___mbf32_setup_single EXTERN ___mbf32_return EXTERN ___mbf32_FPADD EXTERN ___mbf32_FPREG EXTERN ___mbf32_discard_fraction floor: call ___mbf32_setup_single call ___mbf32_discard_fraction ld a,(___...
<% from pwnlib.regsort import regsort from pwnlib.constants import Constant, eval from pwnlib.shellcraft import registers from pwnlib.shellcraft.mips import mov %> <%page args="reg_context, stack_allowed = True"/> <%docstring> Sets multiple registers, taking any register dependencies into account (i.e., given e...
///////////////////////////////////////////////////////////////////////////// // apps/graphics/nxwidgets/UnitTests/CTextBox/ctextboxtest.hxx // // Copyright (C) 2012 Gregory Nutt. All rights reserved. // Author: Gregory Nutt <gnutt@nuttx.org> // // Redistribution and use in source and binary forms, with or without ...
// Copyright 2016 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 "ash/mus/test/wm_test_base.h" #include <algorithm> #include <vector> #include "ash/mus/root_window_controller.h" #include "ash/mus/test/wm_test...
; A347272: Main diagonal of the square array A347270. ; Submitted by Jon Maiga ; 1,1,5,4,2,8,26,4,52,1,16,2,1,16,8,2,4,8,4,1,4,1,4,4,4,1,155,1,4,2,395,2,1,2,1,2,1,4,4,4,668,1,4,1,4,2,425,1,1,4,2,4,2,850,425,1,1,2,2,4,2,4858,2429,1,4,2,1,2,1,4,2308,4,3644,1,1,2,1,1,4,4,4,1732,866,2,1,4,2,4,4,1,4,2,1,106,53,2,488,1,4,2 ...
; A060432: Partial sums of A002024. ; 1,3,5,8,11,14,18,22,26,30,35,40,45,50,55,61,67,73,79,85,91,98,105,112,119,126,133,140,148,156,164,172,180,188,196,204,213,222,231,240,249,258,267,276,285,295,305,315,325,335,345,355,365,375,385,396,407,418,429,440,451,462,473,484,495,506,518,530,542,554,566,578,590,602,614,626,638,...
SECTION code_clib SECTION code_l_sccz80 PUBLIC dldpsh PUBLIC dpush EXTERN fa ;----------------------------------------- ; Load FA from (hl) and push FA onto stack ;----------------------------------------- dldpsh: ld de,fa ld c,a ld b,6 loop: ld a,(hl) ld (...
; A262620: Number of "ON" cells at n-th stage in simple 2-dimensional cellular automaton on the square grid (see Comments lines for definition). ; 1,5,17,21,49,69,81,85,145,197,241,277,305,325,337,341,465,581,689,789,881,965,1041,1109,1169,1221,1265,1301,1329,1349,1361,1365,1617,1861,2097,2325,2545,2757,2961,3157,3345,...
; A008264: Coordination sequence for tridymite, lonsdaleite, and wurtzite. ; 1,4,12,25,44,67,96,130,170,214,264,319,380,445,516,592,674,760,852,949,1052,1159,1272,1390,1514,1642,1776,1915,2060,2209,2364,2524,2690,2860,3036,3217,3404,3595,3792,3994,4202,4414,4632,4855,5084,5317,5556,5800,6050,6304,6564,6829,7100,7375,76...
; MALLOC function for far memory model ; 29/3/00 GWL ; 30/3/00 Changed size type to long, so >64K mallocs possible ; ; $Id: malloc_far.asm,v 1.4 2015/01/19 01:32:43 pauloscustodio Exp $ ; PUBLIC malloc_far EXTERN malloc_table,pool_table,farpages,farmemspec EXTERN free_loop include "mem...
.gba .create "output.bin",0 .org 100h label: ; let's test != first before relying on it .if 2 != 2 .error "!= Operator broken" .elseif 2 != 3 .else .error "!= Operator broken" .endif ; test to string operator .macro checksn,exp,value .if °(exp) != (value) .error "Error: " + °(exp) + " != " + (value) .endif ...
// ************************************************************************ // Copyright (c) 2007 Lawrence Livermore National Security, LLC. // Produced at the Lawrence Livermore National Laboratory. // Written by the PSUADE team. // All rights reserved. // // Please see the COPYRIGHT_and_LICENSE file for the copyrig...
; A083420: a(n) = 2*4^n - 1. ; 1,7,31,127,511,2047,8191,32767,131071,524287,2097151,8388607,33554431,134217727,536870911,2147483647,8589934591,34359738367,137438953471,549755813887,2199023255551,8796093022207,35184372088831,140737488355327,562949953421311,2251799813685247,9007199254740991,36028797018963967,144115188075...
/* * 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 <Atom/Feature/Utils/ProfilingCaptureBus.h> #include <Atom/RHI.Reflect/CpuTimingStatistics...
#section that turns on lights in sequential order until 99, or from point when button was pressed Light: #special register is set to 0 ASSIGNI $7 0 #takes inputs from all the buttons and stores them first 4 registers IN $0 $0 IN $1 $1 IN $2 $2 IN $3 $3 #stores total values of all inputs into sing...
/****************************************************************************** * * Project: AeronavFAA Translator * Purpose: Implements OGRAeronavFAADriver. * Author: Even Rouault, even dot rouault at mines dash paris dot org * ****************************************************************************** *...
/** * Copyright (C) Omar Thor <omarthoro@gmail.com> - All Rights Reserved * Unauthorized copying of this file, via any medium is strictly prohibited * Proprietary and confidential * * Written by Omar Thor <omarthoro@gmail.com>, 2017 */ #ifndef SP_ALGO_NN_MATRIX_HPP #define SP_ALGO_NN_MATRIX_HPP #include "config...
; Output the byte on the top of the data stack in hexadecimal representation. ; S: a -- $COLON 'H.2',$HOUT2 CW $BTOH, $EMIT, $EMIT $END_COLON
; A157820: 27225n^2 + 2n. ; 27227,108904,245031,435608,680635,980112,1334039,1742416,2205243,2722520,3294247,3920424,4601051,5336128,6125655,6969632,7868059,8820936,9828263,10890040,12006267,13176944,14402071,15681648,17015675,18404152,19847079,21344456,22896283,24502560,26163287,27878464,29648091,31472168,33350695,352...
#include "B.h" #include <iostream> void B::afficher() const { std::cout << attribut_; } B::B(int p) { attribut_ = p; }
#include "string.h" #include "hash.h" #include <library/cpp/unittest/registar.h> #include <map> #include "mapfindptr.h" Y_UNIT_TEST_SUITE(TMapFindPtrTest) { struct TTestMap : std::map<int, TString>, TMapOps<TTestMap> {}; Y_UNIT_TEST(TestDerivedClass) { TTestMap a; a[42] = "cat"; UN...
; A046854: Triangle T(n, k) = binomial(floor((n+k)/2), k), n>=0, n >= k >= 0. ; 1,1,1,1,1,1,1,2,1,1,1,2,3,1,1,1,3,3,4,1,1,1,3,6,4,5,1,1,1,4,6,10,5,6,1,1,1,4,10,10,15,6,7,1,1,1,5,10,20,15,21,7,8,1,1,1,5,15,20,35,21,28,8,9,1,1,1,6,15,35,35,56,28,36,9,10,1,1,1,6,21,35,70,56,84,36,45,10,11,1,1,1,7,21,56,70,126,84,120,45 l...
; A319210: a(n) = phi(n^2 - 1)/2 where phi is A000010. ; 1,2,4,4,12,8,18,16,30,16,60,24,48,48,64,48,144,48,108,80,132,80,220,96,180,144,252,96,420,128,300,256,240,192,432,216,432,288,480,192,840,240,504,440,552,352,966,320,672,480,832,432,1040,432,720,672,1044,448,1740,480,1080,960,864,640,1584,640,1452,768,1540,576,25...
; Arquivo: Pow.nasm ; Curso: Elementos de Sistemas ; Criado por: Luciano Soares ; Data: 27/03/2017 ; Eleva ao quadrado o valor da RAM[1] e armazena o resultado na RAM[0]. ; Só funciona com números positivos leaw $R1, %A movw (%A), %D leaw $R2, %A movw %D, (%A) leaw $R5, %A movw %D, (%A) leaw $0, %A movw %A, %S leaw $R...
; A238303: Triangle T(n,k), 0<=k<=n, read by rows given by T(n,0) = 1, T(n,k) = 2 if k>0. ; 1,1,2,1,2,2,1,2,2,2,1,2,2,2,2,1,2,2,2,2,2,1,2,2,2,2,2,2,1,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2 lpb $0 add $2,1 sub $0,$2 lpe lpb $0 div $0,15 ...
; SBSEXT_TK2_ROM - TK2 ROM header 2017 TT & MK section header xref init ; xref mdv_io xref ut_fdev include 'dev8_keys_qlv' include 'dev8_keys_sys' include 'dev8_keys_qdos_sms' rom_header dc.l $4AFB0001 dc.w 0 ; No BASIC extension dc.w rom_init-rom_header ; Initialisation routine ; banner will be...
;-----------------------------------------------------------------------------; ; Author: HD Moore ; Compatible: Confirmed Windows 7, Windows 2008 Server, Windows XP SP1, Windows SP3, Windows 2000 ; Known Bugs: Incompatible with Windows NT 4.0, buggy on Windows XP Embedded (SP1) ; Version: 1.0 ;------------------------...
// Mapper 2: UxROM //define LOG_MAPPER2() scope Mapper2: { Init: addi sp, 8 sw ra, -8 (sp) jal InitUxPRGROM la_gp(a0, Write) jal Write lli cpu_t0, 0 // Hard wired CHR ROM mapping 0x0000-0x2000 (8K) ls_gp(lw t0, chrrom_start) lli t1, 8 lli t2, 0 - sw t0, ppu_map (t2) addi t1, -1 bnez t1,- ...
/* * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file...
/* bloda.cc This file is part of Cygwin. This software is a copyrighted work licensed under the terms of the Cygwin license. Please consult the file "CYGWIN_LICENSE" for details. */ #define cygwin_internal cygwin_internal_dontuse #include <stdio.h> #include <assert.h> #define WIN32_NO_STATUS /* Disable ...
RRA ADDAC RES0D SET4mHL LDDmHL BIT3L LDED ADCAD RES2D ORH LDEC XORA INCL RES7C LDmHLH INCL RLCmHL LDEL LDEC BIT0L SET0mHL LDCA LDBC RES4L RLL RES1H SCF LDEmHL SRAL RES4mHL LDHD RES4A SRAmHL RRCC SET4mHL BIT5D LDmHLL BIT2C RES7H XORE DECA LDLL ANDL CPH LDDE CPB RRD SLAD RR...
; A166711: Permutation of the integers: two positives, one negative. ; 0,1,2,-1,3,4,-2,5,6,-3,7,8,-4,9,10,-5,11,12,-6,13,14,-7,15,16,-8,17,18,-9,19,20,-10,21,22,-11,23,24,-12,25,26,-13,27,28,-14,29,30,-15,31,32,-16,33,34,-17,35,36,-18,37,38,-19,39,40,-20,41,42,-21,43,44,-22,45,46,-23,47,48,-24,49,50,-25,51,52,-26,53,54...
; ; RCM2/3000 Stdio ; ; $Id: getk.asm,v 1.3 2016-06-12 17:32:01 dom Exp $ ; SECTION code_clib PUBLIC getk PUBLIC _getk EXTERN rcmx000_cnvtab EXTERN __recvchar .getk ._getk ; extern int __LIB__ fgetc(FILE *fp); ; return result in HL, when done ; We ignore FILE* fp (in BC) for now call __recvchar ...
.include "myTiny13.h" .equ SCROLLSPEED, 40 ; This Programm analysed 2 bytes to make a sequence of numbers ; who represents the LEDs, which have to be ON : ; ; Positions (0=off) ; --------------------- ; 11,10, 9, 8 ; 15,14,13,12 ; 23,22,21,20 ; 19,18,17,16 ; Register to Load up- and down-Byte U = 18 D = 19 ; Like u...
; A274179: Expansion of f(x^1, x^6) in powers of x where f() is Ramanujan's general theta function. ; 1,1,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,...
;; Copyright (C) 2016 Ben Kurtovic <ben.kurtovic@gmail.com> ;; Released under the terms of the MIT License. See LICENSE for details. ; ----- CRATER UNIT TESTING SUITE --------------------------------------------- ; 04-basic.asm ; Basic instruction test .org $0000 main: di ld a, $23 inc a call foo foo: push bc ...
db DEX_NINETALES ; pokedex id db 73 ; base hp db 76 ; base attack db 75 ; base defense db 100 ; base speed db 100 ; base special db FIRE ; species type 1 db FIRE ; species type 2 db 75 ; catch rate db 178 ; base exp yield INCBIN "pic/bmon/ninetales.pic",0,1 ; 77, sprite dimensions dw NinetalesPicFront dw NinetalesPicBa...
// C++ implementation of Radix Sort #include <iostream> using namespace std; // A utility function to get maximum value in arr[] int getMax(int arr[], int n) { int mx = arr[0]; for (int i = 1; i < n; i++) if (arr[i] > mx) mx = arr[i]; return mx; } // A function to do counting sort of arr[] according to // the...
; A000435: Normalized total height of all nodes in all rooted trees with n labeled nodes. ; Submitted by Jamie Morken(s3) ; 0,1,8,78,944,13800,237432,4708144,105822432,2660215680,73983185000,2255828154624,74841555118992,2684366717713408,103512489775594200,4270718991667353600,187728592242564421568,8759085548690928992256...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r14 push %rax push %rbx push %rdi push %rsi lea addresses_WT_ht+0x1dbaf, %rbx sub %r13, %r13 mov $0x6162636465666768, %rdi movq %rdi, %xmm4 vmovups %ymm4, (%rbx) add $53673, %r14 lea addresses_A_ht+0x1516f, %rbx nop dec %r12 mov (%rbx), %r13d nop no...
bits 64 section .data CONST: equ 5 section .text global assembly assembly: mov eax, CONST + 1 ret
;------------------------------------------------------------------------------ ; ; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR> ; SPDX-License-Identifier: BSD-2-Clause-Patent ; ; Module Name: ; ; SetMem32.nasm ; ; Abstract: ; ; SetMem32 function ; ; Notes: ; ;------------------------------------...
/* The MIT License (MIT) * * (c) Jürgen Simon 2014 (juergen.simon@uni-bonn.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...
dnl IBM POWER mpn_sub_n -- Subtract two limb vectors of equal, non-zero dnl length. dnl Copyright 1992, 1994, 1995, 1996, 1999, 2000, 2001, 2005 Free Software dnl Foundation, Inc. dnl This file is part of the GNU MP Library. dnl The GNU MP Library is free software; you can redistribute it and/or modify dnl it...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r15 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x1c815, %rsi lea addresses_D_ht+0x815, %rdi clflush (%rsi) nop nop and $26975, %r11 mov $49, %rcx rep movsb nop nop nop nop nop add %rdx, %rdx lea addresses_D_ht+0x2d15, %rsi...
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %rax push %rbx push %rdx // Faulty Load lea addresses_D+0x9344, %rdx nop sub $63686, %r10 movb (%rdx), %bl lea oracles, %rax and $0xff, %rbx shlq $12, %rbx mov (%rax,%rbx,1), %rbx pop %rdx pop %rbx pop %...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Berkeley Softworks 1994 -- All Rights Reserved PROJECT: PC GEOS MODULE: Brother NIKE 56-jet printer FILE: nike56Cursor.asm AUTHOR: Dave Durran ROUTINES: Name Description ---- ----------- REVISI...
5D_Header: sHeaderInit ; Z80 offset is $C749 sHeaderPatch 5D_Patches sHeaderTick $01 sHeaderCh $01 sHeaderSFX $80, $C0, 5D_PSG3, $00, $00 5D_PSG3: sNoisePSG $E7 dc.b nB4, $08 5D_Loop1: dc.b nAb6 saVolPSG $01 sLoop $00, $03, 5D_Loop1 dc.b $10, sHold sStop 5D_Patches:
FuchsiaMart_Script: jp EnableAutoTextBoxDrawing FuchsiaMart_TextPointers: dw FuchsiaCashierText dw FuchsiaMartText2 dw FuchsiaMartText3 FuchsiaMartText2: TX_FAR _FuchsiaMartText2 db "@" FuchsiaMartText3: TX_FAR _FuchsiaMartText3 db "@"