text
stringlengths
1
1.05M
//------------------------------------------------------------------------------ /* This file is part of divvyd: https://github.com/xdv/divvyd Copyright (c) 2012, 2013 Ripple Labs Inc. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby grant...
; Licensed to the .NET Foundation under one or more agreements. ; The .NET Foundation licenses this file to you under the MIT license. ; See the LICENSE file in the project root for more information. ;; ==++== ;; ;; ;; ==--== #include "ksarm64.h" #include "asmconstants.h" #include "asmmacros.h" IMPORT VirtualMet...
; ; Grundy NewBrain clock() ; ; stefano 5/4/2007 ; ; ------ ; $Id: clock.asm,v 1.3 2015/01/19 01:33:24 pauloscustodio Exp $ ; PUBLIC clock EXTERN nbclockptr .clock ld hl,(nbclockptr) ld c,(hl) inc hl ld b,(hl) inc hl ld e,(hl) inc hl ld d,(hl) ld h,b ld l,c ret
%include "macros.asm" global _start section .data message: define_byte "Ahe{jda", 10 length: equ $-message section .text %assign CAP 'a' - 'A' _start: mov preserved (0), message mov preserved (1), length mov preserved (2), length loop: cmp byte [preserved (0)], 'a' jb end_loop cmp byte [preserved (0)],...
; A134154: a(n) = 15n^2 - 9n + 1. ; 1,7,43,109,205,331,487,673,889,1135,1411,1717,2053,2419,2815,3241,3697,4183,4699,5245,5821,6427,7063,7729,8425,9151,9907,10693,11509,12355,13231,14137,15073,16039,17035,18061,19117,20203,21319,22465,23641 mov $1,$0 bin $0,2 mul $0,5 add $1,$0 mul $1,6 add $1,1
; A053388: A053398(8, n). ; 3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,5,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,6,6,6,6,6,6,6,6,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,5,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,7,7,7,7,7,7,7,7,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,3,3,...
.segment "ZEROPAGE" nmi_ready: .res 1 palette_init: .res 1 .segment "CODE" nmi: pha ; make sure we don't clobber the A register lda nmi_ready ; check the nmi_ready flag bne nmi_go ; if nmi_ready set to 1 we can execute the nmi code pla rti nmi_g...
; A022398: Fibonacci sequence beginning 1, 28. ; Submitted by Jamie Morken(s4) ; 1,28,29,57,86,143,229,372,601,973,1574,2547,4121,6668,10789,17457,28246,45703,73949,119652,193601,313253,506854,820107,1326961,2147068,3474029,5621097,9095126,14716223,23811349,38527572,62338921,100866493,163205414,264071907,427277321,6913...
// Copyright (c) 2018, Ryo Currency Project // Portions copyright (c) 2014-2018, The Monero Project // // Portions of this file are available under BSD-3 license. Please see ORIGINAL-LICENSE for details // All rights reserved. // // ombre changes to this code are in public domain. Please note, other licences may apply ...
_ReceiveItem:: call DoesHLEqualNumItems jp nz, PutItemInPocket push hl call CheckItemPocket pop de ld a, [wItemAttributeParamBuffer] dec a ld hl, .Pockets rst JumpTable ret .Pockets: ; entries correspond to item types dw .Item dw .KeyItem dw .Ball dw .TMHM dw .Berry dw .Medicine .Item: ld h, d ld l,...
;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-; ; Autogenerated - DO NOT MODIFY bits 16 cpu 8086 ;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-; ;ASCII: 0x20 global table_space table_space: dw 0b0000000000000000,0b0000000000000000,0b00...
; TEST_INSTR ; All instructions in various combinations for testing Lexer and ; Assembler components. ; ; Note that this code makes no actual sense ; ; Stefan Wong 2020 MOVE_INSTR: MOV A, B MOV B, C MOV A, M PUSH D MOV E, A MVI C, 2 POP D MEM_I...
#include <bits/stdc++.h> using namespace std; #define fastio ios_base::sync_with_stdio(0);cin.tie(NULL);cout.tie(NULL) #define PI(a,b) pair<a,b> #define MP make_pair #define EB emplace_back #define MOD 1000000007 #define int long long #define S ...
/* Copyright (c) 2006-2016, Arvid Norberg 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 conditions and ...
;; ;; Copyright (c) 2017-2018, 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...
; For this program to work, we need to innitate a DOS (Disk Operating System) interrupt, specifically int 21h ; Most of the general functions and services offered by DOS are implemented through this interrupt ; See the full list of all 21h dos function codes here: http://spike.scu.edu.au/~barry/interrupts.html ; ...
; ----------------------------------------------------------------------------- ; ZX0 decoder by Einar Saukas & introspec ; "Mega" version (677 bytes, 28% faster) - BACKWARDS VARIANT ; ----------------------------------------------------------------------------- ; Parameters: ; HL: last source address (compressed dat...
HandleStoneQueue:: ldh a, [hROMBank] push af call SwitchToMapScriptsBank call .WarpAction pop bc ld a, b rst Bankswitch ret .WarpAction: ld hl, OBJECT_MAP_OBJECT_INDEX add hl, de ld a, [hl] cp $ff ret nc ld l, a push hl call .IsObjectOnWarp pop hl ret nc ld d, a ld e, l call .IsObjectInStoneTab...
; A106565: Let M={{0, 5}, {1, 5}}, v[n]=M.v[n-1]; then a(n) =v[n][[1]]. ; 0,5,25,150,875,5125,30000,175625,1028125,6018750,35234375,206265625,1207500000,7068828125,41381640625,242252343750,1418169921875,8302111328125,48601406250000,284517587890625,1665594970703125 mov $1,1 lpb $0 sub $0,1 mov $2,$3 add $3,$1 m...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r15 push %r9 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_D_ht+0xfa21, %r9 nop nop nop nop nop and %rcx, %rcx movb $0x61, (%r9) nop nop nop nop and $25362, %rsi lea addresses_normal_ht+0x1dd5, %rsi lea addresses_normal_ht+0xd56, %rdi nop an...
; A329506: Expansion of (1 + x)*(1 + 2*x + 2*x^2 - 2*x^3) / (1 - x). ; 1,4,8,8,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6...
SECTION "fixed org", SRAM[$BEAD] ds 42 static_assert @ == $BED7 align 5,$17 ; Should land at $0001 SECTION "align", ROM0,ALIGN[1,1] db 69 align 1 ; This wants to go at $0000, $0002, $0004... ; Should land at $0003 SECTION "under-aligned", ROM0,ALIGN[1,1] dw $BEEF align 2,1 ; This wants to go at $0001, $0005,...
// Author: Mingcheng Chen (linyufly@gmail.com) #include <vtkStructuredPoints.h> #include <vtkSmartPointer.h> #include <vtkStructuredPointsReader.h> #include <vtkGradientFilter.h> #include <vtkIndent.h> #include <vtkPointData.h> #include <vtkDataArray.h> #include <cstdio> #include <iostream> const char *kDataFile = ...
; A266447: Number of ON (black) cells in the n-th iteration of the "Rule 25" elementary cellular automaton starting with a single ON (black) cell. ; 1,1,2,3,4,6,4,10,4,14,4,18,4,22,4,26,4,30,4,34,4,38,4,42,4,46,4,50,4,54,4,58,4,62,4,66,4,70,4,74,4,78,4,82,4,86,4,90,4,94,4,98,4,102,4,106,4,110,4,114,4,118,4,122,4,126,4,...
; AesOpt.asm -- AES optimized code for x86 AES hardware instructions ; 2021-12-25 : Igor Pavlov : Public domain include 7zAsm.asm ifdef __ASMC__ use_vaes_256 equ 1 else ifdef ymm0 use_vaes_256 equ 1 endif endif ifdef use_vaes_256 ECHO "++ VAES 256" else ECHO "-- NO VAES 256" endif ifdef...
object_const_def ; object_event constants const ILEXFORESTAZALEAGATE_OFFICER const ILEXFORESTAZALEAGATE_GRANNY IlexForestAzaleaGate_MapScripts: db 0 ; scene scripts db 0 ; callbacks IlexForestAzaleaGateOfficerScript: jumptextfaceplayer IlexForestAzaleaGateOfficerText IlexForestAzaleaGateGrannyScript: jumptex...
%ifndef DEBUG %macro INT_Debug 1 %endmacro %else %macro INT_Debug 1 push ax push ds mov ax, Data_Segment mov ds, ax call IPC_KbdPeek jz %%1 cmp al, 46h jnz %%1 call IPC_KbdClear mov al, [Data_Debug] xor al, 01h mov [Data_Debug], al %%1: test [Data_Debug], byte 1 pop ds ...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE606_Unchecked_Loop_Condition__char_file_84_goodB2G.cpp Label Definition File: CWE606_Unchecked_Loop_Condition.label.xml Template File: sources-sinks-84_goodB2G.tmpl.cpp */ /* * @description * CWE: 606 Unchecked Input For Loop Condition * BadSource: file Read i...
/* Copyright 2016 The TensorFlow Authors. 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 Unless required by applicable law or a...
/* * platform_mac.cpp * fbplugin * */ #include <stdlib.h> #include <dlfcn.h> #include <CoreServices/CoreServices.h> #include <CoreFoundation/CoreFoundation.h> #include <ApplicationServices/ApplicationServices.h> #include <SystemConfiguration/SystemConfiguration.h> #include <SystemConfiguration/SCDynamicStore.h> ...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r9 push %rax push %rcx push %rdi push %rsi lea addresses_normal_ht+0x1d7a6, %rsi lea addresses_UC_ht+0x6b0e, %rdi nop nop nop cmp $45045, %r11 mov $5, %rcx rep movsq nop nop nop nop nop xor $778, %r9 lea addresses_normal_ht+0x27a6, %r13 nop nop nop ...
CE_Header: sHeaderInit ; Z80 offset is $DC15 sHeaderPatch CE_Patches sHeaderTick $01 sHeaderCh $01 sHeaderSFX $80, $05, CE_FM5, $00, $01 CE_FM5: sPatFM $00 dc.b nC5, $06, nA4, $16 sStop CE_Patches: ; Patch $00 ; $3C ; $05, $01, $0A, $01, $56, $5C, $5C, $5C ; $0E, $11, $11, $11, $09, $0A, $06, $0A ...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r14 push %rax push %rbp push %rsi lea addresses_normal_ht+0xb8e0, %r10 nop nop nop nop nop add $49372, %rsi and $0xffffffffffffffc0, %r10 movaps (%r10), %xmm7 vpextrq $0, %xmm7, %rax nop nop sub $7967, %r14 lea addresses_A_ht+0x4300, %rbp ...
Name: z00_char1.asm Type: file Size: 64395 Last-Modified: '2016-05-13T04:36:32Z' SHA-1: BAEFB115514ACD76718A6FD79B69F8A43302A37D Description: null
; A231721: Partial sums of phitorials: a(n) = A001088(1)+A001088(2)+...+A001088(n). ; 1,2,4,8,24,56,248,1016,5624,24056,208376,945656,9793016,62877176,487550456,3884936696,58243116536,384392195576,6255075618296,53220543000056,616806151581176,6252662237392376,130241496125238776,1122152167228009976,20960365589283433976,2...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r13 push %r8 push %rax push %rcx push %rdi push %rsi lea addresses_A_ht+0x159ff, %rdi nop nop nop nop nop sub $8473, %r13 mov $0x6162636465666768, %rcx movq %rcx, %xmm3 and $0xffffffffffffffc0, %rdi vmovntdq %ymm3, (%rdi) nop nop nop inc %rdi lea ad...
// Copyright 2020 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 "components/arc/ime/key_event_result_receiver.h" #include "base/callback_helpers.h" #include "base/test/bind.h" #include "base/test/metrics/hist...
#include "DXCommon.h" #include "RHI.h" #include "Public/D3D12RHI.h" #include "Utils.h" #include <rapidjson/rapidjson.h> #include <rapidjson/document.h> #include <Core/Os.h> #include <Core/AssetManager.h> NS_K3D_D3D12_BEGIN using namespace rapidjson; /** * @see Data/Test/GfxRootParameter.json */ void GfxRootParameter...
; A254643: Third partial sums of ninth powers (A001017). ; 1,515,21225,324275,2862790,17714466,85232910,339635850,1168343775,3571356685,9906622271,25333920885,60457751900,135939162100,290221510860,592024274916,1159935330765,2192313968775,4011847886725,7130537084615,12342661609026,20855490677750,34470176952250,558285279...
; A158593: a(n) = 38*n^2 + 1. ; 1,39,153,343,609,951,1369,1863,2433,3079,3801,4599,5473,6423,7449,8551,9729,10983,12313,13719,15201,16759,18393,20103,21889,23751,25689,27703,29793,31959,34201,36519,38913,41383,43929,46551,49249,52023,54873,57799,60801,63879,67033,70263,73569,76951,80409,83943,87553,91239,95001,98839,10...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r9 push %rcx push %rdi push %rsi lea addresses_A_ht+0x5e35, %rsi lea addresses_D_ht+0x1efa5, %rdi nop nop xor %r12, %r12 mov $8, %rcx rep movsq nop nop nop cmp $53500, %r11 lea addresses_UC_ht+0x140c5, %rsi lea addresses_WT_ht+0x452d, %rdi...
/* -*- mode:C++; coding:utf-8-with-signature -*- * * Boss.cpp - Project PetitShooter * * Copyright (c) 2017 Yuji YASUHARA * * 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 re...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE680_Integer_Overflow_to_Buffer_Overflow__new_fixed_02.cpp Label Definition File: CWE680_Integer_Overflow_to_Buffer_Overflow__new.label.xml Template File: sources-sink-02.tmpl.cpp */ /* * @description * CWE: 680 Integer Overflow to Buffer Overflow * BadSource: ...
; A059222: Minimal number of disjoint edge-paths into which the graph of the n-ary cube can be partitioned. ; 1,1,4,1,16,1,64,1,256,1,1024,1,4096,1,16384,1,65536,1,262144,1,1048576,1,4194304,1,16777216,1,67108864,1,268435456,1,1073741824,1,4294967296,1,17179869184,1,68719476736,1,274877906944,1,1099511627776,1,43980465...
; ; Sorcerer Exidy Graphics Functions ; ; cls () -- clear screen ; ; Stefano Bodrato - 2014 ; ; ; $Id: clsgraph.asm,v 1.5 2017/01/02 22:57:59 aralbrec Exp $ ; SECTION code_clib PUBLIC cleargraphics PUBLIC _cleargraphics EXTERN loadudg6 EXTERN base_graphics ...
; A216243: Partial sums of the squares of Lucas numbers (A000032). ; 4,5,14,30,79,200,524,1365,3574,9350,24479,64080,167764,439205,1149854,3010350,7881199,20633240,54018524,141422325,370248454,969323030,2537720639,6643838880,17393796004,45537549125,119218851374,312119004990,817138163599,2139295485800 mov $2,$0 add $2,...
; A102680: Number of digits >= 7 in the decimal representations of all integers from 0 to n. ; 0,0,0,0,0,0,0,1,2,3,3,3,3,3,3,3,3,4,5,6,6,6,6,6,6,6,6,7,8,9,9,9,9,9,9,9,9,10,11,12,12,12,12,12,12,12,12,13,14,15,15,15,15,15,15,15,15,16,17,18,18,18,18,18,18,18,18,19,20,21,22,23,24,25,26,27,28,30,32,34,35,36,37,38,39,40,41,4...
//****************************************************************************** // Copyright (c) 2005-2011 by Jan Van hijfte // // See the included file COPYING.TXT for details about the copyright. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the i...
; NES APU Sweep Cutoff Test ; Tests NES APU sweep cutoff (silence) thresholds. When run, there ; should be silence, white noise, several tones without any silence ; between, then a tone sweep up (refer to sweep_cutoff.wav). main: sei lda #250 ; wait for hardware jsr delay_msec lda #$01 ; ...
/* * Copyright (C) 2011 Google Inc. All rights reserved. * Copyright (C) 2011 Ericsson AB. 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 t...
; SPIR-V ; Version: 1.0 ; Generator: Khronos Glslang Reference Front End; 10 ; Bound: 143 ; Schema: 0 OpCapability Shader %1 = OpExtInstImport "GLSL.std.450" OpMemoryModel Logical GLSL450 OpEntryPoint Fragment %4 "main" %124 OpExecutionMode %4 Origin...
// Copyright 2016 bitHeads, Inc. All Rights Reserved. #include "braincloud/BrainCloudCustomEntity.h" #include "braincloud/BrainCloudClient.h" #include "braincloud/IServerCallback.h" #include "braincloud/ServerCall.h" #include "braincloud/ServiceName.h" #include "braincloud/ServiceOperation.h" #include "braincloud/Ope...
; A201008: Triangular numbers, T(m), that are five-sixths of another triangular number: T(m) such that 6*T(m)=5*T(k) for some k. ; Submitted by Christian Krause ; 0,55,26565,12804330,6171660550,2974727580825,1433812522297155,691094661019647940,333106192798948009980,160556493834431921162475,77387896922003387052303025,37...
############################################################################### # Copyright 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") containe...
; A099202: 2^floor(n^2/2). ; 1,1,4,16,256,4096,262144,16777216,4294967296,1099511627776,1125899906842624,1152921504606846976,4722366482869645213696,19342813113834066795298816,316912650057057350374175801344,5192296858534827628530496329220096 pow $0,2 div $0,2 mov $1,2 pow $1,$0 mov $0,$1
; QXL_PROCS_BASE - QXL Procedures Base V2.02  1992 Tony Tebby section header xref smsq_end header_base dc.l sb_initp-header_base ; length of header dc.l 0 ; module length unknown dc.l smsq_end-sb_initp ; loaded length dc.l 0 ; checksum dc.l 0 ; always select dc.b 1 ; one level down dc.b 0 dc...
;-------------------------------------------------------------------------------------------- ;6. Escreva um programa que inicialize 10 posições de memórias com caracteres em ;maiúsculo, ordene­os em ordem alfabética e exiba na tela o conteúdo do vetor. ; Vinicius Atsushi Sato ;--------------------------------------...
#include <iostream> int main(){ int array[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 0}; int res=0; #pragma clang loop unroll(enable) for(std::size_t i=0; i<10; ++i){ res+=array[i]; } }
; /******************************************************************* ; * ; * Author: Kareem Omar ; * kareem.h.omar@gmail.com ; * https://github.com/komrad36 ; * ; * Last updated Oct 11, 2020 ; *******************************************************************/ _TEXT$FastMaxI32 SEGMENT ALIGN(64) FastMax...
; A106352: Number of compositions of n into 3 parts such that no two adjacent parts are equal. ; 1,2,7,9,15,21,28,35,46,54,66,78,91,104,121,135,153,171,190,209,232,252,276,300,325,350,379,405,435,465,496,527,562,594,630,666,703,740,781,819,861,903,946,989,1036,1080,1128,1176,1225,1274,1327,1377,1431 mov $3,$0 add $3,1...
/* ************************************************************************ * Copyright 2015 Vratis, Ltd. * * 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/lice...
; A168617: a(n) = 7*2^(n-1) - 2*n - 5. ; 0,5,17,43,97,207,429,875,1769,3559,7141,14307,28641,57311,114653,229339,458713,917463,1834965,3669971,7339985,14680015,29360077,58720203,117440457,234880967,469761989,939524035,1879048129,3758096319,7516192701,15032385467,30064771001,60129542071,120259084213,240518168499,4810363...
; A259457: From higher-order arithmetic progressions. ; Submitted by Jon Maiga ; 3,66,1050,15300,220500,3245760,49533120,789264000,13172544000,230519520000,4229703878400,81315551116800,1636227552960000,34417989365760000,755835784704000000,17305616126582784000,412559358036553728000,10227311816872550400000 mov $1,$0 add...
; int puts(const char *s) INCLUDE "clib_cfg.asm" SECTION code_clib SECTION code_stdio ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; IF __CLIB_OPT_MULTITHREAD & $02 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PUBLIC _puts EXTERN _puts_fastcall _puts: pop af pop hl push hl push af jp _puts_fastcall ;;;;;;;;;;;;;;;;;;;...
%include "../UltimaPatcher.asm" %include "include/uw2.asm" defineAddress 4, 0x3FD7, adjustSpriteVerticalPosition defineAddress 4, 0x3FF6, adjustSpriteHeight %include "../uw1/dontShrinkSprites.asm"
// Copyright 2018 The gVisor 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 or agree...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r15 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0xa9f, %r11 nop nop cmp $45377, %rcx movw $0x6162, (%r11) dec %r10 lea addresses_D_ht+0x1499f, %r12 nop nop nop nop nop xor %rbx, %rbx vmovups (%r12), %ymm1 vextract...
; A261276: 100-gonal numbers: a(n) = 98*n*(n-1)/2 + n. ; 0,1,100,297,592,985,1476,2065,2752,3537,4420,5401,6480,7657,8932,10305,11776,13345,15012,16777,18640,20601,22660,24817,27072,29425,31876,34425,37072,39817,42660,45601,48640,51777,55012,58345,61776,65305,68932,72657,76480 mov $1,$0 mul $1,$0 lpb $0 mov $3,$1 ...
// Copyright (C) 2016 Vicente J. Botet Escriba // // 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) #ifndef JASEL_EXAMPLE_FRAMEWORK_STD_UTILITY_HPP #define JASEL_EXAMPLE_FRAMEWORK_STD_UTILITY_HPP #if __cplusplus >...
/** * @file llnavigationbar.cpp * @brief Navigation bar implementation * * $LicenseInfo:firstyear=2009&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2010, Linden Research, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Less...
; A095140: Triangle formed by reading Pascal's triangle (A007318) mod 5. ; 1,1,1,1,2,1,1,3,3,1,1,4,1,4,1,1,0,0,0,0,1,1,1,0,0,0,1,1,1,2,1,0,0,1,2,1,1,3,3,1,0,1,3,3,1,1,4,1,4,1,1,4,1,4,1,1,0,0,0,0,2,0,0,0,0,1,1,1,0,0,0,2,2,0,0,0,1,1,1,2,1,0,0,2,4,2,0,0,1,2,1,1,3,3,1,0,2,1,1,2 seq $0,7318 ; Pascal's triangle read by rows...
; A250103: Expansion of (1+x)/(1+x-2*x^2-3*x^3). ; Submitted by Jon Maiga ; 1,0,2,1,3,5,4,15,8,34,27,65,91,120,257,256,618,665,1339,1845,2828,4879,6312,11930,15331,27465,38987,61936,98433,142400,240274,339825,567923,832549,1322772,2046095,3097096,4963410,7369067,11849041,17779323,28025960,43079809,66310080,103927418 a...
#define INCLUDED_STANDARD_REGISTER_HEADER #define at $1 ;idrk what but used for the assembler #define v0 $2 ;Used for expression evaluations and to hold the integer type function results. Also used to pass the static link when calling nested procedures. #define v1 $3 #define a0 $4 ;Used to pass the first 4 words of ...
; A175167: a(n) = Sum_{j=1..floor(n/2)} binomial(n+j-1,j-1). ; 0,1,1,6,7,36,45,220,286,1365,1820,8568,11628,54264,74613,346104,480700,2220075,3108105,14307150,20160075,92561040,131128140,600805296,854992152,3910797436,5586853480,25518731280,36576848168,166871334960,239877544005,1093260079344,1575580702584,7174519270695...
#include <msgpack.hpp> #if defined(__GNUC__) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif //defined(__GNUC__) #include <gtest/gtest.h> #if defined(__GNUC__) #pragma GCC diagnostic pop #endif //defined(__GNUC__) TEST(msgpack_tuple, member_get) { msgpack::type::tuple<int, bool,...
; A215695: a(n) = 5*a(n-1) - 6*a(n-2) + a(n-3) with a(0)=1, a(1)=0, a(2)=-2. ; Submitted by Christian Krause ; 1,0,-2,-9,-33,-113,-376,-1235,-4032,-13126,-42673,-138641,-450293,-1462292,-4748343,-15418256,-50063514,-162556377,-527819057,-1713820537,-5564744720,-18068619435,-58668449392,-190495275070,-618534298433,-2008...
; A016902: a(n) = (5*n + 4)^6. ; 4096,531441,7529536,47045881,191102976,594823321,1544804416,3518743761,7256313856,13841287201,24794911296,42180533641,68719476736,107918163081,164206490176,243087455521,351298031616,496981290961,689869781056,941480149401,1265319018496,1677100110841,2194972623936,2839760855281,3635215077...
if fg_ai AIEXP_OUT_INIT PROC ; ;OPEN EXE OR COM FILE FOR OUTPUT ; CALL COMMON_OUT_INIT CALL OPEN_OUTPUT MOV _EXE_DEVICE,BX XOR DX,DX MOV EXEHDR_ADDR.LW,DX ;NEXT EXEHDR WRITE ADDRESS MOV EXEHDR_ADDR.HW,DX MOV AX,AI_SELECTOR_COUNT ;# OF AI SELECTORS MOV AIEXPHEADER._AIEXP_SEGTBL_COUNT,AX SHLI A...
; A163704: Number of n X 2 binary arrays with all 1s connected, a path of 1s from left column to lower right corner, and no 1 having more than two 1s adjacent. ; 1,5,11,21,38,66,112,187,309,507,828,1348,2190,3553,5759,9329,15106,24454,39580,64055,103657,167735,271416,439176,710618,1149821,1860467,3010317,4870814,788116...
; --------------------------------------------------------------------------- ; Sprite mappings - SLZ lava thrower ; --------------------------------------------------------------------------- dc.w byte_8858-Map_obj1C byte_8858: dc.b 1 dc.b $F0, 7, 0, 0, $F8 even
db "BRUTAL@" ; species name db "It can swim at" next "speeds of 75 mph" next "by jetting" page "seawater through" next "its body. It's the" next "bandit of the sea.@"
;****************************************************************************** ;* ULL_TOFS16.ASM - 16 BIT STATE - * ;* * ;* Copyright (c) 1996 Texas Instruments Incorporated * ...
; https://adventofcode.com/2020/day/16 (part 2) OPT listoff : DEVICE ZXSPECTRUMNEXT : MMU 0 7, 0, $0000 ; too lazy to write input file parser, so input is manually converted into script source IF 0 ; 1 for test input run ;========================= test input =============================== DEFINE N_IS_C...
//Function(name=Sys.init, locals=0) (Sys.init) //Push(source=CONSTANT, where=4000) @4000 D=A @SP M=M+1 A=M-1 M=D //Pop(source=POINTER, where=0) @SP M=M-1 A=M D=M M=0 @3 M=D //Push(source=CONSTANT, where=5000) @5000 D=A @SP M=M+1 A=M-1 M=D //Pop(source=POINTER, where=1) @SP M=M-1 A=M D=M M=0 @4 M=D //Call(name=Sys.main,...
global test_case extern Array.createb extern Array.eachb extern std.outbln %include "Array.inc" section .text test_case: mov rax, 1 ; array length call Array.createb ; 1-Byte array mov rbx, std.outbln ; function to call call Array.eachb ret
_ln: 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 push -0x4(%ecx) if(argc != 3){ ...
;------------------------------------------------------------------------------ ; @file ; Transition from 32 bit flat protected mode into 64 bit flat protected mode ; ; Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR> ; Copyright (c) 2020, Advanced Micro Devices, Inc. All rights reserved.<BR>...
.386p _DATA segment use32 dword public 'DATA' ;IGNORE _DATA ends ;IGNORE _TEXT segment use32 dword public 'CODE' ;IGNORE assume cs:_TEXT,ds:_DATA start: ;IGNORE xor edx,edx mov ecx,10 toto: INC edx loop toto cmp edx,10 jne failure MOV al,0 JMP exitLabel failure: mov al,1 exitLabel: mov ah,4ch ...
/* Given a string S, remove consecutive duplicates from it recursively. Input Format : String S Output Format : Output string Constraints : 1 <= |S| <= 10^3 where |S| represents the length of string Sample Input 1 : aabccba Sample Output 1 : abcba Sample Input 2 : xxxyyyzwwzzz Sample Output 2 : xyzwz */ #include<cstrin...
extern m7_ippsSHA512Init:function extern n8_ippsSHA512Init:function extern y8_ippsSHA512Init:function extern e9_ippsSHA512Init:function extern l9_ippsSHA512Init:function extern n0_ippsSHA512Init:function extern k0_ippsSHA512Init:function extern ippcpJumpIndexForMergedLibs extern ippcpSafeInit:function segment .data a...
#include "graphDataView.h" #include "ui_matrixview.h" #include "matrixitemmodel.h" #include "pathsItemModel.h" const int stackedWidgetMatrixTableViewIndex = 1; const int stackedWidgetTextViewIndex = 0; QString numberToAlignStringAndInf(int number, int width = 0) { QString result; QString num = (number == INF...
#include <iomanip> #include <fstream> #include <iostream> #include "FWCore/Framework/interface/EDAnalyzer.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "FWCore/Framework/interface/EventSetup.h" #include "FWCore/Framework/interface/ESHandle.h" #inclu...
; float trunc(float x) __z88dk_fastcall SECTION code_clib SECTION code_fp_math48 PUBLIC cm48_sdcciy_trunc_fastcall EXTERN cm48_sdcciyp_dx2m48, am48_trunc, cm48_sdcciyp_m482d cm48_sdcciy_trunc_fastcall: call cm48_sdcciyp_dx2m48 call am48_trunc jp cm48_sdcciyp_m482d
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r14 push %r15 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0xda2d, %r15 and %r14, %r14 movb (%r15), %r11b sub $38244, %rsi lea addresses_D_ht+0x11a2d, %rbx nop nop nop nop inc %rcx mov $0x6162636465666768, %r14 movq %r14, %xmm3 mov...
include xlibproc.inc include Wintab.inc PROC_TEMPLATE WTQueuePacketsEx, 5, Wintab, -, 200
; void in_mouse_kempston_setpos_callee(uint16_t x, uint16_t y) SECTION code_clib SECTION code_input PUBLIC in_mouse_kempston_setpos_callee EXTERN asm_in_mouse_kempston_setpos in_mouse_kempston_setpos_callee: pop af pop bc pop de push af jp asm_in_mouse_kempston_setpos
; A080500: a(n) = (n-1)(n-4)(n-9)...(n-k^2) where k^2 < n <= (k+1)^2. ; 1,1,2,3,4,10,18,28,40,54,140,264,432,650,924,1260,1664,4284,8100,13376,20400,29484,40964,55200,72576,93500,236808,443232,728000,1108380,1603800,2235968,3028992,4009500,5206760,6652800,8382528,20867704 mov $1,1 mov $2,$0 mov $4,2 lpb $2 mul $1,$2...
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r15 push %r8 push %rax push %rbx push %rcx push %rdi lea addresses_UC_ht+0xe1fb, %rdi nop nop nop nop nop sub %r13, %r13 movb (%rdi), %al nop nop nop dec %r8 lea addresses_WT_ht+0x176fb, %r15 nop nop nop nop nop xor $54692, %rbx mov $0x6162636465666768, %rcx ...
#include <math.h> #include <stdio.h> #include <stdlib.h> #include "compute.h" int main(int argc, char **argv) { int n = 8; int nbytes = n*sizeof(double); double *data = (double *)malloc(nbytes); for (int i=0; i < n; ++i) data[i] = (double)(pow(2,-i*2)); printf("Calling kernel\n"); double result = com...
; EARTHDAY.ASM -- Earth Day Virus ; Created with Nowhere Man's Virus Creation Laboratory v1.00 ; Written by Nowhere Man virus_type equ 0 ; Appending Virus is_encrypted equ 1 ; We're encrypted tsr_virus equ 0 ; We're not TSR code segment byte public assume cs:code,ds:code,es:code,ss:code org 0100h main pr...