text stringlengths 1 1.05M |
|---|
;
; Z88 Graphics Functions - Small C+ stubs
;
; Written around the Interlogic Standard Library
;
; Stubs Written by D Morris - 30/9/98
;
;
; $Id: undrawr.asm,v 1.7 2016/04/13 21:09:09 dom Exp $
;
;Usage: undrawr(struct *pixels)
SECTION code_clib
PUBLIC undrawr
... |
# $Id: 05_mul_r0.asm,v 1.3 2001/03/22 00:38:59 ellard Exp $
#
# Copyright 1999-2001 by the President and Fellows of Harvard College.
# See LICENSE.txt for license information.
#
#@ tests mul with r0
# OK
lc r2, -100
lc r3, 100
mul r0, r2, r3
add r5, r1, r0
hlt
|
;
; Include code from halx86
; This is a cpp style symbolic link
include ..\..\halx86\i386\ixslpctx.asm
|
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.16384
//
//
///
// Buffer Definitions:
//
// cbuffer cbPS
// {
//
// float4 g_param; // Offset: 0 Size: 16
//
// }
//
// Resource bind info for lum
// {
//
// float $Element; // Offset: 0 Size: 4
//
/... |
;
; @file x64.asm
;
; @brief All assembly code.
;
; @author Satoshi Tanda
;
; @copyright Copyright (c) 2017, Satoshi Tanda. All rights reserved.
;
.code
extern SvHandleVmExit : proc
;
; @brief Saves all general purpose registers to the stack.
;
; @details This macro does not alter the flag... |
xres equ 640
yres equ 169
bplsz equ (yres*xres/8)
planes equ 2
xstart equ 110
ystart equ 20
yperline equ 10
bss equ $20000
gfx equ bss + size
trainer:
; a4=bss; a5=ciaa; a6=custom (set up on entry)
lea (bss).l,a4
lea.l ($bfe... |
/**********************************************************************
Audacity: A Digital Audio Editor
MacroCommands.cpp
Dominic Mazzoni
James Crook
********************************************************************//*!
\class MacroCommands
\brief Maintains the list of commands for batch/macro
process... |
#include "VideoCapture.h"
#include "VideoCaptureBindings.h"
Nan::Persistent<v8::FunctionTemplate> VideoCapture::constructor;
NAN_MODULE_INIT(VideoCapture::Init) {
v8::Local<v8::FunctionTemplate> ctor = Nan::New<v8::FunctionTemplate>(VideoCapture::New);
constructor.Reset(ctor);
ctor->InstanceTemplate()->SetInter... |
; A044311: Numbers n such that string 6,6 occurs in the base 9 representation of n but not of n-1.
; 60,141,222,303,384,465,540,627,708,789,870,951,1032,1113,1194,1269,1356,1437,1518,1599,1680,1761,1842,1923,1998,2085,2166,2247,2328,2409,2490,2571,2652,2727,2814,2895,2976,3057,3138
mov $4,$0
add $0,3
mod $0,9
lpb $0,1... |
; A158252: 289n^2 - 2n.
; 287,1152,2595,4616,7215,10392,14147,18480,23391,28880,34947,41592,48815,56616,64995,73952,83487,93600,104291,115560,127407,139832,152835,166416,180575,195312,210627,226520,242991,260040,277667,295872,314655,334016,353955,374472,395567,417240,439491,462320,485727,509712,534275,559416,585135,611... |
; A075894: Average of four successive primes squared, (prime(n)^2 + prime(n+1)^2 + prime(n+2)^2 + prime(n+3)^2)/4, n>=2.
; Submitted by Jamie Morken(s1)
; 51,91,157,235,337,505,673,925,1213,1465,1777,2137,2587,3055,3625,4183,4645,5275,5875,6595,7615,8605,9535,10417,11035,11677,13057,14485,16207,17845,19363,20773,22243,... |
; For values of rax greater than or equal to zero, this snippet
; performs integer division by 8 of the contents of rax and
; adds the content of the carry flag to the result.
; Assemble with $ nasm -felf64 0x09.asm && ld 0x09.o && ./a.out
global _start
section .text
_start:
mov rax, 9 ; Initialize rax (any va... |
; A214090: Period 6: repeat [0, 0, 1, 0, 1, 1].
; 0,0,1,0,1,1,0,0,1,0,1,1,0,0,1,0,1,1,0,0,1,0,1,1,0,0,1,0,1,1,0,0,1,0,1,1,0,0,1,0,1,1,0,0,1,0,1,1,0,0,1,0,1,1,0,0,1,0,1,1,0,0,1,0,1,1,0,0,1,0,1,1,0,0,1,0,1,1,0,0,1,0,1,1,0,0
mod $0,6
lpb $0
gcd $0,3
mov $1,$0
lpe
|
; float __fsub (float left, float right)
SECTION code_clib
SECTION code_fp_am9511
PUBLIC cam32_sdcc_fsub
EXTERN asm_sdcc_readr, asm_am9511_fsub
.cam32_sdcc_fsub
; subtract sdcc float from sdcc float
;
; enter : stack = sdcc_float right, sdcc_float left, ret
;
; exit : DEHL = sdcc_float(left-r... |
/**
* @file macro_utils.hpp
* @author ashwinn76
* @brief Macros used in the repo
* @version 0.1
* @date 2020-08-20
*
* @copyright Copyright (c) 2020
*
*/
#pragma once
#include <stdint.h>
#ifdef __cpp_consteval
# define __CONSTEVAL consteval
#else
# define __CONSTEVAL constexpr
#endif
#if( defined __c... |
/****************************************************************************
** Meta object code from reading C++ file 'qcustomplot.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.7.0)
**
** WARNING! All changes made in this file will be lost!
***************************************************... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r14
push %rdx
push %rsi
lea addresses_A_ht+0x122e, %r10
and %r14, %r14
mov $0x6162636465666768, %rdx
movq %rdx, %xmm3
and $0xffffffffffffffc0, %r10
vmovntdq %ymm3, (%r10)
nop
nop
nop
nop
sub $25778, %r14
lea addresses_UC_ht+0x18656, %r10
add $55713,... |
// . . . . . . . .
// 0 1 2 3 4 5 6 7
// DIFFERENT APPROACH
// PATTERN 6 ON PORT 2
//
// . . . .
// . . . .
// . . . .
// . . . .
// 0 1 2 3 4 5 6 7
ORG 0000H
// MAIN PROGRAM
REPEAT: MOV P2,#00H
ACALL DELAY
MOV P2,#0F0H
ACALL DELAY
MOV P2,#0FH
ACALL DELAY
MOV P2,#0AAH
... |
// Copyright (c) 2016-2017 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 <amount.h>
#include <policy/feerate.h>
#include <test/test_bitcoin.h>
#include <boost/test/unit_test.hpp>
BOOST_FI... |
// Copyright (c) 2011-2019 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/bitcoin.h>
#include <chainparams.h>
#include <config.h>
#include <httprpc.h>
#include <interfaces/handler.h>
#i... |
;Adding N single byte numbers stored as a array with num as starting memory location
.MODEL small
.STACK
.DATA ; variable declaration section
N db 4h
num1 db 0c0h,2h,3h,4h
num2 db 40h,6h,7h,8h
sum db ?
; code section
.CODE
.STARTUP
mov cx, 00h
mov cl,N
clc
subtract: mov al,num1[si]
... |
*= $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)nopb"
.byte 0
lda #%00011011
sta db
lda #%11000110
st... |
/*
* The MIT License
*
* Copyright (c) 1997-2021 The University of Utah
*
* 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
* right... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2018 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 <script/interpreter.h>
#include <nameclaim.h>
#include <crypto/ripemd16... |
; A141967: Primes congruent to 5 mod 28.
; Submitted by Jon Maiga
; 5,61,89,173,229,257,313,397,509,593,677,733,761,929,1013,1069,1097,1153,1181,1237,1321,1433,1489,1601,1657,1741,1993,2161,2273,2357,2441,2609,2693,2749,2777,2833,2861,2917,3001,3169,3253,3449,3533,3617,3673,3701,4093,4177,4261,4289,4373,4457,4513,4597,... |
; A294287: Sum of the cubes of the parts in the partitions of n into two distinct parts.
; 0,0,9,28,100,198,441,720,1296,1900,3025,4140,6084,7938,11025,13888,18496,22680,29241,35100,44100,52030,64009,74448,90000,103428,123201,140140,164836,185850,216225,241920,278784,309808,354025,391068,443556,487350,549081,600400,672... |
;------------------------------------------------------------------------------
;
; 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... |
// Copyright (c) 2012 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/chromeos/extensions/file_manager_util.h"
#include "ash/shell.h"
#include "base/bind.h"
#include "base/command_line.h"
#includ... |
; A262261: a(n) = Product_{k=0..n} binomial(4*k,k).
; Submitted by Jon Maiga
; 1,4,112,24640,44844800,695273779200,93581069585203200,110803729631663996928000,1165466869384731418887782400000,109720873815210197693149787062272000000,93006053830822450607559730484293052399616000000
mov $1,2
lpb $0
mov $2,4
mul $2,$0
... |
def main(en:bool, a0:i8<4>, b0:i8<4>, a1:i8<4>, b1:i8<4>, a2:i8<4>, b2:i8<4>, a3:i8<4>, b3:i8<4>, a4:i8<4>, b4:i8<4>, a5:i8<4>, b5:i8<4>, a6:i8<4>, b6:i8<4>, a7:i8<4>, b7:i8<4>, a8:i8<4>, b8:i8<4>, a9:i8<4>, b9:i8<4>, a10:i8<4>, b10:i8<4>, a11:i8<4>, b11:i8<4>, a12:i8<4>, b12:i8<4>, a13:i8<4>, b13:i8<4>, a14:i8<4>, b14... |
// http://turtle.sourceforge.net
//
// Copyright Mathieu Champlon 2008
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef MOCK_CONSTRAINT_HPP_INCLUDED
#define MOCK_CONSTRAINT_HPP_INCLUDED
#include "conf... |
Name: zel_title.asm
Type: file
Size: 164609
Last-Modified: '2016-05-13T04:25:37Z'
SHA-1: 353AD641914406434685E1B49B3CBB9FE72C0156
Description: null
|
NOP
NOP
HCF
|
#include "Platform.inc"
#include "TailCalls.inc"
#include "InitialisationChain.inc"
#include "ShiftRegister.inc"
radix decimal
SHCP_PIN_ANSEL_MASK equ (1 << ANS4)
STCP_PIN_ANSEL_MASK equ (1 << ANS5)
DS_PIN_ANSEL_MASK equ (1 << ANS6)
ANSEL_DIGITAL_MASK equ SHCP_PIN_ANSEL_MASK | STCP_PIN_ANSEL_MASK | DS_PIN_ANSEL_... |
.model small
.data
a bd 20
b db 10
c db?
.code
mov ax,@data
mov ds,ax
mov al,a
sub al,b
mov c,al
mov ah,4ch
int 21h
end
|
dnl IA-64 mpn_mul_1, mpn_mul_1c -- Multiply a limb vector with a limb and
dnl store the result in a second limb vector.
dnl Contributed to the GNU project by Torbjorn Granlund.
dnl Copyright 2000-2004, 2006, 2007 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Lib... |
#Implementação da atividade 04 em Codigo MIPS
#Somatorio(4k+2); sendo k =1 até k = 20;
.data
.text
main:
addi $t0, $zero, 1 # $t0 = 1; Que equivale há k = 1
addi $s0, $zero, 0 #soma = 0
while:
bgt $t0, 20, exit # Se $t0 > 20 sai do loop
mul $t1, $t0, 4 # $t1 = $t0 * 4
... |
; Troy's HBC-56 - LCD picture gallery
;
; Copyright (c) 2021 Troy Schrapel
;
; This code is licensed under the MIT license
;
; https://github.com/visrealm/hbc-56
;
!src "hbc56kernel.inc"
BUFFER_ADDR = $1000
TMP1 = HBC56_USER_ZP_START
; -----------------------------------------------------------------------------
; ... |
li $s0,3 #a
li $s1,7 #b
la $t0,($s0)
la $s0,($s1)
la $s1,($t0)
li $v0,1
la $a0,($s0)
syscall
li $v0,1
la $a0,($s1)
syscall
|
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r15
push %r9
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x59b6, %r14
dec %rbp
mov $0x6162636465666768, %r15
movq %r15, (%r14)
nop
nop
sub $1618, %r9
lea addresses_normal_ht+0x176c2, %rdx
nop
nop
add $24776, %r9
movups (%rdx), %xmm5
v... |
<%
from pwnlib.shellcraft.powerpc.linux import syscall
%>
<%page args=""/>
<%docstring>
Invokes the syscall geteuid. See 'man 2 geteuid' for more information.
Arguments:
</%docstring>
${syscall('SYS_geteuid')}
|
dnl HP-PA mpn_rshift -- Shift a number right.
dnl Copyright 1992, 1994, 2000-2002 Free Software Foundation, Inc.
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 modify
dnl it under the terms of either:
dnl
dnl * the GNU Lesser General P... |
; A134490: a(n) = Fibonacci(5n + 3).
; 2,21,233,2584,28657,317811,3524578,39088169,433494437,4807526976,53316291173,591286729879,6557470319842,72723460248141,806515533049393,8944394323791464,99194853094755497,1100087778366101931
mul $0,5
seq $0,166876 ; a(n) = a(n-1) + Fibonacci(n), a(1)=1983.
sub $0,1981
|
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
// Copyright (c) 2016-21, Lawrence Livermore National Security, LLC
// and RAJA project contributors. See the RAJA/LICENSE file for details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... |
#include "composite_device_writer.h"
#include "sysfs_pwm_writer.h"
using namespace std;
using namespace Fannn;
CompositeDeviceWriter::CompositeDeviceWriter() {
//todo: dynamically load sensor reader plugins
writers.push_back(&SysfsPwmWriter::instance());
for (auto writer : writers) {
vector<strin... |
//
// Created by rege on 09.03.17.
//
#include <pugixml.hpp>
#include <plog/Log.h>
#include "Config.hpp"
using namespace std;
using namespace pugi;
xml_document config;
xml_parse_result result;
Config::Config ()
{}
string Config::filePath = DEFAULT_CONFIG_PATH;
void Config::init (const char * pathToConfig)
{
... |
; size_t b_vector_insert(b_vector_t *v, size_t idx, int c)
SECTION code_clib
SECTION code_adt_b_vector
PUBLIC b_vector_insert
EXTERN asm_b_vector_insert
b_vector_insert:
pop af
pop de
pop bc
pop hl
push hl
push bc
push de
push af
jp asm_b_vector_insert
; SDCC bridge for Classic... |
; A111500: Number of squares in an n X n grid of squares with diagonals.
; 1,10,31,72,137,234,367,544,769,1050,1391,1800,2281,2842,3487,4224,5057,5994,7039,8200,9481,10890,12431,14112,15937,17914,20047,22344,24809,27450,30271,33280,36481,39882,43487,47304,51337,55594,60079,64800,69761,74970,80431,86152,92137,98394,1049... |
.global s_prepare_buffers
s_prepare_buffers:
push %r15
push %r9
push %rbx
push %rcx
lea addresses_A_ht+0xb918, %r15
nop
nop
nop
nop
xor $22144, %r9
mov $0x6162636465666768, %rbx
movq %rbx, %xmm3
vmovups %ymm3, (%r15)
nop
nop
nop
nop
and $25448, %rcx
pop %rcx
pop %rbx
pop %r9
pop %r15
ret
.global s_faulty_load
s_fa... |
/*
* Copyright (C) 2015 Open Source Robotics Foundation
*
* 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 appl... |
;
; Reader scanner with jump table
;
Scanner: MACRO ?jumpTable = 0
; ix = this
; iy = reader
Process:
push ix ; return to Process
call Reader_Read_IY
ld l,a
ld h,?jumpTable
jumpTable: equ $ - 1
ld a,(hl)
inc h
ld h,(hl)
ld l,a
jp hl
ENDM
; hl = jump table
; ix = this
Scanner_Construct:
ld a,l
... |
;;
;; Upcaste Performance Libraries
;; Copyright (C) 2012-2013 Jesse W. Towner
;;
;; 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 limitatio... |
; A016788: a(n) = (3*n+1)^12.
; 1,16777216,13841287201,1000000000000,23298085122481,281474976710656,2213314919066161,12855002631049216,59604644775390625,232218265089212416,787662783788549761,2386420683693101056,6582952005840035281,16777216000000000000,39959630797262576401,89762301673555234816,191581231380566414401,3908... |
#include <vector>
#include <map>
using namespace std;
map<float, vector<vector<tuple<string, int> > > > monteCarloWrapper(vector<string> keysCR, map<string, map<string, vector<vector<float> > > > &groupedCR, vector<string> keysRR,
map<string, map<str... |
#pragma once
#include <string>
#include <fstream>
enum struct LoggingLevel
{
LOG_LOWEST = 0,
LOG_TRACE = 0,
LOG_DEBUG = 1,
LOG_INFO = 2,
LOG_ERROR = 3,
LOG_NONE = 4,
LOG_HIGHEST = 4
};
#define CLOG_TRACE 0
#define CLOG_DEBUG 1
#define CLOG_INFO 2
#define CLOG_ERROR 3
class Log
{
public:
static ... |
TITLE uinhelp.asm - utilities for new help engine.
;***
;uinhelp.asm
;
; Copyright <C> 1985-1988, Microsoft Corporation
;
;Purpose:
; Utilities for the new help system.
;
;
;*******************************************************************************
.xlist
include version.inc
.list
UINHELP_ASM = ON
include... |
%ifdef CONFIG
{
"RegData": {
"MM0": ["0x2424242424242424", "0x0"],
"MM1": ["0x2424242424242424", "0x0"],
"MM2": ["0x1818181818181818", "0x0"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
mov rdx, 0xe0000000
mov rax, 0x3C3C3C3C3C3C3C3C
mov [rdx + 8 * 0], rax
mov rax, 0x3C3C3C3C3C3C3C3... |
SECTION code_clib
SECTION code_fp_math48
PUBLIC asm_hypot
EXTERN am48_hypot
defc asm_hypot = am48_hypot
|
// Copyright 2020 The Fuchsia 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 <block-client/cpp/fake-device.h>
#include <fbl/auto_call.h>
#include <gtest/gtest.h>
#include "src/storage/minfs/bcache.h"
#include "src/storage/... |
; A129790: a(n) = ceiling(6^n/n).
; 6,18,72,324,1556,7776,39991,209952,1119744,6046618,32981551,181398528,1004668771,5597440293,31345665639,176319369216,995685849691,5642219814912,32071565263711,182807922003149,1044616697160851,5982804720103052,34336096654504471,197432555763400704,1137211521197188056,656083569921454647... |
;*****************************************************************************
;* x86-optimized functions for anlmdn filter
;* Copyright (c) 2017 Paul B Mahol
;*
;* This file is part of FFmpeg.
;*
;* FFmpeg is free software; you can redistribute it and/or
;* modify it under the terms of the GNU Lesser General Public
;*... |
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
using nam... |
sec
sbc {c1},x
|
;
;
; Copyright (c) 2015 - 2021 by blindtiger. All rights reserved.
;
; The contents of this file are subject to the Mozilla Public 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.mozilla.org/MPL/
;
;... |
#include "NernstChannel.h"
// Inactivating calcium channel (mPower = 3, hPower = 1)
// Base formula from Turrigiano et al., 1995 (Ca1 in that paper)
// Cultured spiny lobster STG cells, recorded at room temperature (22-25 C)
// Adjustable with vShift, vScale, tauScale
DECLARE_SOLUTE(Ca, 2);
class CaT : public Nernst... |
###############################################################################
# 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... |
// MIT License
//
// Copyright (c) 2017 PerduGames
//
// 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, ... |
# Paul McKenney's Statistical Counter (PerfBook 5.2)
#
# Counter thread: increment global variable heap[0] 4 times.
#
# steps:
# * formula = loop * (4 - 1) + total
# * loop = 9
# * total = 11
#
# template parameter:
# * 12 = local counter address
#
# initial:
# * heap[0] = 0
# * heap[12] = 4
#
# input:
# * heap[12] = l... |
#pragma once
#include <SFGUI/Config.hpp>
#include <SFML/System/Vector2.hpp>
#include <memory>
namespace sf {
class Image;
}
namespace sfg {
/** Primitive Texture
*/
class SFGUI_API PrimitiveTexture {
public:
typedef std::shared_ptr<PrimitiveTexture> Ptr; //!< Shared pointer.
~PrimitiveTextur... |
;
; NoOS boot sector
;
; Stack top at 0x8000
;
%define LBA 1
%define SECTORS 13
%define SEGMENT 0x1000
%define OFFSET 0x0
%define BASE 0x10000
org 0x7c00
; Bios entry
boot0:
use16
cli
; Set data and stack segments to 0
xor ax, ax
mov ds, ax
mov es, ax
mov ss, ax
... |
/* The copyright in this software is being made available under the BSD
* License, included below. This software may be subject to other third party
* and contributor rights, including patent rights, and no such rights are
* granted under this license.
*
* Copyright (c) 2010-2016, ITU/ISO/IEC
* All rights reserve... |
//-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2019 Ryo Suzuki
// Copyright (c) 2016-2019 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
# include "Fwd.hpp"
# include "O... |
; A158644: a(n) = 52*n^2 + 1.
; 1,53,209,469,833,1301,1873,2549,3329,4213,5201,6293,7489,8789,10193,11701,13313,15029,16849,18773,20801,22933,25169,27509,29953,32501,35153,37909,40769,43733,46801,49973,53249,56629,60113,63701,67393,71189,75089,79093,83201,87413,91729,96149,100673,105301,110033,114869,119809,124853,1300... |
k = 1
kk = 2
kiki = 3
n = 4
nn = 5
nini = 6
ld de,k
ld de,kk
ld de,kiki
ld bc,g ; should be "error label not found"
ld bc,m ; should be "error label not found"
ld bc,n
ld sp,nn
ld... |
db 0 ; 335 DEX NO
db 73, 115, 60, 90, 60, 60
; hp atk def spd sat sdf
db NORMAL, NORMAL ; type
db 90 ; catch rate
db 165 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F50 ; gender ratio
db 100 ; unknown 1
db 20 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/hoenn/zangoose/front... |
; A077873: Expansion of (1-x)^(-1)/(1-x+x^2+2*x^3).
; Submitted by Simon Strandgaard
; 1,2,2,-1,-6,-8,1,22,38,15,-66,-156,-119,170,602,671,-270,-2144,-3215,-530,6974,13935,8022,-19860,-55751,-51934,43538,206975,267306,-26744,-707999,-1215866,-454378,2177487,5063598,3794868,-5623703,-19545766,-21511798,9281375,69884706,... |
// This file is part of lumeview, a lightweight viewer for unstructured meshes
//
// Copyright (C) 2018 Sebastian Reiter
// Copyright (C) 2018 G-CSC, Goethe University Frankfurt
// Author: Sebastian Reiter <s.b.reiter@gmail.com>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or wi... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r15
push %r9
push %rax
push %rbx
push %rdx
lea addresses_UC_ht+0xb89d, %r15
nop
nop
nop
nop
nop
add %r12, %r12
mov $0x6162636465666768, %r9
movq %r9, %xmm7
movups %xmm7, (%r15)
nop
nop
nop
xor $2155, %r12
lea addresses_UC_ht+0x1276d, %rdx
nop
add $27429, %rax... |
; A131474: a(n) = ceiling(n/2)*ceiling(n^2/2).
; 0,1,2,10,16,39,54,100,128,205,250,366,432,595,686,904,1024,1305,1458,1810,2000,2431,2662,3180,3456,4069,4394,5110,5488,6315,6750,7696,8192,9265,9826,11034,11664,13015,13718,15220,16000,17661,18522,20350,21296,23299,24334,26520,27648,30025,31250,33826,35152,37935,39366,42... |
// 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 "third_party/blink/public/common/font_unique_name_lookup/font_table_matcher.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_par... |
; -----------------------------------------------------------------
; Music keyboard
; Based on keyboard.asm from MikeOS
; Use Z key rightwards for an octave
; -----------------------------------------------------------------
[BITS 64]
[ORG 0x0000000000200000]
%INCLUDE "bmdev.asm"
music_keyboard:
mo... |
dnl IA-64 mpn_invert_limb -- Invert a normalized limb.
dnl Copyright 2000, 2002, 2004 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU Lesser General Public License as publ... |
; A211519: Number of ordered triples (w,x,y) with all terms in {1,...,n} and w=2x-3y.
; 0,1,2,3,6,8,11,15,19,23,29,34,40,47,54,61,70,78,87,97,107,117,129,140,152,165,178,191,206,220,235,251,267,283,301,318,336,355,374,393,414,434,455,477,499,521,545,568,592,617,642,667,694,720,747,775,803,831,861,890,920,951,982,1013,1... |
; A246017: Partial sums of A246016.
; 1,2,1,2,3,2,3,4,3,4,3,2,3,4,3,4,5,4,5,6,5,4,5,4,5,6,5,6,7,6,7,8,7,8,7,6,7,8,7,8,7,6,7,6,5,6,5,4,5,6,5,6,7,6,7,8,7,8,7,6,7,8,7,8,9,8,9,10,9,8,9,8,9,10,9,10,11,10,11,12,11,10,11,10,9,10,9,8,9,8,9,10,9,8,9,8,9,10,9,10
lpb $0
mov $2,$0
sub $0,1
seq $2,246016 ; a(n) = (-1)^A05594... |
/**
* Copyright (c) 2016-present, Facebook, Inc.
*
* 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 ... |
EXTERN IRQHandler
EXTERN int80Handler
GLOBAL int20Receiver
GLOBAL int21Receiver
GLOBAL int80Receiver
SECTION .text
%macro irqMacro 1
;Stack frame
push rbp
push rsp
push rbx
push r12
push r13
push r15
mov rdi, %1
call IRQHandler
;Undo stack frame
pop r15
pop r13
pop r12
pop rbx
pop rsp
pop rbp
iret... |
//
// Copyright (c) 2012-2013, ARM Limited. All rights reserved.
//
// This program and the accompanying materials
// are licensed and made available under the terms and conditions of the BSD License
// which accompanies this distribution. The full text of the license may be found at
// http://opensource.or... |
; A001607: a(n) = -a(n-1) - 2*a(n-2).
; 0,1,-1,-1,3,-1,-5,7,3,-17,11,23,-45,-1,91,-89,-93,271,-85,-457,627,287,-1541,967,2115,-4049,-181,8279,-7917,-8641,24475,-7193,-41757,56143,27371,-139657,84915,194399,-364229,-24569,753027,-703889,-802165,2209943,-605613,-3814273,5025499,2603047,-12654045,7447951,17860139,-3275604... |
tilecoll WALL, WALL, WALL, WALL ; 00
tilecoll WALL, WALL, WALL, WALL ; 01
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 02
tilecoll TALL_GRASS, TALL_GRASS, TALL_GRASS, TALL_GRASS ; 03
tilecoll WALL, UP_WALL, WALL, FLOOR ; 04
tilecoll UP_WALL, UP_WALL, FLOOR, FLOOR ; 05
tilecoll UP_WALL, WALL, FLOOR, WALL ; 06
tilecoll ... |
;English
;Using the LOOP instructions, find patterns and
;print the following string to the screen
;abcccbcccabcccbccc
;French
;En utilisant les instructions LOOP, trouver
;les motifs et afficher la chaîne suivante:
org 100h
include "emu8086.inc"
.data
:
to_print db "++++++++++++++++++",0 ; the st... |
; 6.1.1650 HERE
; addr is the data-space pointer.
; D: -- addr
$COLON 'HERE',$HERE
CFETCH $DP
$END_COLON
|
; A053829: Sum of digits of (n written in base 8).
; 0,1,2,3,4,5,6,7,1,2,3,4,5,6,7,8,2,3,4,5,6,7,8,9,3,4,5,6,7,8,9,10,4,5,6,7,8,9,10,11,5,6,7,8,9,10,11,12,6,7,8,9,10,11,12,13,7,8,9,10,11,12,13,14,1,2,3,4,5,6,7,8,2,3,4,5,6,7,8,9,3,4,5,6,7,8,9,10,4,5,6,7,8,9,10,11,5,6,7,8,9,10,11,12,6,7,8,9,10,11,12,13,7,8,9,10,11,12,13,... |
/*
* Copyright (C) 2009-2021 Intel Corporation.
* SPDX-License-Identifier: MIT
*/
// Test an analysis routine that does an fxsave/fxstore.
#include <iostream>
#include <stdio.h>
#include "pin.H"
using std::cerr;
using std::endl;
void my_print(int x)
{
#if defined(TARGET_IA32) || defined(TARGET_IA32E)
static c... |
;******************************************************************************
;* optimized bswap buffer functions
;* Copyright (c) 2008 Loren Merritt
;* Copyright (c) 2003-2013 Michael Niedermayer
;* Copyright (c) 2013 Daniel Kang
;*
;* This file is part of FFmpeg.
;*
;* FFmpeg is free software; you can redistribute ... |
;******************************************************************************
;* TI ARM C/C++ Codegen Unix v18.1.1.LTS *
;* Date/Time created: Fri Jul 3 20:08:26 2020 *
;******************************************************************************
... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2011-2015 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 s... |
; Copyright 2016-2019 Matthew Endsley
; All rights reserved
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted providing that the following conditions
; are met:
; 1. Redistributions of source code must retain the above copyright
; notice, this list of conditions and... |
; A228538: y-values in the solution to the Pell equation x^2 - 58*y^2 = -1.
; Submitted by Christian Krause
; 13,509665,19981925977,783411389344597,30714426910662344005,1204189820676016469715433,47211466078709474801000922193,1850972737877693848372025685783325,72569237114021398940564164235820117757,284514950844135022898... |
#include "MFlow.h"
template <typename T>
void MFlow<T>::new_empty( int nlhs, mxArray* plhs[], int nrhs, const mxArray* prhs[] ) {
if ( nlhs != 1 ) mexErrMsgTxt( "MFlow - new_empty: Expecting an output." );
T* temp = new T();
plhs[0] = convertPtr2Mat<T>( temp );
//+++++++++++++TESTING++++++++++++++++++++
mexPrin... |
#include <sstream>
#include <utility>
#include "print.h"
#include "gtest/gtest.h"
class PrintTest : public ::testing::Test {
protected:
~PrintTest() override = default;
::std::string get_string() {
return sstream.str();
}
virtual void reset() {
::std::stringstream().swap(sstream);
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.