text stringlengths 1 1.05M |
|---|
#pragma once
namespace narcissus {
namespace h8_3069f {
enum class interrupts : std::uint8_t;
} // namespace h8_3069f
class narcissus
{
public:
virtual auto run(void) -> void = 0;
virtual auto interrupt(h8_3069f::interrupts int_num) -> bool = 0;
};
} // na... |
; A056961: Base 12 reversal of n (written in base 10).
; Coded manually 2021-03-02 by Simon Strandgaard, https://github.com/neoneye
; 0,1,2,3,4,5,6,7,8,9,10,11,1,13,25,37,49,61,73,85,97,109,121,133,2,14,26,38,50,62,74,86,98,110,122,134,3,15,27,39,51,63,75,87,99,111,123,135,4,16,28,40,52,64,76,88,100,112,124,136,5,17,29... |
class Solution {
public:
vector<vector<int>> fourSum(vector<int>& nums, int target) {
const auto size = nums.size();
if(size < 4)
return vector<vector<int>>{};
sort(nums.begin(), nums.end());
vector<vector<int>> ans{};
auto begin = nums.cbegin();
auto _beg... |
#ifndef _Actuator_hpp_
#define _Actuator_hpp_
#include <Utilities\Logger.hpp>
#include <Utilities\Conversion.hpp>
class Actuator
{
protected:
sf::Mutex confmtx;
private:
virtual float getRawVector() = 0;
float multiplier;
float adjustment;
public:
Actuator();
~Actuator();
float getControl... |
%ifdef _WIN64
%include "a_x64_mulredc.asm"
%elifdef AMD_ASM
%include "a_win32a_mulredc.asm"
%else
%include "a_win32p_mulredc.asm"
%endif
|
;===============================================================================
; 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... |
; A118015: a(n) = floor(n^2/5).
; 0,0,0,1,3,5,7,9,12,16,20,24,28,33,39,45,51,57,64,72,80,88,96,105,115,125,135,145,156,168,180,192,204,217,231,245,259,273,288,304,320,336,352,369,387,405,423,441,460,480,500,520,540,561,583,605,627,649,672,696,720,744,768,793,819,845,871,897,924,952,980,1008,1036,1065,1095,1125,1155,118... |
; ===============================================================
; May 2017
; ===============================================================
;
; uchar tshc_px2bitmask(uchar x)
;
; Return bitmask corresponding to pixel x coordinate.
;
; ===============================================================
SECTION code_clib... |
dnl AMD K6 mpn_preinv_mod_1 -- mpn by 1 remainder, with pre-inverted divisor.
dnl Copyright 2000, 2002, 2003 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 G... |
; nop out a couple lines so the long intro movie is skipped.
.open "sys/main.dol"
.org 0x80232C78
nop
.org 0x80232C88
nop
.close
|
; A170782: a(n) = n^8*(n^10 + 1)/2.
; 0,1,131200,193713525,34359771136,1907348828125,50779979174016,814206801837625,9007199263129600,75047317670022921,500000000050000000,2779958656853295181,13311666640657612800,56227703476386561925,213439427106056265856,738945940018981640625,2361183241436970090496,703154222603735037422... |
// S-CPU-A hardware DMA bug test
// =============================
//
// Copyright (c) 2021, Marcus Rowe <undisbeliever@gmail.com>.
// Distributed under The MIT License: https://opensource.org/licenses/MIT
define mChannel = 0
define hChannel = 1
include "dma-test.inc"
variable sv_counter = 0
macro sv() {
db s... |
; A262616: Triangle read by rows: T(n,k) = 4^(n-k), n>=0, 0<=k<=n.
; 1,4,1,16,4,1,64,16,4,1,256,64,16,4,1,1024,256,64,16,4,1,4096,1024,256,64,16,4,1,16384,4096,1024,256,64,16,4,1,65536,16384,4096,1024,256,64,16,4,1,262144,65536,16384,4096,1024,256,64,16,4,1,1048576,262144,65536,16384,4096,1024,256,64,16,4,1,4194304,104... |
; A014829: a(1)=1, a(n) = 6*a(n-1) + n.
; 1,8,51,310,1865,11196,67183,403106,2418645,14511880,87071291,522427758,3134566561,18807399380,112844396295,677066377786,4062398266733,24374389600416,146246337602515,877478025615110,5264868153690681
mov $4,$0
lpb $0
sub $0,1
mul $2,2
add $2,3
mov $5,$2
mul $2,2
add ... |
%include "asm_io.inc"
%include "io.inc"
; initialized data is put in the .data segment
segment .data
clear db 27,"[2J",27,"[1;1H",0
cc db 27,"c",0
scanFormat db "%c",0
file db "input.txt",0
mode db "r",0
formatA db "%c",0
x dd 3
y dd 3
prevX dd 0
prevY dd 0
score dd 0
scoreFormat db "You scored: ", 0
scoreText db "Sco... |
# 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: 10 iterations, 1 s each
# Measurement: 10 iterations, 1 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Average ti... |
.thumb
.org 0x0
.equ ClassGrowthOption, Extra_Growth_Boosts+4
@r0=battle struct or char data ptr
ldr r1,[r0]
add r1,#34
ldrb r1,[r1] @luk growth
ldr r2,ClassGrowthOption
cmp r2,#0
beq GetExtraGrowthBoost
ldr r2,[r0,#4]
add r2,#33
ldrb r2,[r2]
add r1,r2
GetExtraGrowthBoost:
mov r2,#16 @index of luk boost
l... |
; A226202: 9^n + n.
; 1,10,83,732,6565,59054,531447,4782976,43046729,387420498,3486784411,31381059620,282429536493,2541865828342,22876792454975,205891132094664,1853020188851857,16677181699666586,150094635296999139,1350851717672992108,12157665459056928821,109418989131512359230,984770902183611232903,886293811965250109595... |
//----------------------------------*-C++-*----------------------------------//
/*!
* \file c4/Timer.cc
* \author Thomas M. Evans
* \date Mon Mar 25 17:56:11 2002
* \note Copyright (C) 2016-2019 Triad National Security, LLC.
* All rights reserved. */
//------------------------------------------------... |
; A017075: a(n) = (8*n)^11.
; 0,8589934592,17592186044416,1521681143169024,36028797018963968,419430400000000000,3116402981210161152,16985107389382393856,73786976294838206464,269561249468963094528,858993459200000000000,2450808588882738675712,6382393305518410039296,15394540563150776827904,34785499933455142617088,74300837... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Test of the Commander X16 hexidecimal print routine
;; Time-stamp: <2019-10-17 10:20:48 schol-r-lea>
.include "../../src/sys.inc"
.include "../../src/math.inc"
.import printhex
CX16_HEADER
start:
;; call macro to set ROM bank to Kernal RO... |
tilecoll CUT_TREE, CUT_TREE, CUT_TREE, CUT_TREE ; 00
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 01
tilecoll WALL, WALL, WALL, DOOR ; 02
tilecoll WALL, WALL, WALL, WALL ; 03
tilecoll FLOOR, FLOOR, WARP_CARPET_DOWN, WARP_CARPET_DOWN ; 04
tilecoll LADDER, LADDER, LADDER, LADDER ; 05
tilecoll FLOOR, FLOOR, CAVE, WALL ; 0... |
; int islessgreater(real-floating x, real-floating y)
SECTION code_clib
SECTION code_fp_math48
PUBLIC am48_islessgreater
EXTERN am48_dne
; Return bool (AC != AC')
;
; enter : AC = double x
; AC' = double y
;
; exit : HL = 0 and carry reset if false
; HL = 1 and carry set if t... |
; A167298: Totally multiplicative sequence with a(p) = 6*(p-2) for prime p.
; Submitted by Jamie Morken(s2)
; 1,0,6,0,18,0,30,0,36,0,54,0,66,0,108,0,90,0,102,0,180,0,126,0,324,0,216,0,162,0,174,0,324,0,540,0,210,0,396,0,234,0,246,0,648,0,270,0,900,0,540,0,306,0,972,0,612,0,342,0,354,0,1080,0,1188,0,390,0,756,0,414,0,42... |
/*
Copyright (c) 2005-2020, University of Oxford.
All rights reserved.
University of Oxford means the Chancellor, Masters and Scholars of the
University of Oxford, having an administrative office at Wellington
Square, Oxford OX1 2JD, UK.
This file is part of Chaste.
Redistribution and use in source and binary forms... |
; A232582: Number of (n+1) X (1+1) 0..2 arrays with every element next to itself plus and minus one within the range 0..2 horizontally or antidiagonally, with no adjacent elements equal.
; 0,2,4,6,10,18,32,56,98,172,302,530,930,1632,2864,5026,8820,15478,27162,47666,83648,146792,257602,452060,793310,1392162,2443074,4287... |
; A138057: Triangle read by rows: row n consists of 0 followed by n (n+1)'s with alternating signs.
; Submitted by Jon Maiga
; 0,0,-2,0,-3,3,0,-4,4,-4,0,-5,5,-5,5,0,-6,6,-6,6,-6,0,-7,7,-7,7,-7,7,0,-8,8,-8,8,-8,8,-8,0,-9,9,-9,9,-9,9,-9,9,0,-10,10,-10,10,-10,10,-10,10,-10
lpb $0
add $2,1
sub $0,$2
lpe
sub $1,2
pow $... |
TITLE sha1-586.asm
IF @Version LT 800
ECHO MASM version 8.00 or later is strongly recommended.
ENDIF
.686
.XMM
IF @Version LT 800
XMMWORD STRUCT 16
DQ 2 dup (?)
XMMWORD ENDS
ENDIF
.MODEL FLAT
OPTION DOTNAME
IF @Version LT 800
.text$ SEGMENT PAGE 'CODE'
ELSE
.text$ SEGMENT ALIGN(64) 'CODE'
ENDIF
;EXTERN _OPENSSL_ia32ca... |
.nds
;Detect what game the patch is being applied to
.if readascii("data/repack/header.bin", 0xc, 0x6) == "YU5J2J"
FIRST_GAME equ 0x1
SECOND_GAME equ 0x0
ARM_FILE equ "data/repack/arm9.bin"
SUB_PATH equ "/data/opsub.dat"
;Position in the ARM9 file for the custom code
ARM_POS equ 0x020997ac
... |
; A157821: 8984250n + 330.
; 8984580,17968830,26953080,35937330,44921580,53905830,62890080,71874330,80858580,89842830,98827080,107811330,116795580,125779830,134764080,143748330,152732580,161716830,170701080,179685330,188669580,197653830,206638080,215622330,224606580,233590830,242575080,251559330,260543580,269527830,278... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1994 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Printer Drivers
FILE: printcomNoTextNoRaw.asm
AUTHOR: Dave Durran
ROUTINES:
REVISION HISTORY:
Name Date Description
---- ---- ---------... |
#ifndef OPAQUE_NUMERIC_TYPEDEF_HPP
#define OPAQUE_NUMERIC_TYPEDEF_HPP
//
// Copyright (c) 2015, 2016, 2021
// Kyle Markley. 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. Redistributio... |
; A045623: Number of 1's in all compositions of n+1.
; 1,2,5,12,28,64,144,320,704,1536,3328,7168,15360,32768,69632,147456,311296,655360,1376256,2883584,6029312,12582912,26214400,54525952,113246208,234881024,486539264,1006632960,2080374784,4294967296,8858370048,18253611008,37580963840,77309411328,158913789952,3264175144... |
; A183224: Complement of the 12-gonal numbers.
; 2,3,4,5,6,7,8,9,10,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,... |
// 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 <stddef.h>
#include <memory>
#include "base/memory/raw_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/strings/utf_string_conversio... |
//此源码被清华学神尹成大魔王专业翻译分析并修改
//尹成QQ77025077
//尹成微信18510341407
//尹成所在QQ群721929980
//尹成邮箱 yinc13@mails.tsinghua.edu.cn
//尹成毕业于清华大学,微软区块链领域全球最有价值专家
//https://mvp.microsoft.com/zh-cn/PublicProfile/4033620
/*
*用于RockSDB的MergeOperator,实现字符串附加。
*@作者Deon Nicholas(dnicholas@fb.com)
*版权所有2013 Facebook
**/
#include "stringappe... |
.size 8000
.text@58
jp lstartserial
.text@100
jp lbegin
.data@143
80
.text@150
lbegin:
xor a, a
ldff(0f), a
ld a, 08
ldff(ff), a
ld a, 81
ldff(02), a
ei
.text@1000
lstartserial:
nop
.text@102f
xor a, a
ldff(01), a
ld a, 81
ldff(02), a
.text@1433
ldff a, (0f)
jp lprint_a
.text@7000
lprint_a:
pu... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.16.27027.1
TITLE C:\Users\DAG\Documents\_Clients\CodeProject Authors Group\Windows on ARM\libxml2\libxml2-2.9.9\chvalid.c
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB MSVCRTD
INCLUDELIB OLDNAMES
PUBLIC _xmlIsBaseCharGroup
PUBLIC _xmlI... |
; graphics library implementation for z-fighter
; by xrrawva 2021
EXTERN _screen_w
EXTERN _screen_h
EXTERN _color
EXTERN _screen
SCREEN_W equ _screen_w
SCREEN_H equ _screen_h
SECTION code_user
; void block(const unsigned char* blockPattern, unsigned char blockX, unsigned char blockY)
PUBLIC _block
_block:
; prepa... |
;nasm 2.11.08
section .data
hello: db 'Hello world!',10 ; 'Hello world!' plus a linefeed character
helloLen: equ $-hello ; Length of the 'Hello world!' string
section .bss
var1: resb 4
section .text
global _start
_start:
mov esi, 7651
mov [var1], esi
call PrintNumber... |
0x0000 (0x000000) 0x102B- f:00010 d: 43 | A = 43 (0x002B)
0x0001 (0x000002) 0x2922- f:00024 d: 290 | OR[290] = A
0x0002 (0x000004) 0x1800-0x0177 f:00014 d: 0 | A = 375 (0x0177)
0x0004 (0x000008) 0x2923- f:00024 d: 291 | OR[291] = A
... |
slt $0,$0,$3
and $0,$0,$3
sllv $5,$3,$3
srlv $3,$4,$3
subu $3,$3,$3
addu $1,$4,$3
lw $1,8($0)
sll $3,$4,2
sltu $1,$4,$3
addu $1,$1,$3
sltiu $4,$4,-16897
sltiu $1,$1,-12440
addiu $3,$6,10179
sll $1,$1,8
lbu $5,2($0)
subu $3,$0,$3
addu $5,$5,$3
sltu $5,$6,$3
andi $3,$0,15743
nor $1,$4,$3
srlv $6,$6,$3
slti $3,$3,-20966
s... |
#include <babylon/actions/directactions/do_nothing_action.h>
#include <nlohmann/json.hpp>
namespace BABYLON {
DoNothingAction::DoNothingAction(unsigned int iTtriggerOptions,
Condition* condition)
: Action(iTtriggerOptions, condition)
{
}
DoNothingAction::~DoNothingAction() = def... |
#include "../../JByteArray.hpp"
#include "../../JIntArray.hpp"
#include "./Bitmap_CompressFormat.hpp"
#include "./Bitmap_Config.hpp"
#include "./Canvas.hpp"
#include "./ColorSpace.hpp"
#include "./Matrix.hpp"
#include "./Paint.hpp"
#include "./Picture.hpp"
#include "../os/Parcel.hpp"
#include "../util/DisplayMetrics.hp... |
; A024906: Numbers k such that 9*k + 1 is prime.
; 2,4,8,12,14,18,20,22,30,34,42,44,48,54,58,60,64,68,70,82,84,90,92,98,102,104,110,112,118,124,128,130,142,144,158,162,170,172,174,180,184,188,194,198,200,208,222,224,228,232,238,240,242,250,252,254,260,264,274,278,280,282,284,288,294,298,302,310,324,328,330,340,342,352,... |
#include "diablo.h"
int itemactive[MAXITEMS];
BOOL uitemflag;
int itemavail[MAXITEMS];
ItemStruct curruitem;
ItemGetRecordStruct itemrecord[MAXITEMS];
ItemStruct item[MAXITEMS + 1];
BOOL itemhold[3][3];
BYTE *itemanims[ITEMTYPES];
BOOL UniqueItemFlag[128];
int numitems;
int gnNumGetRecords;
/* data */
... |
Name: Mwldrot.asm
Type: file
Size: 5961
Last-Modified: '1992-09-24T02:23:51Z'
SHA-1: E6AAAC3D8698B96DD04245D5894CE8290A22912A
Description: null
|
;
; jidctflt.asm - floating-point IDCT (SSE & MMX)
;
; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
; Copyright (C) 2016, D. R. Commander.
;
; Based on the x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYASAKA Masaru.
; For conditions of distribution and use, see copyright notice ... |
; =============================================================================
; Pure64 -- a 64-bit OS loader written in Assembly for x86-64 systems
; Copyright (C) 2008-2014 Return Infinity -- see LICENSE.TXT
;
; INIT SMP AP
; =============================================================================
USE16
init... |
.data
.align 0
STR_TITULO: .asciiz "Conversor de Bases\n\n"
STR_INSIRA_BASE_INICIAL: .asciiz "Qual eh a base do numero a ser inserido? (B)Binario (O)Octal (D)Decimal (H)Hexadecimal\n"
STR_INSIRA_NUMERO: .asciiz "Insira numero a ser convertido:\n"
STR_INSIRA_BASE_FINAL: .asciiz "O numero deve ser convertido para qu... |
#include <Interpreters/convertFieldToType.h>
#include <IO/ReadBufferFromString.h>
#include <IO/ReadHelpers.h>
#include <DataTypes/DataTypeArray.h>
#include <DataTypes/DataTypeTuple.h>
#include <DataTypes/DataTypesNumber.h>
#include <DataTypes/DataTypeString.h>
#include <DataTypes/DataTypeFixedString.h>
#include <Data... |
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft Corporation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//----------------------------... |
;
; Invoke a GSX/GIOS function with 2 coordinates (4 values) in "ptsin"
;
;
; $Id: gios_2px.asm $
;
SECTION code_clib
PUBLIC gios_2px
PUBLIC _gios_2px
EXTERN asm_gios_2px
EXTERN gios_ptsin
gios_2px:
_gios_2px:
ld hl,2
add hl,sp
ld de,gios_ptsin+7
ld b,4
cploop:
ld a,(hl)
inc hl
ld c,a
ld a,(hl)
inc hl
... |
;
; z88dk GFX library
;
; Render the "stencil".
; The dithered horizontal lines base their pattern on the Y coordinate
; and on an 'intensity' parameter (0..11).
; Basic concept by Rafael de Oliveira Jannone
;
; Machine code version by Stefano Bodrato, 22/4/2009
;
; stencil_render(unsigned char *stencil, unsigned char... |
//
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2017
//
// 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)
//
#include "td/actor/impl2/ActorLocker.h"
#include "td/actor/im... |
; ===============================================================
; Dec 2013
; ===============================================================
;
; char *strndup(const char *s, size_t n)
;
; Copy at most n chars from string s into an allocated block of
; memory and return a pointer to the newly allocated block.
; User... |
cow_item_hook:
lw a0, 0x0020 (sp)
lb t0, SHUFFLE_COWS
addiu a2, r0, 0x50 ; Give milk if cows are not randomized
beqz t0, @@return
nop
lh a2, 0x014 (a0) ; Load cow id (1 or 2)
beqzl a2, @@return ; If the cow ID is zero, this cow should not give an item, so give milk
... |
.model small
public WaitRetrace
.data
;------------------------------------------------------------------------------
;
; Waiting for horizontal retrace
;
; void WaitRetrace( void );
;
;------------------------------------------------------------------------------
WaitRetrace proc near
mov dx,3D... |
; A285199: Product of n! and the n-th Legendre polynomial evaluated at 2.
; Submitted by Jamie Morken(s4)
; 1,2,11,102,1329,22290,457155,11083590,310107105,9834291810,348584413275,13657116176550,586048630115025,27335806776328050,1377091347432275475,74513480022911679750,4309990208248262162625,265383902858519912717250,17... |
; Context menu (variable size) 1998 Jochen Merz
include win1_keys_wdef_long
include win1_keys_wwork
include win1_keys_wstatus
include win1_mac_menu_long
include win1_keys_wman
include win1_keys_colour
xref.s meu.f3_inscol,meu.f3_delcol
xref.s meu.f3_insrow,meu.f3_delrow
xref.s meu.ctx_eoblk
xref.s meu.... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r8
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x18874, %rsi
lea addresses_D_ht+0xf154, %rdi
nop
nop
nop
nop
nop
inc %rbx
mov $65, %rcx
rep movsw
nop
nop
dec %r8
lea addresses_D_ht+0xbf54, %rsi
lea addresses_normal_ht+0x1932c, %rdi
c... |
\ -*- mode:beebasm -*-
\ ******************************************************************
\ * DISC BUILD
\ ******************************************************************
LOAD_ADDRESS = &FF0E00
EXEC_ADDRESS = &FF0E00
SWRAM_ADDRESS = &8000
\ PUTTEXT "src/boot.txt", "!BOOT", &FFFFFF, 0
\ PUTBASIC "src/loader.bas",... |
; ----------------------------------------------------------------
; Z88DK INTERFACE LIBRARY FOR THE BIFROST* ENGINE - RELEASE 1.2/L
;
; See "bifrost_h.h" for further details
; ----------------------------------------------------------------
; void BIFROSTH_setTile(unsigned int px,unsigned int py,unsigned int tile)
S... |
COMMENT @-----------------------------------------------------------------------
Copyright (c) GeoWorks 1988 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Timer
FILE: timerMisc.asm
ROUTINES:
Name Description
---- -----------
GLB TimerGetCount Return system time counter
GLB TimerGetDa... |
;------------------------------------------------------------------------------
;
; 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... |
/*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file
*/
#include "SkSpecialImage.h"
#if SK_SUPPORT_GPU
#include "GrTexture.h"
#include "GrTextureParams.h"
#include "SkGr.h"
#endif
#include "SkBitmapCache.h"
#include "SkCanvas.h"
#i... |
#include "global.h"
#include "ScreenTestSound.h"
#include "RageDisplay.h"
#include "ScreenManager.h"
#include "RageSoundManager.h"
#include "ThemeManager.h"
#include "RageUtil.h"
#include "InputEventPlus.h"
using std::vector;
REGISTER_SCREEN_CLASS( ScreenTestSound );
void ScreenTestSound::Init()
{
Screen::Init();
... |
;
; Word: colour!
; Dictionary: (a - )
; Date: 4th February 2018
; Macro: No
; Notes:
;
pop hl
ld a,e
ld (IOWC_Colour),a
pop de
jp (hl)
|
// Copyright (c) 2015-2016 Vittorio Romeo
// License: Academic Free License ("AFL") v. 3.0
// AFL License page: http://opensource.org/licenses/AFL-3.0
// http://vittorioromeo.info | vittorio.romeo@outlook.com
#pragma once
#include <vrm/sdl/elements/sdl_element.hpp>
VRM_SDL_NAMESPACE
{
class ttffont : public impl... |
#include "ice_fall.h"
void ice_fall() {
auto &qcl = :: qcl;
auto &qci = :: qci;
auto &tabs = :: tabs;
auto &qifall = :: qifall;
auto &tlatqi = :: tlatqi;
auto &dtn = :: dtn;
auto &adz = :: adz;
auto &dz = :: dz;
auto &rho ... |
; A062879: Integers whose Zeckendorf expansion does not contain ones at even positions.
; 0,2,5,7,13,15,18,20,34,36,39,41,47,49,52,54,89,91,94,96,102,104,107,109,123,125,128,130,136,138,141,143,233,235,238,240,246,248,251,253,267,269,272,274,280,282,285,287,322,324,327,329,335,337,340,342,356,358,361,363,369,371,374,37... |
; A084641: Binomial transform of n^7.
; Submitted by Jamie Morken(w2)
; 0,1,130,2574,25904,183200,1040112,5076400,22171648,88915968,333209600,1181548544,4001402880,13033885696,41061830656,125666611200,374947708928,1093874155520,3128047828992,8785866391552,24280799641600,66124498599936,177683966197760
mov $4,$0
add $0,... |
#include "core/GameEngine.h"
#include <cereal/archives/xml.hpp>
#include <cereal\types\memory.hpp>
#include <iostream>
#include <fstream>
#include <string>
#include <time.h>
#include "core/Scene.h"
#include "render\graphics\OGLGraphicHandler.h"
#include "render\window\SDLWindow.h"
namespace Engine {
ManagerCollect... |
SECTION code_fp_math48
PUBLIC am48_derror_erange_infc, am48_derror_erange_pinfc
PUBLIC am48_derror_erange_minfc, am48_derror_erange_infxc
EXTERN error_erange_zc, am48_dconst_inf
am48_derror_erange_pinfc:
exx
res 7,b
exx
am48_derror_erange_infc:
; set AC' = +-inf depending on sign
exx
ca... |
; A316357: Partial sums of A316316.
; 1,5,13,21,33,53,73,93,121,153,185,221,261,305,353,401,453,513,573,633,701,773,845,921,1001,1085,1173,1261,1353,1453,1553,1653,1761,1873,1985,2101,2221,2345,2473,2601,2733,2873,3013,3153,3301,3453,3605,3761,3921
add $0,1
bin $0,2
mul $0,10
div $0,6
add $0,1
div $0,2
mul $0,4
add $0... |
###############################################################################
# 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... |
/*
* Copyright (c) 2012-2016 soymuchacho <guqi_282@126.com>
*
* 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
* notice, this list of conditio... |
; A138342: First differences of A007088.
; 1,9,1,89,1,9,1,889,1,9,1,89,1,9,1,8889,1,9,1,89,1,9,1,889,1,9,1,89,1,9,1,88889,1,9,1,89,1,9,1,889,1,9,1,89,1,9,1,8889,1,9,1,89,1,9,1,889,1,9,1,89,1,9,1,888889,1,9,1,89,1,9,1,889,1,9,1,89,1,9,1,8889,1,9,1,89,1,9,1,889,1,9,1,89,1,9,1,88889,1,9,1,89
add $0,1
mov $1,1
lpb $0
di... |
; Title: XMM decoder shellcode
; Filename: xmm_xor_decoder.nasm
; Author: Mark Shaneck
; Website: http://markshaneck.com
;
; A more detailed description of this code can be found at
; http://markshaneck.com/SLAE32/slae32-assignment4
;
; Purpose: Decode shellcode that has been encoded through
; an xor with a 128 bit ... |
/// \copyright Tobias Hienzsch 2019-2021
/// Distributed under the Boost Software License, Version 1.0.
/// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
#ifndef TETL_ALGORITHM_ADJACENT_FIND_HPP
#define TETL_ALGORITHM_ADJACENT_FIND_HPP
#include "etl/_functional/equal_to.hpp"
namespace etl... |
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
80
.text@150
lbegin:
ld a, ff
ldff(45), a
ld b, 03
call lwaitly_b
ld a, 60
ldff(41), a
ld a, 02
ldff(ff), a
ei
ld a, b
inc a
ldff(45), a
ld c, 0f
.text@1000
lstatint:
nop
.text@10d9
ldff a, (c)
and a, b
jp lprint_a
.text@7000
lprin... |
; A017136: a(n) = (8*n + 5)^12.
; 244140625,23298085122481,7355827511386641,353814783205469041,6582952005840035281,68952523554931640625,491258904256726154641,2654348974297586158321,11646329922777311412561,43439888521963583647921,142241757136172119140625,418596297479370673535601,1126825030131969720661201,281266478178289... |
; A277609: Fourth column of Euler's difference table in A068106. It is 6 times the sequence A000261.
; Submitted by Christian Krause
; 0,0,6,18,78,426,2790,21234,183822,1781802,19104774,224406930,2864826126,39486808938,584328412518,9238767895026,155416555683150,2771424197143914,52216883883837702,1036463580947218962,216... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x72c6, %rsi
lea addresses_UC_ht+0x5ec6, %rdi
clflush (%rdi)
nop
nop
nop
nop
nop
dec %r12
mov $40, %rcx
rep movsl
nop
nop
dec %r13
lea addresses_WT_ht+0x1ad92, %rdx
clflush (%r... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) New Deal 1998 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: tweakuiProgList.asm
AUTHOR: Gene Anderson
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
... |
Music_RivalBattle:
channel_count 3
channel 1, Music_RivalBattle_Ch1
channel 2, Music_RivalBattle_Ch2
channel 3, Music_RivalBattle_Ch3
Music_RivalBattle_Ch1_sub_0:
volume_envelope 11, 2
note G_, 4
note G_, 4
note G_, 4
note E_, 4
note G_, 4
note G_, 4
sound_ret
Music_RivalBattle_Ch1_sub_1:
volume_envelope ... |
/**
* @file
*
* @brief
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/
#ifndef NEWKEYCOMMAND_HPP
#define NEWKEYCOMMAND_HPP
#include "datacontainer.hpp"
#include "treeviewmodel.hpp"
#include <QUndoCommand>
/**
* @brief The NewKeyCommand class. Will create a new ConfigNode.
*/
cla... |
.686
.model flat
.xmm
.code
_test proc
create_stack_frame
mov dword24,0
label0000:
mov dword4,dword24
inc dword24
cmp dword4,10
jge label0001
jmp label0000
label0001:
cmp dword24,11
je label0002... |
//===----------------------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------... |
Name: data-5.asm
Type: file
Size: 50467
Last-Modified: '2000-11-08T02:03:12Z'
SHA-1: 836721C246EC91372D9A8D37745D014DB0963F15
Description: null
|
#include "InstantiationExpr.hpp"
namespace Kyra {
InstantiationExpr::InstantiationExpr(const Position& position,
std::string name,
std::vector<Expression::Ptr> arguments) :
Expression(position),
m_name(std::move(name)), m_arguments(std::move(arguments)) {}
void InstantiationExpr::accept(ExpressionVisitor& visit... |
page ,132
;------------------------------Module-Header----------------------------;
; Module Name: line.asm
;
; Transparent and Opaque output for 1Bpp to 1Bpp drawing
;
; Created: 24-Aug-1994
; Author: Mark Enstrom
;
; Copyright (c) 1994-1999 Microsoft Corporation
;------------------------------------... |
// CPP program to evaluate value of a postfix
// expression having multiple digit operands
#include <bits/stdc++.h>
using namespace std;
// Stack type
class Stack
{
public:
int top;
unsigned capacity;
int* array;
};
// Stack Operations
Stack* createStack( unsigned capacity )
{
Stack* stack = new S... |
; A169089: Number of reduced words of length n in Coxeter group on 28 generators S_i with relations (S_i)^2 = (S_i S_j)^25 = I.
; 1,28,756,20412,551124,14880348,401769396,10847773692,292889889684,7908027021468,213516729579636,5764951698650172,155653695863554644,4202649788315975388,113471544284531335476,3063731695682346... |
; char *gets_unlocked_fastcall(char *s)
SECTION code_stdio
PUBLIC _gets_unlocked_fastcall
EXTERN asm_gets_unlocked
defc _gets_unlocked_fastcall = asm_gets_unlocked
|
/*************************************************************************
*
* Copyright (c) 2016 The Qt Company
* All rights reserved.
*
* See the LICENSE.txt file shipped along with this file for the license.
*
*************************************************************************/
#include "piechart.h"
P... |
; A115790: 1 - (Floor((n+1)*Pi)-Floor(n*Pi)) mod 2.
; 0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0
sub $0,1
mod $0,7
trn $0,5
|
title The addem Subroutine (addem.asm)
; This subroutine links to Visual C++ 6.0.
.386P
.model flat
public _addem
.code
_addem proc near
push ebp
mov ebp,esp
mov eax,[ebp+16] ; first argument
add eax,[ebp+12] ; second argument
add eax,[ebp+8] ; third argument
pop ... |
; A166814: Number of nX2 1..3 arrays containing at least one of each value, all equal values connected, rows considered as a single number in nondecreasing order, and columns considered as a single number in increasing order.
; 0,6,25,66,140,260,441,700,1056,1530,2145,2926,3900,5096,6545,8280,10336,12750,15561,18810,22... |
; A340528: Radio number of the path graph P_n.
; 0,1,3,5,10,13,20,25,34,41,52,61,74,85,100,113,130,145,164,181,202,221,244,265,290,313,340,365,394,421,452,481,514,545,580,613,650,685,724,761,802,841,884,925,970,1013,1060,1105,1154,1201,1252,1301,1354,1405,1460,1513
mov $2,$0
cal $0,92534 ; Expansion of (1-x+x^2)*(1+x^... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.