text stringlengths 1 1.05M |
|---|
; void *sp1_PreShiftSpr(uchar flag, uchar height, uchar width, void *srcframe, void *destframe, uchar rshift)
; CALLER linkage for function pointers
PUBLIC sp1_PreShiftSpr
EXTERN sp1_PreShiftSpr_callee
EXTERN ASMDISP_SP1_PRESHIFTSPR_CALLEE
.sp1_PreShiftSpr
ld hl,2
add hl,sp
ld c,(hl)
inc hl
inc hl
... |
; A170118: Number of reduced words of length n in Coxeter group on 13 generators S_i with relations (S_i)^2 = (S_i S_j)^38 = I.
; 1,13,156,1872,22464,269568,3234816,38817792,465813504,5589762048,67077144576,804925734912,9659108818944,115909305827328,1390911669927936,16690940039135232,200291280469622784
add $0,1
mov $3... |
#include "GameObject2D.h"
void GameObject2D::UpdateMatrix()
{
assert( "UpdateMatrix must be overridden!" && 0 );
} |
/// @file
/// @author David Pilger <dpilger26@gmail.com>
/// [GitHub Repository](https://github.com/dpilger26/NumCpp)
///
/// License
/// Copyright 2018-2021 David Pilger
///
/// Permission is hereby granted, free of charge, to any person obtaining a copy of this
/// software and associated documentation files(the "Sof... |
; A246655: Prime powers: numbers of the form p^k where p is a prime and k >= 1.
; Submitted by Jamie Morken(w1)
; 2,3,4,5,7,8,9,11,13,16,17,19,23,25,27,29,31,32,37,41,43,47,49,53,59,61,64,67,71,73,79,81,83,89,97,101,103,107,109,113,121,125,127,128,131,137,139,149,151,157,163,167,169,173,179,181,191,193,197,199,211,223,... |
; A306696: Lexicographically earliest sequence of nonnegative terms such that for any n > 0 and k > 0, if a(n) >= a(n+k), then a(n+2*k) <> a(n+k).
; 0,0,1,0,1,1,2,0,2,1,3,1,2,2,3,0,3,2,4,1,3,3,4,1,4,2,5,2,4,3,5,0,5,3,6,2,4,4,6,1,5,3,7,3,5,4,6,1,6,4,7,2,5,5,7,2,6,4,8,3,6,5,7,0,7,5,8,3,6,6,8,2,7,4,9,4,7,6,8,1,8,5,9,3,7,7... |
; A129296: Number of divisors of n^2 - 1 that are not greater than n.
; Submitted by Jon Maiga
; 1,1,2,2,4,2,5,3,5,3,8,2,8,4,6,4,9,2,12,4,8,4,10,3,10,6,8,4,16,2,14,4,7,8,12,4,12,4,10,4,20,2,16,6,8,6,12,3,18,6,12,4,16,4,20,8,10,4,16,2,16,6,8,12,16,4,16,4,16,4,30,2,15,6,8,12,16,4,24,5,12,5,16,4,16,8,10,4,30,4,24,8,8,8,14... |
; A268685: a(n) = 3*(n + 1)*(n + 2)*(3*n + 1)*(3*n + 4)/4.
; 6,126,630,1950,4680,9576,17556,29700,47250,71610,104346,147186,202020,270900,356040,459816,584766,733590,909150,1114470,1352736,1627296,1941660,2299500,2704650,3161106,3673026,4244730,4880700,5585580,6364176,7221456,8162550,9192750,10317510,11542446,12873336,... |
; loader.asm - Kernel loader for JOS
; Copyright (C) 2018 Jari Jokinen
section .text
global _start
bits 16
_start:
lgdt [gdt32]
mov eax, cr0 ; Enable protected mode
or al, 1
mov cr0, eax
jmp 0x0008:protected_mode
bits 32
protected_mode:
mov ax, 0x0010 ; Reload segment registers... |
; A140191: Fix e = 3; a(n) gives number of multiples ke (0 <= k <= n/e) which are children of n.
; Submitted by Christian Krause
; 1,1,1,2,1,1,2,3,1,2,1,3,2,3,3,6,1,1,2,3,1,2,3,5,2,3,3,6,3,5,6,11,1,2,1,3,2,3,3,6,1,3,2,5,3,6,5,11,2,3,3,6,3,5,6,11,3,6,5,11,6,11,11,22,1,1,2,3,1,2,3,5,2,3,3,6,3,5,6,11,1,2,3,5,2,5,5,10,3,5,... |
###############################################################################
# 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... |
; uint zx_saddr2cy(void *saddr)
SECTION code_arch
PUBLIC zx_saddr2cy
zx_saddr2cy:
INCLUDE "arch/zx/display/z80/asm_zx_saddr2cy.asm"
|
; This table translates key presses into ascii codes.
; An effort has been made for this key translation table
; to emulate a PC keyboard with the 'CTRL' key represented
; by CAPS SHIFT + SYM SHIFT.
SECTION rodata_clib
SECTION rodata_input
PUBLIC in_key_translation_table
in_key_translation_table:
; unshifted
... |
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
c0
.text@150
lbegin:
ld a, 00
ldff(ff), a
ld a, 30
ldff(00), a
ld a, 01
ldff(4d), a
stop, 00
ld c, 41
ld b, 02
ld d, 03
lbegin_waitm2:
ldff a, (c)
and a, d
cmp a, b
jrnz lbegin_waitm2
ld a, 08
ldff(c), a
ld a, 02
ldff(ff), a
ei
ld ... |
; void bit_beep_raw_di(uint_16t num_cycles, uint16_t tone_period_T)
SECTION code_sound_bit
PUBLIC _bit_beep_raw_di
EXTERN l0_bit_beep_raw_di_callee
_bit_beep_raw_di:
pop af
pop hl
pop de
push de
push hl
push af
jp l0_bit_beep_raw_di_callee
|
#ifndef DECODER_MAXIMUM_LIKELIHOOD_NAIVE_HPP_
#define DECODER_MAXIMUM_LIKELIHOOD_NAIVE_HPP_
#include "Decoder_maximum_likelihood.hpp"
namespace aff3ct
{
namespace module
{
template <typename B = int, typename R = float>
class Decoder_maximum_likelihood_naive : public Decoder_maximum_likelihood<B,R>
{
protected:
cons... |
; code_driver to ensure we don't page ourselves out
SECTION code_driver
PUBLIC generic_console_calc_xypos
PUBLIC generic_console_printc
PUBLIC generic_console_scrollup
PUBLIC generic_console_set_ink
PUBLIC generic_console_set_paper
PUBLIC... |
; A118403: Unsigned row sums of triangle A118401; a(n) = A118402(n^2-n+2), where A118402 is the row sums of triangle A118400.
; 1,1,3,5,9,15,23,33,45,59,75,93,113,135,159,185,213,243,275,309,345,383,423,465,509,555,603,653,705,759,815,873,933,995,1059,1125,1193,1263,1335,1409,1485,1563,1643,1725,1809,1895,1983,2073,216... |
;===============================================================================
; Copyright 2016-2018 Intel Corporation
; All Rights Reserved.
;
; If this software was obtained under the Intel Simplified Software License,
; the following terms apply:
;
; The source code, information and material ("Material") co... |
; A165839: Totally multiplicative sequence with a(p) = 18.
; Submitted by Jamie Morken(w4)
; 1,18,18,324,18,324,18,5832,324,324,18,5832,18,324,324,104976,18,5832,18,5832,324,324,18,104976,324,324,5832,5832,18,5832,18,1889568,324,324,324,104976,18,324,324,104976,18,5832,18,5832,5832,324,18,1889568,324,5832,324,5832,18,1... |
; void sp1_PutSprClr(uchar **sprdest, struct sp1_ap *src, uchar n)
SECTION code_temp_sp1
PUBLIC _sp1_PutSprClr
_sp1_PutSprClr:
pop af
pop hl
pop de
pop bc
push bc
push de
push hl
push af
ld b,c
INCLUDE "temp/sp1/zx/sprites/asm_sp1_PutSprClr.asm"
|
#include <iostream>
#include <gtest/gtest.h>
#include <chainerx/array.h>
#include <chainerx/context.h>
#include <chainerx/numeric.h>
#include <chainerx/routines/creation.h>
#include <chainerx/testing/array.h>
#include <compiler/gen_xcvm_codegen.h>
#include <compiler/xcvm/xcvm_value.h>
#include <runtime/xcvm.h>
#incl... |
_grep: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
}
}
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 %ebp
b:... |
; A157085: Consider all Consecutive Integer Pythagorean quintuples (X, X+1, X+2, Z-1, Z) ordered by increasing Z; sequence gives Z values.
; Submitted by Jon Maiga
; 2,14,134,1322,13082,129494,1281854,12689042,125608562,1243396574,12308357174,121840175162,1206093394442,11939093769254,118184844298094,1169909349211682,11... |
; L0307.asm crouton outpost: desolation
; Generated 11.07.2000 by mlevel
; Modified 11.07.2000 by Abe Pralle
INCLUDE "Source/Defs.inc"
INCLUDE "Source/Levels.inc"
INCLUDE "Source/Items.inc"
;---------------------------------------------------------------------
SECTION "Level0307Section",ROMX
;----------------------... |
#include "SimMuon/CSCDigitizer/src/CSCStripConditions.h"
#include "SimGeneral/NoiseGenerators/interface/CorrelatedNoisifier.icc"
#include "CLHEP/Random/RandGaussQ.h"
template class CorrelatedNoisifier< CSCStripConditions::CSCCorrelatedNoiseMatrix > ;
template
void
CorrelatedNoisifier< CSCStripConditions::CSCCorrela... |
ORG $de9359
incbin title1.bin
ORG $dea685
incbin title2.bin
ORG $def044
incbin title3.bin
ORG $def6ff
incbin title4.bin
|
/* Copyright (C) 2006 - 2013 ScriptDev2 <http://www.scriptdev2.com/>
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.... |
SECTION data_fp_mbf32
PUBLIC DIVSUP
PUBLIC DIV1
PUBLIC DIV2
PUBLIC DIV3
PUBLIC DIV4
DIVSUP: defb $d6
DIV1: defb $00, $6f, $7c, $de
DIV2: defb $00, $67, $78, $de
DIV3: defb $00, $47, $3e
DIV4: defb $00, $c9
|
; float asinh(float x) __z88dk_fastcall
SECTION code_fp_math48
PUBLIC cm48_sdcciy_asinh_fastcall
EXTERN cm48_sdcciyp_dx2m48, am48_asinh, cm48_sdcciyp_m482d
cm48_sdcciy_asinh_fastcall:
call cm48_sdcciyp_dx2m48
call am48_asinh
jp cm48_sdcciyp_m482d
|
db DEX_MEW ; pokedex id
db 100 ; base hp
db 100 ; base attack
db 100 ; base defense
db 100 ; base speed
db 100 ; base special
db PSYCHIC ; species type 1
db PSYCHIC ; species type 2
db 1 ; catch rate. master ball
db 64 ; base exp yield
INCBIN "pic/ymon/mew.pic",0,1 ; 55, sprite dimensions
dw MewPicFront
dw MewPicBack
;... |
#include <assert.h>
#include "UmbralMesh.h"
#include "UmbralEffectProvider.h"
Palleon::EffectPtr CUmbralEffectProvider::GetEffect(const CD3DShader& vertexShader, const CD3DShader& pixelShader, bool hasAlphaTest)
{
EFFECTINFO effectInfo;
effectInfo.vertexShader = vertexShader;
effectInfo.pixelShader = pixelShader;
... |
#ifndef _TREE_IMP_CB_METADATA_BASE_HPP
#define _TREE_IMP_CB_METADATA_BASE_HPP
#include <Python.h>
#include <climits>
#include <cfloat>
#include "_dbg.hpp"
struct _PyObjectCBMetadataTag{};
template<
class Alg_Tag,
bool Set,
class LT>
struct _TreeImpMetadataBase<
Alg_Tag,
PyObject *,
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0xae52, %rsi
lea addresses_WT_ht+0x13652, %rdi
add $15816, %rbx
mov $25, %rcx
rep movsq
nop
dec %rdx
lea addresses_WC_ht+0xd4a2, %rsi
lea addresses_WC_ht+0x113fe, %rdi
nop
and ... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
; Module Name:
;
; DisablePaging64.Asm
;
; Abstract:
;
; AsmDisablePaging64 function
;
; Notes:
;
;-------------... |
BITS 32
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
;TEST_BEGIN_RECORDING
lea ecx, [esp-0x10]
mov dword [ecx+0x00], 0x0
mov dword [ecx+0x04], 0x0
mov dword [ecx+0x08], 0x0
mov dword [ecx+0x0C], 0x10
;set up ecx to be 8
movdqu xmm1, [ecx]
mov dword [ecx+0x00], 0x00FFF000
mov dword [e... |
;;
;; Copyright (c) 2020-2021, 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... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r14
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0xf5db, %rsi
lea addresses_UC_ht+0x152fd, %rdi
nop
nop
xor %r11, %r11
mov $35, %rcx
rep movsw
nop
nop
nop
nop
xor $31513, %rdx
lea addresses_D_ht+0x12ee9, %r14
clflush (%r14)
n... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. Th... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE762_Mismatched_Memory_Management_Routines__strdup_delete_array_wchar_t_54a.cpp
Label Definition File: CWE762_Mismatched_Memory_Management_Routines__strdup_delete_array.label.xml
Template File: sources-sinks-54a.tmpl.cpp
*/
/*
* @description
* CWE: 762 Mismatched... |
.include "tn861adef.inc"
#define max_flash 0x1000
# definition for serial protocol and piccodes.ini
.equ FamilyAVR=0x31 ; AVR Family
.equ IdTypeAVR=0x16 ; must exists in "piccodes.ini"
.equ xtal = 8000000 ; you may also want to change: _HS_OSC _XT_OSC
.equ baud = 9600 ; standard TinyBld ba... |
INCLUDE "config_private.inc"
SECTION code_clib
SECTION code_math
PUBLIC l_mulu_32_16x16
; compute: dehl = hl * de
; alters : af, bc, de, hl
IF __CPU_Z180__ && ((__CLIB_OPT_IMATH = 0) || (__CLIB_OPT_IMATH = 100))
EXTERN l_z180_mulu_32_16x16
defc l_mulu_32_16x16 = l_z180_mulu_32_16x16
ELSE
IF __CPU_... |
; ===============================================================
; Jul 2015
; ===============================================================
;
; void _lldiv_(lldiv_t *ld, int64_t numer, int64_t denom)
;
; Fill the lldiv_t struct with the results of long long divide
; numer / denom.
;
; struct lldiv_t
; {
; int64... |
Name: ys_w51.asm
Type: file
Size: 19867
Last-Modified: '2016-05-13T04:51:45Z'
SHA-1: 5CF4C2E21C91A94AA098CBF36C4E486A1A78FE46
Description: null
|
; A120184: a(1)=8; a(n)=floor((48+sum(a(1) to a(n-1)))/6).
; 8,9,10,12,14,16,19,22,26,30,35,41,48,56,65,76,89,104,121,141,165,192,224,261,305,356,415,484,565,659,769,897,1047,1221,1425,1662,1939,2262,2639,3079,3592,4191,4889,5704,6655,7764,9058,10568,12329,14384,16781,19578,22841,26648,31089,36271,42316,49369,57597,671... |
; This program ensures that we can reserve memory by reserving 200 MiB of memory
; 1 MiB at a time while checking to ensure that each instruction involved in memory
; allocation succeeds.
;
; Once the memory is reseved, the memory is iteratively freed in a similar manner.
.init main
.code
main:
mov i7 @1048576 ... |
SECTION code_fp_math48
PUBLIC dcallee2
EXTERN cm48_sccz80p_dcallee2
defc dcallee2 = cm48_sccz80p_dcallee2
|
; A136409: a(n) = floor(n*log_3 2).
; 0,0,1,1,2,3,3,4,5,5,6,6,7,8,8,9,10,10,11,11,12,13,13,14,15,15,16,17,17,18,18,19,20,20,21,22,22,23,23,24,25,25,26,27,27,28,29,29,30,30,31,32,32,33,34,34,35,35,36,37,37,38,39,39,40,41,41,42,42,43,44,44,45,46,46,47,47,48,49,49,50,51,51,52,52,53,54,54,55,56,56,57,58,58,59,59,60,61,61,6... |
IF __CPU_INTEL__
INCLUDE "_DEVELOPMENT/target/rc2014/config_rc2014-8085_private.inc"
ELIF __CPU_Z80__
INCLUDE "config_private.inc"
ENDIF
SECTION code_driver
SECTION code_driver_character_output
PUBLIC _acia_putc
EXTERN aciaTxCount, aciaTxIn, aciaTxBuffer, aciaControl
EXTERN asm_z80_push_di, asm_z80_pop_ei_jp
._aci... |
#pragma once
#include "geometry/any_rect2d.hpp"
#include "geometry/point2d.hpp"
#include "geometry/rect2d.hpp"
#include "base/matrix.hpp"
class ScreenBase
{
public:
using MatrixT = math::Matrix<double, 3, 3>;
using Matrix3dT = math::Matrix<double, 4, 4>;
using Vector3dT = math::Matrix<double, 1, 4>;
ScreenB... |
; A230018: a(n) = (9*n^3 + 5*n)/2.
; 7,41,129,298,575,987,1561,2324,3303,4525,6017,7806,9919,12383,15225,18472,22151,26289,30913,36050,41727,47971,54809,62268,70375,79157,88641,98854,109823,121575,134137,147536,161799,176953,193025,210042,228031,247019
mov $14,$0
mov $16,$0
add $16,1
lpb $16
clr $0,14
mov $0,$14
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r15
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x44a8, %rsi
lea addresses_WT_ht+0x15ac8, %rdi
nop
nop
and %r9, %r9
mov $47, %rcx
rep movsb
nop
cmp $29822, %r14
lea addresses_A_ht+0xdcc8, %rsi
lea addresses_A_ht+0x8b48, %rdi
nop
nop
n... |
#include <bits/stdc++.h>
using namespace std;
// input handle
#define iln() scanf("\n")
#define in(n) scanf("%d",&n)
#define ins(n) scanf("%s",n)
#define inc(n) scanf("%c",&n)
#define inf(n) scanf("%lf",&n)
#define inl(n) scanf("%lld",&n)
#define ot(x) printf("%d", x)
#define sp() printf(" ")
#define ots(x) printf("%s"... |
; float exp(float x) __z88dk_fastcall
SECTION code_fp_math48
PUBLIC cm48_sdcciy_exp_fastcall
EXTERN cm48_sdcciyp_dx2m48, am48_exp, cm48_sdcciyp_m482d
cm48_sdcciy_exp_fastcall:
call cm48_sdcciyp_dx2m48
call am48_exp
jp cm48_sdcciyp_m482d
|
// Copyright (c) 2017, Robert Escriva
// 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 c... |
; A141891: Primes congruent to 8 mod 21.
; 29,71,113,197,239,281,449,491,617,659,701,743,827,911,953,1163,1289,1373,1499,1583,1667,1709,1877,2003,2087,2129,2213,2297,2339,2381,2423,2549,2591,2633,2801,2843,2927,2969,3011,3137,3221,3347,3389,3557,3767,3851,4019,4229,4271,4397,4481,4523,4649,4691,4733,4817,4943,5153,5237... |
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include "catch.hpp"
#include "decisions.h"
TEST_CASE("Verify Test Configuration", "verification") {
REQUIRE(true == true);
}
TEST_CASE("Verify Correct number is returned for corresponding letter") {
REQUIRE(get_grade_... |
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2011-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 so... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x81e8, %rsi
lea addresses_D_ht+0x140a8, %rdi
sub %r12, %r12
mov $123, %rcx
rep movsq
nop
nop
nop
nop
add %rdx, %rdx
lea addresses_WT_ht+0x1e808, %r14
nop
nop
sub $29821, %r9
mov $0x61626... |
; A077921: Expansion of (1-x)^(-1)/(1+2*x-x^2).
; 1,-1,4,-8,21,-49,120,-288,697,-1681,4060,-9800,23661,-57121,137904,-332928,803761,-1940449,4684660,-11309768,27304197,-65918161,159140520,-384199200,927538921,-2239277041,5406093004,-13051463048,31509019101,-76069501249,183648021600,-443365544448,1070379110497,-25841237... |
/*
//@HEADER
// ************************************************************************
//
// Kokkos v. 2.0
// Copyright (2019) Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the U.S. Government retains certain rights in this softw... |
;Testname=test; Arguments=-fbin -ouscore.bin; Files=stdout stderr uscore.bin
dd 0x1234_5678
dd 305_419_896 ; Same number as above it
dd 0x1e16 ; NOT a floating-point number!
dd 1e16h ; NOT a floating-point number!
dd 1e16_h ; NOT a floating-point number!
dd $1e16 ; NOT a floating-point number!
dd $1e+16 ; ... |
#pragma once
#include <QObject>
#include <QTextDocument>
#include "QmlUtils.hxx"
namespace Ide::Ui {
class Format;
class editorSelection : public QObject
{
Q_OBJECT
Q_PROPERTY(int startPosition READ getStartPosition WRITE setStartPosition NOTIFY startPositionChanged)
Q_PROPERTY(int endPosition READ get... |
dnl Intel P6 mpn_sqr_basecase -- square an mpn number.
dnl Copyright 1999, 2000, 2002 Free Software Foundation, 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 General Public License a... |
//=================================================================================================
/*!
// \file src/mathtest/dmatsmatsub/MDaDCa.cpp
// \brief Source file for the MDaDCa dense matrix/sparse matrix subtraction math test
//
// Copyright (C) 2012-2019 Klaus Iglberger - All Rights Reserved
//
// This fi... |
/*
* SparkOTAServer.cpp
*
* Created on: 10.10.2021
* Author: steffen
*/
#include "SparkOTAServer.h"
const char *SparkOTAServer::serverIndex =
"<script src='https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js'></script>"
"<form method='POST' action='#' enctype='multipart/form-data' id='up... |
/*
* fpu/fpu_uae.cpp
*
* Basilisk II (C) 1997-2008 Christian Bauer
*
* MC68881/68040 fpu emulation
*
* Original UAE FPU, copyright 1996 Herman ten Brugge
* Rewrite for x86, copyright 1999-2000 Lauri Pesonen
* New framework, copyright 2000 Gwenole Beauchesne
* Adapted for JIT compilation (c) Bernd Meyer... |
; A097882: a(n) = floor( n^2/prime(n) ).
; 0,1,1,2,2,2,2,3,3,3,3,3,4,4,4,4,4,5,5,5,6,6,6,6,6,6,7,7,7,7,7,7,7,8,8,8,8,8,9,9,9,9,9,10,10,10,10,10,10,10,11,11,11,11,11,11,12,12,12,12,13,13,12,13,13,13,13,13,13,14,14,14,14,14,14,15,15,15,15,15,15,15,15,16,16,16,16,16,17,17,17,17,17,17,18,18,18,18,18,18
mov $1,$0
add $0,1
... |
/*
*
* Copyright (c) 2021 Project CHIP 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 requir... |
; A098894: Values of n such that {s(1),...,s(n)} is a palindrome, where {s(1),s(2),...} is the fixed-point of the substitutions 0->1 and 1->110.
; 1,2,5,8,15,22,39,56,97,138,237,336,575,814,1391,1968,3361,4754,8117,11480,19599,27718,47319,66920,114241,161562,275805,390048,665855,941662,1607519,2273376,3880897,5488418,9... |
<%
from pwnlib.shellcraft.powerpc.linux import syscall
%>
<%page args="pid, pgid"/>
<%docstring>
Invokes the syscall setpgid. See 'man 2 setpgid' for more information.
Arguments:
pid(pid_t): pid
pgid(pid_t): pgid
</%docstring>
${syscall('SYS_setpgid', pid, pgid)}
|
;
; Z88 Graphics Functions - Small C+ stubs
;
; Written around the Interlogic Standard Library
;
; Trace a relative line in the stencil vectors
;
; Stefano Bodrato - 08/10/2009
;
;
; $Id: stencil_add_lineto.asm,v 1.8 2016-07-02 09:01:35 dom Exp $
;
;; void stencil_add_lineto(int x, int y, unsigned ch... |
; print word/long to channel 1993 O.Fink
;
include win1_mac_oli
include win1_keys_qdos_io
section utility
xdef ut_prw
xdef ut_prl
;+++
; print a character to a given channel (timeout = -1)
;
; Entry Exit
; d1.w/... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2018 The Chronos developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-l... |
.data
c: .word 1337
d: .word 1234567
.text
main:
lw $t0, c
mtc1 $t0, $f0
cvt.s.w $f12, $f0
li $v0, 2
syscall
li $a0, 32
li $v0, 11
syscall
lw $t0, d
mtc1 $t0, $f0
cvt.d.w $f12, $f0
li $v0, 3
syscall
|
; DCAPVxD.ASM
;
; A VxD whose purpose is to be able to set a Win32 event at
; interrupt time
;
; Created 13-Aug-96 [JonT]
; DeviceIO support 29-May-97 [MikeG]
PAGE 58,132
.386p
WIN40COMPAT EQU 1
.xlist
include vmm.inc
include debug.inc
include vwin32.inc
.list
; ... |
SECTION code_driver
PUBLIC asm_line
GLOBAL __templ_d
GLOBAL y_table
GLOBAL asm_drawing_wrbyte
;; Draw a line between (B,C) and (D,E)
asm_line:
LD A,C ;Calculate Delta Y
SUB E
JR NC,s1
CPL
INC A
s1: LD (delta_y),A
LD H,A
LD A,B ;Calculate Delta X
SUB D
JR NC,s2
CPL
INC A
s2: LD ... |
;=============================================================================|
; _______ _________ _______ _______ |
; ( ____ \\__ __/|\ /|( ____ \( ____ ) |
; | ( \/ ) ( | ) ( || ( \/| ( )| |
... |
; A040168: Continued fraction for sqrt(182).
; 13,2,26,2,26,2,26,2,26,2,26,2,26,2,26,2,26,2,26,2,26,2,26,2,26,2,26,2,26,2,26,2,26,2,26,2,26,2,26,2,26,2,26,2,26,2,26,2,26,2,26,2,26,2,26,2,26,2,26,2,26,2,26,2,26,2
sub $0,1
mod $0,2
mul $0,11
add $0,2
mul $0,8
pow $0,2
div $0,99
mul $0,4
div $0,18
add $0,2
|
;
; Copyright (C) 2014-2014 Intel Corporation.
; SPDX-License-Identifier: MIT
;
include asm_macros.inc
PROLOGUE
PUBLIC main
.code
main PROC
lea RETURN_REG,next_line
push RETURN_REG
mov RETURN_REG,0fedh
; This is a jmp with bad address, but it will be translated to "jmp *(rsp)"
jmp ADDRINT_PTR [RET... |
;
; jdmerss2.asm - merged upsampling/color conversion (SSE2)
;
; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
; Copyright 2009 D. R. Commander
;
; Based on
; x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYASAKA Masaru.
; For conditions of distribution and use, see copyright notic... |
; A030119: a(n) = a(n-1) + a(n-2) + n, a(0) = a(1) = 1.
; 1,1,4,8,16,29,51,87,146,242,398,651,1061,1725,2800,4540,7356,11913,19287,31219,50526,81766,132314,214103,346441,560569,907036,1467632,2374696,3842357,6217083,10059471,16276586,26336090,42612710,68948835,111561581,180510453,292072072,472582564,764654676,123723728... |
.EQU LOOP_COUNT = 0xFF
.EQU LOOP_COUNT_IN = 0X5E
;---------------------------------------------
;- Port Constants
;--------------------------------------------------------------------
.EQU LED_PORT = 0x40 ; port for LED output --- OUTOUT
;--------------------------------------------------------------------
.... |
#include <iostream>
#include <vector>
using namespace std;
int main() {
int num;
vector<int> vec;
vector<int> v;
cout << "Introduzca los valores positivos del vector, para finalizar de introducir datos introduzca un valor negativo: " << endl;
do {
cin >> num;
vec.push_back(num);
}whi... |
.data
msg1: .asciiz "enter an integer : "
msg2: .asciiz "your integer is : "
.text
print_msg1:li $v0,4
la $a0,msg1
syscall
read_integer:li $v0,5
syscall
la $s0,($v0) #save_integer_in_s0:
print_msg2:li $v0,4
la $a0,msg2
syscall
print_int... |
; A248515: Least number k such that 1 - k*sin(1/k) < 1/n^2.
; 1,1,2,2,3,3,3,4,4,5,5,5,6,6,7,7,7,8,8,9,9,9,10,10,11,11,12,12,12,13,13,14,14,14,15,15,16,16,16,17,17,18,18,18,19,19,20,20,21,21,21,22,22,23,23,23,24,24,25,25,25,26,26,27,27,27,28,28,29,29,29,30,30,31,31,32,32,32,33,33,34,34,34,35,35,36,36,36,37,37,38,38,38,3... |
; A290073: Decimal representation of the diagonal from the corner to the origin of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 641", based on the 5-celled von Neumann neighborhood.
; 1,2,5,12,29,60,125,252,509,1020,2045,4092,8189,16380,32765,65532,131069,262140,524285,1048572,209... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r14
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x130a6, %r10
nop
cmp %rax, %rax
vmovups (%r10), %ymm0
vextracti128 $0, %ymm0, %xmm0
vpextrq $1, %xmm0, %r11
nop
nop
nop
dec %rbp
lea addresses_A_ht+0x154b6, %rsi
lea addresse... |
; A022968: 12-n.
; 12,11,10,9,8,7,6,5,4,3,2,1,0,-1,-2,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-23,-24,-25,-26,-27,-28,-29,-30,-31,-32,-33,-34,-35,-36,-37,-38,-39,-40,-41,-42,-43,-44,-45,-46,-47,-48
sub $0,12
mul $0,-120259084286
mov $1,$0
div $1,120259084286
|
; returns next available trk & sec
; given current t & s
; allocation is from trk 40
; towards 1 & 80, by full tracks
nxtts jsr gethdr
lda #3
sta temp ; set pass count
lda #1 ; find next
ora wbam
sta wbam
nxtds jmp ptch36
rtch36 jsr setbam
pl... |
; int putc_unlocked(int c, FILE *stream)
SECTION code_clib
SECTION code_stdio
PUBLIC putc_unlocked_callee
EXTERN fputc_unlocked_callee
defc putc_unlocked_callee = fputc_unlocked_callee
|
#include "fftrwrapper.h"
#include <assert.h>
template<class T>
FFTrWrapper<T>::FFTrWrapper(int nfft, bool kissfft_scaling)
{
this->kissfft_scaling=kissfft_scaling;
this->nfft=nfft;
fft.init(nfft);
}
template<class T>
FFTrWrapper<T>::~FFTrWrapper()
{
}
template<class T>
void FFTrWrapper<T>::transform(con... |
; cf. https://intermezzos.github.io/book/multiboot-headers.html
section .multiboot_header
%define MULTIBOOT2_MAGIC_NUMBER 0xe85250d6
%define PROTECTED_MODE_CODE 0
; it is a label
header_start:
; `dd` means 'define double word'
dd MULTIBOOT2_MAGIC_NUMBER
dd PROTECTED_MODE_CODE
dd header_end - header_s... |
#include <gtest/gtest.h>
#include "diablo.h"
#include "scrollrt.h"
#include "utils/ui_fwd.h"
using namespace devilution;
// TilesInView
TEST(Scroll_rt, calc_tiles_in_view_original)
{
gnScreenWidth = 640;
gnScreenHeight = 480;
gnViewportHeight = gnScreenHeight - 128;
zoomflag = true;
int columns... |
#include "getdatathread.h"
getDataThread::getDataThread(QString url,int request_type,QString data)
{
// request_url = QUrl(url);
this->url = url;
this->request_type = request_type;
this->data = data;
// nam = new QNetworkAccessManager(this);
// QObject::connect(nam,SIGNAL(finished(QNetworkReply*)... |
###############################################################################
# Copyright 2018 Intel Corporation
# All Rights Reserved.
#
# If this software was obtained under the Intel Simplified Software License,
# the following terms apply:
#
# The source code, information and material ("Material") containe... |
; A010689: Periodic sequence: Repeat 1, 8.
; 1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1
mod $0,2
mov $1,8
pow $1,$0
|
;
; x86 format converters for HERMES
; Copyright (c) 1998 Glenn Fielder (gaffer@gaffer.org)
; This source code is licensed under the GNU LGPL
;
; Please refer to the file COPYING.LIB contained in the distribution for
; licensing conditions
;
; Routines adjusted for Hermes by Christian Nentwich (brn@eleet.mcb.at)
; ... |
; A007798: Expected number of random moves in Tower of Hanoi problem with n disks starting with a randomly chosen position and ending at a position with all disks on the same peg.
; 0,0,2,18,116,660,3542,18438,94376,478440,2411882,12118458,60769436,304378620,1523487422,7622220078,38125449296,190670293200,953480606162,4... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.