text
stringlengths
1
1.05M
; A153040: Numbers n>3 such that 2*n-5 is not a prime. ; Submitted by Jamie Morken ; 7,10,13,15,16,19,20,22,25,27,28,30,31,34,35,37,40,41,43,45,46,48,49,50,52,55,58,60,61,62,63,64,65,67,69,70,73,74,75,76,79,80,82,83,85,87,88,90,91,94,95,96,97,100,103,104,105,106,107,109,110,111,112,113,115,118,120,121,124,125,126,127,1...
; A173309: 19*n*(n+1). ; 0,38,114,228,380,570,798,1064,1368,1710,2090,2508,2964,3458,3990,4560,5168,5814,6498,7220,7980,8778,9614,10488,11400,12350,13338,14364,15428,16530,17670,18848,20064,21318,22610,23940,25308,26714,28158,29640,31160,32718,34314,35948,37620,39330,41078,42864,44688,46550,48450,50388,52364,54378,5643...
; Add Microdrive Information to File List V1.00  1989 Tony Tebby QJUMP ; after Jonathan Oakley section gen_util xdef gu_mdvfl xref gu_prlis include 'dev8_keys_hdr' include 'dev8_keys_qlv' include 'dev8_keys_qdos_io' ...
; A153036: Integer parts of the full Stern-Brocot tree. ; 0,1,0,2,0,0,1,3,0,0,0,0,1,1,2,4,0,0,0,0,0,0,0,0,1,1,1,1,2,2,3,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,2,2,2,2,3,3,4,6,0,0,0,0,0,0,0,0,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,1,1,1 mul $0,4 lpb $0 div $0,2 sub $0,1 add $1,1 mov $2,4 ...
// // Created by root on 11/19/17. // #include "InputStream.h" using namespace Gopherwood::Internal; namespace Gopherwood { InputStream::InputStream(FileSystem &fs, const char *fileName, bool verifyChecksum) { if (!fs.impl) { THROW(GopherwoodIOException, "FileSystem: not connected."); ...
; A077860: Expansion of 1/((1 - 2*x + 2*x^2)*(1-x)). ; 1,3,5,5,1,-7,-15,-15,1,33,65,65,1,-127,-255,-255,1,513,1025,1025,1,-2047,-4095,-4095,1,8193,16385,16385,1,-32767,-65535,-65535,1,131073,262145,262145,1,-524287,-1048575,-1048575,1,2097153,4194305,4194305,1,-8388607,-16777215,-16777215 mov $1,2 mov $2,4 lpb $0 su...
; A142738: Primes congruent to 11 mod 59. ; Submitted by Jon Maiga ; 11,601,719,1427,1663,2017,2371,2843,3079,3433,4259,4967,5557,6029,6619,6737,7681,8389,8861,9923,10159,10513,10631,10867,12401,12637,13109,13463,14407,14879,15233,15823,16649,17239,18301,18773,19009,19717,20071,20543,20897,21487,21841,22549,23021,24083...
void func(const int param) { } auto main() -> int { const double PI = 3.141592; int* ip; ip = new int[10]; ip[4] = 5; const int* ip1; ip1 = new int[10]; // does not compile // ip1[4] = 5; int const* ip2; ip2 = new int[10]; // does not compile // ip2[4] = 5; ...
; Copyright (C) 2020-2021, Vi Grey ; 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 ; notice, this list of conditions and ...
;***************************************************************************** ;*++ ;* Name : $RCSfile: texapiml.asm,v $ ;* Title : texapi assembler routines ;* ASM Author : Sheila Yang ;* Created : 17/4/97 ;* ;* Copyright : 1995-2022 Imagination Technologies (c) ;* License : MIT ;* ;* ...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r15 push %r8 push %r9 push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x727c, %rbx nop cmp %rdx, %rdx mov $0x6162636465666768, %rbp movq %rbp, (%rbx) add %r9, %r9 lea addresses_UC_ht+0x9438, %r10 nop nop nop nop nop and %rbp, %...
; A247619: Start with a single pentagon; at n-th generation add a pentagon at each expandable vertex; a(n) is the sum of all label values at n-th generation. (See comment for construction rules.) ; 1,6,16,36,66,116,186,296,446,676,986,1456,2086,3036,4306,6216,8766,12596,17706,25376,35606,50956,71426,102136,143086,20451...
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 ...
; string pointer in ebx print_string: ; preserve eax and ebx push eax push ebx ; Teletype output mov ah, 0Eh ; loop starts here .loop: ; move al = *ebx mov al, byte [ebx] ; BIOS interrupt, print [al] to screen int 0x10 ; move one char forward inc ebx ; check if char is 0 cmp [ebx], byte 0 ; loop if no...
[org 0x7c00] mov ah, 0x0e ; output tty mov al, lenMes int 0x10 mov al, [text] begin: cmp al, lenMes je end jmp print add al, 0x1 print: int 0x10 end: jmp $ text: db "Hallo welt" lenMes equ $ - text times 510 - ($ - $$) db 0 dw 0xaa55
#include "pch.h" #include "diamond.h" #ifdef DIAMOND_USE_PERMTABLE NAMESPACE_BEGIN(CryptoPP) #ifndef IS_LITTLE_ENDIAN const word32 Diamond2LiteBase::permtable[8][256] = {{0x0,0x1000000,0x0,0x1000000,0x0,0x1000000,0x0,0x1000000, 0x0,0x1000000,0x0,0x1000000,0x0,0x1000000,0x0,0x1000000, 0x0,0x1000000,0x0,0x1...
; Rectangle, Intervals and Points ; 05.2006 aralbrec XLIB r_IsIvalInIval8 LIB RIsIvalInIval8 ; int r_IsIvalInIval8(struct r_Ival8 *i1, struct r_Ival8 *i2) .r_IsIvalInIval8 ld hl,2 add hl,sp ld e,(hl) inc hl ld d,(hl) inc hl ex de,hl ld b,(hl) inc hl ld c,(hl) ex de,hl ld e,(hl) ...
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solution { public: ListNode* reverseList(ListNode* head) { ListNode* current = head; ListNode* prev = NULL; while(current != NU...
/****************************************************************************/ // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo // Copyright (C) 2001-2020 German Aerospace Center (DLR) and others. // This program and the accompanying materials are made available under the // terms of the Ecli...
; _____ _ ; / ____| | | ; | | __ _ ___| |_ ; | | / _` / __| __| ; | |___| (_| \__ \ |_ ; \_____\__,_|___/\__| ; ; Author: Tim Halloran ; From the tutorial at https://lodev.org/cgtutor/raycasting.html cast_x defb 0 cast_step_x defb 0 cast_delta_dist_x defw 0 cast_dist_x defw 0 cast...
; A010003: a(0) = 1, a(n) = 11*n^2 + 2 for n>0. ; 1,13,46,101,178,277,398,541,706,893,1102,1333,1586,1861,2158,2477,2818,3181,3566,3973,4402,4853,5326,5821,6338,6877,7438,8021,8626,9253,9902,10573,11266,11981,12718,13477,14258,15061,15886,16733,17602,18493,19406,20341,21298,22277,23278,24301,25346,26413,27502,28613,297...
_usertests: file format elf32-i386 Disassembly of section .text: 00000000 <main>: return randstate; } 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)2006-2010 Hanchuan Peng (Janelia Farm, Howard Hughes Medical Institute). * All rights reserved. */ /************ ********* LICENSE NOTICE ************ This folder contains all source codes for the V3D project, which is subject to the following conditions if you want to use it. ...
#include "ProgressIndication.h" #include <algorithm> #include <cstddef> #include <numeric> #include <cmath> #include <IO/WriteBufferFromFileDescriptor.h> #include <base/types.h> #include "Common/formatReadable.h" #include <Common/TerminalSize.h> #include <Common/UnicodeBar.h> #include "IO/WriteBufferFromString.h" #incl...
; A231678: a(n) = Sum_{i=0..n} digsum_7(i)^3, where digsum_7(i) = A053828(i). ; 0,1,9,36,100,225,441,442,450,477,541,666,882,1225,1233,1260,1324,1449,1665,2008,2520,2547,2611,2736,2952,3295,3807,4536,4600,4725,4941,5284,5796,6525,7525,7650,7866,8209,8721,9450,10450,11781,11997,12340,12852,13581,14581,15912,17640,17641,...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r15 push %r8 push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x1c8e8, %r8 nop nop nop cmp $61096, %r15 mov $0x6162636465666768, %r12 movq %r12, (%r8) nop nop lfence lea addresses_D_ht+0x184a8, %rsi lea addresses_normal_ht+0x129e8, %rdi nop nop sub...
;/* ; * FreeRTOS Kernel V10.3.1 ; * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. ; * ; * Permission is hereby granted, free of charge, to any person obtaining a copy of ; * this software and associated documentation files (the "Software"), to deal in ; * the Software without restri...
//***************************************************************************** // Copyright 2017-2018 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://w...
ldi sp, MEMORY_END // Setup stack ldi r0, 10000000 loop2: cmpi r0, 0 breq stop call print_alphabet dec r0 jmp loop2 stop: halt print_alphabet: push r0 push r1 ldi r0, 0 ldi r1, 65 // A in decimal loop: cmpi r0, 26 breq end inc r1 inc r0 jmp loop end: pop r1 pop r0 ret
; A017798: Binomial coefficients C(82,n). ; 1,82,3321,88560,1749060,27285336,350161812,3801756816,35641470150,293052087900,2139280241670,14002561581840,82848489359220,446107250395800,2198671448379300,9967310565986160,41738112995067045,162042085745554410,585151976303390925,1971038235969316800,6208770443303347920,1833065...
; ; Kaypro '84 pseudo graphics routines ; Version for the 2x4 graphics symbols, BIOS driven ; ; Stefano Bodrato 2018 ; ; ; Plot pixel at (x,y) coordinate. ; ; ; $Id: plotpixl.asm $ ; INCLUDE "graphics/grafix.inc" SECTION code_clib PUBLIC plotpixel EXTERN div3 EXTERN __gfx_coords ...
#include "utils.hpp" #include "../../src/cpp/asm-dom.hpp" #include <emscripten/val.h> #include <string> using namespace asmdom; void assertEquals(emscripten::val actual, emscripten::val expected) { assert(actual.strictlyEquals(expected)); }; emscripten::val getBodyFirstChild() { return emscripten::val::global("doc...
#include <iostream> #include <vector> using namespace std; int main() { vector<int> num; vector<int> count; int a,flag; while(cin>>a) { flag=-1; for(int i=0;i<num.size();i++) { if(num[i]==a) { flag=i; b...
/* * * Copyright (c) 2020 Project CHIP Authors * Copyright (c) 2016-2017 Nest Labs, Inc. * 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. * You may obtain a copy of the License at * *...
; A174338: a(n) = 97*n^2. ; 0,97,388,873,1552,2425,3492,4753,6208,7857,9700,11737,13968,16393,19012,21825,24832,28033,31428,35017,38800,42777,46948,51313,55872,60625,65572,70713,76048,81577,87300,93217,99328,105633,112132,118825,125712,132793,140068,147537,155200,163057,171108,179353,187792,196425,205252,214273,223488,...
SilphCo2_h: db FACILITY ; tileset db SILPH_CO_2F_HEIGHT, SILPH_CO_2F_WIDTH ; dimensions (y, x) dw SilphCo2Blocks, SilphCo2TextPointers, SilphCo2Script ; blocks, texts, scripts db $00 ; connections dw SilphCo2Object ; objects
; A033175: n 3's followed by 1. ; 1,31,331,3331,33331,333331,3333331,33333331,333333331,3333333331,33333333331,333333333331,3333333333331,33333333333331,333333333333331,3333333333333331,33333333333333331,333333333333333331,3333333333333333331,33333333333333333331,333333333333333333331,3333333333333333333331,33333333333...
; ; sstst: test ssnum & ssind for ; residence & range. ; vars: ssnum,ssind,dirbuf ; flags: .n rng .v res er ; 0 ok 0 yes er0 ; 0 maybe 1 no er1 ; 1 no 0 yes er2 ; 1 no 1 no er3 ; sstest jsr ssset ; set pointer & ss # cmp ssnum ...
.386 .model FLAT,C PUBLIC CopyStr .CODE CopyStr: PUSH EBP MOV EBP, ESP PUSH ESI PUSH EDI MOV ESI, [EBP + 8] MOV EDI, [EBP + 12] MOV ECX, [EBP + 16] CMP EDI, ESI JBE FORWARD MOV EAX, EDI SUB EAX, ESI CMP EAX, ECX JGE FORWARD FORWARD: CLD START: REP MOVSB ...
; A047850: a(n) = (5^n + 3)/4. ; 1,2,7,32,157,782,3907,19532,97657,488282,2441407,12207032,61035157,305175782,1525878907,7629394532,38146972657,190734863282,953674316407,4768371582032,23841857910157,119209289550782,596046447753907 mov $1,5 pow $1,$0 add $1,5 div $1,4 mov $0,$1
#include<iostream> using namespace std; void passbyval(int x, int y) { int z=x; x=y; y=z; cout<<"after swap"<<x<<":-b "<<y<<":- b"<<endl; } int main() { int a=5, b=6; cout<<"before swap"<<a<<":-a "<<b<<":- b"<<endl; passbyval(a,b); return 0; }
; A007891: A Kutz sequence. ; 1,4,1,4,9,4,9,16,9,16,25,16,25,36,25,36,49,36,49,64,49,64,81,64,81,100,81,100,121,100,121,144,121,144,169,144,169,196,169,196,225,196,225,256,225,256,289,256,289,324,289,324,361,324,361,400,361,400,441,400,441,484,441,484,529,484,529,576,529,576,625,576,625,676,625,676,729,676,729,784,729,...
global start section .text bits 32 start: mov dword [0xb8000], 0x2f4b2f4f hlt
#ifndef _OP_PACKETIO_PACKET_TYPE_HPP_ #define _OP_PACKETIO_PACKET_TYPE_HPP_ #include <cstdint> #include <type_traits> namespace openperf::packetio::packet::packet_type { enum class ethernet : uint32_t { none = 0x0, ether = 0x1, timesync = 0x2, arp = 0x3, lldp = 0x4, nsh = 0x5, vlan = 0x6,...
# crtn.asm for ELF based systems # Copyright (C) 1992, 1999, 2000, 2008, 2009 Free Software Foundation, Inc. # Written By David Vinayak Henkel-Wallace, June 1992 # # 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 So...
// (C) Copyright Daniel Frey and Robert Ramey 2009. // Use, modification and distribution are subject to 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). // // See http://www.boost.org/libs/type_traits for most recent version in...
#include "topicintervallcombobox.h" #include <QDebug> TopicIntervallComboBox::TopicIntervallComboBox(QWidget *parent) : QComboBox(parent) { connect(this, QOverload<int>::of(&QComboBox::currentIndexChanged), [=](int index){ qDebug() << itemText(index); }); }
# making a RANDOM NUMBER 0-100 (saved in a0) .macro rand li a1, 100 li a7, 42 ecall .end_macro init_gamefield: addi sp, sp, -20 sw t0, 0(sp) sw t1, 4(sp) sw t2, 8(sp) sw t3, 12(sp) sw ra, 16(sp) la t0, settings lw t1, 28(t0) #density li t2, 0 li t3, 0 init_living_cells: # coords of cell mv a1, t2...
// Distributed under the MIT License. // See LICENSE.txt for details. #define CATCH_CONFIG_RUNNER #include "Framework/TestingFramework.hpp" #include <string> #include <tuple> #include <unordered_map> #include <unordered_set> #include <vector> #include "DataStructures/DataBox/DataBox.hpp" #include "DataStructures/Da...
; =============================================================== ; Dec 2013 ; =============================================================== ; ; void p_forward_list_init(void *p) ; ; Create an empty forward_list in the two bytes of memory ; provided. ; ; =============================================================...
#include "ShaderProperty.h" namespace oengine2d { }
; A329836: Beatty sequence for (11+sqrt(101))/10. ; 2,4,6,8,10,12,14,16,18,21,23,25,27,29,31,33,35,37,39,42,44,46,48,50,52,54,56,58,61,63,65,67,69,71,73,75,77,79,82,84,86,88,90,92,94,96,98,101,103,105,107,109,111,113,115,117,119,122,124,126,128,130 mov $1,$0 mov $2,$0 div $0,6 sub $1,$0 div $1,8 add $1,2 mov $3,$2 mul...
/* * Copyright (c) 2020, Ford Motor Company * 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 source code must retain the above copyright notice, this * list of condit...
; A028837: Iterated sum of digits of n is a square. ; 1,4,9,10,13,18,19,22,27,28,31,36,37,40,45,46,49,54,55,58,63,64,67,72,73,76,81,82,85,90,91,94,99,100,103,108,109,112,117,118,121,126,127,130,135,136,139,144,145,148,153,154,157,162,163,166,171,172,175,180 mov $3,$0 add $0,1 mov $1,$0 gcd $1,3 mov $2,$3 mul $2,3 add ...
;[]-----------------------------------------------------------------[] ;| FISTQ.ASM -- convert long double to quadword integer | ;[]-----------------------------------------------------------------[] ; ; C/C++ Run Time Library - Version 10.0 ; ; Copyright (c) 1991, 2000 by Inprise Corporation...
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r15 push %r9 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x10f1e, %r15 nop and %rsi, %rsi movb (%r15), %r9b nop sub %rdx, %rdx lea addresses_A_ht+0xa47e, %rsi lea addresses_WT_ht+0x1ddbe, %rdi nop sub $52480, %r13 mov $49, %rcx rep m...
bits 64 mov r10, r9
; A028051: Expansion of 1/((1-3x)(1-4x)(1-10x)(1-12x)). ; Submitted by Jon Maiga ; 1,29,555,8905,130091,1796769,23932195,310954985,3969388731,50012943409,623962124435,7725629774265,95088465616171,1164870934296449,14216545739974275,172979498415780745 mov $1,1 mov $2,$0 mov $3,$0 lpb $2 mov $0,$3 dif $2,26 sub $2,...
; A164394: Number of binary strings of length n with no substrings equal to 0001 or 0100. ; 1,2,4,8,14,24,42,74,130,228,400,702,1232,2162,3794,6658,11684,20504,35982,63144,110810,194458,341250,598852,1050912,1844222,3236384,5679458,9966754,17490434,30693572,53863464,94523790,165877688,291095050,510836202,896455042,1573...
; Copyright (c) 2011 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 "media/base/simd/media_export.asm" %include "third_party/x86inc/x86inc.asm" ; ; This file uses SSE, SSE2, SSE3, and SSSE3, which are supported ...
/* ======================================== * Console6Channel - Console6Channel.h * Copyright (c) 2016 airwindows, All rights reserved * ======================================== */ #ifndef __Console6Channel_H #include "Console6Channel.h" #endif void Console6Channel::processReplacing(float **inputs, float **outpu...
/* MIT License Copyright (c) 2017 FMI Open Development / Markus Peura, first.last@fmi.fi 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 rig...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r14 push %r8 push %rbp push %rcx push %rdi push %rsi lea addresses_D_ht+0x1180d, %r10 nop nop nop cmp $45611, %r8 mov (%r10), %esi nop nop nop cmp %r8, %r8 lea addresses_A_ht+0x4d8d, %r14 nop sub $54779, %r11 mov (%r14), %r8 nop nop nop nop nop dec ...
MODULE UPPERRAMTEST ;; OUT ValidBankCount - contains number of available upper banks @CalculateTotalUpperRAM: call AddAllRAMMarkers call DetectAvailableUpperRAM ret @CheckUpperRAM: call UpperRAMPrintTitle @CheckUpperRAMWithoutTitle: call PrintAvailableUpperRAM ld a, 0 ld (FailingBits), a call AddAllRAM...
; A254029: Positive solutions of Monkey and Coconut Problem for the classic case (5 sailors, 1 coconut to the monkey): a(n) = 15625*n - 4 for n >= 1. ; 15621,31246,46871,62496,78121,93746,109371,124996,140621,156246,171871,187496,203121,218746,234371,249996,265621,281246,296871,312496,328121,343746,359371,374996,390621...
// Copyright (c) 2018, Nicola Prezza. All rights reserved. // Use of this source code is governed // by a MIT license that can be found in the LICENSE file. /* * dna_bwt_n.hpp * * Created on: Dec 3, 2018 * Author: nico * * BWT for big files: built in chunks. The class is a template on the string type (co...
lui $1,59343 ori $1,$1,35057 lui $2,26947 ori $2,$2,58668 lui $3,25678 ori $3,$3,7213 lui $4,36422 ori $4,$4,24129 lui $5,59141 ori $5,$5,61314 lui $6,61498 ori $6,$6,26339 mthi $1 mtlo $2 sec0: nop nop nop sltu $3,$6,$2 sec1: nop nop sltu $2,$4,$4 sltu $4,$6,$2 sec2: nop nop xori $2,$3,40523 sltu $1,$6,$2 ...
; A002803: a(n) = (2n+4)!/(4!*n!*(n+1)!). ; 1,15,140,1050,6930,42042,240240,1312740,6928350,35565530,178474296,878850700,4259045700,20359174500,96172862400,449608131720,2082743551350,9569730173850,43651400793000,197809768856700,891085911135420,3992527783658700,17800677233071200,79006629023595000,349209300284289900,1537...
/* @@@LICENSE * * Copyright (c) 2009-2013 LG Electronics, Inc. * * 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 appli...
; A030946: [ exp(2/11)*n! ]. ; Submitted by Jon Maiga ; 1,2,7,28,143,863,6044,48359,435236,4352368,47876054,574512651,7468664474,104561302647,1568419539710,25094712635372,426610114801334,7678982066424012,145900659262056229,2918013185241124594 add $0,1 mov $2,1 lpb $0 mul $1,8 add $1,$0 mul $2,$0 sub $0,1 add...
; A264800: Nearly-Fibonacci sequence. ; 1,1,2,4,5,8,13,21,34,55,89,144,233,377,610,987,1597,2584,4181,6765,10946,17711,28657,46368,75025,121393,196418,317811,514229,832040,1346269,2178309,3524578,5702887,9227465,14930352,24157817,39088169,63245986,102334155,165580141,267914296,433494437,701408733,1134903170,1836311903,...
; A001803: Numerators in expansion of (1 - x)^(-3/2). ; Submitted by Jamie Morken(s1) ; 1,3,15,35,315,693,3003,6435,109395,230945,969969,2028117,16900975,35102025,145422675,300540195,9917826435,20419054425,83945001525,172308161025,1412926920405,2893136075115,11835556670925,24185702762325,395033145117975,805867616040669...
// Checks the representation of dependent names. template //- @T defines/binding DepT <template <typename> class T> struct C { //- @D ref DepTIntD using S = typename T<int>::D; }; //- DepTIntD.text D //- DepTIntD.node/kind lookup //- DepTIntD param.0 DepTInt //- DepTInt.node/kind tapp //- DepTInt param.0 DepT //- DepTI...
; find a string in a string 11/09-92 O.Fink section string include win1_keys_err include win1_mac_xref subr macro rs rxx setstr [rs] [.lab] movem.l [rxx],-(sp) endm subend macro [.lab] movem.l (sp)+,[rxx] rts endm xdef st_fndst ;+++ ; find a string in another string ; abcdefg -> find "de" -...
; A266222: Number of OFF (white) cells in the n-th iteration of the "Rule 7" elementary cellular automaton starting with a single ON (black) cell. ; 0,1,5,0,9,0,13,0,17,0,21,0,25,0,29,0,33,0,37,0,41,0,45,0,49,0,53,0,57,0,61,0,65,0,69,0,73,0,77,0,81,0,85,0,89,0,93,0,97,0,101,0,105,0,109,0,113,0,117,0,121,0,125,0,129,0,1...
; A279100: a(n) = Sum_{k=0..n} ceiling(phi^k), where phi is the golden ratio (A001622). ; 1,3,6,11,18,30,48,78,125,202,325,525,847,1369,2212,3577,5784,9356,15134,24484,39611,64088,103691,167771,271453,439215,710658,1149863,1860510,3010362,4870860,7881210,12752057,20633254,33385297,54018537,87403819,141422341,228826144,...
; A268744: Number of n X 2 binary arrays with some element plus some horizontally or vertically adjacent neighbor totalling two no more than once. ; 4,11,32,89,244,659,1760,4657,12228,31899,82752,213641,549236,1406755,3591232,9140833,23204612,58765099,148496608,374496953,942729588,2369172915,5944748064,14895231121,3727...
bits 64 int 0x80
; A084244: a(0)=1, a(1)=5, a(n) = -3*a(n-1), n>1. ; 1,5,-15,45,-135,405,-1215,3645,-10935,32805,-98415,295245,-885735,2657205,-7971615,23914845,-71744535,215233605,-645700815,1937102445,-5811307335,17433922005,-52301766015,156905298045,-470715894135,1412147682405,-4236443047215 mov $1,5 lpb $0 sub $0,1 mov $2,5 ...
; A228509: a(n) = binomial(n^2+n+1,n) * (n+1) / (n^2+n+1) for n>=0. ; Submitted by Jon Maiga ; 1,2,9,88,1425,32886,992446,37106784,1657248417,86128357150,5107663394691,340427678198400,25194445531808735,2050156960934135340,181938723871328671500,17487609556155439051136,1809886850192627028383553,20067098439256636269801411...
; uint __FASTCALL__ zx_saddr2py(void *pixeladdr) ; aralbrec 06.2007 XLIB zx_saddr2py .zx_saddr2py ld a,l rra rra and $38 ld l,a ld a,h rla rla rla and $c0 or l ld l,a ld a,h and $07 or l ld l,a ld h,0 ret
; A025698: Index of 3^n within sequence of numbers of form 3^i*7^j. ; 1,2,4,6,9,12,16,20,25,31,37,44,51,59,67,76,86,96,107,118,130,142,155,168,182,197,212,228,244,261,278,296,315,334,354,374,395,416,438,461,484,508,532,557,582,608,634,661,689,717,746,775,805,835,866,898,930,963,996 mov $3,$0 add $3,1 mov $4,$0 lpb $3,...
; The recursive function to print decimal UNsigned value of AL register. ; And simpler function to print out binary value of AL register. name "printAL" org 100h mov al, 254 call print_al ; unsigned decimal. call print_nl ; new line. call print_al_bin ; binary (8 bits). ret print_al proc cmp al, 0...
#include "/include/io" #include "/include/math" #include "/include/trace" int main(int argc, char** argv) { int a[3][4], i; int n = sizeof(a) / sizeof(int); trace_log("二维数组修改示例"); trace_array_2d("数组", &a, T_INT, 3, 4); for (i = 0; i < n; i++) ((int*)&a)[i] = i; trace_end("数组"); }
_CeladonMart5Text1:: text "#MON ability" line "enhancers can be" cont "bought only here." para "Use CALCIUM to" line "increase SPECIAL" cont "abilities." para "Use CARBOS to" line "increase SPEED." done _CeladonMart5Text2:: text "I'm here for" line "#MON ability" cont "enhancers." para "PROTEIN increas...
#include <tdme/engine/subsystems/shadowmapping/ShadowMappingShaderRenderFoliageImplementation.h> #include <string> #include <tdme/engine/subsystems/renderer/Renderer.h> #include <tdme/os/filesystem/FileSystem.h> #include <tdme/os/filesystem/FileSystemInterface.h> using std::to_string; using tdme::engine::subsystems...
BITS 32 start: inc ebx cmp eax, 10 jnz start hlt
#include "Platform.inc" #include "FarCalls.inc" #include "Lcd.inc" #include "../../LcdStates.inc" #include "../../../ShiftRegister/ShiftOutMock.inc" #include "TestFixture.inc" radix decimal udata global initialShiftRegisterBuffer global expectedShiftOut1 global expectedShiftOut2 global expectedShiftOut3 ...
.global s_prepare_buffers s_prepare_buffers: push %r15 push %r8 push %r9 push %rax push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x648b, %rdi add %rdx, %rdx movl $0x61626364, (%rdi) nop nop nop nop nop and $62734, %r9 lea addresses_WC_ht+0xc577, %rbp nop nop nop sub %r8, %r8 mov $0x6162636465666...
COMMENT @---------------------------------------------------------------------- Copyright (c) GeoWorks 1989 -- All Rights Reserved PROJECT: PC GEOS MODULE: User/Text FILE: taStorage.asm REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 1/92 Initial version DESCRIPTION: $Id...
/** * 6.5 Basic Practices 2 * 257. Binary Tree Paths(Easy) * * Given the root of a binary tree, return all root-to-leaf paths in any order. * A leaf is a node with no children. * * * Input: root = [1,2,3,null,5] * Output: ["1->2->5","1->3"] * * Input: root = [1] * Output: ["1"] * * * Constraints: ...
COMMENT @---------------------------------------------------------------------- Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: NoPower power management driver FILE: nopower.asm REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 1/92 Initial version ...
; A017014: a(n) = (7*n + 2)^10. ; 1024,3486784401,1099511627776,41426511213649,590490000000000,4808584372417849,27197360938418176,119042423827613001,430804206899405824,1346274334462890625,3743906242624487424,9468276082626847201,22130157888803070976,48398230717929318249,100000000000000000000,196715135728956532249,370722...
; A277800: Decimal representation of the x-axis, from the origin to the right edge, of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 1", based on the 5-celled von Neumann neighborhood. ; 1,0,4,3,16,15,64,63,256,255,1024,1023,4096,4095,16384,16383,65536,65535,262144,262143,1048576,1...
;; calculate fibonacci number pushi #2991 ; pick a big number call :fib popi $a printi $a printc #10 jmp :exit ;; ;; calculates fibonacci sequence ;; ;; input: ;; $sp <int> ;; output: ;; $sp <int> ;; :fib popi $a ; take top of stack as the input; the number of fib sequences we should r...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the LICENSE * file in the root directory of this source tree. */ #include "hermes/BCGen/HBC/PredefinedStringIDs.h" #include "hermes/VM/Predefined.h" #include "hermes/VM/SymbolID.h" #include "llvm/...
/*---------------------------------------------------------------------------*\ Copyright (C) 2011 OpenFOAM Foundation ------------------------------------------------------------------------------- License This file is part of CAELUS. CAELUS is free software: you can redistribute it and/or modify it under...
; Copyright 2002-2019 Intel Corporation. ; ; This software is provided to you as Sample Source Code as defined in the accompanying ; End User License Agreement for the Intel(R) Software Development Products ("Agreement") ; section 1.L. ; ; This software and the related documents are provided as is, with no express or...
; ; SN76489 (a.k.a. SN76494,SN76496,TMS9919,SN94624) sound routines ; by Stefano Bodrato, 2018 ; ; int set_psg(int reg, int val); ; ; Play a sound by PSG ; ; ; $Id: set_psg_callee.asm $ ; IF !__CPU_INTEL__ & !__CPU_RABBIT__ & !__CPU_GBZ80__ SECTION code_clib PUBLIC set_psg_callee PUBLIC _set_psg_callee ...
#include "tensorflow/core/framework/op.h" #include "tensorflow/core/framework/op_kernel.h" #include "tensorflow/core/framework/shape_inference.h" #include <stdio.h> using namespace tensorflow; class HofmeyrKdeOp : public OpKernel { public: explicit HofmeyrKdeOp(OpKernelConstruction* context) : OpKernel(context) {}...