text stringlengths 1 1.05M |
|---|
; Registers:
; RAW hazard
li a0, 1
addi a0, a0, 2
sw a0, 0(zero)
nop
nop
nop
nop
nop
; WAW hazard
li a0, 1
li a0, 2
sw a0, 4(zero)
nop
nop
nop
nop
nop
; WAR hazard
li a0, 1
nop
nop
nop
nop
nop
mv a1, a0
li a0, 2
sw a1, 8(zero)
nop
nop
nop
nop
nop
; Memory:
; RAW hazard (mem / mem)
li a0, 1
li a1, 0
nop
nop
nop
n... |
/*
* Copyright (c) 2020 Samsung Electronics Co., Ltd. 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
*
* Unle... |
; A036487: a(n) = floor((n^3)/2).
; 0,0,4,13,32,62,108,171,256,364,500,665,864,1098,1372,1687,2048,2456,2916,3429,4000,4630,5324,6083,6912,7812,8788,9841,10976,12194,13500,14895,16384,17968,19652,21437,23328,25326,27436,29659,32000,34460,37044,39753,42592,45562,48668,51911,55296,58824,62500,66325,70304,74438,78732,8318... |
.include "myTiny13.h"
;irq Vector
.org 0x0000
rjmp OnReset
.org 0x0006
rjmp TimerComp ; Timer-Compare Interrupt
.org 0x0010
TimerComp:
ldi A, 0b00010000 ; toggle Bit No. 4
in B, PINB
eor A, B
out PORTB, A
dec N ; N = N-1
brne TcEnd ; IF N == 0 then N = 255
ser N
TcEnd:
out OCR0A, N ; set N as new ... |
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
; A247161: Dynamic Betting Game D(n,4,2).
; 1,2,4,5,6,8,9,11,12,13,16,17,18,20,21,22,24,25,27,28,29,32,33,34,36,37,38,40,41,43,44,45,48,49,50,52,53,54,56,57,59,60,61,64,65,66,68,69,70,72,73,75,76,77,80,81,82,84,85,86,88,89,91,92,93,96,97,98,100,101,102,104,105,107,108,109,112,113,114,116,117,118,120,121,123,124,125,128... |
//
// Created by Rakesh on 17/05/2020.
//
#include "poller.h"
#include "queuemanager.h"
#include "log/NanoLog.h"
#include "model/configuration.h"
#include <bsoncxx/json.hpp>
#include <mongocxx/client.hpp>
#include <mongocxx/uri.hpp>
#include <chrono>
namespace spt::queue::poller
{
struct MongoClient
{
expli... |
_mkdir: 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 ... |
/*++
Copyright (c) 1996 Microsoft Corporation
Module Name:
config.cpp
Abstract:
This module contains routines for the fax config dialog.
Author:
Wesley Witt (wesw) 13-Aug-1996
Revision History:
20/10/99 -danl-
Fix ConfigDlgProc to view proper printer properties.
... |
BattleTowerTrainers:
; The trainer class is not used in Crystal 1.0 due to a bug.
; Instead, the sixth character in the trainer's name is used.
; See BattleTowerText in engine/events/battle_tower/trainer_text.asm.
db "HANSON@@@@", FISHER
db "SAWYER@@@@", POKEMANIAC
db "MASUDA@@@@", GUITARIST
db "NICKEL@@@@", SCIENT... |
;
; Sprite Rendering Routine
; original code by Patrick Davidson (TI 85)
; modified by Stefano Bodrato - nov 2010
;
; Generic high resolution version
;
;
; $Id: w_putsprite.asm,v 1.8 2017/01/02 21:51:24 aralbrec Exp $
;
SECTION code_clib
PUBLIC putsprite
PUBLIC _putsprite
EXTERN ... |
default rel
%define XMMWORD
%define YMMWORD
%define ZMMWORD
section .text code align=64
EXTERN OPENSSL_Uplink
global OPENSSL_UplinkTable
ALIGN 16
_lazy1:
DB 0x48,0x83,0xEC,0x28
mov QWORD[48+rsp],rcx
mov QWORD[56+rsp],rdx
mov QWORD[64+rsp],r8
mov QWORD[72+rsp],r9
lea rcx,[OPENSSL_UplinkTable]
mo... |
#include <iostream>
#include <algorithm>
#include <map>
#include <set>
using namespace std;
int Total_Weight, Amount_Elements, Elements_Profits[20], Elements_Weights[20], j;
set < double > Profit_Weight_Ratios;
set < double > :: iterator Iterator;
double CurrentProfit, CurrentWeight, RatioProfitToWeight, Real_Prof... |
# JMH version: 1.19
# VM version: JDK 1.8.0_131, VM 25.131-b11
# VM invoker: /usr/lib/jvm/java-8-oracle/jre/bin/java
# VM options: <none>
# Warmup: 20 iterations, 1 s each
# Measurement: 20 iterations, 1 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r14
push %r15
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x17970, %r14
nop
nop
nop
nop
nop
and $56633, %r10
movw $0x6162, (%r14)
nop
nop
sub $18108, %rcx
lea addresses_D_ht+0xadb2, %r13
nop
nop
nop
dec %rsi
mov (%r13), %r11
and $3189... |
//
// Created by M_D_Luffy on 2018/6/20.
//
#ifndef ILLUMINATIONMODEL_CAMERA_HPP
#define ILLUMINATIONMODEL_CAMERA_HPP
#include <glm/glm.hpp>
#include <cmath>
using namespace glm;
class Camera {
public:
int height;
int width;
float pixel_size;
float image_distance;
float angle;
vec3 origin;
... |
// IntegrityIO.cpp : Implementation of CIntegrityIOApp and DLL registration.
#include "stdafx.h"
#include "IntegrityIO.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
CIntegrityIOApp NEAR theApp;
const GUID CDECL BASED_CODE _tlid =
{ 0xcbe068b4, 0xc05c, 0x49d7, ... |
.include "myTiny13.h"
; This Programm analysed 2 bytes to make a sequence of numbers
; who represents the LEDs, which have to be ON :
;
; Positions (0=off)
; ---------------------
; 11,10, 9, 8
; 15,14,13,12
; 23,22,21,20
; 19,18,17,16
; Register to Load up- and down-Byte
U = 18
D = 19
; Like up- and down-Byte, but... |
HIGH_SCORE_ZERO_POS = $7090
X_STEP_LETTERS = 20
;
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
display_highscore
jsr init_objects
jsr spawnStarfield
ldd #PC_SCORE
... |
; Licensed to the .NET Foundation under one or more agreements.
; The .NET Foundation licenses this file to you under the MIT license.
; See the LICENSE file in the project root for more information.
; ==++==
;
;
; ==--==
#include "ksarm.h"
#include "asmconstants.h"
#include "asmmacros.h"
IMPORT FixContextHand... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
%>
<%docstring>epoll_ctl_old(vararg_0, vararg_1, vararg_2, vararg_3, vararg_4) -> str
Invokes the syscall epoll_ctl_old.
See 'man 2 epoll_ctl_old' for more information.
Arguments:
vararg(int): vararg
Returns:
long
</%doc... |
# AMD K7 mpn_addmul_1/mpn_submul_1 -- add or subtract mpn multiple.
#
# K7: 3.9 cycles/limb.
#
# Future: It should be possible to avoid the separate mul after the unrolled
# loop by moving the movl/adcl to the top.
# Copyright (C) 1999, 2000 Free Software Foundation, Inc.
#
# This file is part of the GNU MP Library.
... |
FillAreaWithTiles: ;Fill an area with consecutively numbered tiles, so we can simulate a bitmap area
;BC = X,Y
;HL = W,H
;DE = Start Tile
ld a,h
add b
ld h,a
ld a,l
add c
ld l,a
FillAreaWithTiles_Yagain:
push bc
push de
push hl
call GetVDPScreenPos
pop hl
pop de
... |
; A056526: First differences of Flavius Josephus's sieve.
; 2,4,6,6,8,12,10,14,16,12,18,24,14,34,26,16,30,36,18,42,38,12,60,22,48,38,46,36,60,54,44,36,84,22,60,84,18,78,72,60,38,112,12,96,114,26,88,92,34,90,138,26,82,98,112,54,170,36,60,168,52,128,52,128,94,108,90,188,34,72,170,120,46,158,196,20,160,108,176,96,130,108,... |
include "ddragon_sound.inc"
include "ddragon_sound_diag.inc"
include "error_addresses.inc"
include "macros.inc"
global handle_reset
global handle_firq
global handle_irq
global handle_nmi
global handle_swi
section reset,"rodata"
handle_reset:
jmp main
section text
; nmi pin is tied to 5V so should neve... |
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... |
; A152046: a(n) = Product_{k=1..floor((n-1)/2)} (1 + 8*cos(k*Pi/n)^2) for n >= 0.
; 1,1,1,3,5,11,21,43,85,171,341,683,1365,2731,5461,10923,21845,43691,87381,174763,349525,699051,1398101,2796203,5592405,11184811,22369621,44739243,89478485,178956971,357913941,715827883,1431655765,2863311531,5726623061,11453246123
mov $1... |
GLOBAL ShadowMaps
SEGMENT code
ShadowMaps
; no blocker (starting state, blocks edge of circular view)
db 00h,00h,00h,00h,00h,00h
db 00h,00h,00h,00h,00h,00h
db 00h,00h,00h,00h,00h,00h
db 00h,00h,00h,00h,00h,1fh
db 00h,00h,00h,00h,1fh,1fh
db 00h,00h,00h,1fh,1fh,1fh
; blocker at (x,y)=(1,0)
db 00h,1dh,1fh,1fh,1fh,1fh
db... |
; void *zx_cyx2saddr(uchar row, uchar col)
SECTION code_arch
PUBLIC zx_cyx2saddr_callee, l0_zx_cyx2saddr_callee
zx_cyx2saddr_callee:
pop af
pop hl
pop de
push af
l0_zx_cyx2saddr_callee:
ld h,e
INCLUDE "arch/zx/display/z80/asm_zx_cyx2saddr.asm"
|
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x17a7, %r14
nop
nop
nop
sub %rbx, %rbx
mov $0x6162636465666768, %r13
movq %r13, (%r14)
nop
xor $21180, %rbx
lea addresses_WT_ht+0x9643, %rsi
lea addresses_A_ht+0xe4a7, %rdi
nop
nop... |
; A117676: Squares for which the digital root is also a square.
; 0,1,4,9,36,49,64,81,100,121,144,225,256,289,324,361,400,441,576,625,676,729,784,841,900,1089,1156,1225,1296,1369,1444,1521,1764,1849,1936,2025,2116,2209,2304,2601,2704,2809,2916,3025,3136,3249,3600,3721,3844,3969,4096,4225,4356,4761,4900,5041,5184,5329,5... |
; A135030: Generalized Fibonacci numbers: a(n) = 6*a(n-1) + 2*a(n-2).
; Submitted by Jamie Morken(s4)
; 0,1,6,38,240,1516,9576,60488,382080,2413456,15244896,96296288,608267520,3842197696,24269721216,153302722688,968355778560,6116740116736,38637152257536,244056393778688,1541612667187200,9737788790680576,6150995807845785... |
#include <iostream>
#include <boost/program_options.hpp>
int main(int argc, const char *argv[]) {
namespace opts = boost::program_options;
opts::options_description desc;
desc.add_options()
("hello", "say hello")
;
opts::variables_map vm;
opts::store(opts::parse_command_line(argc, argv, desc), vm);
... |
#include "IBPsampler.h"
#include "../core/GeneralFunctions.cpp"
#include "../core/InferenceFunctions.cpp"
//*********************************INPUTS**************************//
#define input_X prhs[0]
#define input_C prhs[1]
#define input_Z prhs[2]
#define input_bias prhs[3]
#define input_F prhs[4]
//#define input_W p... |
; A005676: Sum C(n-k,4*k), k = 0..n.
; 1,1,1,1,1,2,6,16,36,71,128,220,376,661,1211,2290,4382,8347,15706,29191,53824,99009,182497,337745,627401,1167937,2174834,4046070,7517368,13951852,25880583,48009456,89090436,165392856,307137901,570427339,1059372394,1967174726,3652428851,6780867186,12588649487,23371307904,43391549313... |
;/*
; * FreeRTOS Kernel V10.2.0
; * Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
; *
; * 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 restri... |
%include "macro.asm"
global _start
_start:
extern proc
global buffer,abuflen
section .text
pop rcx
pop rcx
pop rcx
mov [filename],rcx
open [filename]
cmp rax,-1h
je error
mov [filehandle],rax
read [filehandle],buffer,buflen
dec rax
mov [abuflen],rax
call proc
exit:
close [filehandle]
mov rax,60
... |
;;
;; Copyright (c) 2020-2022, 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 %r12
push %r13
push %r8
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x11674, %r13
nop
nop
nop
nop
and $44007, %rbp
mov $0x6162636465666768, %r12
movq %r12, (%r13)
and %r8, %r8
lea addresses_UC_ht+0x6c4a, %rsi
lea addresses_WC_ht+0xea30, %rdi
nop... |
// $Id$
#include "Options.h"
#include "SMR_Server.h"
#include "ace/Log_Msg.h"
SMR_Server::SMR_Server (short port_number)
{
if (CM_Server::open (port_number) < 0)
ACE_ERROR ((LM_ERROR,
"%p\n%a",
Options::program_name,
1));
}
SMR_Server::~SMR_Server (void)
{
}
|
; A112415: a(n) = C(1+n,1) * C(2+n,1) * C(4+n,2).
; 12,60,180,420,840,1512,2520,3960,5940,8580,12012,16380,21840,28560,36720,46512,58140,71820,87780,106260,127512,151800,179400,210600,245700,285012,328860,377580,431520,491040,556512,628320,706860,792540,885780,987012,1096680,1215240,1343160,1480920,1629012,1787940,1958... |
include "hardware.inc" ; Community standard hardware.inc
include "includesm.inc" ; My own macros.
; Suggested tab width: 8
; bgbtest.gb has the nibbles of the joypad variables swapped compared to
; the community hardware.inc. I happened to standardize on the opposite
; order compared to most other software, a... |
; A229278: Number of ascending runs in {1,...,4}^n.
; 0,4,26,144,736,3584,16896,77824,352256,1572864,6946816,30408704,132120576,570425344,2449473536,10468982784,44560285696,188978561024,798863917056,3367254360064,14156212207616,59373627899904,248489627877376,1037938976620544,4327677766926336,18014398509481984,748723438... |
Name: zel_sut3.asm
Type: file
Size: 67193
Last-Modified: '2016-05-13T04:23:03Z'
SHA-1: CB425E67FF0D0A46D9C30C37D870281A4FF21700
Description: null
|
; Troy's HBC-56 - BASIC
;
; Copyright (c) 2021 Troy Schrapel
;
; This code is licensed under the MIT license
;
; https://github.com/visrealm/hbc-56
;
!src "basic_hbc56_core.asm" ; core basic
!src "drivers/input.asm" ; input routines
!src "drivers/output_tms9918.asm" ;... |
.data
.text
addi $s0, $zero, 4
sll $t0, $s0, 2 # 2^i t0 = $s0, 2^2
li $v0, 1
add $a0, $zero, $t0
syscall |
; A023458: n-16.
; -16,-15,-14,-13,-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
sub $0,16
mov $1,$0
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x3f6e, %r14
nop
xor %rdi, %rdi
movb $0x61, (%r14)
nop
nop
nop
nop
nop
xor $30192, %rbx
lea addresses_normal_ht+0x976e, %rdx
nop
nop
nop
nop
add %rax, %rax
mov (%rdx), %r1... |
db "MUSHROOM@" ; species name
db "It scatters poison"
next "spores and throws"
next "powerful punches"
page "while its foe is"
next "hampered by the"
next "inhaled spores.@"
|
; A099767: Number of n-digit palindromes in base n.
; 1,6,12,100,180,2058,3584,52488,90000,1610510,2737152,57921708,97883968,2392031250,4026531840,111612119056,187339329792,5808378560022,9728000000000,333597619564020,557758378619904,20961814674106394,34998666292887552,1430511474609375000,2385723916542054400,10536643397... |
/*
# Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of cond... |
; A277106: a(n) = 8*3^n - 12.
; 12,60,204,636,1932,5820,17484,52476,157452,472380,1417164,4251516,12754572,38263740,114791244,344373756,1033121292,3099363900,9298091724,27894275196,83682825612,251048476860,753145430604,2259436291836,6778308875532
mov $1,3
pow $1,$0
div $1,2
mul $1,48
add $1,12
mov $0,$1
|
; lzo1y_s1.asm -- lzo1y_decompress_asm
;
; This file is part of the LZO real-time data compression library.
;
; Copyright (C) 2011 Markus Franz Xaver Johannes Oberhumer
; Copyright (C) 2010 Markus Franz Xaver Johannes Oberhumer
; Copyright (C) 2009 Markus Franz Xaver Johannes Oberhumer
; Copyright (C) 2008 Markus... |
; A030055: a(n) = binomial(2*n+1, n-5).
; 1,13,105,680,3876,20349,100947,480700,2220075,10015005,44352165,193536720,834451800,3562467300,15084504396,63432274896,265182149218,1103068603890,4568648125690,18851684897584,77535155627160,317986441828055,1300853625660225,5309878226480100
mov $1,11
add $1,$0
add $1,$0
bin $1,... |
.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 a, ff
ldff(45), a
ld b, 91
call lwaitly_b
ld hl, fe00
ld d, 10
ld a, d
ld(hl++), a
ld a, 08
ld(hl++), a
inc l
inc l
ld a, d
ld(hl++), ... |
/* DHT library
MIT license
written by Adafruit Industries
*/
#include <math.h>
#include "DHT.h"
//#define NAN 0
DHT::DHT(uint8_t pin, uint8_t type, uint8_t count) {
_pin = pin;
_type = type;
_count = count;
firstreading = true;
}
void DHT::begin(void) {
// set up the pins!
pinMode(_pin, INPUT);
digit... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.16.27026.1
include listing.inc
INCLUDELIB MSVCRTD
INCLUDELIB OLDNAMES
_DATA SEGMENT
COMM uint_number_zero:QWORD
COMM uint_number_one:QWORD
_DATA ENDS
msvcjmc SEGMENT
__7B7A869E_ctype@h DB 01H
__457DD326_basetsd@h DB 01H
__4384A2D9_corecrt_memcpy_s@... |
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 4.1.4 #12246 (Mac OS X x86_64)
;--------------------------------------------------------
.module spritesheet_13
.optsdcc -mgbz80
;--------------------------------------------------------
; P... |
; A029006: Expansion of 1/((1-x)(1-x^2)(1-x^3)(1-x^12)).
; 1,1,2,3,4,5,7,8,10,12,14,16,20,22,26,30,34,38,44,48,54,60,66,72,81,87,96,105,114,123,135,144,156,168,180,192,208,220,236,252,268,284,304,320,340,360,380,400,425,445
lpb $0
mov $2,$0
sub $0,1
seq $2,25801 ; Expansion of 1/((1-x^2)*(1-x^3)*(1-x^12)).
add... |
/*
Smallest K-Length Subsequence With Occurrences of a Letter
https://leetcode.com/problems/smallest-k-length-subsequence-with-occurrences-of-a-letter/
You are given a string s, an integer k, a letter letter, and an integer repetition.
Return the lexicographically smallest subsequence of s of length k that has the le... |
#include <lwpp/file_request.h>
#include <fstream>
#include <lwpp/message.h>
#if !defined(S_ISDIR)
//#define S_ISDIR(m) (((m) & 0170000) == 0040000)
#define S_ISDIR(m) ((m) & _S_IFDIR)
#endif
#if !defined(S_ISREG)
#define S_ISREG(m) (((m) & 0170000) == 0100000)
#endif
#if !defined(S_IXUSR)
#define S_IXUSR 0000100/* exe... |
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: User/User
FILE: userC.asm
REVISION HISTORY:
Name Date Description
---- ---- -----------
brianc 7/91 Initial version
DESCRIPTION:
This fi... |
[bits 16]
print_si_16:
pusha
mov ah,0x0e ;This is the higher byte of the ax register
print_16_loop:
; mov al,[si]
; inc si
lodsb ;Performs the function of the previous two shits
cmp al,0
je print_16_end
... |
; A041027: Denominators of continued fraction convergents to sqrt(18).
; Submitted by Jon Maiga
; 1,4,33,136,1121,4620,38081,156944,1293633,5331476,43945441,181113240,1492851361,6152518684,50713000833,209004522016,1722749176961,7100001229860,58522759015841,241191037293224,1988051057361633,8193395266739756,6753521319127... |
;
; Spectrum C Library
;
; Print character to the screen in either 32/64 col mode
;
; We will corrupt any register
;
; Scrolling is now achieved by calling ROM3 routine 3582
;
; We print over 24 lines at 64 columns
;
; djm 3/3/2000
;
;
; $Id: fputc_cons.asm,v 1.9 2012/08/01 21:13:29 dom Exp $
;
... |
//===- unittests/Basic/DiagnosticTest.cpp -- Diagnostic engine tests ------===//
//
// 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
//
//===---------------------------... |
#include "pi4home/defines.h"
#ifdef USE_LIGHT
#include "pi4home/light/light_traits.h"
PI4HOME_NAMESPACE_BEGIN
namespace light {
LightTraits::LightTraits() : brightness_(false), rgb_(false), rgb_white_value_(false), color_temperature_(false) {}
LightTraits::LightTraits(bool brightness, bool rgb, bool rgb_white_val... |
/*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "GMSampleView.h"
#include "SkData.h"
GMSampleView::GMSampleView(GM* gm) : fShowSize(false), fGM(gm) {}
GMSampleView::~GMSampleView() {
delete fGM;
}
SkEvent* G... |
// TestDlg.cpp : implementation file
//
#include "stdafx.h"
#include "WndResizerApp.h"
#include "TestDlg.h"
// CTestDlg dialog
IMPLEMENT_DYNAMIC(CTestDlg, CDialog)
CTestDlg::CTestDlg(CWnd* pParent /*=NULL*/)
: CDialog(CTestDlg::IDD, pParent)
{
}
CTestDlg::~CTestDlg()
{
}
void CTestDlg::DoDataExchange(CDataE... |
; A230403: a(n) = the largest k such that (k+1)! divides n; the number of trailing zeros in the factorial base representation of n (A007623(n)).
; 0,1,0,1,0,2,0,1,0,1,0,2,0,1,0,1,0,2,0,1,0,1,0,3,0,1,0,1,0,2,0,1,0,1,0,2,0,1,0,1,0,2,0,1,0,1,0,3,0,1,0,1,0,2,0,1,0,1,0,2,0,1,0,1,0,2,0,1,0,1,0,3,0,1,0,1,0,2,0,1,0,1,0,2,0,1,0... |
Route8Gate_Script:
call EnableAutoTextBoxDrawing
ld hl, Route8Gate_ScriptPointers
ld a, [wRoute8GateCurScript]
jp CallFunctionInTable
Route8Gate_ScriptPointers:
dw Route8GateScript0
dw Route8GateScript1
Route8GateScript_1e1d7:
ld hl, wd730
set 7, [hl]
ld a, $10
ld [wSimulatedJoypadStatesEnd], a
ld a, $1
l... |
; void __CALLEE__ sp1_InsertCharStruct_callee(struct sp1_update *u, struct sp1_cs *cs)
; 01.2008 aralbrec, Sprite Pack v3.0
; ts2068 hi-res version
XLIB sp1_InsertCharStruct_callee
XDEF ASMDISP_SP1_INSERTCHARSTRUCT_CALLEE
LIB SP1AddSprChar
.sp1_InsertCharStruct_callee
pop hl
pop de
ex (sp),hl
ex de,hl
... |
; A157335: Expansion of 1/( (1+x)*(1-7*x+x^2) ).
; 1,6,42,287,1968,13488,92449,633654,4343130,29768255,204034656,1398474336,9585285697,65698525542,450304393098,3086432226143,21154721189904,144996616103184,993821591532385,6811754524623510,46688460080832186,320007466041201791,2193363802207580352,15033539149411860672,1030... |
PROCESSOR 6502
; Push true onto stack
MAC ptrue ; @push
lda #$FF
IF !FPUSH
pha
ENDIF
ENDM
; Push false onto stack
MAC pfalse ; @push
lda #$00
IF !FPUSH
pha
ENDIF
ENDM
; Push immediate byte onto stack
MAC pbyte ; @push
lda #{1}
IF !FPUSH
pha
ENDIF
ENDM
; Push byte variable onto stack
MAC ... |
;===============================================================================
; Copyright 2015-2020 Intel Corporation
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apa... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x211a, %r12
nop
nop
nop
nop
nop
dec %r9
mov (%r12), %si
nop
nop
sub %r13, %r13
lea addresses_UC_ht+0x97aa, %rsi
lea addresses_WC_ht+0x1916a, %rdi
clflush (%rsi)
clflush (%rdi)
nop
n... |
; Test alignment of individual data items under resize pass not making changes
IDEAL
SEGMENT MAIN
ASSUME CS:MAIN,DS:MAIN
ORG 100h
start:
int 20h
jmp _over ; guess 2 bytes, finally 3 bytes
ALIGN 4 ; guess 0 bytes, finally 3 bytes of padding
_val DW 1234h
ALIGN 16
_over: mov di, OFFSET _val
int 20h
ENDS MAIN... |
; A036124: a(n) = 2^n mod 37.
; 1,2,4,8,16,32,27,17,34,31,25,13,26,15,30,23,9,18,36,35,33,29,21,5,10,20,3,6,12,24,11,22,7,14,28,19,1,2,4,8,16,32,27,17,34,31,25,13,26,15,30,23,9,18,36,35,33,29,21,5,10,20,3,6,12,24,11,22,7,14,28,19,1,2,4,8,16,32,27,17,34,31,25,13,26,15,30,23,9,18,36,35,33,29,21,5,10,20,3,6
mov $1,1
mov ... |
; A080584: A run of 3*2^n 0's followed by a run of 3*2^n 1's, for n=0, 1, 2, ...
; 0,0,0,1,1,1,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
div $0,3
lpb $0
div $0,2... |
delay equ 5_000
org 0x0100 ; the 256-bytes prefix is used by DOS;
SECTION MBR align=16
; vstart and org only change shift addresses of tags
; cannot place spaces between arguments and their parameters.
initial:
mov ax, 0xb800 ; Jump instructions and other segment registers stay still.
mov gs, a... |
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1988 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: UserInterface/Proc
FILE: procManager.asm
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 2/89 Initial version
DESCRIPTI... |
; 硬盘相关常量
DISK_CMD_READ equ 0x20
DISK_LBA_MODE equ 0xe0
DISK_MASTER equ 0x00
PRI_DATA_PORT equ 0x01f0
PRI_SEC_COUNT_PORT equ 0x01f2
PRI_LBA_LOW_PORT equ 0x01f3
PRI_LBA_MID_PORT ... |
/*
* Copyright (c) 2017, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publi... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0xea6f, %rsi
lea addresses_A_ht+0x2b6f, %rdi
nop
nop
nop
nop
nop
cmp %rax, %rax
mov $78, %rcx
rep movsw
nop
nop
nop
nop
add %rsi, %rsi
lea addresses_WC_ht+0x121bf, %rbp
ad... |
%ifdef CONFIG
{
"RegData": {
"RAX": "0x414243444546B848"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
mov rdx, 0xe0000000
mov rax, 0x4142434445464748
mov [rdx + 8 * 0], rax
mov rax, 0x5152535455565758
mov [rdx + 8 * 1], rax
not byte [rdx + 8 * 0 + 1]
mov rax, [rdx + 8 * 0]
hlt
|
; A040418: Continued fraction for sqrt(439).
; Submitted by Jamie Morken(s1)
; 20,1,19,1,40,1,19,1,40,1,19,1,40,1,19,1,40,1,19,1,40,1,19,1,40,1,19,1,40,1,19,1,40,1,19,1,40,1,19,1,40,1,19,1,40,1,19,1,40,1,19,1,40,1,19,1,40,1,19,1,40,1,19,1,40,1,19,1,40,1,19,1,40,1,19
gcd $0,262156
mul $0,42
mod $0,13
mov $1,$0
div $1,5... |
; lzo1x_s1.asm -- lzo1x_decompress_asm
;
; This file is part of the LZO real-time data compression library.
;
; Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
; All Rights Reserved.
;
; The LZO library is free software; you can redistribute it and/or
; modify it under the terms of the GNU General P... |
; ===============================================================
; Dec 2013
; ===============================================================
;
; char *strncat(char * restrict s1, const char * restrict s2, size_t n)
;
; Append at most n chars from string s2 to the end of string s1,
; return s1. s1 is always termina... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r15
push %rbx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x1a95a, %r15
add $43535, %rsi
movl $0x61626364, (%r15)
nop
nop
nop
nop
nop
and $33991, %r15
lea addresses_WC_ht+0x1cbcf, %rdi
nop
nop
nop
nop
nop
sub %rdx, %rdx
movw $0x6162, (%rdi)
nop
nop
and ... |
; A070820: Difference between n-th prime and the value of commutator[phi,gpf] = commutator[A000010, A006530] at the same prime argument.
; 2,3,3,4,6,4,3,4,12,8,6,4,6,8,24,14,30,6,12,8,4,14,42,12,4,6,18,54,4,8,8,14,18,24,38,6,14,4,84,44,90,6,20,4,8,12,8,38,114,20,30,18,6,6,3,132,68,6,24,8,48,74,18,32,14,80,12,8,174,30,1... |
; A106435: a(n) = 3*a(n-1) + 3*a(n-2), a(0)=0, a(1)=3.
; 0,3,9,36,135,513,1944,7371,27945,105948,401679,1522881,5773680,21889683,82990089,314639316,1192888215,4522582593,17146412424,65006985051,246460192425,934401532428,3542585174559,13430960120961,50920635886560,193054788022563,731926271727369,2774943179249796
lpb $0... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r14
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0xae2c, %r12
nop
and $48407, %r13
mov $0x6162636465666768, %r14
movq %r14, %xmm7
movups %xmm7, (%r12)
nop
nop
and %rdx, %rdx
lea addresses_WC_ht+0x9259, %rsi
lea addresses_WC_... |
// Copyright (c) 2009 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 <fcntl.h>
#include <freetype/ftoutln.h>
#include <ft2build.h>
#include FT_FREETYPE_H
#include <sys/stat.h>
#include <sys/types.h>
#include <u... |
// InOutTempBuffer.cpp
#include "StdAfx.h"
#include "InOutTempBuffer.h"
#include "../../Common/Defs.h"
// #include "Windows/Defs.h"
#include "StreamUtils.h"
using namespace NWindows;
using namespace NFile;
using namespace NDirectory;
static UInt32 kTmpBufferMemorySize = (1 << 20);
static LPCTSTR kTempFilePrefixSt... |
; A069205: a(n) = Sum_{k=1..n} 2^bigomega(k).
; 1,3,5,9,11,15,17,25,29,33,35,43,45,49,53,69,71,79,81,89,93,97,99,115,119,123,131,139,141,149,151,183,187,191,195,211,213,217,221,237,239,247,249,257,265,269,271,303,307,315,319,327,329,345,349,365,369,373,375,391,393,397,405,469,473,481,483,491,495,503,505,537,539,543,551... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r14
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x126ab, %rsi
lea addresses_D_ht+0x317f, %rdi
nop
nop
nop
nop
nop
sub %r14, %r14
mov $69, %rcx
rep movsw
nop
nop
nop
and $64483, %r13
lea addresses_A_ht+0x1b2ab, %rsi
lea addresses_A_ht+0... |
#include "cdotc/Sema/Template.h"
#include "cdotc/AST/Decl.h"
#include "cdotc/AST/Expression.h"
#include "cdotc/Basic/NestedNameSpecifier.h"
#include "cdotc/IL/Constants.h"
#include "cdotc/ILGen/ILGenPass.h"
#include "cdotc/Diagnostics/Diagnostics.h"
#include "cdotc/Query/QueryContext.h"
#include "cdotc/Sema/SemaPass.... |
; This file is generated from a similarly-named Perl script in the BoringSSL
; source tree. Do not edit by hand.
%ifdef BORINGSSL_PREFIX
%include "boringssl_prefix_symbols_nasm.inc"
%endif
%ifidn __OUTPUT_FORMAT__,obj
section code use32 class=code align=64
%elifidn __OUTPUT_FORMAT__,win32
$@feat.00 equ 1
sec... |
; A162963: a(n) = 5*a(n-2) for n > 2; a(1) = 2, a(2) = 5.
; 2,5,10,25,50,125,250,625,1250,3125,6250,15625,31250,78125,156250,390625,781250,1953125,3906250,9765625,19531250,48828125,97656250,244140625,488281250,1220703125,2441406250,6103515625,12207031250
mov $2,$0
gcd $0,2
lpb $2
mul $0,5
sub $2,1
trn $2,1
lpe
|
object_const_def ; object_event constants
const ILEXFOREST_FARFETCHD
const ILEXFOREST_YOUNGSTER1
const ILEXFOREST_BLACK_BELT
const ILEXFOREST_ROCKER
const ILEXFOREST_POKE_BALL1
const ILEXFOREST_KURT
const ILEXFOREST_LASS
const ILEXFOREST_YOUNGSTER2
const ILEXFOREST_POKE_BALL2
const ILEXFOREST_POKE_BALL3
con... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.