text stringlengths 1 1.05M |
|---|
#include <bits/stdc++.h>
using namespace std;
//Filename: Leetcode0805.cpp
//
//Author: dezhonger - csdisassembly@gmail.com
//Create: 2021-05-06 01:52:10
//Last modified: 2021-05-06 02:02:09
#define rep(i, a, b) for(int i = (a); i < (b); i++)
#define reps(i, a, b) for(int i = (a); i < (b); i++)
#define pb pu... |
; A187173: Number of 3-step left-handed knight's tours (moves only out two, left one) on an n X n board summed over all starting positions.
; 0,0,0,16,60,128,220,336,476,640,828,1040,1276,1536,1820,2128,2460,2816,3196,3600,4028,4480,4956,5456,5980,6528,7100,7696,8316,8960,9628,10320,11036,11776,12540,13328,14140,14976,... |
;MATHEUS FIGUEIREDO
ORG 0h
MOV P1,#00000010B
ABERTA:
JNB P2.7,FECHADA ;0
JB P2.7,ABERTA ;1
FECHADA:
MOV R7,P2
MOV A,R7
CPL A
MOV R7,A
ANL 07H,#00001111B ;passei para r7 o valor das chaves de p2, fiz um AND para limpar o byte MSD e deixar apenas o LSD em R7 de p2
JNB P2.6... |
/**
* \file
* Create Millepede-II C-binary record.
*
* \author : Gero Flucke
* date : October 2006
* $Revision: 1.3 $
* $Date: 2007/04/16 17:47:38 $
* (last update by $Author: flucke $)
*/
/*
RS: original Mille.cc from http://svnsrv.desy.de/public/MillepedeII/tags/V04-02-03
jeudi 30 avril 20... |
;
; Test Program
;
org 5000h
START:
LD HL,HELLO_MSG
CALL STR_PR
RET
;
STR_PR:
LD A,(HL)
OR A
RET Z
RST 08h
INC HL
JR STR_PR
;
HELLO_MSG DB "HELLO WORLD",13,10,0 |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "main.h"
#include "db.h"
#include "init.h"
#include "bitcoinrpc.h"
using name... |
;============================================================
; Example 2-1
; Enabling raster interrupts
;============================================================
!cpu 6502
!to "build/example2-1.prg",cbm
* = $1000
sei ; turn off interrupts
lda #$7f
sta $dc0d ; turn off CIA1 interrupts
sta $dd0d ; ... |
/*
//@HEADER
// ************************************************************************
//
// KokkosKernels 0.9: Linear Algebra and Graph Kernels
// Copyright 2017 Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the U.S. Government retain... |
; BEGIN_LEGAL
; Intel Open Source License
;
; Copyright (c) 2002-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 source code must reta... |
_CeladonMart1Text1::
text "Hello! Welcome to"
line "CELADON DEPT."
cont "STORE."
para "The board on the"
line "right describes"
cont "the store layout."
done
_CeladonMart1Text2::
text "1F: SERVICE"
line " COUNTER"
para "2F: TRAINER'S"
line " MARKET"
para "3F: TV GAME SHOP"
para "4F: WISEMAN GIFT... |
Name: Poo.asm
Type: file
Size: 5002
Last-Modified: '1992-07-01T15:00:00Z'
SHA-1: A14B1CC03D32D39E2DAA0AACCD3981F83033BFAF
Description: null
|
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x14fef, %rdx
clflush (%rdx)
nop
nop
dec %r9
movb (%rdx), %cl
nop
nop
nop
cmp %rax, %rax
lea addresses_normal_ht+0x43af, %rsi
lea addresses_WC_ht+0x1a52f, %rdi
nop
nop
nop
a... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; 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... |
//===--- Cuda.cpp - Cuda Tool and ToolChain Implementations -----*- C++ -*-===//
//
// 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
//
//===---------------------------... |
; A041930: Numerators of continued fraction convergents to sqrt(488).
; Submitted by Jon Maiga
; 22,243,10714,118097,5206982,57394899,2530582538,27893802817,1229857906486,13556330774163,597708411969658,6588348862440401,290485058359347302,3201923990815260723,141175140654230819114,1556128471187354270977,68610827872897818... |
; A133101: Expansion of f(x^2, x^3) in powers of x where f(, ) is Ramanujan's general theta function.
; 1,0,1,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,... |
; A024038: a(n) = 4^n - n^2.
; 1,3,12,55,240,999,4060,16335,65472,262063,1048476,4194183,16777072,67108695,268435260,1073741599,4294967040,17179868895,68719476412,274877906583,1099511627376,4398046510663,17592186043932,70368744177135,281474976710080,1125899906841999,4503599627369820,18014398509481255,72057594037927152,... |
; Elemental types
NORMAL EQU $00
FIGHTING EQU $01
FLYING EQU $02
POISON EQU $03
GROUND EQU $04
ROCK EQU $05
BUG EQU $07
GHOST EQU $08
FIRE EQU $14
WATER EQU $15
GRASS EQU $16
ELECTRIC EQU $17
PSYCHIC EQU $18
ICE EQU $19
DRAGON EQU $1A
|
;===============================================================================
; Copyright 2014-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... |
; int im2_remove_generic_callback_callee(uint8_t vector, void *callback)
SECTION code_clib
SECTION code_z80
PUBLIC _im2_remove_generic_callback_callee
EXTERN asm_im2_remove_generic_callback
_im2_remove_generic_callback_callee:
pop af
pop hl
pop de
push af
jp asm_im2_remove_generic_callback
|
IDEAL
MODEL SMALL
STACK 512
MACRO main_read
; Початок макросу
MOV bx, [ds:si] ;занесення в ax чисельного значення
MOV bl, bh
CMP bl, 030h ; c ascii = 2SDh ; Вибір відповідної функції
jl exit22;
CMP bl, 039h ; c ascii = 2SDh ; Вибір відповідної функції
ja exit22;
MOV bh, '0'
ENDM main_read
DATASEG;III.ПОЧАТО... |
#pragma once
#include <cmath>
#include <exchcxx/impl/builtin/fwd.hpp>
#include <exchcxx/impl/builtin/constants.hpp>
#include <exchcxx/impl/builtin/kernel_type.hpp>
#include <exchcxx/impl/builtin/util.hpp>
#include <exchcxx/impl/builtin/kernels/screening_interface.hpp>
namespace ExchCXX {
template <>
struct kernel... |
; A018735: Divisors of 944.
; Submitted by Jamie Morken(s3)
; 1,2,4,8,16,59,118,236,472,944
mov $3,1
lpb $0
sub $0,1
add $2,$3
add $3,$2
cmp $2,8
mul $2,27
lpe
mov $0,$3
|
_zombie: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
int
main(void)
{
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 pus... |
MODULE asm_free
PUBLIC asm_free
EXTERN MAHeapFree
EXTERN _heap
; Realloc using the thread's default heap
;
; enter : hl = void *p (existing pointer to memory)
asm_free:
ld de,_heap
call MAHeapFree
ccf ; newlib c on success, classic = nc on failure
ret
|
////////////////////////////////////////////////////////////////////////////
// Module : script_sound_script.cpp
// Created : 06.02.2004
// Modified : 06.02.2004
// Author : Dmitriy Iassenev
// Description : XRay Script sound class script export
////////////////////////////////////////////////////////////////////... |
/*******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2016 Jean-David Gadina - www.xs-labs.com
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... |
; ===============================================================
; May 2016
; ===============================================================
;
; char *lltoa(uint64_t num, char *buf, int radix)
;
; Write number to ascii buffer in radix indicated and zero
; terminate.
;
; If radix==10, the number is treated as signed... |
PresetsMenu100early:
dw #presets_goto_100early_crateria
dw #presets_goto_100early_brinstar
dw #presets_goto_100early_speed_booster
dw #presets_goto_100early_grapple
dw #presets_goto_100early_red_tower_and_crateria
dw #presets_goto_100early_wrecked_ship
dw #presets_goto_100early_brinstar_clea... |
%define SD_HEADS 255
%define SD_SECTORS 63
%define SD_CYLINDERS 1024
%macro SEL_HI 0
mov al, 2*7+1 ; Set bit PC7 to 1
out 23h, al
%endmacro
%macro SEL_LO 0
mov al, 2*7+0 ; Set bit PC7 to 0
out 23h, al
%endmacro
%macro SEND_BYTE 1
mov al, %1
... |
#define ALFABET -1
struct TrieNode {
int adj[ALFABET];
bool word = false;
TrieNode() {
memset(adj, -1, sizeof adj);
}
};
struct Trie {
vector<TrieNode> trie;
Trie() {
trie.emplace_back();
}
void insert(string str) {
int curr = 0;
for (char c : st... |
; A017102: a(n) = (8n + 3)^2.
; 9,121,361,729,1225,1849,2601,3481,4489,5625,6889,8281,9801,11449,13225,15129,17161,19321,21609,24025,26569,29241,32041,34969,38025,41209,44521,47961,51529,55225,59049,63001,67081,71289,75625,80089,84681,89401,94249,99225,104329,109561,114921,120409,126025,131769,137641,143641,149769,1560... |
; A096015: A096014(n) / 2.
; Submitted by Christian Krause
; 1,3,3,3,5,5,7,3,3,3,11,5,13,3,3,3,17,5,19,3,3,3,23,5,5,3,3,3,29,7,31,3,3,3,5,5,37,3,3,3,41,5,43,3,3,3,47,5,7,3,3,3,53,5,5,3,3,3,59,7,61,3,3,3,5,5,67,3,3,3,71,5,73,3,3,3,7,5,79,3,3,3,83,5,5,3,3,3,89,7,7,3,3
seq $0,126801 ; a(n) = smallest integer which is cop... |
_kill: 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 ... |
/**********************************************************************
Audacity: A Digital Audio Editor
FileFormats.cpp
Dominic Mazzoni
*******************************************************************//*!
\file FileFormats.cpp
\brief Works with libsndfile to provide encoding and other file
information.
... |
###############################################################################
# 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... |
; A171390: a(n) = 37*2^(n-1)-1.
; 36,73,147,295,591,1183,2367,4735,9471,18943,37887,75775,151551,303103,606207,1212415,2424831,4849663,9699327,19398655,38797311,77594623,155189247,310378495,620756991,1241513983,2483027967,4966055935,9932111871,19864223743,39728447487,79456894975,158913789951,317827579903,635655159807,1... |
; A213396: Number of (w,x,y) with all terms in {0,...,n} and 2*w < |x+y-w|.
; 0,3,9,21,42,72,114,171,243,333,444,576,732,915,1125,1365,1638,1944,2286,2667,3087,3549,4056,4608,5208,5859,6561,7317,8130,9000,9930,10923,11979,13101,14292,15552,16884,18291,19773,21333,22974,24696
add $0,1
pow $0,3
add $0,1
div $0,3
|
SECTION code_fp_math48
PUBLIC hypot
EXTERN cm48_sccz80_hypot
defc hypot = cm48_sccz80_hypot
|
; A053001: Largest prime < n^2.
; 3,7,13,23,31,47,61,79,97,113,139,167,193,223,251,283,317,359,397,439,479,523,571,619,673,727,773,839,887,953,1021,1087,1153,1223,1291,1367,1439,1511,1597,1669,1759,1847,1933,2017,2113,2207,2297,2399,2477,2593,2699,2803,2909,3023,3121,3229,3361,3469,3593,3719,3833,3967,4093,4219,4349,44... |
; A093043: Jacobsthal(n)*Fibonacci(n-1).
; Submitted by Christian Krause
; 0,0,1,3,10,33,105,344,1105,3591,11594,37565,121485,393264,1272413,4117971,13325450,43123017,139547457,451587592,1461364025,4729080015,15303613546,49523551333,160261550085,518617316448,1678280815525
mov $1,2
pow $1,$0
trn $0,1
seq $0,45 ; Fibona... |
; Copyright Oliver Kowalke 2009.
; 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)
; ---------------------------------------------------------------------------------
; | 0 | 1 ... |
; A144194: Square array (6 X 6) read by rows.
; 0,0,0,0,0,1,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,1,0,0,0,0,0
pow $0,8
div $0,7
add $0,7
mod $0,5
mov $1,7
lpb $0
sub $0,1
div $1,$1
lpe
trn $1,5
div $1,2
|
; A170785: a(n) = n^9*(n^3 + 1)/2.
; 0,1,2304,275562,8519680,123046875,1093430016,6940820404,34426847232,141408478485,500500000000,1570393162206,4460630114304,11654344810927,28357286711040,64892390625000,140771848093696,291370412553129,578514870358272,1106818803381970,2048256000000000,3678310895716611,6428104950133504,... |
; A268099: a(n) = 2^(n mod 2)*5*10^floor(n/2) - 1.
; 4,9,49,99,499,999,4999,9999,49999,99999,499999,999999,4999999,9999999,49999999,99999999,499999999,999999999,4999999999,9999999999,49999999999,99999999999,499999999999,999999999999,4999999999999,9999999999999,49999999999999
seq $0,4643 ; Powers of 2 written in base 4... |
#ifndef MLKIT_KMEANS_HPP
#define MLKIT_KMEANS_HPP
namespace mk
{
namespace cluster
{
class KMeans
{
private:
int n_clusters_, n_init_, max_iter_, random_state_;
std::string init_;
float tol_;
public:
af::array cluster_centers_;
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x12424, %rsi
lea addresses_A_ht+0x950c, %rdi
nop
nop
nop
nop
nop
and %rbp, %rbp
mov $110, %rcx
rep movsl
nop
nop
add $33257, %r11
lea addresses_WT_ht+0x110dc, %r14
nop
nop
nop
nop
nop
and %rbp, %... |
; A027778: a(n) = 5*(n+1)*binomial(n+2, 5)/2.
; 10,75,315,980,2520,5670,11550,21780,38610,65065,105105,163800,247520,364140,523260,736440,1017450,1382535,1850695,2443980,3187800,4111250,5247450,6633900,8312850,10331685,12743325,15606640,18986880,22956120,27593720,32986800,39230730,46429635,54696915,64155780,74939800,87... |
/*=========================================================================
Copyright 2009 Rensselaer Polytechnic Institute
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/lice... |
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "PhysXCooking.h"
#include "Serialization/MemoryWriter.h"
#include "Modules/ModuleManager.h"
#include "Interfaces/Interface_CollisionDataProvider.h"
#include "IPhysXCookingModule.h"
#include "PhysicsPublic.h"
#include "PhysicsEngine/PhysXSupport.h"
... |
; A133140: a(0) = 2, a(n) = 2^n + 2 for n>=1.
; 2,4,6,10,18,34,66,130,258,514,1026,2050,4098,8194,16386,32770,65538,131074,262146,524290,1048578,2097154,4194306,8388610,16777218,33554434,67108866,134217730,268435458,536870914,1073741826,2147483650,4294967298
mov $1,2
pow $1,$0
div $1,2
mul $1,2
add $1,2
mov $0,$1
|
; gp_keydraw.asm
; Draws while you press a key (by George Phillips, I added "equ"s)
;
; zmac gp_keydraw.asm
; trs80gp zout/gp_keydraw.bds
screen equ $3c00
block equ $bf ; This is 1011 1111 in binary (a graphic block)
org $5200
start: di ; no blinking cursor
ld c,block
again: ld hl,screen
wait: ld a,($38ff) ; spi... |
; void *w_array_front(w_array_t *a)
SECTION code_adt_w_array
PUBLIC w_array_front
w_array_front:
INCLUDE "adt/w_array/z80/asm_w_array_front.asm"
|
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r15
push %r8
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x12b79, %r8
clflush (%r8)
nop
nop
add %rbp, %rbp
movb $0x61, (%r8)
nop
xor $29624, %r8
lea addresses_D_ht+0x12439, %r14
nop
nop
nop
xor %rdx, %rdx
movb (%r14), %r15b
sub %rdx,... |
; A015910: a(n) = 2^n mod n.
; 0,0,2,0,2,4,2,0,8,4,2,4,2,4,8,0,2,10,2,16,8,4,2,16,7,4,26,16,2,4,2,0,8,4,18,28,2,4,8,16,2,22,2,16,17,4,2,16,30,24,8,16,2,28,43,32,8,4,2,16,2,4,8,0,32,64,2,16,8,44,2,64,2,4,68,16,18,64,2,16,80,4,2,64,32,4,8,80,2,64,37,16,8,4,13,64,2,18,17,76,2,64,2,48,92,4,2,28,2,34,8,16,2,64,78,16,44,4,60... |
; A074331: a(n) = Fibonacci(n+1) - (1 + (-1)^n)/2.
; 0,1,1,3,4,8,12,21,33,55,88,144,232,377,609,987,1596,2584,4180,6765,10945,17711,28656,46368,75024,121393,196417,317811,514228,832040,1346268,2178309,3524577,5702887,9227464,14930352,24157816,39088169
max $1,$0
seq $0,71 ; a(n) = Fibonacci(n) - 1.
mod $1,2
add $1,$0
m... |
; A123162: Triangle read by rows: T(n,k) = binomial(2*n - 1, 2*k - 1) for 0 < k <= n and T(n,0) = 1.
; Submitted by Christian Krause
; 1,1,1,1,3,1,1,5,10,1,1,7,35,21,1,1,9,84,126,36,1,1,11,165,462,330,55,1,1,13,286,1287,1716,715,78,1,1,15,455,3003,6435,5005,1365,105,1,1,17,680,6188,19448,24310,12376,2380,136,1,1,19,969... |
; item_attributes struct members (see data/items/attributes.asm)
const_def
const ITEMATTR_PRICE
const ITEMATTR_PRICE_HI
const ITEMATTR_EFFECT
const ITEMATTR_PARAM
const ITEMATTR_PERMISSIONS
const ITEMATTR_POCKET
const ITEMATTR_HELP
ITEMATTR_STRUCT_LENGTH EQU const_value
; item types
const_def 1
const ITEM ... |
// Copyright(c) 2019 - 2020, #Momo
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met :
//
// 1. Redistributions of source code must retain the above copyright notice, this
// list of conditions... |
/*
Copyright (C) 2005, 2006 Plamen Neykov
Copyright (C) 2007, 2008 Eric Ehlers
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redistribute it and/or modify it
under the terms of t... |
%ifdef CONFIG
{
"RegData": {
"MM0": "0x20A121A222A323A4",
"MM1": "0x0041424344454647",
"MM2": "0x0000414243444546",
"MM3": "0x0000000041424344",
"MM4": "0x0"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
mov rdx, 0xe0000000
mov rax, 0x4142434445464748
mov [rdx + 8 * 0], rax
mo... |
; A179041: Partial sums of ceiling(Fibonacci(n)/3).
; 0,1,2,3,4,6,9,14,21,33,52,82,130,208,334,538,867,1400,2262,3656,5911,9560,15464,25017,40473,65482,105947,171420,277357,448767,726114,1174871,1900974,3075834,4976797,8052619
lpb $0
mov $2,$0
sub $0,1
seq $2,293543 ; a(n) is the least integer k such that k/Fibo... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r8
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0xb140, %rbx
nop
nop
nop
sub %rdx, %rdx
movl $0x61626364, (%rbx)
nop
nop
nop
nop
dec %r11
lea addresses_WC_ht+0xdf1c, %rdi
nop
nop
and %rcx, %rcx
vmovups (%rdi), %ymm2
vextracti... |
;; 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 "AsmMacros.h"
TEXTAREA
IMPORT RhpReversePInvokeBadTransition
;;;;;;;;;;;;;;;;;;;;;;;;;;;... |
; A194460: a(n) is the number of basic ideals in the standard Borel subalgebra of the untwisted affine Lie algebra sl_n.
; Submitted by Jon Maiga
; 1,4,18,82,370,1648,7252,31582,136338,584248,2488156,10540484,44450068,186715072,781628008,3262239862,13579324498,56391614632,233686316428,966556003132,3990942300508,1645309... |
; size_t getline(char **lineptr, size_t *n, FILE *stream)
INCLUDE "clib_cfg.asm"
SECTION code_stdio
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $02
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC _getline
EXTERN l0_getline_callee
_getline:
pop af
pop hl
pop de
pop bc
push af
jp l0_getl... |
; A096386: Expansion of x^2(x^4+x^2+x+1)/(x^7-x^6-x+1).
; 0,0,1,2,3,3,4,4,5,6,7,7,8,8,9,10,11,11,12,12,13,14,15,15,16,16,17,18,19,19,20,20,21,22,23,23,24,24,25,26,27,27,28,28,29,30,31,31,32,32,33,34,35,35,36,36,37,38,39,39,40,40,41,42,43,43,44,44,45,46,47,47,48,48
mov $1,$0
div $1,6
sub $1,$0
sub $0,$1
sub $0,$1
div $... |
SECTION code_fp_math16
PUBLIC cm16_sdcc___ulong2h
EXTERN asm_f24_u32
EXTERN asm_f16_f24
.cm16_sdcc___ulong2h
pop bc ;return
pop hl ;value
pop de
push de
push hl
push bc
call asm_f24_u32
jp asm_f16_f24
|
; CALLER linkage for function pointers
SECTION code_clib
PUBLIC strtoul
PUBLIC _strtoul
EXTERN strtol_callee
EXTERN ASMDISP_STRTOL_CALLEE
.strtoul
._strtoul
pop af
pop bc
pop de
pop hl
push hl
push de
push bc
push af
jp strtol_callee + ASMDISP_STRTOL_CALLEE
|
PUBLIC pinput
EXTERN print:PROC, readl:PROC
ASCII_w EQU 119
ASCII_d EQU 100
ASCII_s EQU 115
ASCII_a EQU 97
MOVE_LEFT EQU 0
MOVE_UP EQU 1
MOVE_RIGHT EQU 2
MOVE_DOWN EQU 3
.data
inputstr db "Please enter a move: ", 0
invlstr db "Invalid move, please enter a move: ", 0
.code
; gets player input
; RAX = move
pinput P... |
; A246393: Nonnegative integers k satisfying cos(k) >= 0 and cos(k+1) <= 0.
; 1,7,14,20,26,32,39,45,51,58,64,70,76,83,89,95,102,108,114,120,127,133,139,146,152,158,164,171,177,183,190,196,202,208,215,221,227,234,240,246,252,259,265,271,278,284,290,296,303,309,315,322,328,334,340,347,353,359,365,372,378,384,391,397,403,... |
/* Copyright 2015 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "intel_gpu/plugin/program.hpp"
#include "intel_gpu/plugin/common_utils.hpp"
#include "ngraph/op/region_yolo.hpp"
#include "intel_gpu/primitives/region_yolo.hpp"
namespace ov {
namespace runtime {
namespace intel_gpu {
s... |
test_device(): # @test_device()
push rax
call rand
mov ecx, -258049
and ecx, dword ptr [rsp + 4]
and eax, 63
shl eax, 12
or eax, ecx
mov dword ptr [rsp + 4], eax
pop rax
ret
|
; A173036: a(n) = binomial(n+1, 2) + 13.
; 13,14,16,19,23,28,34,41,49,58,68,79,91,104,118,133,149,166,184,203,223,244,266,289,313,338,364,391,419,448,478,509,541,574,608,643,679,716,754,793,833,874,916,959,1003,1048,1094,1141,1189,1238,1288,1339,1391,1444,1498,1553,1609,1666,1724,1783,1843,1904,1966,2029,2093,2158,2224... |
;*****************************************************************************
;* deblock-a.asm: x86 deblocking
;*****************************************************************************
;* Copyright (C) 2005-2016 x264 project
;*
;* Authors: Loren Merritt <lorenm@u.washington.edu>
;* Fiona Glaser <fiona@x2... |
addiu $0,$4,26691
and $3,$5,$3
addu $4,$4,$3
nor $1,$3,$3
lb $4,1($0)
xori $3,$3,48036
srav $3,$3,$3
lb $5,6($0)
slti $5,$5,-10094
addu $4,$4,$3
lbu $4,0($0)
or $3,$5,$3
srlv $6,$2,$3
lhu $5,6($0)
lh $6,16($0)
sra $3,$3,16
srav $3,$4,$3
sb $1,6($0)
nor $3,$4,$3
sltu $3,$4,$3
and $0,$5,$3
sllv $5,$4,$3
ori $3,$6,5644
or... |
/*!
@file
Defines `boost::hana::unfold_left`.
@copyright Louis Dionne 2013-2016
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_HANA_UNFOLD_LEFT_HPP
#define BOOST_HANA_UNFOLD_LEFT_HPP
#include <boost/hana/fwd/... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r14
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0xedf9, %rsi
lea addresses_A_ht+0x1bab9, %rdi
nop
xor $8926, %rdx
mov $70, %rcx
rep movsq
nop
add %r13, %r13
lea addresses_WT_ht+0x1b2b9, %r14
nop
nop
nop
nop
cmp $25080, %r10
m... |
//*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
/... |
; DO NOT MODIFY THIS FILE DIRECTLY!
; author: @TinySecEx
; ssdt asm stub for 6.0.6002-sp2-windows-vista amd64
option casemap:none
option prologue:none
option epilogue:none
.code
; ULONG64 __stdcall NtMapUserPhysicalPagesScatter( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtMap... |
; 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... |
CinnabarPokecenter_Script:
call Serial_TryEstablishingExternallyClockedConnection
jp EnableAutoTextBoxDrawing
CinnabarPokecenter_TextPointers:
dw CinnabarHealNurseText
dw CinnabarPokecenterText2
dw CinnabarPokecenterText3
dw CinnabarTradeNurseText
CinnabarHealNurseText:
TX_POKECENTER_NURSE
CinnabarPokecenterT... |
; A184587: a(n) = floor((n+1/2)*s), where s=(5+sqrt(5))/4; complement of A184586.
; Submitted by Jon Maiga
; 2,4,6,8,9,11,13,15,17,18,20,22,24,26,28,29,31,33,35,37,38,40,42,44,46,47,49,51,53,55,56,58,60,62,64,66,67,69,71,73,75,76,78,80,82,84,85,87,89,91,93,94,96,98,100,102,104,105,107,109,111,113,114,116,118,120,122,12... |
/**********************************************************************
Audacity: A Digital Audio Editor
EffectEqualization.cpp
Andrew Hallendorff
*******************************************************************//**
\file Equalization48x.cpp
\brief Fast SSE based implementation of equalization.
... |
;Tritone v2 beeper music engine by Shiru (shiru@mail.ru) 03'11
;Three channels of tone, per-pattern tempo
;One channel of interrupting drums
;Feel free to do whatever you want with the code, it is PD
OP_NOP equ #00
OP_SCF equ #37
OP_ORC equ #b1
;define NO_VOLUME ;define this if you want to have the same vol... |
; A191448: Dispersion of the odd integers greater than 1, by antidiagonals.
; Submitted by Christian Krause
; 1,3,2,7,5,4,15,11,9,6,31,23,19,13,8,63,47,39,27,17,10,127,95,79,55,35,21,12,255,191,159,111,71,43,25,14,511,383,319,223,143,87,51,29,16,1023,767,639,447,287,175,103,59,33,18,2047,1535,1279,895,575,351,207,119,6... |
; A088865: (Sum of distinct prime factors)^(sum of prime exponents).
; Submitted by Christian Krause
; 1,2,3,4,5,25,7,8,9,49,11,125,13,81,64,16,17,125,19,343,100,169,23,625,25,225,27,729,29,1000,31,32,196,361,144,625,37,441,256,2401,41,1728,43,2197,512,625,47,3125,49,343,400,3375,53,625,256,6561,484,961,59,10000,61,108... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "default_opset.hpp"
#include "gtest/gtest.h"
#include "ngraph/file_util.hpp"
#include "ngraph/type.hpp"
#include "ngraph/type/element_type.hpp"
#include "onnx_import/onnx.hpp"
#include "util/engine/test_engines.hpp"
#includ... |
;
; OEM FORMAT module for IBM PC DOS 2.1
;
CODE SEGMENT PUBLIC 'CODE'
ASSUME CS:CODE,DS:CODE
EXTRN SWITCHMAP:WORD,DRIVE:BYTE
EXTRN FDSKSIZ:DWORD,SECSIZ:WORD,CLUSSIZ:WORD,SYSSIZ:DWORD
PUBLIC INIT,DISKFORMAT,BADSECTOR,DONE,WRTFAT,HARDFLAG
PUBLIC FATID,STARTSECTOR,SWITCHLIST,FREESPACE,FATSPACE
... |
; A246724: Decimal expansion of r_2, the second smallest radius for which a compact packing of the plane exists, with disks of radius 1 and r_2.
; Submitted by Jamie Morken(s4)
; 1,5,4,7,0,0,5,3,8,3,7,9,2,5,1,5,2,9,0,1,8,2,9,7,5,6,1,0,0,3,9,1,4,9,1,1,2,9,5,2,0,3,5,0,2,5,4,0,2,5,3,7,5,2,0,3,7,2,0,4,6,5,2,9,6,7,9,5,5,3,4... |
; A259059: One half of numbers representable in at least two different ways as sums of four distinct nonvanishing squares. See A259058 for these numbers and their representations.
; 227,265,307,353,403,457,515,577,643,713,787,865,947,1033,1123,1217,1315,1417,1523,1633,1747,1865,1987,2113,2243,2377,2515,2657,2803,2953,3... |
;;
;; 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... |
/*
* @lc app=leetcode id=200 lang=cpp
*
* [200] Number of Islands
*
* https://leetcode.com/problems/number-of-islands/description/
*
* algorithms
* Medium (42.46%)
* Likes: 3014
* Dislikes: 109
* Total Accepted: 408K
* Total Submissions: 958.3K
* Testcase Example: '[["1","1","1","1","0"... |
; ===============================================================
; Dec 2013
; ===============================================================
;
; int obstack_align_to(struct obstack *ob, size_t alignment)
;
; Set the obstack fence to the next address aligned to alignment.
; Any following allocations or further growt... |
;-------------------------------------------------------------------------------------------------------
; Copyright (C) Microsoft. All rights reserved.
; Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
;-------------------------------------------------------------... |
; A122653: a(n) = 10*a(n-1) - a(n-2) with a(0)=0, a(1)=6.
; 0,6,60,594,5880,58206,576180,5703594,56459760,558894006,5532480300,54765908994,542126609640,5366500187406,53122875264420,525862252456794,5205499649303520,51529134240578406,510085842756480540,5049329293324226994,49983207090485789400,494782741611533667006,489784... |
BITS 32
org 0x7c00
push 0xFF ; 0x7BFC: 0xFF
mov dword eax, 0x80
mov edx, esp
test byte [edx], al
pushfd ; 0x7BF8: 10000000 (0x80) (sign flag)
push 0xFF ; 0x7BF4: 0xFF
mov dword eax, 0
mov edx, esp
test dword [edx], eax
pushfd ; 0x7BF0: 01000000 (0x40) (zero flag)
mo... |
//
// pde_solver.hpp
// PDE_solver
//
// Created by Florian on 08/01/2020.
// Copyright © 2020 Florian. All rights reserved.
//
#ifndef pde_solver_hpp
#define pde_solver_hpp
#include <stdio.h>
#include <iostream>
#include <vector>
#include <math.h>
#include "matrix.hpp"
#include "Option.hpp"
#include "Payoff.h"
#... |
db 0 ; 341 DEX NO
db 43, 80, 65, 35, 50, 35
; hp atk def spd sat sdf
db WATER, WATER ; type
db 205 ; catch rate
db 111 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F50 ; gender ratio
db 100 ; unknown 1
db 15 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/hoenn/corphish/front.d... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.