text
stringlengths
1
1.05M
#ifndef Rice__Data_Type__hpp_ #define Rice__Data_Type__hpp_ #include "Data_Type_defn.hpp" #include "Data_Type.ipp" #endif // Rice__Data_Type__hpp_
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. //this file contains implementations of the C API #include <cassert> #include "onnxruntime_typeinfo.h" #include "core/framework/tensor.h" #include "core/framework/tensorprotoutils.h" #include "core/framework/sparse_tensor....
0x0000 (0x000000) 0x2100- f:00020 d: 256 | A = OR[256] 0x0001 (0x000002) 0x5800- f:00054 d: 0 | B = A 0x0002 (0x000004) 0x2101- f:00020 d: 257 | A = OR[257] 0x0003 (0x000006) 0x1407- f:00012 d: 7 | A = A + 7 (0x0007) ...
; Substitute for z80 cpdr instruction ; aralbrec 02.2008 ; flag-perfect emulation of cpdr SECTION code_crt0_sccz80 PUBLIC rcmx_cpdr .rcmx_cpdr jr nc, enterloop call enterloop scf ret .loop dec hl .enterloop dec bc cp (hl) jr z, match inc c dec c jr nz, loop inc b d...
db 0 ; species ID placeholder db 95, 23, 48, 23, 23, 48 ; hp atk def spd sat sdf db PSYCHIC, PSYCHIC ; type db 125 ; catch rate db 44 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F50 ; gender ratio db 100 ; unknown 1 db 20 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/wynaut...
.file "test.c" .code16gcc .intel_syntax noprefix .text .p2align 2,,3 .globl _start .def _start; .scl 2; .type 32; .endef _start: push ebx sub esp, 44 call _getch movsx eax, al mov DWORD PTR [esp], eax call _putchar call _newline call _getchar movsx eax, al mov DWORD PTR [esp], eax call _putchar call ...
;=============================================================================== ; Copyright 2015-2019 Intel Corporation ; All Rights Reserved. ; ; If this software was obtained under the Intel Simplified Software License, ; the following terms apply: ; ; The source code, information and material ("Material") co...
; A266956: Numbers m such that 9*m+7 is a square. ; 1,2,18,21,53,58,106,113,177,186,266,277,373,386,498,513,641,658,802,821,981,1002,1178,1201,1393,1418,1626,1653,1877,1906,2146,2177,2433,2466,2738,2773,3061,3098,3402,3441,3761,3802,4138,4181,4533,4578,4946,4993,5377,5426 seq $0,156638 ; Numbers n such that n^2 + 2 ==...
// // Programmer: Craig Stuart Sapp <craig@ccrma.stanford.edu> // Creation Date: Sun Apr 15 10:43:19 PDT 2018 // Last Modified: Sun Apr 15 11:01:11 PDT 2018 // Filename: midifile/src-programs/removenote.cpp // Syntax: C++11 // // Description: Demonstration of how to remove a MIDI message. // #include ...
//===--- MemAccessUtils.cpp - Utilities for SIL memory access. ------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
/* * Author: Sven Gothel <sgothel@jausoft.com> * Copyright (c) 2020 Gothel Software e.K. * Copyright (c) 2020 ZAFENA AB * * 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...
/* Template for Signa1, Signal2, ... classes that support signals with 1, 2, ... parameters Begin: 2007-01-23 */ // Copyright Frank Mori Hess 2007-2008 // // Use, modification and // distribution is subject to the Boost Software License, Version // 1.0. (See accompanying file LICENSE_1_0.txt or copy at...
; =============================================================== ; 2017 ; =============================================================== ; ; void tshc_scroll_wc_up(struct r_Rect8 *r, uchar rows, uchar attr) ; ; Scroll screen upward by rows pixels and clear vacated area. ; ; ==========================================...
.size 8000 .text@48 jp lstatint .text@100 jp lbegin .data@143 c0 .text@150 lbegin: ld a, 00 ldff(ff), a ld a, 30 ldff(00), a ld a, 01 ldff(4d), a stop, 00 ld c, 41 ld b, 02 ld d, 03 lbegin_waitm2: ldff a, (c) and a, d cmp a, b jrnz lbegin_waitm2 ld a, 08 ldff(c), a ld a, 02 ldff(ff), a ei ld ...
#include "actor.h" #include "uuid.h" namespace kin { Actor::Actor(const std::string actor_type, const std::string id, const Vector r, const Vector v): Actor(nullptr, actor_type, id, r, v) {} Actor::Actor(Universe *universe, const std::string actor_type, const std::string id, const Vect...
; A144607: Christoffel word of slope 9/11. ; 0,0,1,0,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0,1 mov $1,$0 lpb $1 add $0,3 sub $1,10 lpe pow $0,$1 sub $0,1 mod $0,2
; Run with: gobaby -l 9 -p=f examples/simple_calc.asm ; Will perform the calculation: 5 - 3 = 2 ; So output will be along the lines of: ; Value at memory location #09: 2 ; The lines are formatted in the following manner: ; [word index] [3 letter mnemonic] [optional address or value parameter] [comment] 00 JM...
; A047478: Numbers that are congruent to {1, 5, 7} mod 8. ; 1,5,7,9,13,15,17,21,23,25,29,31,33,37,39,41,45,47,49,53,55,57,61,63,65,69,71,73,77,79,81,85,87,89,93,95,97,101,103,105,109,111,113,117,119,121,125,127,129,133,135,137,141,143,145,149,151,153,157,159,161,165,167,169,173,175,177,181,183,185,189,191,193,197,199,2...
 /* Layout は UIElement の派生とするべきか? 一番困るのは、レイアウトをネストするとき、デザイナ上で他の UIElement と同じような処理で操作できなくなること。 意外と Element と Layout が独立してるのって Qt Widgets くらいなんだよな…。 */ #include "Internal.hpp" #include <LuminoEngine/Font/Font.hpp> // for UILayoutContext #include <LuminoEngine/UI/UIStyle.hpp> #include <LuminoEngine/UI/UILa...
; ; jidctfst.asm - fast integer IDCT (64-bit SSE2) ; ; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB ; Copyright 2009 D. R. Commander ; ; Based on ; x86 SIMD extension for IJG JPEG library ; Copyright (C) 1999-2006, MIYASAKA Masaru. ; For conditions of distribution and use, see copyright notice in jsimd...
; A071840: Number of primes == 3 mod 8 <= n. ; 0,0,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7 mov $2,$0 mov $3,$0 lpb $3 mov $0,$2 sub $3,1 sub $0,$3 ...
; A022088: Fibonacci sequence beginning 0, 5. ; Submitted by Jon Maiga ; 0,5,5,10,15,25,40,65,105,170,275,445,720,1165,1885,3050,4935,7985,12920,20905,33825,54730,88555,143285,231840,375125,606965,982090,1589055,2571145,4160200,6731345,10891545,17622890,28514435,46137325,74651760,120789085 mov $3,1 lpb $0 sub $0,1 ...
; A233737: a(n) = 9*binomial(5*n+9, n)/(5*n+9). ; Submitted by Christian Krause ; 1,9,81,759,7371,73656,752913,7838298,82832706,886322710,9583986555,104568156819,1149793519368,12728471356944,141747219186705,1586867219265060,17848735288114995,201607141031660871,2285899896222757346,26008027474874327190,296840444852078282...
SECTION rodata_font_fzx PUBLIC _ff_dkud1_MahJongg _ff_dkud1_MahJongg: BINARY "font/fzx/fonts/dkud1/MahJongg/MAH-JONGG.fzx"
; nasm -felf64 print_call.asm -o print_call.o ; ld -o print_call.out print_call.o ; chmod u+x print_call.out ; ./print_call.out section .data newline_char: db 10 codes: db '0123456789ABCDEF' section .text global _start print_newline: mov rax, 1 ; 'write' system call identifier mov rdi, 1 ...
; A008756: Expansion of (1+x^13)/((1-x)*(1-x^2)*(1-x^3)). ; 1,1,2,3,4,5,7,8,10,12,14,16,19,22,25,29,33,37,42,47,52,58,64,70,77,84,91,99,107,115,124,133,142,152,162,172,183,194,205,217,229,241,254,267,280,294,308,322,337,352,367,383,399,415,432,449,466,484,502,520,539,558,577,597,617,637,658,679,700,722,744,766,789,812,...
; ********************************************************** ; * Name : Simon, Gordon * ; * Date : 30/08/2003 * ; * Description : Program Reads an analogue value from * ; * an LDR and converts it to a digital * ; * value and is sent to a remote reciever * ; * (PC or ...
; A022116: Fibonacci sequence beginning 2, 13. ; 2,13,15,28,43,71,114,185,299,484,783,1267,2050,3317,5367,8684,14051,22735,36786,59521,96307,155828,252135,407963,660098,1068061,1728159,2796220,4524379,7320599,11844978,19165577,31010555,50176132,81186687,131362819,212549506,343912325,556461831,900374156,1456835987,23572...
.include "defaults_chip.asm" table_file_jp equ "exe4-utf8.tbl" table_file_en equ "bn4-utf8.tbl" game_code_len equ 3 game_code equ 0x4234574A // B4WJ game_code_2 equ 0x42345745 // B4WE game_code_3 equ 0x42345750 // B4WP card_type equ 0 card_id equ 2 card_no equ "002" card_sub equ "Rare Chip Data Distributi...
; A320453: a(n) = (n^n + n*(-1)^n)/(n + 1). ; 0,2,6,52,520,6666,102942,1864136,38742048,909090910,23775972550,685853880636,21633936185160,740800455037202,27368368148803710,1085102592571150096,45957792327018709120,2070863582910344082918,98920982783015679456198,4993219047619047619047620,265572137199362841880960200,148446...
_mkdir: 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 ...
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) | | Copyrigh...
; Write a constant value to an IO port in 3 cycles. ; - The address to which to write. ; - A r* to clobber. ; - The value to write. .macro out_immediate ldi @1, @2 out @0, @1 .endm ; Write a two-byte constant value to an IO port in 6 cycles. ; - The address of the first address to which to write. ; - A r* to clobb...
bin/app.elf: file format elf32-littlearm Disassembly of section .text: c0d00000 <main>: } dummy_setting_1 = N_storage.dummy_setting_1; dummy_setting_2 = N_storage.dummy_setting_2; } __attribute__((section(".boot"))) int main(void) { c0d00000: b5b0 push {r4, r5, r7, lr} c0d00002: b08c su...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r15 push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0x903e, %rsi lea addresses_D_ht+0xb43e, %rdi clflush (%rsi) nop nop nop nop nop xor %rbx, %rbx mov $102, %rcx rep movsb nop nop nop nop nop inc %rdi lea addresses_WT_ht+0x293e, %rsi lea...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r13 push %r15 push %r9 push %rcx push %rdi push %rsi lea addresses_D_ht+0xebf5, %rsi lea addresses_A_ht+0x141e4, %rdi nop nop nop nop nop lfence mov $108, %rcx rep movsl nop nop sub %r9, %r9 lea addresses_D_ht+0xa2e4, %r13 and %rsi, %rsi mov (%r13),...
// Copyright 2017-2019 The Verible 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law o...
#include "nw.h" #define MATCH_SCORE 1 #define MISMATCH_SCORE -1 #define GAP_SCORE -1 #define ALIGN '\\' #define SKIPA '^' #define SKIPB '<' #define MAX(A,B) ( ((A)>(B))?(A):(B) ) #define JOBS_PER_BATCH 256 #define UNROLL_FACTOR 64 #define JOBS_PER_PE ((JOBS_PER_BATCH)/(UNROLL_FACTOR)) void needwun(char SEQA[ALEN],...
/* rsspp - Copyright (C) 2008-2011 Andreas Krennmair <ak@newsbeuter.org> * Licensed under the MIT/X Consortium License. See file LICENSE * for more information. */ #include <config.h> #include <rsspp_internal.h> #include <cstring> #define RSS_1_0_NS "http://purl.org/rss/1.0/" namespace rsspp { void rss_10_pars...
//+------------------------------------------------------------------------- // // Microsoft Windows // // Copyright (C) Microsoft Corporation, 1995 - 1999 // // File: initlib.cpp // // Contents: Install cert server // //-------------------------------------------------------------------------- ...
bits 64 extern number section .text global assembly assembly: call number add eax, 111 ret
#include "engine-precompiled-header.h" #include "EngineEventType.h" std::ostream& operator<<(std::ostream& o, longmarch::EngineEventType n) { const char* s = 0; #define PROCESS_VAL(p) case(p): s = #p; break; switch (n) { PROCESS_VAL(longmarch::EngineEventType::GC); PROCESS_VAL(longmarch::EngineEventType:...
#importonce #import "./zeropage_map.asm" #import "./mem_map.asm" #import "./const.asm" .macro failCheck (id, videoPos) { txa and #id beq !+ lda #$02 //"b" sta VIDEO_RAM+videoPos lda #$01 //"a" ...
/* Copyright (c) 2010-2014 Stanford University * Copyright (c) 2015 Diego Ongaro * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE ...
; A016993: a(n) = 7*n+1. ; 1,8,15,22,29,36,43,50,57,64,71,78,85,92,99,106,113,120,127,134,141,148,155,162,169,176,183,190,197,204,211,218,225,232,239,246,253,260,267,274,281,288,295,302,309,316,323,330,337,344,351,358,365,372,379,386,393,400,407,414,421,428,435,442,449,456,463,470,477,484,491,498,505,512,519,526,533,54...
; A164073: a(n) = 2*a(n-2) for n > 2; a(1) = 1, a(2) = 3. ; 1,3,2,6,4,12,8,24,16,48,32,96,64,192,128,384,256,768,512,1536,1024,3072,2048,6144,4096,12288,8192,24576,16384,49152,32768,98304,65536,196608,131072,393216,262144,786432,524288,1572864,1048576,3145728,2097152,6291456,4194304,12582912,8388608,25165824,16777216,5...
; A173034: Sequence whose G.f is f such that: f(z)=8/(1-2*z)-12/(1-z)+z+5. ; 1,5,20,52,116,244,500,1012,2036,4084,8180,16372,32756,65524,131060,262132,524276,1048564,2097140,4194292,8388596,16777204,33554420,67108852,134217716,268435444,536870900,1073741812,2147483636 lpb $0 sub $0,1 add $2,2 mul $2,2 lpe mov $0...
; int obstack_vprintf(struct obstack *obstack, const char *format, void *arg) SECTION code_clib SECTION code_stdio PUBLIC _obstack_vprintf EXTERN asm_obstack_vprintf _obstack_vprintf: pop af pop hl pop de pop bc push bc push de push hl push af jp asm_obstack_vprintf
; A170154: Number of reduced words of length n in Coxeter group on 49 generators S_i with relations (S_i)^2 = (S_i S_j)^38 = I. ; 1,49,2352,112896,5419008,260112384,12485394432,599298932736,28766348771328,1380784741023744,66277667569139712,3181328043318706176,152703746079297896448,7329779811806299029504,351829430966702...
#pragma once #include <Arduino.h> #include "gridui.h" #include "rbprotocol.h" #include "rbwebserver.h" #include "rbwifi.h" #include <TFT_eSPI.h> #include "WiFi.h" #include <WiFiClient.h> #include "Pletacka_config.hpp" #include "EEPROM.h" using namespace rb; using namespace gridui; class Pletacka_UI { priva...
;*! ;* \copy ;* Copyright (c) 2009-2013, Cisco Systems ;* 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 abo...
; A056081: Numbers that are congruent to {1,26} mod 27. ; 1,26,28,53,55,80,82,107,109,134,136,161,163,188,190,215,217,242,244,269,271,296,298,323,325,350,352,377,379,404,406,431,433,458,460,485,487,512,514,539,541,566,568,593,595,620,622,647,649,674,676,701,703 mov $2,$0 add $0,5 lpb $0,1 sub $0,2 add $3,11 add ...
; uchar __CALLEE__ *zx_pxy2saddr_callee(uchar xcoord, uchar ycoord, uchar *mask) ; aralbrec 06.2007 XLIB zx_pxy2saddr_callee XDEF ASMDISP_ZX_PXY2SADDR_CALLEE .zx_pxy2saddr_callee pop hl pop de pop bc ex (sp),hl ld h,c .asmentry ; enter: l = pix X 0..255 ; h = pix Y 0..191 ; ...
; Executable name : SHOWCHAR ; Version : 1.0 ; Created date : 5/11/2009 ; Last update : 5/15/2009 ; Author : Jeff Duntemann ; Description : A simple program in assembly for Linux, using NASM 2.05, ; demonstrating discontinuous string writes to memory using STOSB without ; REP. Th...
<% from pwnlib.shellcraft.arm.linux import syscall %> <%page args="size"/> <%docstring> Invokes the syscall epoll_create. See 'man 2 epoll_create' for more information. Arguments: size(int): size </%docstring> ${syscall('SYS_epoll_create', size)}
; A332149: a(n) = 4*(10^(2*n+1)-1)/9 + 5*10^n. ; Submitted by Jon Maiga ; 9,494,44944,4449444,444494444,44444944444,4444449444444,444444494444444,44444444944444444,4444444449444444444,444444444494444444444,44444444444944444444444,4444444444449444444444444,444444444444494444444444444,44444444444444944444444444444,444444...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r9 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_D_ht+0x9596, %r11 nop nop nop nop nop add $29256, %r13 movb $0x61, (%r11) nop nop nop and $38612, %rsi lea addresses_A_ht+0xbd19, %rbp nop dec %r9 mov $0x6162636465666768, %r13 movq ...
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r14 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0xee72, %rsi lea addresses_WC_ht+0x1a940, %rdi nop nop nop nop xor %rbx, %rbx mov $127, %rcx rep movsq nop sub $37317, %r13 lea addresses_normal_ht+0x926e, %rsi lea addresses_D_ht+0xfc6...
; A233247: Expansion of ( 1-x^3-x^2 ) / ( (x^3-x^2-1)*(x^3+2*x^2+x-1) ). ; 1,1,1,4,9,16,36,81,169,361,784,1681,3600,7744,16641,35721,76729,164836,354025,760384,1633284,3508129,7535025,16184529,34762816,74666881,160376896,344473600,739894401,1589218225,3413480625,7331811876,15747991081,33825095056,72652889764,1560510710...
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/common/media_router/media_route.h" #include "chrome/common/media_router/media_sink.h" #include "chrome/common/media_router/media_source_...
############################################################################### # Copyright 2018 Intel Corporation # All Rights Reserved. # # If this software was obtained under the Intel Simplified Software License, # the following terms apply: # # The source code, information and material ("Material") containe...
; A055607: a(2n+1) = n^2 - 1 + A002620(n), a(2n) = a(2n-1) + n. ; 0,0,2,4,7,10,14,19,24,30,36,44,51,60,68,79,88,100,110,124,135,150,162,179,192,210,224,244,259,280,296,319,336,360,378,404,423,450,470,499,520,550,572,604,627,660,684,719,744,780,806,844,871,910,938,979,1008 mov $2,$0 mov $4,$0 lpb $4,1 mov $0,$2 sub...
; A176043: a(n) = (2*n-1)*(n-1)^(n-1). ; 1,1,3,20,189,2304,34375,606528,12353145,285212672,7360989291,210000000000,6562168424053,222902511206400,8177627877990831,322248197941182464,13574710601806640625,608742554432415203328,28953409166021786746195,1455817098785971890290688,77158366570752229975835181,4299161600000000000...
#include "VisualShaderNodeGlobalExpression.hpp" #include <core/GodotGlobal.hpp> #include <core/CoreTypes.hpp> #include <core/Ref.hpp> #include <core/Godot.hpp> #include "__icalls.hpp" namespace godot { VisualShaderNodeGlobalExpression::___method_bindings VisualShaderNodeGlobalExpression::___mb = {}; void Visu...
; A006454: Solution to a Diophantine equation: each term is a triangular number and each term + 1 is a square. ; 0,3,15,120,528,4095,17955,139128,609960,4726275,20720703,160554240,703893960,5454117903,23911673955,185279454480,812293020528,6294047334435,27594051024015,213812329916328,937385441796000,7263325169820735,318...
; float __fsmul (float a1, float a2) SECTION code_fp_math48 PUBLIC cm48_sdccixp_dsmul EXTERN cm48_sdccixp_dread2, am48_dmul, cm48_sdccixp_m482d cm48_sdccixp_dsmul: ; multiply two sdcc floats ; ; enter : stack = sdcc_float a2, sdcc_float a1, ret ; ; exit : dehl = sdcc_float(a1*a2) ; ; uses :...
; example of how calling a function works. ; fn push(r0): addr = 2, len = 2 jmp +4 spc r5; push() starts here sub sp 1 xchg x0 sp ; r0 <> mem[sp] spc r5; push() ends here jmp -4 ; fn pop(r0): addr = 5 ; values to be pushed xor x0 17 ; call setup. ; push actually starts at 3, but remember ; that PC auto-incre...
;=============================================================================== ; Copyright 2014-2020 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...
; A086302: a(n) = 4*n^4 + 24*n^3 + 48*n^2 + 36*n + 8. ; 8,120,528,1520,3480,6888,12320,20448,32040,47960,69168,96720,131768,175560,229440,294848,373320,466488,576080,703920,851928,1022120,1216608,1437600,1687400,1968408,2283120,2634128,3024120,3455880,3932288,4456320,5031048 add $0,2 mov $1,$0 sub $0,1 mul $1,$0 bin $...
#pragma once #include <Windows.h> #include <smmintrin.h> #include <cstdint> #include <cmath> #include <limits> #include <iostream> #include <sstream> using VPANEL = unsigned int; using HFont = unsigned long; using HScheme = unsigned long; using HTexture = unsigned long; using HCursor = unsigned long; using HPanel = u...
; =============================================== ; Big Font Demo ; ----------------------------------------------- ; This demo uses the character LCD ; It generates a set of custom characters which ; are combined to form a custom double-row font ; The font data is stored in the data region of ; memory. ; -------------...
; A131901: 2*A002024 - A131821. ; Submitted by Jon Maiga ; 1,2,2,3,5,3,4,7,7,4,5,9,9,9,5,6,11,11,11,11,6,7,13,13,13,13,13,7,8,15,15,15,15,15,15,8,9,17,17,17,17,17,17,17,9,10,19,19,19,19,19,19,19,19,10 lpb $0 add $2,1 sub $0,$2 lpe add $0,$2 lpb $0 mul $2,2 gcd $0,$2 lpe mov $0,$2 add $0,1
; A088137: Generalized Gaussian Fibonacci integers. ; 0,1,2,1,-4,-11,-10,13,56,73,-22,-263,-460,-131,1118,2629,1904,-4079,-13870,-15503,10604,67717,103622,4093,-302680,-617639,-327238,1198441,3378596,3161869,-3812050,-17109707,-22783264,5762593,79874978,142462177,45299420,-336787691,-809473642,-608584211,1211252504,424...
;; @file ; SEC CAR function ; ; Copyright (c) 2015, 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 distribution. The full text of the license may be found at ;...
; A016766: a(n) = (3*n)^2. ; 0,9,36,81,144,225,324,441,576,729,900,1089,1296,1521,1764,2025,2304,2601,2916,3249,3600,3969,4356,4761,5184,5625,6084,6561,7056,7569,8100,8649,9216,9801,10404,11025,11664,12321,12996,13689,14400,15129,15876,16641,17424,18225,19044,19881,20736,21609,22500,23409,24336,25281,26244,27225,28224,...
; =============================================================== ; Aug 2015 ; =============================================================== ; ; uint16_t in_pause(uint16_t dur_ms) ; ; Busy wait until duration milliseconds have passed or until a ; key is pressed. If dur_ms == 0, wait forever for a keypress. ; ; ===...
LDA #$37 BEQ LABEL OUT A LABEL: LDA #$FF OUT A
db "COTTONWEED@" ; species name dw 207, 70 ; height, weight db "Even in the fierc-" next "est wind, it can" next "control its fluff" page "to make its way to" next "any place in the" next "world it wants.@"
dnl ARM64 mpn_cnd_add_n, mpn_cnd_sub_n dnl Contributed to the GNU project by Torbjörn Granlund. dnl Copyright 2012, 2013, 2017 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl dnl The GNU MP Library is free software; you can redistribute it and/or modify dnl it under the terms of...
// Test that address vars are turned into load/store and located at hardcoded addresses // Hard-coded zero-page address - global variable // Commodore 64 PRG executable file .file [name="address-0.prg", type="prg", segments="Program"] .segmentdef Program [segments="Basic, Code, Data"] .segmentdef Basic [start=$0801] ...
; A152266: a(n) = ((9 + sqrt(7))^n + (9 - sqrt(7))^n)/2. ; Submitted by Christian Krause ; 1,9,88,918,10012,112284,1280224,14735016,170493712,1978495632,22996386688,267526283616,3113740490176,36250383835584,422090112767488,4915093625981568,57237016922874112,666549376289097984 mov $1,1 mov $3,1 lpb $0 sub $0,1 mov ...
.8086 .model small .stack 100h .data string db "Myname0" char db '3' msg_found db "Found" msg_not_found db 'Not Found' .code main: mov ax, @data mov ds, ax lea si, string mov ah, char looper: mov al, [si] ; End of String cmp al, '0' je not_found inc si cmp al, char je found jne looper f...
; A065890: Number of composites less than the n-th prime. ; 0,0,1,2,5,6,9,10,13,18,19,24,27,28,31,36,41,42,47,50,51,56,59,64,71,74,75,78,79,82,95,98,103,104,113,114,119,124,127,132,137,138,147,148,151,152,163,174,177,178,181,186,187,196,201,206,211,212,217,220,221,230,243,246,247,250,263,268,277,278,281,286,293,298,303...
############################################################################### # Copyright 2018 Intel Corporation # All Rights Reserved. # # If this software was obtained under the Intel Simplified Software License, # the following terms apply: # # The source code, information and material ("Material") containe...
; A136268: Cyclic p-roots of prime lengths p(n). ; 2,6,70,924,184756,2704156,601080390,9075135300,2104098963720,7648690600760440,118264581564861424,442512540276836779204,107507208733336176461620,1678910486211891090247320,410795449442059149332177040 seq $0,6005 ; The odd prime numbers together with 1. trn $0,2 mul $0,2...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ScreenInit: lda $D011 and #%10011111 ora #%00100000 sta $D011 lda $D016 and #%11101111 ifndef Mode2Color ora #%00010000 ;1=Multicolor 4 color ;0=standard 2 color endif sta $D016 ...
;DIS - C interface, Large memory model CBEG MACRO ;C/Assembler procedure begin push bp mov bp,sp push si push di push ds ENDM CEND MACRO ;C/Assembler procedure end pop ds pop di pop si pop bp ret ENDM movpar MACRO reg,par ;loads parameter [par(0..)] to register [reg] mov reg,[bp+par*2...
; 10 SYS (2304) *=$0801 BYTE $0E, $08, $0A, $00, $9E, $20, $28 BYTE $32, $33, $30, $34, $29, $00, $00, $00 ;******************************************************************************* ;* Reverses the screen * ;* ...
; A277168: Coefficients in the series reversion of x*exp(-x^2). ; Submitted by Jon Maiga ; 1,6,300,41160,11022480,4870182240,3211179491520,2955402450000000,3619848890071814400,5693251850259515942400,11182902317022859155532800,26829777470359851910918195200,77205601373291015625000000000000,2624627316095006171056852666521...
:start; push ixi; pop axa; dec; push axa; pop hxh; mov axa ff 04; push axa; pop ixi; read; shl; shl; mov b a; // joy Y read; mov c a; // joy X // byte in a row switch a; load fe; switch a; shr; shr; shr; or b; push axa; pop ixi; zero; inc; rotr; mov d a; //sets bit x mov a c; not; load and 7; inc; mov c a; // ite...
/* * FILE: 985C.cpp * * @author: Arafat Hasan Jenin <arafathasanjenin[at]gmail[dot]com> * * LINK: * * DATE CREATED: 26-05-18 13:33:36 (+06) * LAST MODIFIED: __last_modified * * DESCRIPTION: * * DEVELOPMENT HISTORY: * Date Version Description * --------------------------------------------------...
// osimSimmFileWriterDLL.cpp //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ /* * Copyright (c) 2008, Stanford University. All rights reserved. * Use of the OpenSim software in source form is permitted provided that the following * conditions are met: * 1. The software is used only f...
; A017072: a(n) = (8*n)^8. ; 0,16777216,4294967296,110075314176,1099511627776,6553600000000,28179280429056,96717311574016,281474976710656,722204136308736,1677721600000000,3596345248055296,7213895789838336,13685690504052736,24759631762948096,42998169600000000,72057594037927936,117033789351264256,184884258895036416,28493...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r8 push %rbp push %rbx push %rcx push %rdi lea addresses_A_ht+0x1b673, %rdi nop nop nop nop nop add $15229, %rcx movb $0x61, (%rdi) add $27788, %r8 lea addresses_normal_ht+0x1036b, %rbp clflush (%rbp) nop cmp $40724, %r12 movw $0x6162, (%rbp) nop no...
; A079921: Solution to the Dancing School Problem with n girls and n+2 boys: f(n,2). ; 3,7,14,26,46,79,133,221,364,596,972,1581,2567,4163,6746,10926,17690,28635,46345,75001,121368,196392,317784,514201,832011,1346239,2178278,3524546,5702854,9227431,14930317,24157781,39088132,63245948,102334116,165580101 mov $2,$0 add $...
/* * Copyright (C) 2012-2016 Open Source Robotics Foundation * * 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 ...
; A170454: Number of reduced words of length n in Coxeter group on 13 generators S_i with relations (S_i)^2 = (S_i S_j)^45 = I. ; 1,13,156,1872,22464,269568,3234816,38817792,465813504,5589762048,67077144576,804925734912,9659108818944,115909305827328,1390911669927936,16690940039135232,200291280469622784 add $0,1 mov $3...
#include <bits/stdc++.h> #define fi first #define se second #define pb push_back #define maxn 1000003 using namespace std; typedef pair<int,int> pi; int T,n,m,ans; int ar[2*maxn]; int curr[maxn]; int used[maxn]; void io() { freopen("input.txt","r",stdin); freopen("output.txt","w",stdout); } void input() { scanf("...
#include "saver.h" #include "base/datawriter.h" #include "base/datetime.h" #include "base/holder.h" #include <algorithm> Saver::Saver(std::string path, std::vector<std::string> symbols) : cursyms(symbols) { Datetime dt(GetSystemTime()); char buf[1024]; snprintf(buf, 1024, "%s/%04d_%02d_%02d.csv", pat...
.include "mcu/msp430g2553.inc" .macro delay(cnt) mov #{cnt}, r8 delay_loop: dec r8 jnz delay_loop .end_macro {mem_code}: mov #{mem_ram_end + 1}, r1 ; MUST HAVE mov #{wdtctl_wdtpw + wdtctl_wdthold}, &{wdtctl} ; stop wdt mov.b &{cal_bc1_1mhz}, &{bcsctl1} mov.b &{cal_dco_1mhz}, &{dcoctl} bis.b #{...