text stringlengths 1 1.05M |
|---|
#include "furious.h"
#include <gtest/gtest.h>
TEST(fdb_stack_alloc_test, fdb_stack_alloc_test)
{
fdb_stack_alloc_t alloc;
fdb_stack_alloc_init(&alloc, KILOBYTES(4), nullptr);
constexpr uint32_t num_alignments = 10;
uint32_t alignments[num_alignments] = {1, 2, 4, 8, 16, 32, 64, 128, 256, 512};
constexpr ... |
; A144602: Christoffel word of slope 4/11.
; 0,0,0,1,0,0,0,1,0,0,0,1,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,1,0,0,0,1,0,0,0,1,0,0
add $0,1
mod $0,15
dif $0,2
add $0,1
mod $0,2
|
main: ldi $a0, -100
jal abs
addi $v, 50
ldi $a0, 500
jal abs
addi $v, -50
j exit
abs: la $t1, return
move $v, $a0
bgt $a0, $0, $t1
neg $v, $a0
return: jr $ra
exit: nop |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2021, 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... |
; A070323: Let M_n be the n X n matrix m(i,j)=min(prime(i), prime(j)); then a(n)=det(M_n).
; Submitted by Jon Maiga
; 2,2,4,8,32,64,256,512,2048,12288,24576,147456,589824,1179648,4718592,28311552,169869312,339738624,2038431744,8153726976,16307453952,97844723712,391378894848,2348273369088,18786186952704,75144747810816
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r15
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x12f9a, %r10
nop
nop
nop
xor %r12, %r12
movb (%r10), %r15b
nop
nop
inc %rdx
lea addresses_UC_ht+0x3c6a, %rsi
lea addresses_D_ht+0x1496a, %rdi
cmp $13375, %rdx
mov $81, %rcx
re... |
// Copyright (c) 2014 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "timedata.h"
#include "netbase.h"
#include "sync.h"
#include "ui_interface.h"
#include "util.h"
#include "utilstrencodings.h"... |
/****************************************************************************
**
** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the tools applications of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Lice... |
; A338733: Partial sums of A054843.
; 1,3,4,7,8,10,13,15,16,19,22,24,26,28,30,35,36,38,41,43,45,50,52,54,56,59,61,65,68,70,74,76,77,81,83,87,91,93,95,99,101,103,107,109,111,118,120,122,124,127,130,134,136,138,142,147,149,153,155,157,161,163,165,171,172
mov $4,2
lpb $4
sub $4,1
add $0,$4
sub $0,1
lpb $0
mov... |
#define _GNU_SOURCE
#include <stddef.h>
#include <getopt.h>
#include <stdio.h>
#include <string.h>
extern int __optpos, __optreset;
static void permute(char *const *argv, int dest, int src)
{
char **av = (char **)argv;
char *tmp = av[src];
int i;
for (i=src; i>dest; i--)
av[i] = av[i-1];
av[dest] = tmp;
}
voi... |
INCLUDE MACROS
.CODE STARTUP_TEXT
PUBLIC PERSONALITY
PERSONALITY PROC
SETT LIB_NOT_FOUND_FATAL
RET
PERSONALITY ENDP
END
|
SECTION code_fp_am9511
PUBLIC cam32_sdcc___fs2slong_callee
EXTERN asm_am9511_f2slong
EXTERN asm_sdcc_read1_callee
.cam32_sdcc___fs2slong_callee
call asm_sdcc_read1_callee
jp asm_am9511_f2slong
|
Name: kart-enemy.asm
Type: file
Size: 24496
Last-Modified: '1992-11-18T01:34:04Z'
SHA-1: 4BC42D62711BB032B3703D09E68AC8B714E21A4C
Description: null
|
; A029015: Expansion of 1/((1-x)(1-x^2)(1-x^5)(1-x^11)).
; 1,1,2,2,3,4,5,6,7,8,10,12,14,16,18,21,24,27,30,33,37,41,46,50,55,60,66,72,78,84,91,98,106,114,122,131,140,150,160,170,181,192,204,216,229,242,256,270,285,300,316,332,349,366,384,403,422,442,462,483
mov $1,17
lpb $0,1
mov $2,$0
sub $0,1
cal $2,25780 ; Exp... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Print Spooler
FILE: processSerial.asm
AUTHOR: Jim DeFrisco, 26 March 1990
ROUTINES:
Name Description
---- -----------
InitSerialPort do ... |
; A081252: Partial sums of A053646.
; 0,0,1,1,2,4,5,5,6,8,11,15,18,20,21,21,22,24,27,31,36,42,49,57,64,70,75,79,82,84,85,85,86,88,91,95,100,106,113,121,130,140,151,163,176,190,205,221,236,250,263,275,286,296,305,313,320,326,331,335,338,340,341,341
lpb $0
mov $2,$0
sub $0,1
seq $2,80776 ; Oscillating sequence whi... |
#include "openvslam/camera/base.h"
#include "openvslam/data/common.h"
#include "openvslam/data/frame.h"
#include "openvslam/data/keyframe.h"
#include "openvslam/data/landmark.h"
#include "openvslam/data/camera_database.h"
#include "openvslam/data/map_database.h"
#include "openvslam/util/converter.h"
#include <spdlog/s... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %r15
push %rax
push %rbx
push %rcx
lea addresses_A_ht+0x46c0, %r13
nop
nop
nop
and %rax, %rax
movb (%r13), %cl
nop
nop
nop
nop
nop
xor $56260, %r12
lea addresses_UC_ht+0x192c0, %rbx
add %r10, %r10
movb (%rbx), %r15b
nop
cmp $53941, %r15
lea... |
add_i 0x082
|
; A022124: Fibonacci sequence beginning 3, 13.
; 3,13,16,29,45,74,119,193,312,505,817,1322,2139,3461,5600,9061,14661,23722,38383,62105,100488,162593,263081,425674,688755,1114429,1803184,2917613,4720797,7638410,12359207,19997617,32356824,52354441,84711265,137065706,221776971,358842677,580619648,939462325,1520081973,2459... |
[bits 32]
[section .text]
INT_VECTOR_SYS_CALL equ 0x80
_NR_REBOOT EQU 30
global reboot
reboot:
mov eax, _NR_REBOOT
mov ebx, [esp + 4]
int INT_VECTOR_SYS_CALL
ret |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %r15
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x13f41, %r10
clflush (%r10)
nop
nop
nop
nop
sub $63765, %rax
and $0xffffffffffffffc0, %r10
movntdqa (%r10), %xmm0
vpextrq $0, %xmm0, %r13
add %r15, %r15
lea addresse... |
// Copyright (c) 2014-2016 The Dash Developers
// Copyright (c) 2021-2021 The GastroCoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "masternodelist.h"
#include "ui_masternodelist.h"
#include "activemast... |
_ls: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
close(fd);
}
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 push %eb... |
.MODEL SMALL
.STACK 100H
.DATA
MESSAGE_1 DB 'Enter a letter: $'
MESSAGE_2 DB 'The letter is $'
MESSAGE_3 DB ' and favorite number is 0$'
.CODE
MAIN PROC
MOV AX, @DATA ;INITIALIZATION
MOV DS, AX
LEA DX, MESSAGE_1 ;LOAD AND DISPLAY MESS... |
; A008854: Numbers that are congruent to {0, 1, 4} mod 5.
; 0,1,4,5,6,9,10,11,14,15,16,19,20,21,24,25,26,29,30,31,34,35,36,39,40,41,44,45,46,49,50,51,54,55,56,59,60,61,64,65,66,69,70,71,74,75,76,79,80,81,84,85,86,89,90,91,94,95,96,99,100,101,104,105,106,109,110,111,114,115,116,119,120,121,124,125,126,129,130,131,134,13... |
; A158981: Numerator of Hermite(n, 2/7).
; Submitted by Simon Strandgaard
; 1,4,-82,-1112,19660,514544,-7575224,-332852768,3865192592,276417340480,-2303430504224,-280102715687296,1362687220804288,334851542531477248,-396657349178753920,-461002945749901799936,-1260925479706838937344,717808917017018666550272,4971937517259... |
user/_lazytests: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <sparse_memory>:
0: 1141 addi sp,sp,-16
2: e406 sd ra,8(sp)
4: e022 sd s0,0(sp)
6: 0800 addi s0,sp,16
8: 40000537 lui a0,0x40000
... |
/*
Mescaline Virus � 2003 DR-EF All Right Reserved
================================================
When Infected File Is Run The Virus Do This Steps:
1) Get Virus Path & Command Line
2) Hide The Virus Process
3) Disable AntiViruses Monitors
4) Active The Payload
5) Go TSR & Infect Any EXE\SCR File... |
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#include "UdpMessagingPrivatePCH.h"
/* FUdpMessageHelloSender static initialization
*****************************************************************************/
const FTimespan FUdpMessageBeacon::IntervalPerEndpoint = FTimespan::FromMilliseconds(200);
... |
BattleCommand_BatonPass:
; batonpass
ldh a, [hBattleTurn]
and a
jp nz, .Enemy
; Need something to switch to
call CheckAnyOtherAlivePartyMons
jp z, FailedBatonPass
call UpdateBattleMonInParty
call AnimateCurrentMove
ld c, 50
call DelayFrames
; Transition into switchmon menu
call LoadStandardMenuHeader
fa... |
SECTION code_clib
PUBLIC getmaxx
PUBLIC _getmaxx
EXTERN __console_w
getmaxx:
_getmaxx:
IF __CPU_GBZ80__
ld hl,__console_w
ld l,(hl)
ELSE
ld hl,(__console_w)
ENDIF
ld h,0
dec hl
ret
|
// Copyright (c) 2012-2014 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "clientversion.h"
#include "tinyformat.h"
#include <string>
/**
* Name of client reported in the 'version' message. R... |
; A013966: a(n) = sigma_18(n), the sum of the 18th powers of the divisors of n.
; 1,262145,387420490,68719738881,3814697265626,101560344351050,1628413597910450,18014467229220865,150094635684419611,1000003814697527770,5559917313492231482,26623434909949071690,112455406951957393130,426880482624234915250,147789188385048507... |
; A159949: Numerator of Hermite(n, 1/24).
; Submitted by Christian Krause
; 1,1,-287,-863,247105,1241281,-354589919,-2499523487,712353753217,6471255867265,-1839949672471199,-20477166570194399,5808483395818564033,76577571062410406977,-21670384262882293332575,-330431150786521054263839,93285628864864986142460161,161591237... |
;;
;; Copyright (c) 2012-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... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: uiArrowheadControl.asm
AUTHOR: Jon Witort
REVISION HISTORY:
Name Date Description
---- ---- -----------
jon 24 feb 1992 Initial version.
... |
/*
Copyright 2020 Neijwiert
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 writing, software
distr... |
; A051689: a(n) = (5*n+8)(!^5)/8(!^5), related to A034300 ((5*n+3)(!^5) quintic, or 5-factorials).
; 1,13,234,5382,150696,4972968,188972784,8125829712,390039826176,20672110787328,1198982425665024,75535892816896512,5136440711548962816,374960171943074285568,29246893411559794274304,2427492153159462924767232,21361930947803... |
section .text
; http://shell-storm.org/shellcode/files/shellcode-752.php
xor ecx, ecx
mul ecx
push ecx
push 0x68732f2f ;; hs//
push 0x6e69622f ;; nib/
mov ebx, esp
mov al, 11
int 0x80
|
;; -*- tab-width: 4 -*-
bits 32
extern _PackedData
extern _Models
extern _HashTable
extern _UnpackedData
extern _HashTableSize
extern _VirtualSize
extern _ImageBase
global _header
global _DepackEntry
global _LinkerVersionPtr
global _SubsystemTypePtr
global _ModelSkipPtr
global _BaseProbPtr
global _Spa... |
#include "Application.h"
#include "ComponentCamera.h"
#include "Globals.h"
#include "Scene.h"
#include "Camera3D.h"
#include "Window.h"
#include "Transform.h"
#include "ImGui/imgui.h"
ComponentCamera::ComponentCamera() : Component(nullptr)
{
frustrum.type = FrustumType::PerspectiveFrustum;
frustrum.nearPlaneDist... |
; A024630: n written in fractional base 4/2.
; 0,1,2,3,20,21,22,23,200,201,202,203,220,221,222,223,2000,2001,2002,2003,2020,2021,2022,2023,2200,2201,2202,2203,2220,2221,2222,2223,20000,20001,20002,20003,20020,20021,20022,20023,20200,20201,20202,20203,20220,20221,20222,20223,22000,22001,22002,22003,22020,22021,22022,220... |
;
; $Id: bcm956174r.asm, v 1.0 2017/11/20 15:30:14 leonlee Exp $
;
; This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
;
; Copyright 2007-2020 Broadcom Inc. All rights reserved.
;
; This example is used for showing the serial EGPHY LEDs ... |
# Si implementi la procedura minmax così definita:
# Input: un intero N e una matrice di interi M di dimensione N x N
# Output: il minimo valore tra i massimi di riga in M
.text
.globl minmax
minmax:
subu $sp, $sp, 28
sw $s0, 24($sp)
sw $s1, 20($sp)
sw $s2, 16($sp)
sw $fp, 12($sp)
sw $ra, 8($sp)
addiu $fp, ... |
.macro seta_pontos
lw $s0,yellow
addi $s1, $zero, 4
addi $s2, $zero, 4
draw_P()
addi $s1, $zero, 7
addi $s2, $zero, 4
draw_P()
addi $s1, $zero, 10
addi $s2, $zero, 4
draw_P()
addi $s1, $zero, 13
addi $s2, $zero, 4
draw_P()
addi $s1, $zero, 16
addi $s2, $zero, 4
draw_P()
addi $s1, $zero, ... |
INCLUDE "config_private.inc"
SECTION data_driver
PUBLIC siobRxCount, siobRxIn, siobRxOut, siobRxLock
siobRxCount: defb 0 ; Space for Rx Buffer Management
siobRxIn: defw siobRxBuffer ; non-zero item in data since it's initialized anyway
siobRxOut: defw siobRxBuffer ; non-... |
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
c0
.text@150
lbegin:
ld a, 00
ldff(ff), a
ld b, 91
call lwaitly_b
ld a, b1
ldff(40), a
ld a, 00
ldff(4a), a
ld a, a6
ldff(4b), a
ld c, 41
ld b, 03
lbegin_waitm3:
ldff a, (c)
and a, b
cmp a, b
jrnz lbegin_waitm3
ld a, 20
ldff(c), a
x... |
; A164550: a(n) = 6*a(n-1) - 3*a(n-2) for n > 1; a(0) = 1, a(1) = 7.
; 1,7,39,213,1161,6327,34479,187893,1023921,5579847,30407319,165704373,903004281,4920912567,26816462559,146136037653,796366838241,4339792916487,23649656984199,128878563155733,702322407981801
mov $1,1
mov $2,1
lpb $0
sub $0,1
mov $3,3
add $3,$1
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r15
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x1a525, %rbp
nop
nop
nop
nop
nop
xor %rax, %rax
mov (%rbp), %r13d
nop
nop
nop
nop
xor $63617, %r15
lea addresses_D_ht+0xa77, %rsi
lea addresses_WT_ht+0xec77, %rdi
nop
nop
nop... |
section .text
global two_fer
two_fer:
; Provide your implementation here
ret
|
; ===============================================================
; Dec 2013
; ===============================================================
;
; void *memset(void *s, int c, size_t n)
;
; Write c into the first n bytes of s.
;
; ===============================================================
INCLUDE "clib_cfg.asm"... |
#
# Test for instruction ITS.
#
org 1
vtm ws,15
ita 15
aex ones
ati 14
#
vtm 0o11,1
vtm 0o22,2
vtm 0o33,3
ita 1
its 2
its 3
its 0
jaddm 15,14
utm -2,15
#
vim ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r15
push %r8
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x14cf4, %rsi
lea addresses_A_ht+0x3e99, %rdi
cmp $1160, %r12
mov $20, %rcx
rep movsq
nop
nop
cmp %r9, %r9
lea addresses_WC_ht+0x1b723, %rcx
xor %r8, %r8
mov (%rcx), %rsi
no... |
; Memotech MTX CRT0 stub
;
; $Id: mtx_crt0.asm,v 1.15 2016-07-15 21:03:25 dom Exp $
;
MODULE mtx_crt0
;--------
; Include zcc_opt.def to find out some info
;--------
defc crt0 = 1
INCLUDE "zcc_opt.def"
;--------
; Some scope definitions
;--------
EXTERN ... |
;; Licensed to the .NET Foundation under one or more agreements.
;; The .NET Foundation licenses this file to you under the MIT license.
include AsmMacros.inc
ifdef FEATURE_CACHED_INTERFACE_DISPATCH
EXTERN RhpCidResolve : PROC
EXTERN RhpUniversalTransition_DebugStepTailCall : PROC
;; Macro that generates code to ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x5cb3, %rbx
dec %rdx
mov $0x6162636465666768, %rsi
movq %rsi, %xmm2
and $0xffffffffffffffc0, %rbx
vmovntdq %ymm2, (%rbx)
nop
nop
sub %rbp, %rbp
lea addresses_D_ht+0x13865... |
; $Id: bit_synth.asm,v 1.3 2016-06-16 20:23:52 dom Exp $
;
; void bit_synth(int duration, int frequency1, int frequency2, int frequency3, int frequency4);
;
; Generic platform sound library.
; synthetizer - this is a sort of "quad sound" routine.
; It is based on 4 separate counters and a delay.
; Depending on the para... |
; A004497: Tersum n + 8.
; Submitted by Jamie Morken(s1)
; 8,6,7,2,0,1,5,3,4,17,15,16,11,9,10,14,12,13,26,24,25,20,18,19,23,21,22,35,33,34,29,27,28,32,30,31,44,42,43,38,36,37,41,39,40,53,51,52,47,45,46,50,48,49,62,60,61,56
seq $0,4483 ; Tersum n + 2.
seq $0,4495 ; Tersum n + 6.
|
; A122657: a(n) = if n mod 2 = 1 then (n^2-1)*n^3/4 else n^5/4.
; 0,0,8,54,256,750,1944,4116,8192,14580,25000,39930,62208,92274,134456,189000,262144,353736,472392,617310,800000,1018710,1288408,1606044,1990656,2437500,2970344,3582306,4302592,5121690,6075000,7149840,8388608,9774864,11358856
mov $1,$0
pow $1,2
mul $0,$1
... |
; A099407: Number of points of self-intersection of the path of a billiard ball traveling at a 45-degree angle on a prime(n) X prime(n+1) billiard table. Also equal to 1/2 the number of the lattice points lying within a prime(n) X prime(n+1) rectangle.
; 1,4,12,30,60,96,144,198,308,420,540,720,840,966,1196,1508,1740,19... |
SECTION "Egg Moves 2", ROMX
EggMovePointers2::
dw ChikoritaEggMoves
dw NoEggMoves2
dw NoEggMoves2
dw CyndaquilEggMoves
dw NoEggMoves2
dw NoEggMoves2
dw TotodileEggMoves
dw NoEggMoves2
dw NoEggMoves2
dw SentretEggMoves
dw NoEggMoves2
dw HoothootEggMoves
dw NoEggMoves2
dw LedybaEggMoves
dw NoEggMoves2
dw... |
; void __CALLEE__ *memopi(void *dst, void *src, uint n, uint op)
; *dst = *src OP *dst, increasing src and dst addresses
; OP: 0=load, 1=or, 2=xor, 3=and, 4=add, 5 = adc, 6=sub, 7 = sbc, 8 = rls, 9 = rrs else address of OP function
; 05.2007 aralbrec
PUBLIC memopi_callee
PUBLIC ASMDISP_MEMOPI_CALLEE
EXTERN l_jpix, me... |
/*=========================================================================
Program: ParaView
Module: vtkSMDiscreteDoubleDomain.cxx
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
This software is distributed WITHOUT A... |
; A037515: Base 6 digits are, in order, the first n terms of the periodic sequence with initial period 2,0,1.
; Submitted by Christian Krause
; 2,12,73,440,2640,15841,95048,570288,3421729,20530376,123182256,739093537,4434561224,26607367344,159644204065,957865224392,5747191346352,34483148078113,206898888468680,124139333... |
; A212529: Negative numbers in base -2.
; Submitted by Jon Maiga
; 11,10,1101,1100,1111,1110,1001,1000,1011,1010,110101,110100,110111,110110,110001,110000,110011,110010,111101,111100,111111,111110,111001,111000,111011,111010,100101,100100,100111,100110,100001,100000,100011,100010,101101,101100,101111,101110,101001,1010... |
;
; Copyright (c) 2010 The VP8 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 projec... |
#include "TriangleMesh.h"
TriangleMesh::TriangleMesh(GLfloat *data, GLuint *indexes, int sizeofdata, int sizeofindexes)
{
this->data = data;
this->indexes = indexes;
this->sizeofindexes = sizeofindexes;
this->sizeofdata = sizeofdata;
glGenVertexArrays(1, &VAO);
glBindVertexArray(VAO);
glGenBuffers(1, &VBO_v... |
ldx {c1}
stx $fe
ldx {c1}+1
stx $ff
sta ($fe),y |
.386P
if @Version gt 510
.model FLAT
else
_TEXT SEGMENT PARA USE32 PUBLIC 'CODE'
_TEXT ENDS
_DATA SEGMENT DWORD USE32 PUBLIC 'DATA'
_DATA ENDS
CONST SEGMENT DWORD USE32 PUBLIC 'CONST'
CONST ENDS
_BSS SEGMENT DWORD USE32 PUBLIC 'BSS'
_BSS ENDS
_TLS SEGMENT DWORD USE32 PUBLIC 'TLS'
_TLS ENDS
FLAT GROUP _DAT... |
.global s_prepare_buffers
s_prepare_buffers:
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x18679, %rdi
nop
nop
nop
nop
add $20680, %rbp
mov $0x6162636465666768, %rcx
movq %rcx, (%rdi)
nop
nop
nop
sub $52165, %rdi
lea addresses_UC_ht+0xc529, %rsi
lea addresses_WC_ht+0x17129, %rdi
nop
nop
nop
nop... |
%define BPM 100
%include "../src/sointu.inc"
BEGIN_PATTERNS
PATTERN 64, 0, 68, 0, 32, 0, 0, 0, 75, 0, 78, 0, 0, 0, 0, 0,
END_PATTERNS
BEGIN_TRACKS
TRACK VOICES(1),0
END_TRACKS
BEGIN_PATCH
BEGIN_INSTRUMENT VOICES(1) ; Instrument0
SU_ENVELOPE MONO,ATTAC(80),DECAY(80),SUSTAIN(64),RELEASE(80),GAI... |
; void *w_array_pop_back(w_array_t *a)
SECTION code_clib
SECTION code_adt_w_array
PUBLIC _w_array_pop_back
EXTERN asm_w_array_pop_back
_w_array_pop_back:
pop af
pop hl
push hl
push af
jp asm_w_array_pop_back
|
preset_hundo_bombs_ceres_elevator:
dw #$0000
dl $7E078B : db $02 : dw $0000 ; Elevator Index
dl $7E078D : db $02 : dw $AB58 ; DDB
dl $7E078F : db $02 : dw $0000 ; DoorOut Index
dl $7E079B : db $02 : dw $DF45 ; MDB
dl $7E079F : db $02 : dw $0006 ; Region
dl $7E07C3 : db $02 : dw $E22... |
; A161560: a(n) = floor(A000069(n)/2-1/2).
; 0,0,1,3,3,5,6,6,7,9,10,10,12,12,13,15,15,17,18,18,20,20,21,23,24,24,25,27,27,29,30,30,31,33,34,34,36,36,37,39,40,40,41,43,43,45,46,46,48,48,49,51,51,53,54,54,55,57,58,58,60,60,61,63,63,65,66,66,68,68,69,71,72
sub $2,$0
mov $3,$0
lpb $0
div $0,2
add $3,$0
lpe
add $2,1
mo... |
global asm_get_cpu_info
; The cpu_info structure looks like this:
; uint8*13 - vendor id
; total size of structure is 13 bytes
;
; Retrieves details about the processor using the CPUID instruction.
asm_get_cpu_info:
pushad
mov ebp, dword [ebp+8] ; Store memory address in EBP, as EDX will be overwritten by CP... |
; A198797: 4*6^n-1.
; 3,23,143,863,5183,31103,186623,1119743,6718463,40310783,241864703,1451188223,8707129343,52242776063,313456656383,1880739938303,11284439629823,67706637778943,406239826673663,2437438960041983,14624633760251903
mov $1,6
pow $1,$0
mul $1,4
sub $1,1
|
/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright noti... |
; A292465: a(n) = n*F(n)*F(n+1), where F = A000045.
; 0,1,4,18,60,200,624,1911,5712,16830,48950,140976,402624,1141933,3219580,9031050,25219824,70153016,194466672,537404835,1480993800,4071156726,11165970794,30561658848,83490220800,227687745625,619938027124,1685442626946,4575973716132,12407913817640,33604489762800,909102... |
//Push constant
@111
D=A
@SP
A=M
M=D
@SP
M=M+1
//Push constant
@333
D=A
@SP
A=M
M=D
@SP
M=M+1
//Push constant
@888
D=A
@SP
A=M
M=D
@SP
M=M+1
//Pop Static
@SP
M=M-1
@SP
A=M
D=M
@Learn.8
M=D
//Pop Static
@SP
M=M-1
@SP
A=M
D=M
@Learn.3
M=D
//Pop Static
@SP
M=M-1
@SP
A=M
D=M
@Learn.1
M=D
//Push Static
@Learn.3
D=M
@SP
A=M
... |
name "vga"
; this program draws a tiny rectangle in vga mode.
org 100h
jmp code
; dimensions of the rectangle:
; width: 10 pixels
; height: 5 pixels
w equ 10
h equ 5
; set video mode 13h - 320x200
code: mov ah, 0
mov al, 13h
int 10h
; draw upper line:
mov cx, 100+w ; column
mov d... |
/**
Square numbers
by Johnathan Machler
**/
START:
LDI r16,$0
LDI r17,$0
LOOP:
INC r17; adds 1 to register 17
JPO SERIES; goes to subroutine odd if previous op had odd bit
JMP LOOP; IF not odd go through loop again
SERIES:
ADC r16,r17 ; add and carry r16 with r17 store ... |
_cat: file format elf32-i386
Disassembly of section .text:
00000000 <cat>:
char buf[512];
void
cat(int fd)
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 ec 28 sub $0x28,%esp
int n;
while((n = read(fd, buf, sizeof(buf))) > 0)
6: eb 1b ... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: uiAlignDistributeControl.asm
AUTHOR: Jon Witort
METHODS:
Name Description
---- -----------
FUNCTIONS:
Scope Name Description
----- ... |
; A093074: Greatest prime factor of n and its direct neighbors.
; 2,3,3,5,5,7,7,7,5,11,11,13,13,13,7,17,17,19,19,19,11,23,23,23,13,13,13,29,29,31,31,31,17,17,17,37,37,37,19,41,41,43,43,43,23,47,47,47,7,17,17,53,53,53,11,19,29,59,59,61,61,61,31,13,13,67,67,67,23,71,71,73,73,73,37,19,19,79,79,79,41,83,83,83,43,43,43,89,8... |
/*
Implementaion of the sudoku calculater.
*/
#include <array>
#include <cstdio>
#include <cstring>
#include "Sudoku.h"
using namespace std;
// Return Bool
bool END = false;
////////////////////////////////////////////////////////////////////////////////
// Show Help Info
//////////////////////////////////////... |
; A017106: a(n) = (8*n+3)^6.
; 729,1771561,47045881,387420489,1838265625,6321363049,17596287801,42180533641,90458382169,177978515625,326940373369,567869252041,941480149401,1500730351849,2313060765625,3462825991689,5053913144281,7212549413161,10090298369529,13867245015625,18755369578009,25002110044521,32894113444921,427... |
; A053428: a(n) = a(n-1) + 20*a(n-2), n >= 2; a(0)=1, a(1)=1.
; Submitted by Jon Maiga
; 1,1,21,41,461,1281,10501,36121,246141,968561,5891381,25262601,143090221,648342241,3510146661,16476991481,86679924701,416219754321,2149818248341,10474213334761,53470578301581,262954844996801,1332366411028421,6591463310964441,3323879... |
// Boost.Geometry (aka GGL, Generic Geometry Library)
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
// Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
// Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
// Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
// (ge... |
; ECE 362 Lab 3 - Fall 2014 - Step 1
; Name: < enter name here >
; Lab: < enter lab division here >
; Class Number: < enter class number here >
; Use Code Warrior (CW) in Full Chip Simulation mode
;***********************************************************************
;
; Write a REENTRANT subroutine "findc" that... |
#include <bits/stdc++.h>
using namespace std;
#define sd(x) scanf("%d",&x)
#define su(x) scanf("%u",&x)
#define slld(x) scanf("%lld",&x)
#define sc(x) scanf("%c",&x)
#define ss(x) scanf("%s",x)
#define sf(x) scanf("%f",&x)
#define slf(x) scanf("%lf",&x)
#define ll long long int
#define mod(x,n) (x+n)%n
char S[200007]... |
; A164589: a(n) = ((4 + 3*sqrt(2))*(1 + 2*sqrt(2))^n + (4 - 3*sqrt(2))*(1 - 2*sqrt(2))^n)/8.
; Submitted by Jamie Morken(s2)
; 1,4,15,58,221,848,3243,12422,47545,182044,696903,2668114,10214549,39105896,149713635,573168542,2194332529,8400844852,32162017407,123129948778,471394019405,1804697680256,6909153496347,2645119075... |
#include <cstddef>
#include <map>
#include <mutex>
#include <memory>
#include <cstring>
#include "Unity/IUnityInterface.h"
#include "Unity/IUnityGraphics.h"
#include <iostream>
#include "TypeHelpers.hpp"
#define DEBUG 1
#ifdef DEBUG
#include <fstream>
#include <thread>
#endif
struct Task {
GLuint texture;
GLuint ... |
/*
* Copyright 2002-2009, Haiku. All Rights Reserved.
* Copyright 2002-2005,
* Marcus Overhagen,
* Stefano Ceccherini (stefano.ceccherini@gmail.com),
* Carwyn Jones (turok2@currantbun.com)
* All rights reserved.
*
* Distributed under the terms of the MIT License.
*/
#include <WindowScreen.h>
#include <n... |
; A128786: n^2*7^n.
; 0,7,196,3087,38416,420175,4235364,40353607,368947264,3268642167,28247524900,239256535903,1993145356944,16374242758783,132931722278404,1068201339737175,8507630225817856,67230218542302823,527606005722985476,4115001161919704623,31916906519044800400,246318726060728247087,1892353387514166215716,1447806... |
/******************************************************************************
* Copyright 2019 The Apollo 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
... |
; float sqrt(float x) __z88dk_fastcall
SECTION code_clib
SECTION code_fp_math48
PUBLIC cm48_sdccix_sqrt_fastcall
EXTERN cm48_sdccixp_dx2m48, am48_sqrt, cm48_sdccixp_m482d
cm48_sdccix_sqrt_fastcall:
call cm48_sdccixp_dx2m48
call am48_sqrt
jp cm48_sdccixp_m482d
|
/*
Copyright (c) 2004-2021 The FlameRobin Development Team
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, modi... |
; A041087: Denominators of continued fraction convergents to sqrt(51).
; Submitted by Jamie Morken(s2)
; 1,7,99,700,9899,69993,989801,6998600,98970201,699790007,9896030299,69972002100,989504059699,6996500419993,98940509939601,699580069997200,9893061489900401,69951010499300007,989207208480100499,6994401469860003500,9891... |
;
; This file is automatically generated
;
; Do not edit!!!
;
; djm 12/2/2000
;
; ZSock Lib function: sock_opened
SECTION code_clib
PUBLIC sock_opened
PUBLIC _sock_opened
EXTERN no_zsock
INCLUDE "packages.def"
INCLUDE "zsock.def"
.sock_opened
._sock_opened
ld a,r_sock_opened
call_pkg(tcp_all)
ret nc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.