text stringlengths 1 1.05M |
|---|
#include "pch.h"
#include <ManualTests.h>
#include <Core/Array/Array3.h>
#include <Core/Grid/VertexCenteredScalarGrid3.h>
#include <Core/MarchingCubes/MarchingCubes.h>
using namespace CubbyFlow;
CUBBYFLOW_TESTS(MarchingCubes);
CUBBYFLOW_BEGIN_TEST_F(MarchingCubes, SingleCube)
{
TriangleMesh3 triMesh;
Array3<dou... |
; FILE *fdopen_callee(int fd, const char *mode)
SECTION code_clib
SECTION code_stdio
PUBLIC _fdopen_callee, l0_fdopen_callee
EXTERN asm_fdopen
_fdopen_callee:
pop af
pop hl
pop de
push af
l0_fdopen_callee:
push ix
call asm_fdopen
pop ix
ret
|
; A017440: a(n) = (11*n + 4)^4.
; 256,50625,456976,1874161,5308416,12117361,24010000,43046721,71639296,112550881,168896016,244140625,342102016,466948881,623201296,815730721,1049760000,1330863361,1664966416,2058346161,2517630976,3049800625,3662186256,4362470401,5158686976,6059221281,7072810000,8208541201,9475854336,1088... |
<% from pwnlib.shellcraft import thumb %>
<%page args="string, sock = '1'"/>
<%docstring>
Writes a string to a file descriptor
Example:
>>> run_assembly(shellcraft.echo('hello\n', 1)).recvline()
b'hello\n'
</%docstring>
${thumb.pushstr(string, append_null = False)}
${thumb.linux.syscall('SYS_write', sock, '... |
; A246304: Numbers k such that cos(k) > cos(k+1) < cos(k+2).
; 2,8,15,21,27,34,40,46,52,59,65,71,78,84,90,96,103,109,115,122,128,134,140,147,153,159,166,172,178,184,191,197,203,209,216,222,228,235,241,247,253,260,266,272,279,285,291,297,304,310,316,323,329,335,341,348,354,360,367,373,379,385,392,398,404,411,417,423,429... |
#pragma once
#include "defines.hpp"
#include "math_functions.hpp"
#include "trigonometric_functions.hpp"
#include "core/gf3d_assert.hpp"
namespace gf3d
{
struct vec3
{
union {
struct {
f32 x, y, z;
};
struct {
f32 r, g, b;
};
f32 elements[3];
};
inline constexpr vec3()
: x(0.f), y(... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Run procedural glint generation inner loop in pixel shader
//
// $Header: $
// $NoKeywords: $
//===========================================================================//
#include "BaseVSShader.h"
#include "shaderlib/cshader.h"
#inc... |
; A186636: a(n) = n*(n^3+n^2+2*n+1).
; 0,5,34,129,356,805,1590,2849,4744,7461,11210,16225,22764,31109,41566,54465,70160,89029,111474,137921,168820,204645,245894,293089,346776,407525,475930,552609,638204,733381,838830,955265,1083424,1224069,1377986,1545985,1728900,1927589,2142934,2375841,2627240
mov $1,$0
mov $2,$0
add... |
;
; Small C+ Runtime Library
;
; Z88 Application functions
;
; *** Z88 SPECIFIC FUNCTION - probably no equiv for your machine! ***
;
; 11/4/99
;
; Save User Screen
;
; int restscr(int handle)
;
; Returns 0 on failure, or 1 on success
XLIB restscr
... |
//===- MIRParser.cpp - MIR serialization format parser implementation -----===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
/*
* 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 "RemoteObjectsTable.h"
#include <cstdlib>
#include <folly/Conv.h>
namespace {
bool isScopeId(int64_t id) {
return id... |
; A212303: a(n) = n!/([(n-1)/2]!*[(n+1)/2]!) for n>0, a(0)=0, and where [ ] = floor.
; Submitted by Jon Maiga
; 0,1,2,3,12,10,60,35,280,126,1260,462,5544,1716,24024,6435,102960,24310,437580,92378,1847560,352716,7759752,1352078,32449872,5200300,135207800,20058300,561632400,77558760,2326762800,300540195,9617286240,116680... |
; A122999: G.f.: 1/(1 - x - 25*x^2).
; 1,1,26,51,701,1976,19501,68901,556426,2278951,16189601,73163376,477903401,2306987801,14254572826,71929267851,428293588501,2226525284776,12933864997301,68596997116701,391943622049226
mov $4,$0
lpb $0
lpb $4
lpb $0
sub $0,1
mul $2,$1
mov $3,$2
mov $2,2... |
.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_WT_ht+0xf5da, %r14
xor %rax, %rax
mov $0x6162636465666768, %r13
movq %r13, %xmm5
vmovups %ymm5, (%r14)
nop
nop
nop
nop
sub $44410, %r8
lea addresses_A_ht+0x1de6a, %rsi
lea addresses_... |
/****************************************************************************
* Copyright (c) 2012-2017 by the DataTransferKit authors *
* All rights reserved. *
* *
* This ... |
; 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... |
@256
D=A
@SP
M=D
@.call0
D=A
@SP
M=M+1
A=M-1
M=D
@LCL
D=M
@SP
M=M+1
A=M-1
M=D
@ARG
D=M
@SP
M=M+1
A=M-1
M=D
@THIS
D=M
@SP
M=M+1
A=M-1
M=D
@THAT
D=M
@SP
M=M+1
A=M-1
M=D
@0
D=A
@5
D=D+A
@SP
A=M
D=A-D
@ARG
M=D
@SP
D=M
@LCL
M=D
@Sys.init
0;JMP
(.call0)
(Main.fibonacci)
@SP
A=M
D=A
@SP
M=D
@0
D=A
@ARG
A=M+D
D=M
@SP
A=M
M=D
@... |
#include <ParticlePluginPCH.h>
#include <Core/World/World.h>
#include <Foundation/DataProcessing/Stream/ProcessingStreamIterator.h>
#include <Foundation/Math/Float16.h>
#include <Foundation/Profiling/Profiling.h>
#include <Foundation/Time/Clock.h>
#include <GameEngine/Interfaces/PhysicsWorldModule.h>
#include <Particl... |
# =========================================================================
#
# NAME:
# DATE: June 06, 2001
# ASSIGNMENT: Test #2, CSC-201-01
# OBJECTIVE: Find the discriminant of the quadratic equation b^2 - 4ac.
#
# =========================================================================
.data
.align ... |
org 100h
L1: NOP
L2: MOV AX, 0F000H
MOV DS, AX
MOV BX, 0FFFFH
MOV AL, BYTE PTR DS:[BX]
L3: MOV CX, 00000H
MOV DS, CX
MOV BX, 00000H
MOV AH, BYTE PTR DS:[BX]
L4: SUB AL, AH
L5: JNS L7
L6: OUT 00H, AL
JMP L8
L7: MOV DX, 0FFFFH
OUT DX, AL
L8: HLT
ret |
BITS 64
GLOBAL strchr:function
strchr:
push RBP
mov RBP, RSP
XOR RAX, RAX
XOR RCX, RCX
CMP RDI, 0
JZ error
XOR R9, R9
MOV R9, RSI
loop:
CMP BYTE[RDI + RCX], R9B
JZ end
CMP BYTE[RDI + RCX], 0
JZ error
INC RCX
JMP loop
error:
XOR RAX, RAX
XOR RCX, RCX
LEAVE
ret
end:
MOV RAX, RDI
A... |
; -*- fundamental -*-
; Boot sector for GeekOS
; Copyright (c) 2001,2004 David H. Hovemeyer <daveho@cs.umd.edu>
; Copyright (c) 2003, Jeffrey K. Hollingsworth <hollings@cs.umd.edu>
; $Revision: 1.1 $
; This is free software. You are permitted to use,
; redistribute, and modify it as specified in the file "COPYING".
... |
#pragma once
#include <Zydis/Zydis.h>
#include <cstdint>
#include <zasm/core/bitsize.hpp>
namespace zasm::operands
{
class Reg
{
protected:
static_assert(ZYDIS_REGISTER_AL < ZYDIS_REGISTER_AH);
static constexpr int8_t kGp8HiStartIndex = ZYDIS_REGISTER_AH - ZYDIS_REGISTER_AL;
static... |
; A074854: a(n) = Sum_{d|n} (2^(n-d)).
; 1,3,5,13,17,57,65,209,321,801,1025,3905,4097,12417,21505,53505,65537,233985,262145,885761,1327105,3147777,4194305,16060417,17825793,50339841,84148225,220217345,268435457,990937089,1073741825,3506503681
mov $4,2
mov $6,$0
lpb $4
mov $0,$6
mov $3,0
sub $4,1
add $0,$4
su... |
_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 pushl -0x4(%ecx)
if(argc != 3){
... |
; A133307: a(n) = (1/n)*Sum_{i=0..n-1} C(n,i)*C(n,i+1)*6^i*7^(n-i), a(0)=1.
; Submitted by Jon Maiga
; 1,7,91,1477,26845,522739,10663471,224939113,4866571801,107393779423,2407939176643,54700070934061,1256249370578293,29119953189833611,680401905145643863,16008309928027493713,378930780842531820721,9017843351806985482423,... |
; A191561: a(n) = 2^n mod 3*n
; 2,4,8,4,2,10,2,16,26,4,2,28,2,4,8,16,2,28,2,16,8,4,2,64,32,4,80,16,2,64,2,64,8,4,53,28,2,4,8,16,2,64,2,16,107,4,2,64,128,124,8,16,2,82,98,88,8,4,2,136,2,4,134,64,32,64,2,16,8,184,2,136,2,4,143,16,95,64,2,16,242,4,2,64,32,4,8,256,2,244,128,16,8,4,203,64,2,214,215,76
add $0,1
mov $2,$0
su... |
/**
* @file testRelativeElevationFactor.cpp
*
* @date Aug 17, 2012
* @author Alex Cunningham
*/
#include <CppUnitLite/TestHarness.h>
#include <gtsam_unstable/slam/RelativeElevationFactor.h>
#include <gtsam/base/numericalDerivative.h>
using namespace gtsam;
SharedNoiseModel model1 = noiseModel::Unit::Create(1)... |
// 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 <memory>
#include <string>
#include <utility>
#include <vector>
#include "base/bind.h"
#include "base/command_line.h"
#include "base/strings/str... |
//===--- ImportDecl.cpp - Import Clang Declarations -----------------------===//
//
// 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... |
/*
*
* Copyright (C) 2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "gtest/gtest.h"
#include "utils/utils.hpp"
#include "test_harness/test_harness.hpp"
#include "logging/logging.hpp"
#include <level_zero/ze_api.h>
#include <thread>
namespace {
class zeDeviceCreateEventPoolTests : publi... |
/* ----------------------------------------------------------------------------
* GTSAM Copyright 2010, Georgia Tech Research Corporation,
* Atlanta, Georgia 30332-0415
* All Rights Reserved
* Authors: Frank Dellaert, et al. (see THANKS for the full author list)
* See LICENSE for the license information
* ----... |
// ____ ______ __
// / __ \ / ____// /
// / /_/ // / / /
// / ____// /___ / /___ PixInsight Class Library
// /_/ \____//_____/ PCL 2.4.7
// ----------------------------------------------------------------------------
// pcl/CheckBox.cpp - Released 2020-12-17T15:46:35Z
// -------------------------... |
/*
* Copyright (c) 2008-2021, Hazelcast, 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... |
//********************************* bs::framework - Copyright 2018-2019 Marko Pintera ************************************//
//*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********//
#include "Wrappers/GUI/BsScriptGUIToggle.h"
#include "BsScriptMeta.h"
... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: IBM Proprinter X24 24-pin driver
FILE: propx24generInfo.asm
AUTHOR: Dave Durran, 27 Mar 1990
REVISION HISTORY:
Name Date Description... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.16.27026.1
TITLE Z:\Sources\Lunor\Repos\rougemeilland\Palmtree.Math.Core.Implements\Palmtree.Math.Core.Implements\debug.c
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB MSVCRT
INCLUDELIB OLDNAMES
PUBLIC _DoDebug@4
; Function compile fla... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r14
push %r15
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x8aab, %r15
nop
nop
and %r11, %r11
and $0xffffffffffffffc0, %r15
movntdqa (%r15), %xmm4
vpextrq $0, %xmm4, %r9
nop
nop
nop
xor $42882, %r11
lea addresses_A_ht+0x1262... |
db "LICKING@" ; species name
db "Its long tongue is"
next "always soggy with"
next "slobber. Its"
page "saliva contains an"
next "enzyme which can"
next "cause numbness.@"
|
; A030975: [ exp(1/4)*n! ].
; 1,2,7,30,154,924,6471,51771,465947,4659471,51254185,615050229,7995652977,111939141684,1679087125263,26865394004209,456711698071557,8220810565288034,156195400740472660,3123908014809453215
add $0,1
mov $2,1
lpb $0
mul $2,$0
sub $0,1
div $1,4
add $1,$2
lpe
mov $0,$1
|
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r8
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x17495, %rsi
lea addresses_UC_ht+0xc8e0, %rdi
nop
nop
nop
nop
xor $25931, %rbp
mov $86, %rcx
rep movsq
nop
nop
nop
nop
and $51232, %rax
lea addresses_WT_ht+0xeef2, %rbx
nop
no... |
// Copyright 2018 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/android/vr/arcore_device/fake_arcore.h"
#include "base/android/android_hardware_buffer_compat.h"
#include "base/numerics/math_co... |
//------------------------------------------------------------------------------
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//------------------------------------------------------------------------------
#i... |
add $t0, $0, $0 #contador = 0
INI_LOOP:
beq $t0, 10, FIM_LOOP
addi $v0, $s0, 1
add $a0, $0, $t0
syscall
addi $t0, $t0, 1
j INI_LOOP
FIM_LOOP:
addi $v0, $0, 10
syscall |
; COPYRIGHT (c) 1997 xTech Ltd. All Rights Reserved.
; COPYRIGHT (c) 2002, 2003 Excelsior LLC. All Rights Reserved.
;
; PE DLL initialization/termination routine
cpu 386
bits 32
section .data use32 public align=4 public 'DATA'
myHandle: dd 0
final... |
;---------------------------------------------------------
;
; LDOS (Leonard Demo Operating System)
; AMIGA version
; Written by Leonard/Oxygene
; https://github.com/arnaud-carre/ldos
;
; Hard Disk Drive boot loader
;
;---------------------------------------------------------
_LVOAvailMem = -216
_LVOAllocMem = -19... |
_forktest: file format elf32-i386
Disassembly of section .text:
00000000 <printf>:
#define N 1000
void
printf(int fd, char *s, ...)
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 ec 08 sub $0x8,%esp
write(fd, s, strlen(s));
6: 83 ec 0c ... |
// 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.
#define BOOST_TEST_MODULE Bitcoin Test Suite
#include <net.h>
#include <stacktraces.h>
#include <memory>
#include <boost/t... |
.equ OS_WriteC, 0
.equ OS_WriteO, 2
.equ OS_NewLine, 3
.equ OS_Byte, 6
.equ XOS_Byte, OS_Byte | (1 << 17)
.equ OS_Word, 7
.equ XOS_Word, OS_Word | (1 << 17)
.equ OS_File, 8
.equ OS_Exit, 0x11
.equ OS_BreakPt, 0x17
.equ OS_ChangeDynamicArea, 0x2a
.equ OS_GenerateError, 0x2b
.equ OS_ReadVduVariables, 0x31
.equ OS_ReadMon... |
Music_Route206:
dbw $C0, Music_Route206_Ch1
dbw $01, Music_Route206_Ch2
dbw $02, Music_Route206_Ch3
dbw $03, Music_Route206_Ch4
Music_Route206_Ch1:
tempo $A0
volume $77
notetype $4, $71
dutycycle 2
tone $0001
vibrato $10, $15
octave 2
note __, 2
octave 4
note B_, 4
note A_, 4
note G#, 4
note E_, 4
oc... |
; A219395: Numbers k such that 18*k+1 is a square.
; 0,16,20,68,76,156,168,280,296,440,460,636,660,868,896,1136,1168,1440,1476,1780,1820,2156,2200,2568,2616,3016,3068,3500,3556,4020,4080,4576,4640,5168,5236,5796,5868,6460,6536,7160,7240,7896,7980,8668,8756,9476,9568,10320,10416,11200,11300,12116,12220,13068,13176,14056... |
<%
from pwnlib.shellcraft.i386.linux import syscall
%>
<%page args="fd, buf, nbytes"/>
<%docstring>
Invokes the syscall read. See 'man 2 read' for more information.
Arguments:
fd(int): fd
buf(void): buf
nbytes(size_t): nbytes
</%docstring>
${syscall('SYS_read', fd, buf, nbytes)}
|
; A140356: Triangle T(n,m) read by rows: m! if m <= floor(n/2), and (n-m)! otherwise.
; 1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,2,2,1,1,1,1,2,6,2,1,1,1,1,2,6,6,2,1,1,1,1,2,6,24,6,2,1,1,1,1,2,6,24,24,6,2,1,1,1,1,2,6,24,120,24,6,2,1,1,1,1,2,6,24,120,120,24,6,2,1,1,1,1,2,6,24,120,720,120,24,6,2,1,1,1,1,2,6,24
seq $0,4197 ; Tab... |
; A028135: Expansion of 1/((1-4x)(1-6x)(1-8x)(1-9x)).
; Submitted by Jon Maiga
; 1,27,463,6447,79639,910959,9884071,103247199,1048457047,10419680271,101824958599,981887319231,9367184200375,88585292286063,831747262057447,7762970817850143,72093155775104023,666700494910153935
mov $1,1
mov $2,$0
mov $3,$0
lpb $2
mov $0,... |
; Decompresses Einar Saukas' ZX7 compressed stream data in 16-bit real mode.
; ZX7 format and original Z80 decompressor by Einar Saukas.
; Original Z80 to 8086 conversion, and size-optimized version, by Peter Ferrie.
; Speed-optimized code by Peter Ferrie and Jim Leonard.
; 20160308
;
; The source for the convers... |
// Copyright 2021 Voronin Aleksey
#ifndef MODULES_TASK_4_VORONIN_A_DIJKSTRA_ALG_DIJKSTRA_ALGORITHM_HPP_
#define MODULES_TASK_4_VORONIN_A_DIJKSTRA_ALG_DIJKSTRA_ALGORITHM_HPP_
#include <vector>
std::vector<int> generateSimpleGraph(int size);
std::vector<int> dijkstra(const std::vector<int>& graph, int start, int end);
... |
use32
bits 32
org 0x8000
entry:
pusha
mov [saved_esp], esp
mov eax, cr0
mov [saved_cr0], eax
mov eax, 0x7ff0
mov esp, eax
jmp 0x18:move_to_real
move_to_real:
use16
mov eax, 0x20
mov ds, eax
mov es, eax
mov fs, eax
mov gs, eax
mov ss, eax
mov eax, cr0
a... |
segment .data
textosuma db 0xA,0xD,"El resultado de la sumatoria es: "
lentextosuma equ $- textosuma
saltodelinea db 0xA,0xD
lensaltodelinea equ $- saltodelinea
segment .bss
sumatoria resb 1
section .text
global _start
_start:
mov eax, 0 ;sera nuestro acumulador por lo que colocamos un cero
... |
;This document is intended to show the basic formats for
;all of the instructions supported by fasmarm.
;These formats are divided into sections showing the CPU
;processor directive needed to enable the instruction.
;Opcodes are listed in alphabetical order within each
;section. A blank line separates each opcode fro... |
include stdiolib.i
CGROUP group code
code segment dword 'CODE'
assume cs:CGROUP,ds:CGROUP
STDIOLIB_JUMP fwrite siol_fwrite
code ends
end
|
/* Copyright 2017 - 2022 R. Thomas
* Copyright 2017 - 2022 Quarkslab
*
* 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 req... |
; A028192: Expansion of 1/((1-5x)(1-8x)(1-9x)(1-12x)).
; Submitted by Jon Maiga
; 1,34,735,12920,201821,2925054,40302475,535908340,6945496041,88331974874,1107704935415,13744775469360,169190996868661,2070039164549494,25209912745227555,305937712008039980
mov $1,1
mov $2,$0
mov $3,$0
lpb $2
mov $0,$3
sub $2,1
sub $... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
%>
<%docstring>setgroups32(vararg_0, vararg_1, vararg_2, vararg_3, vararg_4) -> str
Invokes the syscall setgroups32.
See 'man 2 setgroups32' for more information.
Arguments:
vararg(int): vararg
Returns:
long
</%docstring... |
; A126167: Number of primitive exponential amicable pairs (i,j) with i<j and i<=10^n.
; Submitted by Jon Maiga
; 0,0,0,0,1,2,3,5,8,8,12
mov $2,5
lpb $0
sub $2,$0
div $0,7
add $1,2
trn $1,$2
dif $2,2
add $2,3
lpe
mov $0,$1
|
// Test enum.inc
include "../../../src/common/assert.inc"
include "../../../src/common/enum.inc"
namespace test {
createEnum()
enum(ZERO)
enum(ONE)
enum(TWO)
enum(THREE)
// endEnum() is optional
}
assert(test.ZERO == 0)
assert(test.ONE == 1)
assert(test.TWO == 2)
assert(test.THRE... |
;;
;; Copyright (c) 2020, 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 the ... |
.size 8000
.text@49
inc a
ldff(45), a
jp lstatint
.text@100
jp lbegin
.data@143
80
.text@150
lbegin:
ld a, ff
ldff(45), a
ld b, 03
call lwaitly_b
ld a, 40
ldff(41), a
ld a, 02
ldff(ff), a
ei
ld a, b
inc a
inc a
ldff(45), a
ld c, 41
.text@1000
lstatint:
xor a, a
ldff(c), a
ldff(0f), a
.text@1... |
#include "XAudio.hpp"
|
//===- BitcodeAnalyzer.cpp - Internal BitcodeAnalyzer implementation ------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r14
push %r8
push %r9
push %rax
push %rcx
lea addresses_UC_ht+0x18ba, %r8
nop
nop
nop
cmp %r9, %r9
mov (%r8), %eax
nop
nop
nop
nop
nop
and %r11, %r11
lea addresses_normal_ht+0xd4fe, %r14
nop
nop
nop
nop
and %r12, %r12
movb (%r14), %cl
sub $45734, %r... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0xb5b, %rdi
cmp $28522, %r11
mov $0x6162636465666768, %rdx
movq %rdx, (%rdi)
nop
nop
xor $58291, %r12
lea addresses_A_ht+0x1d59b, %r12
nop
inc %rbx
vmovups (%r12), %ymm3
vextra... |
;
; Copyright (C) 2021 by Intel Corporation
;
; Permission to use, copy, modify, and/or distribute this software for any
; purpose with or without fee is hereby granted.
;
; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHA... |
; sets up projectile slots
init_projectile_slots:
ldy #PROJECTILES-1
ldx #PROJECTILES+PROJECTILES_START-1
@loop:
txa
sta projectile_obj, y
lda #$00
sta projectile_flags, y
sta projectile_x, y
sta projectile_y, y
sta projectile_data, y
dex
dey
cpy #$FF
bne @loop
r... |
; A071237: n*(n+1)*(n^2+1)/2.
; 0,2,15,60,170,390,777,1400,2340,3690,5555,8052,11310,15470,20685,27120,34952,44370,55575,68780,84210,102102,122705,146280,173100,203450,237627,275940,318710,366270,418965,477152,541200,611490,688415,772380,863802,963110,1070745,1187160,1312820,1448202,1593795,1750100,1917630,2096910,2288... |
; A022523: Nexus numbers (n+1)^7-n^7.
; 1,127,2059,14197,61741,201811,543607,1273609,2685817,5217031,9487171,16344637,26916709,42664987,65445871,97576081,141903217,201881359,281651707,386128261,521088541,693269347,910467559,1181645977,1517044201,1928294551,2428543027,3032575309,3756947797,4620123691,5642614111,68471242... |
dnl AMD K7 mpn_mod_34lsub1 -- remainder modulo 2^24-1.
dnl Copyright 2000, 2001, 2002, 2004, 2005, 2008 Free Software Foundation,
dnl Inc.
dnl
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
dnl modify it under the terms of the GNU Lesser G... |
; A073556: Number of Fibonacci numbers F(k), k <= 10^n, which end in 9.
; 0,13,133,1333,13333,133333,1333333,13333333,133333333,1333333333,13333333333,133333333333,1333333333333,13333333333333,133333333333333,1333333333333333,13333333333333333
lpb $0,1
add $1,1
mov $2,$1
mul $2,2
add $1,$2
add $1,$2
add $1... |
.386
STACK SEGMENT USE16 STACK
DB 256 DUP(0)
STACK ENDS
DATA SEGMENT USE16
N EQU 30
M EQU 5000
BUF DB 'ZHANGSAN',0,0
DB 100,85,80,?
DB 'LISI',6 DUP(0)
DB 80,100,70,?
DB 'TTTT',6 DUP(0)
DB 69,69,69,?
DB 'HLF',7 DUP(0)
DB 91,91,91,?
DB N-5 DUP('TEMPVALUE',0,80,90,95,?)
DB 'LIPEIHAO',0,0
DB 85,1... |
;
; This source code is licensed under the Simplified BSD License.
; See the file LICENSE for more details.
;
println:
lodsb
or al, al ; => cmp al, 0
jz printlnEnd
mov ah, 0Eh ; teletype output
int 10h
jmp println
printlnEnd:
mov al, 0Dh
int 10h
mov al, 0Ah
int 10h
ret
|
SECTION code_fp_dai32
PUBLIC ___dai32_xirem
EXTERN xirem
defc ___dai32_xirem = xirem
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: uiObscureAttrControl.asm
AUTHOR: Jon Witort
REVISION HISTORY:
Name Date Description
---- ---- -----------
jon 24 feb 1992 Initial version... |
SECTION code_driver
SECTION code_driver_character_output
PUBLIC _sioa_flush_Tx_di
PUBLIC _sioa_flush_Tx
EXTERN asm_z80_push_di, asm_z80_pop_ei
EXTERN sioaTxCount, sioaTxIn, sioaTxOut, sioaTxBuffer
_sioa_flush_Tx_di:
push af
push hl
call asm_z80_push_di ; d... |
; A265411: a(0) = 1, a(1) = 7, otherwise, if A240025(n-1) = 1 [when n is in A033638] a(n) = 3, otherwise a(n) = 1.
; 1,7,3,3,1,3,1,3,1,1,3,1,1,3,1,1,1,3,1,1,1,3,1,1,1,1,3,1,1,1,1,3,1,1,1,1,1,3,1,1,1,1,1,3,1,1,1,1,1,1,3,1,1,1,1,1,1,3,1,1,1,1,1,1,1,3,1,1,1,1,1,1,1,3,1,1,1,1,1,1,1,1,3,1,1,1,1,1,1,1,1,3,1,1,1,1,1,1,1,1,1,3... |
db 0 ; species ID placeholder
db 75, 89, 85, 35, 55, 65
; hp atk def spd sat sdf
db GRASS, GRASS ; type
db 45 ; catch rate
db 142 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F12_5 ; gender ratio
db 20 ; step cycles to hatch
INCBIN "gfx/pokemon/grotle/front.dimensions"
db GROWTH_MEDIUM_SLO... |
; Test case:
ONE: equ 1
ld a,(value)
cp ONE*0 ; <-- should be optimized (we are just checking that even if there is an expression, since it evaluates to 0, it should match)
call z,function1
ld a,2
ld (value),a
end:
jp end
function1:
ld a,0 ; <-- should be optimized
xor a
ret
value:
db 1 |
#include "bundle_adjuster_mfi.h"
#include "sba_base.h"
#include "../../core/math_helper.h"
#include "sba_ceres.h"
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
namespace optim {
BundleAdjusterMFI::BundleAdjusterMFI(SBAbase::BAType ba_type, bool use_weighting)
: ba_type_(ba_type),... |
; QL Arithmetic ADD/SUB V2.01 1990 Tony Tebby QJUMP
section qa
xdef qa_add
xdef qa_addd
xdef qa_add1
xdef qa_sub
xdef qa_subd
xdef qa_subr
xdef qa_halve
xdef qa_double
xref qa_neg
include 'dev8_keys_err'
;+++
; QL Arithmetic: ADD 1
;
; This routine ADDs 1.00000000 to TOS
;
; d0 r error return ... |
; A257052: a(n) = cpg(3, n) + cpg(4, n) + ... + cpg(n, n) where cpg(m, n) is the n-th m-th-order centered polygonal number.
; Submitted by Christian Krause
; 0,0,0,10,44,123,274,530,930,1519,2348,3474,4960,6875,9294,12298,15974,20415,25720,31994,39348,47899,57770,69090,81994,96623,113124,131650,152360,175419,200998,229... |
; A099089: Riordan array (1, 2+x).
; Submitted by Jon Maiga
; 1,0,2,0,1,4,0,0,4,8,0,0,1,12,16,0,0,0,6,32,32,0,0,0,1,24,80,64,0,0,0,0,8,80,192,128,0,0,0,0,1,40,240,448,256,0,0,0,0,0,10,160,672,1024,512,0,0,0,0,0,1,60,560,1792,2304,1024,0,0,0,0,0,0,12,280,1792,4608,5120,2048
lpb $0
add $1,1
sub $0,$1
lpe
mov $2,$0
m... |
db 0 ; species ID placeholder
db 80, 50, 100, 50, 100, 200
; hp atk def spd sat sdf
db ICE, ICE ; type
db 3 ; catch rate
db 216 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_UNKNOWN ; gender ratio
db 100 ; unknown 1
db 80 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/regice/fron... |
/*
; Project: Open Vehicle Monitor System
; Date: 14th March 2017
;
; Changes:
; 1.0 Initial release
;
; (C) 2011 Michael Stegen / Stegen Electronics
; (C) 2011-2017 Mark Webb-Johnson
; (C) 2011 Sonny Chen @ EPRO/DX
;
; Permission is hereby granted, free of charge, to ... |
PROGRAM 4
BR L1
L0:
PROC 4
LDLADDR 8
LDCINT 12
STOREW
LDCSTR "n = "
PUTSTR
LDLADDR 8
LOADW
PUTINT
PUTEOL
LDGADDR 0
LDCINT 5
STOREW
RET 0
L1:
LDGADDR 0
LDCINT 0
STOREW
LDCSTR "x = "
PUTSTR
LDGADDR 0
LOADW
PUTINT
PUTEOL
CALL L0
LDCSTR "x = "... |
_rm: 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 ... |
; A052938: Expansion of (1 + 2*x - 2*x^2)/( (1+x)*(1-x)^2 ).
; 1,3,2,4,3,5,4,6,5,7,6,8,7,9,8,10,9,11,10,12,11,13,12,14,13,15,14,16,15,17,16,18,17,19,18,20,19,21,20,22,21,23,22,24,23,25,24,26,25,27,26,28,27,29,28,30,29,31,30,32,31,33,32,34,33,35,34,36,35,37,36,38,37,39,38,40,39,41,40,42,41,43,42,44,43,45,44,46,45,47,46,... |
#include <GuiFoundation/GuiFoundationPCH.h>
#include <GuiFoundation/Models/TreeSearchFilterModel.moc.h>
#include <GuiFoundation/Widgets/SearchWidget.moc.h>
#include <GuiFoundation/Widgets/SearchableMenu.moc.h>
#include <QBoxLayout>
#include <QMouseEvent>
#include <QStandardItemModel>
#include <QTreeWidget>
class QNu... |
SECTION code_fp_am9511
PUBLIC fmod
EXTERN cam32_sccz80_fmod
defc fmod = cam32_sccz80_fmod
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _fmod
EXTERN cam32_sdcc_fmod
defc _fmod = cam32_sdcc_fmod
ENDIF
|
include TestASM.inc
; parameter RCX, RDX, R8, R9
; Must be preserved by callee : RBX, RBP, RDI, RSI, R12, R13, R14, R15 , XMM6-XMM15, YMM6-YMM15
.data
.code
;int Add_ASM(int a, int b)
Add_ASM PROC
mov [rsp+8],rcx
mov [rsp+16],rdx
add rcx,rdx
mov rax,rcx
ret
Add_ASM ENDP
; int Add_ASM_RBP(int a, int b)
Add_... |
@r
in r1
jz r1, 0
inc r2
@l
mov r3,r1
mod r3,r2
ceq r3,0
cad r1,1
cad r2,1
cjn %l
dec r2
out r2
jmp %r |
; A082645: a(n) = floor((2*n^2 + n - 4)/4).
; -1,-1,1,4,8,12,18,25,33,41,51,62,74,86,100,115,131,147,165,184,204,224,246,269,293,317,343,370,398,426,456,487,519,551,585,620,656,692,730,769,809,849,891,934,978,1022,1068,1115,1163,1211,1261,1312,1364,1416,1470,1525,1581,1637,1695,1754,1814,1874,1936,1999,2063,2127,2193,2... |
SECTION code_fp_math32
PUBLIC cm32_sdcc___fseq_callee
EXTERN cm32_sdcc_fsreadr_callee
EXTERN m32_compare_callee
; Entry: stack: float right, float left, ret
cm32_sdcc___fseq_callee:
call cm32_sdcc_fsreadr_callee ;Exit dehl = right
call m32_compare_callee
scf
ret z
ccf
dec ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.