text
stringlengths
1
1.05M
############################################################################### # 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...
; sp1_DrawUpdateStructIfNotRem(struct sp1_update *u) ; 12.2006 aralbrec, Sprite Pack v3.0 ; sinclair spectrum version ; FASTCALL SECTION code_temp_sp1 PUBLIC asm_sp1_DrawUpdateStructIfNotRem EXTERN SP1DrawUpdateStruct ; Draw the char's graphics to screen if it hasn't ; been removed. Validates char as well. ; ; e...
// // ZoneEntityItem.cpp // libraries/entities/src // // Created by Brad Hefta-Gaub on 12/4/13. // Copyright 2013 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #include "ZoneEntityItem.h" #i...
; int __CALLEE__ vsnprintf_callee(char *s, unsigned int size, const char *fmt, void *arg_ptr) ; 05.2008 aralbrec XLIB vsnprintf_callee XDEF ASMDISP_VSNPRINTF_CALLEE LIB vfprintf_callee XREF LIBDISP_VFPRINTF_CALLEE .vsnprintf_callee pop hl pop bc pop de exx pop de pop hl exx push hl .asmentr...
COMMENT @---------------------------------------------------------------------- Copyright (c) Geoworks 1992-1994 -- All Rights Reserved PROJECT: GEOS MODULE: Studio FILE: documentUtils.asm ROUTINES: Name Description ---- ----------- INT CreateGrObj Create a grobj object INT DP_ObjMe...
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r14 push %r8 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_D_ht+0x135ca, %rsi lea addresses_D_ht+0x75fd, %rdi nop nop nop nop sub %r13, %r13 mov $47, %rcx rep movsw nop nop nop xor $31718, %r8 lea addresses_normal_ht+0x13e3d, %rsi lea addres...
;To find 1’s complement of a number. ASSUME CS:CODE,DS:DATA INCLUDE IO.H DATA SEGMENT MSG DB 13,10," BEFORE : ",0 MSG2 DB 13,10," AFTER : ",0 NUM DB 0FH ANS DB 6 DUP(0) DATA ENDS CODE SEGMENT START: MOV AX,DATA MOV DS,AX MOV AX,0000H LEA DX,MSG MOV AH,02H INT 21H MOV AL,NUM OUTPUT MSG ITOA ANS...
lda {m1}+1 cmp {c1}+1,y bne {la1} lda {m1} cmp {c1},y bne {la1}
#include <QCoreApplication> #include "read_example.h" int main(int argc, char* argv[]) { QCoreApplication a(argc, argv); auto read = new ReadExample; return a.exec(); }
; A128057: Expansion of (1+x)/sqrt(1+4x^2). ; 1,1,-2,-2,6,6,-20,-20,70,70,-252,-252,924,924,-3432,-3432,12870,12870,-48620,-48620,184756,184756,-705432,-705432,2704156,2704156,-10400600,-10400600,40116600,40116600,-155117520,-155117520 div $0,2 mov $1,2 mov $2,3 add $2,$0 sub $1,$2 bin $1,$0 mov $0,$1
; A299916: a(n) = A299914(2n+1). ; Submitted by Christian Krause ; 1,6,42,306,2250,16578,122202,900882,6641514,48963042,360969210,2661166386,19618866954,144635805954,1066295850138,7861032979794,57953746616490,427251323790882,3149816954720058,23221336706989938,171194226906268746,1262092001672539458,9304497292177630170,6...
;*** get an export from a NE module .8086 externdef GETPROCADDRESS:far public DOSGETPROCADDR _TEXT segment byte public 'CODE' DOSGETPROCADDR: push BP mov BP,SP push BX push CX push DX push ds push ES pus...
; A024907: Numbers k such that 9*k - 7 is prime. ; Submitted by Christian Krause ; 1,2,4,6,10,12,16,20,22,26,30,32,36,40,44,50,52,54,64,66,72,74,76,92,94,96,102,104,106,110,114,122,124,130,132,136,144,146,152,160,162,166,170,174,180,186,192,202,206,212,220,226,230,232,234,240,246,250,256,260,262,270,272,274,276,282,284...
.model small .stack 100h .data sir1 db "First string " lung1 equ ($-sir1) sir2 db "Second string." lung2 equ ($-sir2) sir3 db (lung1+lung2+1) dup (?) .code ; procedure to concat 2 strings concat proc near push bp mov bp, sp cld push ds...
//------------------------------------------------------------------------------ // // Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR> // Copyright (c) 2018, Pete Batard. All rights reserved.<BR> // // SPDX-License-Identifier: BSD-2-Clause-Patent // //----------------------------------------------...
// Bjarne Stroustrup 4/4/2009 // Chapter 3 Exercise 6 #include "std_lib_facilities.h" // note that different compilers/SDEs keep header files in different places // so that you may have to use "../std_lib_facilities.h" or "../../std_lib_facilities.h" // the ../ notation means "look one directly/folder up from t...
// Copyright (c) 2011-2016 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <qt/clientmodel.h> #include <checkpoints.h> #include <clientversion.h> #include <config.h> #include <interfaces/han...
/** * Copyright (c) 2011-2020 Bill Greiman * This file is part of the SdFat library for SD memory cards. * * MIT License * * 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 rest...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: Video Drivers FILE: vga8Pointer.asm AUTHOR: Jim DeFrisco, Oct 8, 1992 ROUTINES: Name Description ---- ----------- REVISION HISTORY:...
// Fill out your copyright notice in the Description page of Project Settings. #include "BountyDash.h" #include "Obstacle.h" #include "BountyDashGameMode.h" AObstacle::AObstacle() { // Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it. PrimaryActorTick.bCa...
; Moises Campos Zepeda ; 22-10-2020 ; IE0623: Microprocesadores ; Ejercicio: medicion de anchos de pulsos muy cortos ; Include File #include registers.inc ; ***************************************************************************** ; Data Structures ; ************************************...
;------------------------------------------------------------------------------ ; ; Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR> ; This program and the accompanying materials ; are licensed and made available under the terms and conditions of the BSD License ; which accompanies this distr...
## - -IMPORTANT- - ## The general structure; ## ## -Main menu ## -LinkedList creater ## -LinkedList displayer ## ##is given to you, necessary functions are empty, you have to ##fill them ## efficiently for lab3 part 1. ## Necessary register defined. ##IF YOU READ INSTRUCTIONS CAREFULLY YOU FIGURE OUT THAT...
#include <inttypes.h> #include "cilksan_internal.h" #include "mem_access.h" extern void report_race(uint64_t first_inst, uint64_t second_inst, uint64_t addr, enum RaceType_t race_type); // get the start and end indices and gtype to use for accesing // the readers / writers lists; the gtyp...
<% from pwnlib.shellcraft import common, amd64 %> <%page args="sock = 'rbp'"/> <%docstring> Args: [sock (imm/reg) = rbp] Duplicates sock to stdin, stdout and stderr </%docstring> <% dup = common.label("dup") looplabel = common.label("loop") after = common.label("after") %> /* dup() file descrip...
; A115338: a(n)=F([sqrt(n)]), where [k]=integer part of k and F(n) is the Fibonacci sequence. ; 0,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,5,5,5,5,8,8,8,8,8,8,8,8,8,8,8,8,8,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,34,34,34,34,34 mov $3,1 lpb $...
; A026488: a(n) is the least positive integer > a(n-1) and not a(i)*a(j)-a(k) for 1 <= i <= j <= k <= n, where a(1) = 1. ; 1,3,4,7,10,13,16,19,22,25,28,31,34,37,40,43,46,49,52,55,58,61,64,67,70,73,76,79,82,85,88,91,94,97,100,103,106,109,112,115,118,121,124,127,130,133,136,139,142,145,148,151,154,157,160,163,166,169,172...
; Adapted from LZ4_8088.ASM by Jim Leonard ; ; Changes: ; - SHR4table is in the data segment. The source of data ; must therefore also be in the data segment. ; - removed references to inb:outb buffers. It is up to the caller to setup those. ; - nasm language changes ; - local labels ; - segment ove...
; A052795: a(n) = (6*n)!/(5*n+1)!. ; Submitted by Christian Krause ; 1,1,12,306,12144,657720,45239040,3776965920,371090522880,41951580652800,5364506808460800,765606216965990400,120639963305775513600,20803502274492921984000,3896911902445736638464000,787971434323820421362688000,171063718698166603304067072000 mov $2,$0 s...
; A112541: Sum for k=0 to n of (n-k)!* n^k. ; Submitted by Christian Krause ; 1,2,8,48,400,4390,60624,1013404,19881728,447085170,11319529600,318298578664,9834869311488,331059072378814,12055438037135360,472096504892128500,19781301201305534464,882991510898240350666 mov $1,2 mov $2,2 mov $3,$0 lpb $3 mul $1,$3 mul $2...
; A156827: A001792*A008683. ; 1,-3,-8,0,-48,112,-256,0,0,2816,-6144,0,-28672,61440,131072,0,-589824,0,-2621440,0,11534336,24117248,-50331648,0,0,452984832,0,0,-4026531840,-8321499136 mov $2,$0 seq $0,127511 ; a(n) = mu(n) * 2^(n-1). add $2,2 mul $0,$2 div $0,2
/* * Copyright (c) 2017, 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, merge, publi...
#pragma GCC target("avx2") #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") #pragma GCC optimize("Ofast") #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; #define deb(x) cout << #x << " is " << x <<...
; A055636: Partial sums of A144494. ; 0,0,0,2,2,4,4,7,9,11,11,14,14,16,18,22,22,25,25,28,30,32,32,36,38,40,43,46,46,49,49,54,56,58,60,64,64,66,68,72,72,75,75,78,81,83,83,88,90,93,95,98,98,102,104,108,110,112,112,116,116,118,121,127,129,132,132,135,137,140,140,145,145,147,150,153,155,158,158,163,167,169,169,173,175,177,...
/**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of Qt Creator. ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in ** accordance w...
; A079086: Total number of prime factors of (prime(n)+1)*(prime(n+1)+1)/4. ; 1,2,3,4,3,3,4,5,5,6,5,3,4,6,7,6,4,3,6,5,5,7,6,5,4,5,7,6,4,8,9,5,5,6,6,4,3,6,6,6,6,8,7,4,7,6,7,8,5,5,8,7,6,6,6,8,8,5,3,4,5,6,7,5,3,4,4,5,6,5,7,9,6,5,10,10,4,3,4,6,5,7,8,6,7,7,5,4,7,8,10,9,6,7,9,8,6,5,3,3 seq $0,6094 ; Products of 2 successive ...
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // ...
; ; Copyright (c) 2010 The WebM project authors. All Rights Reserved. ; ; Use of this source code is governed by a BSD-style license ; that can be found in the LICENSE file in the root of the source ; tree. An additional intellectual property rights grant can be found ; in the file PATENTS. All contributing proje...
; BEGIN_LEGAL ; Intel Open Source License ; ; Copyright (c) 2002-2016 Intel Corporation. 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 reta...
; A122996: Expansion of (1+6*x)/(1-x-49*x^2). ; Submitted by Jon Maiga ; 1,7,56,399,3143,22694,176701,1288707,9947056,73093699,560499443,4142090694,31606563401,234569007407,1783290614056,13277171976999,100658412065743,751239838938694,5683502030160101,42494254138156107,320985853616001056,2403204306385650299,181315111335...
.include "defaults_mod.asm" table_file_jp equ "exe5-utf8.tbl" table_file_en equ "bn5-utf8.tbl" game_code_len equ 3 game_code equ 0x4252424A // BRBJ game_code_2 equ 0x42524245 // BRBE game_code_3 equ 0x42524250 // BRBP card_type equ 1 card_id equ 39 card_no equ "039" card_sub equ "Mod Card 039" card_sub_x ...
segment .data align 4 x: dd 10 align 4 y: dd 3 segment .text align 4 global _main:function _main: align 4 xpl: push ebp mov ebp, esp sub esp, 4 push dword 0 lea eax, [ebp+-4] push eax pop ecx pop eax mov [ecx], eax push dword $y pop eax push dword [eax] push dword $x pop eax push dword [eax] pop eax ...
############################################################################### # 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...
#include "stdafx.h" #include "EffectsState.h" HRESULT EffectsState::create( UINT totalSize ) { m_buffer = nullptr; m_srv = nullptr; m_uav = nullptr; const UINT byteWidth = ( totalSize ) * 4; constexpr UINT bindFlags = D3D11_BIND_SHADER_RESOURCE | D3D11_BIND_UNORDERED_ACCESS; UINT miscFlags = D3D11_RESOURCE_MIS...
//===--- MacroInfo.cpp - Information about #defined identifiers -----------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r8 push %r9 push %rbp push %rcx push %rdi push %rsi lea addresses_WC_ht+0x1c8a6, %r9 nop nop nop nop nop sub %r8, %r8 mov $0x6162636465666768, %r13 movq %r13, %xmm4 vmovups %ymm4, (%r9) nop nop nop cmp %r13, %r13 lea addresses_D_ht+0x18ce, %rsi lea addresses_...
############################################################################### # File : bgez.asm # Project : MIPS32 MUX # Author: : Grant Ayers (ayers@cs.stanford.edu) # # Standards/Formatting: # MIPS gas, soft tab, 80 column # # Description: # Test the functionality of the 'bgez' instruction. # ...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Geoworks 1994 -- All Rights Reserved PROJECT: Chart2 MODULE: FILE: chart2.asm AUTHOR: David Litwin, Jun 13, 1994 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Descri...
; A062317: Numbers k such that 5*k-1 is a perfect square. ; 1,2,10,13,29,34,58,65,97,106,146,157,205,218,274,289,353,370,442,461,541,562,650,673,769,794,898,925,1037,1066,1186,1217,1345,1378,1514,1549,1693,1730,1882,1921,2081,2122,2290,2333,2509,2554,2738,2785,2977,3026,3226,3277,3485,3538,3754,3809,4033,4090,4322,4381...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r14 push %r9 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x1af87, %r14 nop add $47593, %rax mov (%r14), %r11w nop nop nop inc %rcx lea addresses_A_ht+0x19df5, %rsi lea addresses_D_ht+0x15061, %rdi nop nop dec %r9 mov $57, %rcx rep mov...
; A100145: Structured great rhombicosidodecahedral numbers. ; 1,120,579,1600,3405,6216,10255,15744,22905,31960,43131,56640,72709,91560,113415,138496,167025,199224,235315,275520,320061,369160,423039,481920,546025,615576,690795,771904,859125,952680,1052791,1159680,1273569,1394680,1523235,1659456,1803565,1955784,2116335,2...
#include "D3D11Shader.h" #include <LLUtils/FileHelper.h> #include "D3D11Utility.h" namespace OIV { class D3D11IncludeHandler final : public ID3DInclude { public: D3D11IncludeHandler(D3D11Shader* shader) : fShader(shader) { } COM_DECLSPEC_NOTHROW HRE...
; A169600: Numbers that are congruent to {4, 25} mod 31. ; 4,25,35,56,66,87,97,118,128,149,159,180,190,211,221,242,252,273,283,304,314,335,345,366,376,397,407,428,438,459,469,490,500,521,531,552,562,583,593,614,624,645,655,676,686,707,717,738,748,769,779,800,810,831,841,862,872,893,903,924,934,955,965,986,996,1017,1027...
; void dzx1_standard_back(void *src, void *dst) SECTION code_clib SECTION code_compress_zx1 PUBLIC _dzx1_standard_back EXTERN asm_dzx1_standard_back _dzx1_standard_back: pop af pop hl pop de push de push hl push af jp asm_dzx1_standard_back
stx $ff tax lda {c1},x sec sbc $ff sta {c1},x bcs !+ dec {c1}+1,x !:
#include <cmath> #include <vector> #include "gtest/gtest.h" #include "caffe/blob.hpp" #include "caffe/common.hpp" #include "caffe/filler.hpp" #include "caffe/layers/hinge_loss_layer.hpp" #include "caffe/test/test_caffe_main.hpp" #include "caffe/test/test_gradient_check_util.hpp" namespace caffe { template <typenam...
; A083416: Add 1, double, add 1, double, etc. ; 1,2,4,5,10,11,22,23,46,47,94,95,190,191,382,383,766,767,1534,1535,3070,3071,6142,6143,12286,12287,24574,24575,49150,49151,98302,98303,196606,196607,393214,393215,786430,786431,1572862,1572863,3145726,3145727,6291454,6291455,12582910,12582911,25165822,25165823,50331646,503...
; A224039: Number of 3 X n 0..1 arrays with antidiagonals unimodal and rows and diagonals nondecreasing. ; 8,21,37,58,85,119,161,212,273,345,429,526,637,763,905,1064,1241,1437,1653,1890,2149,2431,2737,3068,3425,3809,4221,4662,5133,5635,6169,6736,7337,7973,8645,9354,10101,10887,11713,12580,13489,14441,15437,16478,17565,...
TITLE Extended Open/Create (Fileio.asm) ; Demonstration of 16-bit FileIO under Windows 95/98/ME. ; The complete program does not appear in the text, but ; excerpts do appear. ; Last update: 11/12/01 INCLUDE Irvine16.inc .data Date WORD ? handle WORD ? actionTaken WORD ? FileName BYTE "long_fi...
; A242278: Number of non-palindromic n-tuples of 3 distinct elements. ; 0,6,18,72,216,702,2106,6480,19440,58806,176418,530712,1592136,4780782,14342346,43040160,129120480,387400806,1162202418,3486725352,10460176056,31380882462,94142647386,282429005040,847287015120,2541864234006,7625592702018,22876787671992 add $0,1 seq...
INCLUDE "config_private.inc" SECTION code_clib SECTION code_math PUBLIC l_mulu_64_32x32 ; multiplication of two 32-bit numbers into a 64-bit product ; ; enter : dehl = 32-bit multiplicand (more zeros = better performance) ; dehl'= 32-bit multiplicand ; ; exit : dehl dehl' = 64-bit product...
#include <iostream> using namespace std; int fun(int n) { if (n == 1) return 10; else return fun(n - 1) + 2; } int main() { int n; cin >> n; cout << fun(n); return 0; }
; A080260: a(n)=1+(1/12)(n*(n+1)*(n+3)*(4-n)). ; 1,3,6,7,1,-19,-62,-139,-263,-449,-714,-1077,-1559,-2183,-2974,-3959,-5167,-6629,-8378,-10449,-12879,-15707,-18974,-22723,-26999,-31849,-37322,-43469,-50343,-57999,-66494,-75887,-86239,-97613,-110074,-123689,-138527,-154659,-172158,-191099,-211559 mov $2,$0 bin $0,2 add ...
/* All modification made by Cambricon Corporation: © 2018-2019 Cambricon Corporation All rights reserved. All other contributions: Copyright (c) 2014--2019, the respective contributors All rights reserved. For the list of contributors go to https://github.com/BVLC/caffe/blob/master/CONTRIBUTORS.md Redistribution and us...
; A138331: a(n) = C(n+5, 5)*(n+3)*(-1)^(n+1)*16/3. ; -16,128,-560,1792,-4704,10752,-22176,42240,-75504,128128,-208208,326144,-495040,731136,-1054272,1488384,-2062032,2808960,-3768688,4987136,-6517280,8419840,-10764000,13628160,-17100720,21280896,-26279568,32220160,-39239552,47489024,-57135232,68361216,-81367440,9637286...
; A067626: a(n) = 2^(2n+1)*(2n+1)!. ; 2,48,3840,645120,185794560,81749606400,51011754393600,42849873690624000,46620662575398912000,63777066403145711616000,107145471557284795514880000,216862434431944426122117120000,520469842636666622693081088000000 mul $0,2 mov $1,2 mov $2,2 lpb $0 sub $0,1 add $2,2 mul $1,$2 lpe...
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r15 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0xe909, %rsi lea addresses_D_ht+0xd209, %rdi nop cmp %rbx, %rbx mov $55, %rcx rep movsw nop nop nop nop xor $58418, %rbp lea addresses_A_ht+0x1703, %rcx clflush (%rcx) nop and %r15, %r1...
; ; jcsample.asm - downsampling (64-bit SSE2) ; ; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB ; Copyright (C) 2009, 2016, D. R. Commander. ; ; Based on the x86 SIMD extension for IJG JPEG library ; Copyright (C) 1999-2006, MIYASAKA Masaru. ; For conditions of distribution and use, see copyright notice...
COMMENT @---------------------------------------------------------------------- Copyright (c) Berkeley Softworks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: GeoWrite FILE: documentMasterPage.asm REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 3/92 Initial version DE...
; A156331: a(n)=8*A154811(n). ; 8,16,40,32,56,64,64,56,32,40,16,8,8,16,40,32,56,64,64,56,32,40,16,8,8,16,40,32,56,64,64,56,32,40,16,8,8,16,40,32,56,64,64,56,32,40,16,8,8,16,40,32,56,64,64,56,32,40,16,8,8,16,40,32,56,64,64,56,32,40,16,8,8,16,40 seq $0,154811 ; a(n) = Fibonacci(2n+1) mod 9. mul $0,8
MoveNames:: db "POUND@" db "KARATE CHOP@" db "DOUBLESLAP@" db "COMET PUNCH@" db "MEGA PUNCH@" db "PAY DAY@" db "FIRE PUNCH@" db "ICE PUNCH@" db "THUNDERPUNCH@" db "SCRATCH@" db "VICEGRIP@" db "GUILLOTINE@" db "RAZOR WIND@" db "SWORDS DANCE@" db "CUT@" db "GUST@" db "WING ATTACK@" db "WHIRLWIND@" db "...
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common * Development and Distribution License("CDDL") (...
; ; Startup for the s1mp3 players ; GLOBAL _main ; defc CRT_ORG_BSS = 0x7000 defc CRT_ORG_CODE = 0x0000 defc TAR__clib_exit_stack_size = 0 defc TAR__register_sp = 0x4000 defc CONSOLE_COLUMNS = 16 defc CONSOLE_ROWS = 4 INCLUDE "zcc_opt.def" INCLUDE "crt/classic/crt_rules.in...
; Copyright 2019 IBM 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.org/licenses/LICENSE-2.0 ; ; Unless required by applicable law or agreed to in writi...
; A327374: BII-numbers of set-systems with vertex-connectivity 2. ; 52,53,54,55,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116 add $0,4 mov $1,-4 lpb $1,1 add $0,$1 mov $1,$0...
#pragma once #include <glhaz/shape/Shape.hpp> namespace glhaz { class RectangleShape : public Shape { public: RectangleShape(float x, float y, float width, float height); void setWidth(float _width); void setHeight(float _height); private: float width, height; }; }
// Copyright (c) 2010 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/browser/password_manager/password_form_data.h" #include "chrome/test/live_sync/live_passwords_sync_test.h" using webkit_glue::Passwo...
#include <migraphx/simplify_reshapes.hpp> #include <migraphx/dead_code_elimination.hpp> #include <migraphx/operators.hpp> #include <migraphx/instruction.hpp> #include <basic_ops.hpp> #include <test.hpp> struct simplify_reshapes_target { std::string name() const { return "simplify_reshapes"; } std::vector<migra...
; A313780: Coordination sequence Gal.3.23.3 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. ; 1,5,10,15,21,26,31,36,41,46,51,57,62,67,72,77,82,87,93,98,103,108,113,118,123,129,134,139,144,149,154,159,165,170,175,180,185,190,195,201,206...
#include <sstream> #include <string> #include <ctime> #include <iomanip> #include <vector> #include <cmath> #include <cstdlib> #include <cstdio> #include <algorithm> #include <iostream> #include <unordered_map> #include "GRBInterface.h" #include "KGraph.h" #include "ConnectorEnumeration.h" int main(int argc, char ...
; A178719: Partial sums of (1/5)*floor(6^n/7). ; 0,0,1,7,44,266,1599,9597,57586,345520,2073125,12438755,74632536,447795222,2686771339,16120628041,96723768254,580342609532,3482055657201,20892333943215,125354003659300,752124021955810,4512744131734871,27076464790409237 mov $1,255875 lpb $0,1 mov $2,$0 cal $2,3464 ; a...
; A102377: Gould's sequence A001316 in binary. ; 1,10,10,100,10,100,100,1000,10,100,100,1000,100,1000,1000,10000,10,100,100,1000,100,1000,1000,10000,100,1000,1000,10000,1000,10000,10000,100000,10,100,100,1000,100,1000,1000,10000,100,1000,1000,10000,1000 mov $2,$0 add $2,3 mov $3,$0 lpb $2 add $1,2 mul $1,10 add ...
.data #int arraySize = MAX_SIZE; arraySize: .word 0 #int arr[MAX_SIZE]; arr: .space 400 #int num; num: .word 0 #int returnVal; returnVal: .word 0 #int returnVal1=0, returnVal2=0; returnVal1: .word 0 returnVal2: .word 0 possible: .asciiz "Possible!" impossible: .asciiz "Not Possible" newline: .asciiz "\n" spa...
#include <iostream> #include <vector> #include <algorithm> #define ini first #define fin second class ord { public: ord(){} bool operator()(std::pair<int, int> a, std::pair<int, int> b) { return a.fin > b.fin; } }; bool resuelveCaso() { int C, F, N; std::cin >> C >> F >> N; //ya que F es estrictame...
; A097728: Chebyshev U(n,x) polynomial evaluated at x=73 = 2*6^2+1. ; Submitted by Christian Krause ; 1,146,21315,3111844,454307909,66325842870,9683118751111,1413669011819336,206385992606871945,30130941251591484634,4398911036739749884619,642210880422751891669740,93758389630685036433897421,13688082675199592567457353726,...
; A269223: Factorial of the sum of digits of n in base 3. ; 1,1,2,1,2,6,2,6,24,1,2,6,2,6,24,6,24,120,2,6,24,6,24,120,24,120,720,1,2,6,2,6,24,6,24,120,2,6,24,6,24,120,24,120,720,6,24,120,24,120,720,120,720,5040,2,6,24,6,24,120,24,120,720,6,24,120,24,120,720,120,720 mov $2,$0 cal $2,53735 ; Sum of digits of (n written i...
class Solution { public: string splitLoopedString(vector<string>& strs) { string ans; vector<string> sortedStrs; for (const auto& s : strs) sortedStrs.push_back(max(s, {rbegin(s), rend(s)})); for (int i = 0; i < sortedStrs.size(); ++i) for (const auto& s : {sortedStrs[i], {rb...
_zombie: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "stat.h" #include "user.h" int main(void) { 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 pus...
/* Dillon Fleharty Chapter 2 - Program 15 Video Game Levels --------------------------------------------------------------------------------------------------------------- a novice player needed 78 minutes to complete level 1 and 144 minutes to complete level 2 of a new video game. Write a program that computes and dis...
; A331552: Expansion of (1 + 2*x)/(1 + 4*x^2)^(3/2). ; Submitted by Christian Krause ; 1,2,-6,-12,30,60,-140,-280,630,1260,-2772,-5544,12012,24024,-51480,-102960,218790,437580,-923780,-1847560,3879876,7759752,-16224936,-32449872,67603900,135207800,-280816200,-561632400,1163381400,2326762800,-4808643120,-9617286240,1983...
; *************************************************************************************** ; *************************************************************************************** ; ; Name : kernel.asm ; Author : Paul Robson (paul@robsons.org.uk) ; Date : 22nd December 2018 ; Purpose : Flat Forth Kernel ; ; ***...
INCLUDE "config_private.inc" SECTION code_driver SECTION code_driver_terminal_output PUBLIC cpm_01_output_dcio_iterm_msg_bs EXTERN asm_cpm_bdos_alt cpm_01_output_dcio_iterm_msg_bs: ; backspace ; can use: af, bc, de, hl, ix call backspace ld c,__CPM_DCIO ; bdos direct console i/o ld e...
// CompressCall2.cpp #include "StdAfx.h" #include "../../../Common/MyException.h" #include "../../UI/Common/EnumDirItems.h" #include "../../UI/FileManager/LangUtils.h" #include "../../UI/GUI/BenchmarkDialog.h" #include "../../UI/GUI/ExtractGUI.h" #include "../../UI/GUI/UpdateGUI.h" #include "../../UI/...
; CRT0 for the ZX81 ; ; Stefano Bodrato Apr. 2000 ; ; If an error occurs (eg. out if screen) we just drop back to BASIC ; ; ZX81 will be thrown in FAST mode by default. ; The "startup=2" parameter forces the SLOW mode. ; Values for "startup" from 3 to 6 activate the WRX HRG modes ; ...
; A213480: Number of (w,x,y) with all terms in {0,...,n} and |w-x|+|x-y| != w+x+y. ; 0,4,16,46,95,175,285,439,634,886,1190,1564,2001,2521,3115,3805,4580,5464,6444,7546,8755,10099,11561,13171,14910,16810,18850,21064,23429,25981,28695,31609,34696,37996,41480,45190,49095,53239,57589 mov $1,7 mul $1,$0 mov $3,7 mov $4,4 m...
%ifdef CONFIG { "RegData": { "MM0": ["0xA2A4A6A8AAACAEB0", "0x0"], "MM1": ["0xA2A4A6A8AAACAEB0", "0x0"] }, "MemoryRegions": { "0x100000000": "4096" } } %endif mov rdx, 0xe0000000 mov rax, 0x4142434445464748 mov [rdx + 8 * 0], rax mov rax, 0x5152535455565758 mov [rdx + 8 * 1], rax mov rax, 0x616...
*= $0801 .byte $4c,$16,$08,$00,$97,$32 .byte $2c,$30,$3a,$9e,$32,$30 .byte $37,$30,$00,$00,$00,$a9 .byte $01,$85,$02 jsr print .byte 13 .text "(up)eorix" .byte 0 lda #%00011011 sta db lda #%11000110 s...
/* ### * IP: GHIDRA * * 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 agreed to in writin...
; A036800: a(n) = -6 + 2^(n+1)*(3 - 2*n + n^2). ; 0,2,18,90,346,1146,3450,9722,26106,67578,169978,417786,1007610,2392058,5603322,12976122,29753338,67633146,152567802,341835770,761266170,1686110202,3716153338,8153726970,17817403386,38788923386,84154515450,181999239162,392452636666,843961073658,1810328715258,387406050098...
global _start section .data align 16 quad1: dq 0xffffffff0fffffff quad2: dq 0x0000abcd80000000 quad3: dq 0xaaaaaaaaffffff00 mydword: dd 0xcafebabe myaddress: dq 0x00adbeefc0de00ce %include "header.inc" movq mm0, [quad1] movq mm1, [quad2] movq mm2, [quad3] movq mm3, [quad2] packssdw mm0, mm2 packssdw...