text stringlengths 1 1.05M |
|---|
; A118536: Start with 1 and repeatedly reverse the digits and add 36 to get the next term.
; 1,37,109,937,775,613,352,289,1018,8137,7354,4573,3790,1009,9037,7345,5473,3781,1909,9127,7255,5563,3691,1999,10027,72037,73063,36073,37099,99109,90235,53245,54271,17281,18307,70417,71443,34453,35479,97489,98515,51625,52651,1566... |
;Program to simulate ENIGMA Machine
jmp start
;Data
rot1: db 07h, 00h, 03h, 06h, 04h, 01h, 08h, 02h, 05h, 09h
rot2: db 01h, 03h, 06h, 07h, 00h, 05h, 02h, 04h, 08h, 09h
rot3: db 07h, 01h, 02h, 00h, 05h, 03h, 08h, 06h, 04h, 09h
refl: db 07h, 05h, 09h, 04h, 03h, 01h, 08h, 00h, 06h, 02h
post: ds 3
text: d... |
lc r4, 0x00000001
lc r5, 0xfffffffe
gts r6, r4, r5
halt
#@expected values
#r4 = 0x00000001
#r5 = 0xfffffffe
#r6 = 0x00000001
#pc = -2147483632
#e0 = 0
#e1 = 0
#e2 = 0
#e3 = 0
|
; A037878: (1/2)*Sum{|d(i)-e(i)|}, where Sum{d(i)*10^i} is base 10 representation of n and e(i) are digits d(i) in nonincreasing order, for i=0,1,...,m.
; 0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,2,1,0,0,0,0,0,0,0,0,3,2,1,0,0,0,0,0,0,0,4,3,2,1,0,0,0,0,0,0,5,4,3,2,1,0,0,0,0,0,6,5,4,3,2,1,0,0,0,0,7,6,5,4,3,2,1,0,0,0,8,7,6,5... |
//
// The MIT License(MIT)
//
// Copyright(c) 2014 Demonsaw LLC
//
// 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, c... |
/*
* All Video Processing kernels
* Copyright © <2010>, Intel Corporation.
*
* This program is licensed under the terms and conditions of the
* Eclipse Public License (EPL), version 1.0. The full text of the EPL is at
* http://www.opensource.org/licenses/eclipse-1.0.php.
*
*/
#define DI_DISABLE
#include "DN... |
; A070717: a(n) = n^7 mod 36.
; 0,1,20,27,4,5,0,7,8,9,28,11,0,13,32,27,16,17,0,19,20,9,4,23,0,25,8,27,28,29,0,31,32,9,16,35,0,1,20,27,4,5,0,7,8,9,28,11,0,13,32,27,16,17,0,19,20,9,4,23,0,25,8,27,28,29,0,31,32,9,16,35,0,1,20,27,4,5,0,7,8,9,28,11,0,13,32,27,16,17,0,19,20,9,4,23,0,25,8,27
pow $0,7
mod $0,36
|
addi x10, x0, 2
addi x11, x0, 3
addi x12, x0, 4
addi x13, x0, 8
sw x10, 0, x0
sw x11, 4, x0
sw x12, 8, x0
amoand.w x20, x12, x0
amoor.w x21, x13, x13
|
/*
*
* Copyright (c) 2020 Project CHIP Authors
* Copyright (c) 2013-2017 Nest Labs, 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.o... |
; 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@... |
MENU_CONFIG_TILESET_BANK_NUMBER = CURRENT_BANK_NUMBER
#include "game/data/menu_config/spriteset.asm"
tileset_menu_config:
; Tileset's size in tiles (zero means 256)
.byt (tileset_menu_config_end-tileset_menu_config_tiles)/16
tileset_menu_config_tiles:
.byt %00000000, %00000000, %00000000, %00000000, %00000000, %000... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2018 The Helmin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http:... |
; A266178: Triangle read by rows giving successive states of cellular automaton generated by "Rule 6" initiated with a single ON (black) cell.
; 1,1,1,0,1,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0... |
/**********************************************************************
* Copyright (c) 2008-2016, Alliance for Sustainable Energy.
* All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Fre... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r15
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x15556, %rsi
lea addresses_normal_ht+0x1cdd6, %rdi
nop
nop
nop
nop
xor $31690, %r13
mov $43, %rcx
rep movsl
cmp %rcx, %rcx
lea addresses_WT_ht+0x10f8, %r12
nop
nop
and $4... |
EXTERN dateProc2ReturnAddress : QWORD
ESCAPE_SEQ_1 = 10h
ESCAPE_SEQ_2 = 11h
ESCAPE_SEQ_3 = 12h
ESCAPE_SEQ_4 = 13h
LOW_SHIFT = 0Eh
HIGH_SHIFT = 9h
SHIFT_2 = LOW_SHIFT
SHIFT_3 = 900h
SHIFT_4 = 8F2h
NO_FONT = 98Fh
NOT_DEF = 2026h
.CODE
dateProc2 PROC
dateProc2 ENDP
;---------------------------------------... |
;================================================================================
; Stat Tracking
;================================================================================
; $7EF420 - $7EF468 - Stat Tracking
;--------------------------------------------------------------------------------
; $7EF420 - bonk count... |
; A064718: A Beatty sequence for 2^i + 2^-i where i = sqrt(-1).
; 2,5,8,11,14,17,19,22,25,28,31,34,37,39,42,45,48,51,54,57,59,62,65,68,71,74,77,79,82,85,88,91,94,97,99,102,105,108,111,114,117,119,122,125,128,131,134,137,139,142,145,148,151,154,157,159,162,165,168,171,174,177,179,182,185,188,191,194,197,199,202,205,208,... |
#include "stdafx.h"
#include "../../include/ApiHeader.h"
#include "../../include/QueueEnum.h"
#include "TraderApi.h"
inline CTraderApi* GetApi(void* pApi)
{
return static_cast<CTraderApi*>(pApi);
}
void* __stdcall XRequest(char type, void* pApi1, void* pApi2, double double1, double double2, void* ptr1, int size1, v... |
; The idea of this program is to find out the position of the first one.
; We start the counter from 8 and decreasing every time until the position
; is found. When found, we jump to FOUND label where we do exactly
; B RALS. I.E if B is equal to 0 then 0 RALS are done, if B is 7, 7 RALS
; are done. Each time a RAL is d... |
; Elizabeth Wanic
; 5 February 2017
; CS 3140 - Assignment 3 Part 1
; Command line for assembly :
; nasm -f elf32 -g assign3_part1.asm
; Command line for linker :
; ld -o assign3_part1 -m elf_i386 assign3_part1.o
;
; User must enter ./assign3_part1 to run the program
; Then they will enter a series of character... |
copyright zengfr site:http://github.com/zengfr/romhack
03B89C move.b D0, ($b5,A6) [enemy+72]
03B8A0 jsr $32032.l
03BBCE subq.b #1, ($b5,A6)
03BBD2 bne $3bbe6 [enemy+B5]
03BBD4 move.b #$c8, ($b5,A6)
03BBDA btst #$7, ($50,A6) [enemy+B5]
042C12 move.b D0, ($b5,A6)
042C16 bsr $444e8
0447FC ... |
org $8000
include utils.asm
include bouncingball.asm
main:
call bouncingball
di
halt
end main
|
; A197602: Floor((n+1/n)^3).
; 8,15,37,76,140,234,364,536,756,1030,1364,1764,2236,2786,3420,4144,4964,5886,6916,8060,9324,10714,12236,13896,15700,17654,19764,22036,24476,27090,29884,32864,36036,39406,42980,46764,50764,54986,59436,64120,69044,74214,79636,85316,91260,97474,103964,110736,117796,125150,132804,140764,149036... |
;1st theory
;L0040157E cause the give up of flashing
;Remplace jnz to jo in order to skip the give up..
;jo = 0x70
;jnz = 0x75
;Theory invalid.. 25/10/2014 .. cause = Unable to duplicate ROM (temps var)
;1. L0040152E
;La fonction qui commence la procédure
0040152E L0040152E:
004015... |
#include <iostream>
#include <cstdio>
using namespace std;
int main() {
printf("Hello, World!");
return 0;
}
|
ori $s0, 4
jal tag
addu $t0, $ra, $ra
ori $t0, $0, 1
tag:
addu $t1, $ra, $s0
addu $t2, $ra, $s0
addu $t3, $ra, $s0
jal tag2
addu $t4, $s0, $ra
ori $t0, $0, 1
tag2:
addu $t4, $s0, $ra
addu $t5, $s0, $ra
addu $t6, $s0, $ra
addu $t7, $s0, $ra |
#include<iostream>
#include<vector>
#include<string>
#include<algorithm>
int main()
{
std::vector<int> a{1,2,3,4,5};
auto b=a; //just making a copy for play
//The "old" way- iterators and normal for loop
for (auto it = begin(b); it != end(b); ++it)
*it=0;
//A better way: the range... |
; A255138: a(n) = (1 + 2^n*(3 + 2*(-1)^n))/3.
; Submitted by Jamie Morken(s2)
; 2,1,7,3,27,11,107,43,427,171,1707,683,6827,2731,27307,10923,109227,43691,436907,174763,1747627,699051,6990507,2796203,27962027,11184811,111848107,44739243,447392427,178956971
mov $2,-2
pow $2,$0
gcd $1,$2
add $2,$1
add $1,$2
add $2,$1
mov ... |
; A010638: Decimal expansion of cube root of 68.
; Submitted by Christian Krause
; 4,0,8,1,6,5,5,1,0,1,9,1,7,3,4,8,0,7,0,5,6,5,7,8,1,6,1,3,2,2,6,0,4,2,9,6,5,2,0,7,2,7,6,5,8,2,4,5,3,4,3,8,9,5,5,2,0,9,3,3,9,4,0,1,3,0,2,6,5,2,7,2,8,2,2,3,3,5,6,9,6,4,4,6,3,8,1,1,3,0,9,8,7,5,0,9,9,3,3,3
mov $3,$0
mul $3,2
lpb $3
add $6,$... |
; A111384: a(n) = binomial(n,3) - binomial(floor(n/2),3) - binomial(ceiling(n/2),3).
; 0,0,0,1,4,9,18,30,48,70,100,135,180,231,294,364,448,540,648,765,900,1045,1210,1386,1584,1794,2028,2275,2548,2835,3150,3480,3840,4216,4624,5049,5508,5985,6498,7030,7600,8190,8820,9471,10164,10879,11638,12420,13248,14100,15000,15925,16... |
; A110414: n! concatenated with n divided by n.
; Submitted by Jon Maiga
; 11,11,21,61,241,1201,7201,50401,403201,36288001,362880001,3991680001,47900160001,622702080001,8717829120001,130767436800001,2092278988800001,35568742809600001,640237370572800001
lpb $0
add $2,9
sub $0,$2
lpe
add $0,$2
mov $1,$2
add $1,1
lpb... |
.word $BD33 ; Alternate level layout
.word $C55B ; Alternate object layout
.byte LEVEL1_SIZE_08 | LEVEL1_YSTART_140
.byte LEVEL2_BGPAL_00 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18 | LEVEL2_UNUSEDFLAG
.byte LEVEL3_TILESET_01 | LEVEL3_VSCROLL_LOCKLOW | LEVEL3_PIPENOTEXIT
.byte LEVEL4_BGBANK_INDEX(19) | LEVEL4_INITACT_N... |
; Moves.asm - Testing the 64-bit move operations
ExitProcess proto
.data
message BYTE "Welcome to my 64-bit Library!",0
maxuint qword 0FFFFFFFFFFFFFFFFh
myByte byte 55h
myWord word 6666h
myDword dword 80000000h
.code
main proc
; Moving immediate values:
mov rax,maxuint ; fill all bits in RAX
mov ... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1989 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Text/TextAttr
FILE: taStyleMerge.asm
AUTHOR: Tony
ROUTINES:
Name Description
---- -----------
SendCharAttrParaAttrChange
REVISION HIST... |
#include <QtGlobal>
// Automatically generated by extract_strings.py
#ifdef __GNUC__
#define UNUSED __attribute__((unused))
#else
#define UNUSED
#endif
static const char UNUSED *retrex_strings[] = {
QT_TRANSLATE_NOOP("retrex-core", " mints deleted\n"),
QT_TRANSLATE_NOOP("retrex-core", " mints updated, "),
QT_TRANSLA... |
; SPIR-V
; Version: 1.0
; Generator: Khronos Glslang Reference Front End; 10
; Bound: 166
; Schema: 0
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %4 "main" %115 %152
OpExecutionMode %4 O... |
//*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICUL... |
// Gmsh - Copyright (C) 1997-2019 C. Geuzaine, J.-F. Remacle
//
// See the LICENSE.txt file for license information. Please report all
// issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
#include <stdlib.h>
#include <vector>
#include "GmshConfig.h"
#include "GmshMessage.h"
#include "meshGRegion.h"
#include "GMod... |
;*******************************************************************************
;* *
;* D A R T H V A D E R - stealth virus *
;* *
;* (C) - Copyright 1991 by Waleri Todorov, CICTT *
;* All Rights Reserved *
;* *
;* Virus infect ANY c... |
MODULE __tms9118_console_stubs
PUBLIC tms9918_cls
PUBLIC tms9918_console_vpeek
PUBLIC tms9918_console_ioctl
PUBLIC tms9918_scrollup
PUBLIC tms9918_printc
PUBLIC tms9918_set_ink
PUBLIC tms9918_set_... |
; A099157: a(n) = 4^(n-1)*U(n-1, 3/2) where U is the Chebyshev polynomial of the second kind.
; Submitted by Jon Maiga
; 0,1,12,128,1344,14080,147456,1544192,16171008,169345024,1773404160,18571329536,194481487872,2036636581888,21327935176704,223349036810240,2338941478895616,24493713157783552,256501494231072768
mov $2,... |
; A163673: a(n) = n*(2*n^2 + 5*n + 15)/2.
; 0,11,33,72,134,225,351,518,732,999,1325,1716,2178,2717,3339,4050,4856,5763,6777,7904,9150,10521,12023,13662,15444,17375,19461,21708,24122,26709,29475,32426,35568,38907,42449,46200,50166,54353,58767,63414,68300,73431,78813,84452,90354,96525,102971,109698,116712,124019,131625,1... |
//---------------------------------------------------------
// shared.cc
//---------------------------------------------------------
#include <atomic>
#include <chrono>
#include <iostream>
#include <random>
#include <shared_mutex>
#include <thread>
//---------------------------------------------------------
using na... |
; A105638: Maximum number of intersections in self-intersecting n-gon.
; 0,1,5,7,14,17,27,31,44,49,65,71,90,97,119,127,152,161,189,199,230,241,275,287,324,337,377,391,434,449,495,511,560,577,629,647,702,721,779,799,860,881,945,967,1034,1057,1127,1151,1224,1249,1325,1351,1430,1457,1539,1567,1652,1681,1769,1799,1890,1921... |
#include "pch.h"
#include "ColorHelper.h"
using namespace DirectX;
using namespace DirectX::PackedVector;
namespace DX
{
const XMFLOAT4 ColorHelper::White() { return { 1.0f, 1.0f, 1.0f, 1.0f }; }
const XMFLOAT4 ColorHelper::Gray() { return { 0.5f, 0.5f, 0.5f, 1.0f }; }
const XMFLOAT4 ColorHelper::Black()... |
;
;
; ZX Maths Routines
;
; 8/12/02 - Stefano Bodrato
;
; $Id: dge.asm,v 1.2 2006/05/23 19:45:32 stefano Exp $
;
IF FORzx
INCLUDE "#zxfp.def"
ELSE
INCLUDE "#81fp.def"
ENDIF
XLIB dge
LIB fsetup
LIB f_yesno
.dge
call fsetup
defb Z... |
; A059601: Expansion of (1+10*x+5*x^2)/(1-x)^10.
; 1,20,160,820,3190,10252,28600,71500,163735,348920,700128,1334840,2435420,4276520,7261040,11966504,19203965,30091820,46147200,69397900,102518130,148991700,213306600,301185300
mul $0,2
cal $0,38165 ; G.f.: 1/((1-x)*(1-x^2))^5.
mov $1,$0
|
.386P
.model FLAT
;
; r_edgea.s
; x86 assembly-language edge-processing code.
;
include qasm.inc
if id386
_DATA SEGMENT
Ltemp dd 0
float_1_div_0100000h dd 035800000h ; 1.0/(float)0x100000
float_point_999 dd 0.999
float_1_point_001 dd 1.001
_DATA ENDS
_TEXT SEGMENT
;------------------------------------------... |
// Copyright 2004, 2005 The Trustees of Indiana University.
// Use, modification and distribution is subject to 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)
// Authors: Nick Edmonds
// Andrew Lumsdaine
#ifndef... |
; A066761: Number of positive integers of the form (n^2+k^2)/(n-k) for k=1,2,3,4,....,n-1.
; Submitted by Jamie Morken(s3)
; 1,2,2,2,4,2,3,4,5,2,7,2,5,7,4,2,8,2,7,8,5,2,10,4,5,6,7,2,15,2,5,8,5,7,13,2,5,8,10,2,15,2,8,12,5,2,13,4,9,8,8,2,12,8,10,8,5,2,23,2,5,13,6,8,15,2,8,8,16,2,17,2,5,13,8,7,16,2,13,8,5,2,23,8,5,8,10,2,... |
; A017069: a(n) = (8*n)^5.
; 0,32768,1048576,7962624,33554432,102400000,254803968,550731776,1073741824,1934917632,3276800000,5277319168,8153726976,12166529024,17623416832,24883200000,34359738368,46525874176,61917364224,81136812032,104857600000,133827821568,168874213376,210906087424,260919263232,320000000000,38932892876... |
#ifndef MCELIECE_QCMDPC_GF_P_PROTOCOL_HPP
#define MCELIECE_QCMDPC_GF_P_PROTOCOL_HPP
#include <fmpzxx.h>
#include <vector>
#include <optional>
#include <iostream>
#include "code.hpp"
using flint::fmpzxx;
using std::vector;
using std::optional;
using std::cerr;
using std::endl;
/**
* @brief Protocol class holds an in... |
; A078701: Least odd prime factor of n, or 1 if no such factor exists.
; 1,1,3,1,5,3,7,1,3,5,11,3,13,7,3,1,17,3,19,5,3,11,23,3,5,13,3,7,29,3,31,1,3,17,5,3,37,19,3,5,41,3,43,11,3,23,47,3,7,5,3,13,53,3,5,7,3,29,59,3,61,31,3,1,5,3,67,17,3,5,71,3,73,37,3,19,7,3,79,5,3,41,83,3,5,43,3,11,89,3,7,23,3,47,5,3,97,7,3,5
lpb $0
... |
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <_LARGE_INTEGER.hpp>
START_ATF_NAMESPACE
struct tagCAH
{
unsigned int cElems;
_LARGE_INTEGER *pElems;
};
END_ATF_NAMESPACE
|
; A028737: Nonsquares mod 24.
; 2,3,5,6,7,8,10,11,13,14,15,17,18,19,20,21,22,23
mov $2,$0
lpb $2
add $0,1
mov $2,7
lpe
seq $0,37 ; Numbers that are not squares (or, the nonsquares).
|
; =============================================================================
; BareMetal -- a 64-bit OS written in Assembly for x86-64 systems
; Copyright (C) 2008-2020 Return Infinity -- see LICENSE.TXT
;
; 64-bit initialization
; =============================================================================
; ---... |
Invincible_Header:
smpsHeaderStartSong 2
smpsHeaderVoice Invincible_Voices
smpsHeaderChan $06, $03
smpsHeaderTempo $01, $E8
smpsHeaderDAC Invincible_DAC
smpsHeaderFM Invincible_FM1, $F4, $11
smpsHeaderFM Invincible_FM2, $F4, $09
smpsHeaderFM Invincible_FM3, $E8, $0F
smp... |
;
; MSX specific routines
; by Stefano Bodrato, 30/11/2007
;
; void msx_blank();
;
; Disable screen / Enable screen
;
; $Id: svi_blank_noblank.asm,v 1.3 2015/01/19 01:32:57 pauloscustodio Exp $
;
PUBLIC msx_blank
PUBLIC msx_noblank
INCLUDE "svi.def"
msx_noblank:
ld a,($FE3C+1) ; VDPReg0+1
or @01000000... |
; A082023: Number of partitions of n into 2 parts which are not relatively prime.
; 0,0,0,0,1,0,2,0,2,1,3,0,4,0,4,3,4,0,6,0,6,4,6,0,8,2,7,4,8,0,11,0,8,6,9,5,12,0,10,7,12,0,15,0,12,10,12,0,16,3,15,9,14,0,18,7,16,10,15,0,22,0,16,13,16,8,23,0,18,12,23,0,24,0,19,17,20,8,27,0,24,13,21,0,30,10,22,15,24,0,33,9,24,16,24,11,32,... |
/*
* 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... |
; A153173: a(n) = L(5*n)/L(n) where L(n) = Lucas number A000204(n).
; Submitted by Jon Maiga
; 11,41,341,2161,15251,103361,711491,4868641,33391061,228811001,1568437211,10749853441,73681573691,505018447961,3461454668501,23725145626561,162614613425891,1114577020834241,7639424866266611,52361396168994001,358890350604952661... |
/*
Copyright (c) 2019 - 2020 Advanced Micro Devices, Inc. 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 restriction, including without limitation the rights
to use, ... |
/**
* \file dnn/src/cuda/lrn/opr_impl.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS ... |
; A192465: Constant term of the reduction by x^2->x+2 of the polynomial p(n,x)=1+x^n+x^(2n).
; Submitted by Jamie Morken(s3)
; 3,9,25,93,353,1389,5505,21933,87553,349869,1398785,5593773,22372353,89483949,357924865,1431677613,5726666753,22906579629,91626143745,366504225453,1466016202753,5864063412909,23456250855425,9382... |
// Copyright (c) 2011-2017 The Cryptonote developers
// Copyright (c) 2017-2018 The Circle Foundation & invert Devs
// Copyright (c) 2018-2019 invert Network & invert Devs
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#inc... |
; Definition of the AMX structure for assembler syntax (NASM)
struc amx_s
_base: resd 1
_codeseg: resd 1
_dataseg: resd 1
_callback: resd 1
_debug: resd 1
_overlay: resd 1
_cip: resd 1
_frm: resd 1
_hea: resd 1
_hlw: resd 1
_stk: resd 1
_stp: resd 1
_flag... |
; -----------------------------------------------------------------------------
; Altenate BIOS Boot Logo Program
;
; MIT License
;
; Copyright (c) 2021 HRA!
;
; Permission is hereby granted, free of charge, to any person obtaining a copy
; of this software and associated documentation files (the "Software"), to deal... |
; A269237: a(n) = (n + 1)^2*(5*n^2 + 10*n + 2)/2.
; 1,34,189,616,1525,3186,5929,10144,16281,24850,36421,51624,71149,95746,126225,163456,208369,261954,325261,399400,485541,584914,698809,828576,975625,1141426,1327509,1535464,1766941,2023650,2307361,2619904,2963169,3339106,3749725,4197096
add $0,1
pow $0,2
mul $0,5
sub $... |
#include <iostream>
namespace Families
{
class Family
{
private:
std::string Type[5] = {"Father", "Mother", "Child"};
public:
void Print()
{
for (auto &type : Type)
{
std::cout << Type[2] << "\n";
}
... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.Enum
#include "Syste... |
; char __CALLEE__ *itoa_callee(char *s, int num)
; convert int to string and store in s
; 12.2006 aralbrec
XLIB itoa_callee
XDEF ASMDISP_ITOA_CALLEE
XDEF ASMDISP2_ITOA_CALLEE
LIB l_deneg
.itoa_callee
pop hl
pop de
ex (sp),hl
; enter : de = int num
; hl = char *s
; exit : hl = char *s
... |
extern printf
extern puts
section .text
global _mprintf
_mprintf:
push rbp
mov rbp, rsp
;mov rdi, [rbp + 16]
push r9
push r8
push rcx
push rdx
push rsi
push rdi
call printf
add rsp, 48
pop rbp
ret
section .data
msg: db "HELLO WORLD", 0xA, 0
|
// 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.
#if defined(HAVE_CONFIG_H)
#include <config/paycheckcash-config.h>
#endif
#inclu... |
;
; ZX Spectrum specific routines
; by Stefano Bodrato, 22/09/2006
;
; int zx_model();
;
; The result is:
; - 0 unknown
; - 1 if the spectrum is a 48K
; - 2 if we have a Spectrum 128K or +2
; - 3 if it is a Spectrum +2A or Pentagon
; - 4 if it is a Spectrum +3
; - 5 if it is a Spectrum +2A or +3 fixed for games
; - 6 T... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r15
push %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0xfcd, %rdi
nop
nop
nop
nop
xor %rdx, %rdx
and $0xffffffffffffffc0, %rdi
movaps (%rdi), %xmm2
vpextrq $0, %xmm2, %r15
add $59358, %r9
lea addresses_A_ht+0x1a9cd, %rax
... |
MansionMons2:
db $0A
db 37,PONYTA
db 37,RATICATE
db 26,GRIMER
db 29,GRIMER
db 40,RATTATA
db 40,RATICATE
db 32,GRIMER
db 35,GRIMER
db 35,MUK
db 38,MUK
db $00
|
db DEX_KABUTOPS ; pokedex id
db 60 ; base hp
db 115 ; base attack
db 105 ; base defense
db 80 ; base speed
db 70 ; base special
db ROCK ; species type 1
db WATER ; species type 2
db 33 ; catch rate
db 201 ; base exp yield
INCBIN "pic/ymon/kabutops.pic",0,1 ; 66, sprite dimensions
dw KabutopsPicFront
dw KabutopsPicBack
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r15
push %r9
push %rax
push %rbp
push %rdi
lea addresses_normal_ht+0x1bf71, %r15
nop
sub $39831, %r12
mov (%r15), %r14w
add $34856, %r14
lea addresses_D_ht+0x4fe5, %rdi
nop
and %rbp, %rbp
movb $0x61, (%rdi)
nop
nop
xor %r9, %r9
lea addresses_A_ht+0x... |
;*****************************************************************************
;* x86util.asm: x86 utility macros
;*****************************************************************************
;* Copyright (C) 2008-2020 x264 project
;*
;* Authors: Holger Lubitz <holger@lubitz.org>
;* Loren Merritt <lorenm@u.wa... |
macro try
println \1, "\2:"
def prefix equs \1
{prefix}\2 = 10
println \2 ; 10
{prefix}\2 += 5
println \2 ; 15
{prefix}\2 -= 1
println \2 ; 14
{prefix}\2 *= 2
println \2 ; 28
{prefix}\2 /= 4
println \2 ; 7
{prefix}\2 %= 3
println \2 ; 1
{prefix}\2 |= 11
println \2 ; 11
{prefix}\2 ^= 12
println \2 ; 7
{prefix}\2 &= 21
p... |
/*
* Copyright (c) 2020-2021 Lihowar
*
* This software is licensed under OSEF License.
*
* The "Software" is defined as the pieces of code, the documentation files, the config
* files, the textures assets, the Wavefront OBJ assets, the screenshot image, the sound
* effects and music associated with.
*
* ... |
; A258011: Numbers remaining after the third stage of Lucky sieve.
; 1,3,7,9,13,15,21,25,27,31,33,37,43,45,49,51,55,57,63,67,69,73,75,79,85,87,91,93,97,99,105,109,111,115,117,121,127,129,133,135,139,141,147,151,153,157,159,163,169,171,175,177,181,183,189,193,195,199,201,205,211,213,217,219,223,225,231,235,237,241,243,2... |
SECTION code_clib
SECTION code_fp_math48
PUBLIC _remquo
EXTERN cm48_sdcciy_remquo
defc _remquo = cm48_sdcciy_remquo
|
ori $ra,$ra,0xf
mfhi $4
lui $4,6356
lui $5,21669
ori $4,$4,59968
sll $1,$4,10
div $0,$ra
sll $3,$3,11
addiu $6,$4,-1930
div $1,$ra
mfhi $4
addu $4,$1,$1
sb $3,12($0)
multu $4,$4
addiu $4,$1,27603
addu $5,$5,$5
sb $4,5($0)
sll $5,$4,15
lb $5,0($0)
divu $2,$ra
mthi $5
addu $3,$1,$3
mult $2,$2
div $5,$ra
div $0,$ra
divu $... |
addi r1 r0 32
addi r2 r0 1
addi r3 r0 0
addi r4 r0 20
addi r5 r0 10
addi r8 r0 2
ciclo:
add r7 r2 r0
addi r9 r0 0
imprime:
divu r2 r5
mfhi r6
push r6
addi r9 r9 1
mflo r2
bne r2 r0 imprime
imprime2:
pop r6
addi r6 r6 48
tty r6
addi r9 r9 -1
bne r9 r0 imprime2
tty r1
add r2 r7 r0
mulu r2 r8
mf... |
; A332420: Number of Maclaurin polynomials of sin x having exactly n positive zeros.
; 3,4,5,4,4,4,4,5,4,4,5,4,4,4,4,5,4,4,5,4,4,4,4,5,4,4,5,4,4,4,4,5
mul $0,5
mov $2,$0
div $2,2
lpb $2,1
add $2,7
add $3,7
mov $4,$3
lpb $4,1
gcd $2,8
sub $4,$4
lpe
add $1,7
sub $2,1
lpe
div $1,7
add $1,3
|
;------------------------------------------------------------------------------
;
; CpuBreakpoint() for AArch64
;
; Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
; Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
; Portions copyright (c) 2011 - 2013, ARM Ltd. All ri... |
;
; Copyright (c) 2010 The WebM project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license
; that can be found in the LICENSE file in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing proje... |
#include "assembler/parser.h"
#include <assert.h>
#include "assembler/code.h"
#include "assembler/directive.h"
#include "assembler/tokenizer.h"
#include "common/cpu_state.h"
#include "common/error_db.h"
#include "common/instruction.h"
#include "common/instruction_db.h"
#include "common/text_file.h"
using std::string;... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r14
lea addresses_WT_ht+0x48b4, %r10
nop
nop
nop
nop
and %r12, %r12
movb $0x61, (%r10)
nop
nop
nop
and %r10, %r10
pop %r14
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r15
push %r8
push %rax
push %rbp
push %rbx
pus... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "ngraph_functions/builders.hpp"
#include "common_test_utils/common_utils.hpp"
#include "shared_test_classes/single_layer/softmax.hpp"
namespace ov {
namespace test {
namespace subgraph {
std::string SoftMaxLayerTest::ge... |
db "ARMOR@" ; species name
db "Because this"
next "#MON's skin is"
next "so tough, a normal"
page "attack won't even"
next "leave a scratch on"
next "it.@"
|
; A178947: Expansion of x*(1+2*x+8*x^2+3*x^4+4*x^3) / ( (1+x)^2*(x-1)^4 ).
; 1,4,17,38,81,138,229,340,497,680,921,1194,1537,1918,2381,2888,3489,4140,4897,5710,6641,7634,8757,9948,11281,12688,14249,15890,17697,19590,21661,23824,26177,28628,31281,34038,37009,40090,43397,46820,50481,54264,58297,62458,66881,71438,76269,812... |
INCLUDE MACRO.ASM
EXTRN _GET_MOUSE_STATE:FAR
EXTRN _INIT_MOUSE:FAR
EXTRN _INIT_FRAME:FAR
EXTRN _GET_ACTION:FAR
CODE SEGMENT
ASSUME CS:CODE
__SET_DISPLAY_MODE 12H
CALL _INIT_FRAME
CALL _INIT_MOUSE
LOOP1:
CALL _GET_MOUSE_STATE
CALL _GET_ACTION
JMP LOOP1
CODE ENDS
END
|
#pragma once
#include <unordered_map>
#include <string>
#include <chrono>
#include <map>
#include <cpptoml.hpp>
#include "lib/ip.hpp"
class Interface;
class Route;
class Node;
class MB_App;
class NetFilter;
class IPVS;
class Squid;
class Middlebox;
class Link;
class Network;
class ConnSpec;
class Policy;
class Reacha... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x7496, %rcx
and $19890, %r12
movl $0x61626364, (%rcx)
nop
nop
xor $64553, %rax
lea addresses_A_ht+0xcc96, %rsi
lea addresses_normal_ht+0xc5e, %rdi
nop
nop
nop
nop
sub %rbx, %rbx
mov $9... |
;
; Generic game device library
; Stefano Bodrato - 20/8/2001
;
; $Id: joystick.asm,v 1.2 2002/04/17 21:30:23 dom Exp $
;
XLIB joystick
LIB getk
.joystick
ld ix,0
add ix,sp
ld a,(ix+2)
cp 1 ; Stick emulation 1 (qaop-mn)
jr nz,j_no1
call getk
ld a,l
ld l,0
or @00100000 ; TO_LOWER
cp 'm'
jr nz,... |
; ------- console-graphic library --------------
; 16.02.2020
; - added 'draw_rect'
; 16.02.2020
; - added a check to 'draw_bitmap' to prevent it from drawing outside the screen
; 16.02.2020
; - fixed an issue where a bordering bit would break 'draw_image'
; 16.02.2020
; --- draws the bitmap at [bx] with (ch*8) cols a... |
// Copyright (c) 2011-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.
#if defined(HAVE_CONFIG_H)
#include <config/bitcoin-config.h>
#endif
#include <qt/bitcoingui.h>
#include <chainparams.h>
#i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.