text stringlengths 1 1.05M |
|---|
; A315654: Coordination sequence Gal.3.49.3 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; 1,6,12,16,22,28,34,40,44,50,56,62,68,72,78,84,90,96,100,106,112,118,124,128,134,140,146,152,156,162,168,174,180,184,190,196,202,208,212,218,2... |
; A217402: Numbers starting with 9.
; 9,90,91,92,93,94,95,96,97,98,99,900,901,902,903,904,905,906,907,908,909,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,930,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,96... |
; A212981: Number of (w,x,y) with all terms in {0,...,n} and w <= x + y and x < y.
; 0,2,8,21,43,77,125,190,274,380,510,667,853,1071,1323,1612,1940,2310,2724,3185,3695,4257,4873,5546,6278,7072,7930,8855,9849,10915,12055,13272,14568,15946,17408,18957,20595,22325,24149,26070,28090
mov $3,$0
add $3,1
add $3,$0
lpb $0,1
... |
; A183226: Sum of digits of (2^n) in base 5, also sum of digits of (10^n) in base 5.
; 1,2,4,4,4,4,8,4,4,8,12,12,12,12,8,12,16,20,20,20,16,12,20,24,28,20,32,32,24,32,40,40,32,24,28,32,32,40,28,36,36,40,44,40,36,40,36,44,44,44,44,48,52,52,48,56,40,56,68,60,52,52,48,60,56,64,60,48,56,60,60,64,60,60,60,64,52,48,64,68,56,8... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r15
push %r8
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x8029, %rdi
nop
nop
nop
nop
nop
cmp $44507, %r8
movw $0x6162, (%rdi)
nop
nop
nop
nop
add $52971, %r15
lea addresses_D_ht+0x7279, %rsi
lea addresses_WT_ht+0x2d79, %rdi
xor %r8, %... |
bits 16
; glb intptr_t : int
; glb uintptr_t : unsigned
; glb intmax_t : int
; glb uintmax_t : unsigned
; glb int8_t : signed char
; glb int_least8_t : signed char
; glb int_fast8_t : signed char
; glb uint8_t : unsigned char
; glb uint_least8_t : unsigned char
; glb uint_fast8_t : unsigned char
; glb int16_t : short
... |
; DO NOT MODIFY THIS FILE DIRECTLY!
; author: @TinySecEx
; ssdt asm stub for 6.3.9600-sp0-windows-8.1 i386
.686
.mmx
.xmm
.model flat,stdcall
option casemap:none
option prologue:none
option epilogue:none
.code
; ULONG __stdcall NtWorkerFactoryWorkerReady( ULONG arg_01 );
_6_3_9600_sp0_windows_8_1_NtWorkerFactory... |
tilepal 0, GRAY, WATER, RED, BROWN, BROWN, BROWN, BROWN, BROWN
tilepal 0, WATER, WATER, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY
tilepal 0, GRAY, WATER, RED, BROWN, BROWN, BROWN, BROWN, BROWN
tilepal 0, WATER, WATER, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY
tilepal 0, WATER, WATER, WATER, WATER, ROOF, BROWN, BROWN, BROWN
til... |
SECTION code_font_fzx
PUBLIC __fzx_string_glyph_width
EXTERN asm_fzx_glyph_width
__fzx_string_glyph_width:
push hl ; save allowed width
push ix
pop hl ; hl = struct fzx_font *
call asm_fzx_glyph_width
inc a
add a,(ix+1) ; a = gly... |
/*
* ConfigureDatabase.actor.cpp
*
* This source file is part of the FoundationDB open source project
*
* Copyright 2013-2018 Apple Inc. and the FoundationDB project authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ... |
;instructions.asm
Instruction0_StateMachine:
.db OPC_RAMWrite
.dw INSTRUCT_SYNC
.db 0
.db OPC_DrawSquare, $40, 32, 30
.dw $2000
.db OPC_Delay, 60
.db OPC_ScreenOff
.db OPC_DrawRLEBurst
.dw $2000, bg_Playfield
.db OPC_ScreenOn
.db OPC_RAMWrite
.dw INSTRUCT_SYNC
.db INSTRUCT_AIM1
.db OPC_DrawS... |
#include "frame.h"
#include<QGraphicsSceneMouseEvent>
#include<QDebug>
#include<QPainter>
#include "spritemanager.h"
#include "framemanager.h"
Frame::Frame(QObject* parent):
QGraphicsScene(parent),
frameWidth(800),
frameHeight(450)
{
qDebug()<<"(Frame.cpp) constructor";
setBackgroundBrush(QBrush(QCo... |
#include <eeros/control/MouseInput.hpp>
using namespace eeros::control;
MouseInput::MouseInput(std::string dev) : mouse(dev), buttonOut(this) {
setInitPos(0, 0, 0, 0);
first = true;
}
MouseInput::~MouseInput() { }
void MouseInput::run() {
if (first) {
x = axisScale_x * - mouse.current.axis.y;
y = axisScale_y... |
#include <cassert>
#include "nesturbia/nesturbia.hpp"
namespace nesturbia {
Nesturbia::Nesturbia()
: cpu([this](uint16 address) { return cpuReadCallback(address); },
[this](uint16 address, uint8 value) { cpuWriteCallback(address, value); },
[this] { cpuTickCallback(); }),
ppu(cartridge,... |
/***
*
* Copyright (c) 1996-2001, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
* Use, distribution, and modification of this source code and/or resulting
* object ... |
Name: zel_ply1.asm
Type: file
Size: 22187
Last-Modified: '2016-05-13T04:25:37Z'
SHA-1: 11E52C97A977852B433D0E0795BC654CA8B66F6A
Description: null
|
;
; Small C z88 Character functions
; Written by Dominic Morris <djm@jb.man.ac.uk>
; 22 August 1998
;
; $Id: isspace.asm,v 1.7 2016-03-06 21:41:15 dom Exp $
;
SECTION code_clib
PUBLIC _isspace
PUBLIC isspace
EXTERN asm_isspace
; FASTCALL
._isspace
.isspace
ld a,l
call asm_isspace
ld hl,0
ret nz
... |
###############################################################################
# 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... |
/*
* Copyright (c) 2015 Cryptonomex, Inc., and contributors.
*
* The MIT License
*
* 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 limitat... |
#include "HTTPDictionarySource.h"
#include <DataStreams/IBlockOutputStream.h>
#include <DataStreams/OwningBlockInputStream.h>
#include <IO/ConnectionTimeouts.h>
#include <IO/ReadWriteBufferFromHTTP.h>
#include <IO/WriteBufferFromOStream.h>
#include <Interpreters/Context.h>
#include <Poco/Net/HTTPRequest.h>
#include <c... |
; A178711: Partial sums of floor(5^n/7).
; Submitted by Jamie Morken(s4)
; 0,3,20,109,555,2787,13947,69750,348767,1743856,8719302,43596534,217982694,1089913497,5449567514,27247837603,136239188049,681195940281,3405979701441,17029898507244,85149492536261,425747462681350,2128737313406796,10643686567034028,5321843283517018... |
; A258121: Number of vertices of degree n in all Lucas cubes.
; 2,5,15,39,102,267,699,1830,4791,12543,32838,85971,225075,589254,1542687,4038807,10573734,27682395,72473451,189737958,496740423,1300483311,3404709510,8913645219,23336226147,61095033222,159948873519,418751587335,1096305888486,2870166078123,7514192345883,1967... |
// Copyright 2015 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 "components/sync/engine/attachments/attachment_store_frontend.h"
#include <utility>
#include "base/bind.h"
#include "base/location.h"
#include ... |
; A201813: Number of arrays of 5 integers in -n..n with sum zero and equal numbers of elements greater than zero and less than zero.
; 51,221,631,1401,2651,4501,7071,10481,14851,20301,26951,34921,44331,55301,67951,82401,98771,117181,137751,160601,185851,213621,244031,277201,313251,352301,394471,439881,488651,540901,596... |
;/**
; * @file
; *
; * Agesa library 64bit
; *
; * Contains AMD AGESA Library
; *
; * @xrefitem bom "File Content Label" "Release Content"
; * @e project: AGESA
; * @e sub-project: Lib
; * @e \$Revision: 17071 $ @e \$Date: 2009-07-30 10:13:11 -0700 (Thu, 30 Jul 2009) $
; */
;************************************... |
; A185438: a(n) = 8*n^2 - 2*n + 1.
; 1,7,29,67,121,191,277,379,497,631,781,947,1129,1327,1541,1771,2017,2279,2557,2851,3161,3487,3829,4187,4561,4951,5357,5779,6217,6671,7141,7627,8129,8647,9181,9731,10297,10879,11477,12091,12721,13367,14029,14707,15401,16111,16837,17579,18337,19111,19901,20707,21529,22367,23221,24091,2... |
.data 0x0
AAA: .word 0x3F9409, -6:6
BBB: .word 0x123 : 3
.half 0x456, 3:7
.byte -9, 10, 11, 12
XXX: .word 0x1, 0x999
YYY: .word 123
ZZZ: .word 0
.word 16
.text 0x0
start:
nop
main:
# minsys-1
add $1, $2, $3
addu... |
; A273005: Sum of coefficients in the hereditary representation of n in base 10.
; 0,1,2,3,4,5,6,7,8,9,2,3,4,5,6,7,8,9,10,11,3,4,5,6,7,8,9,10,11,12,4,5,6,7,8,9,10,11,12,13,5,6,7,8,9,10,11,12,13,14,6,7,8,9,10,11,12,13,14,15,7,8,9,10,11,12,13,14,15,16,8,9,10,11,12,13,14,15,16,17,9,10,11,12,13,14,15,16,17,18,10,11,12,13,1... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. Th... |
.section __TEXT,__text,regular,pure_instructions
.macosx_version_min 10, 12
.globl _main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## BB#0:
pushq %rbp
Ltmp0:
.cfi_def_cfa_offset 16
Ltmp1:
.cfi_offset %rbp, -16
movq %rsp, %rbp
Ltmp2:
.cfi_def_cfa_register %rbp
subq $112,... |
#include "qmllogger.h"
#include <QtGui>
QmlLogger::QmlLogger(QString qmlUnitPath, QObject *parent) :
QObject(parent) {
dialog = new QDialog();
this->qmlUnitPath = qmlUnitPath;
dialog->setWindowTitle(tr("QmlUnit"));
view = new QDeclarativeView(dialog);
view->setResizeMode(QDeclarativeView::S... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; 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... |
// 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/bitcoin-config.h>
#endif
#include <chainparams.h>
#include <interfaces/node.h>
#... |
; ML64 template file
; Compile: uasm64.exe -nologo -win64 -Zd -Zi -c testUasm.asm
; Link: link /nologo /debug /subsystem:console /entry:main testUasm.obj user32.lib kernel32.lib
OPTION WIN64:8
; Include files
include main.inc
include SDL.inc
include SDL_image.inc
; Include libraries
includelib SDL2.lib
includelib SD... |
[CPU 8086]
%define ROM
org 00000h
; Jump to IPC IRQ routine for legacy software
jmp 0F000h:0F000h
; Include version and build number
%include 'src/8088/build.inc'
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
... |
extern "C"
__global__ void add_vectors_invalid(float *c, float *a, float *b) {
int i = threadIdx.x;
c = 0; // ooops...
c[i] = a[i] + b[i];
} |
//
// Created by Grishka on 02.06.16.
//
#include "AudioInput.h"
#if defined(__ANDROID__)
#include "../os/android/AudioInputAndroid.h"
#elif defined(__APPLE__)
#include "../os/darwin/AudioInputAudioUnit.h"
#include "../os/darwin/AudioUnitIO.h"
#else
#error "Unsupported operating system"
#endif
CAudioInput *CAudioInpu... |
; A122908: A central binomial scaling of the Riordan array (1+x,x) (A097806).
; Submitted by Christian Krause
; 1,1,1,0,1,2,0,0,2,3,0,0,0,3,6,0,0,0,0,6,10,0,0,0,0,0,10,20,0,0,0,0,0,0,20,35,0,0,0,0,0,0,0,35,70,0,0,0,0,0,0,0,0,70,126,0,0,0,0,0,0,0,0,0,126,252
lpb $0
add $1,1
sub $0,$1
mov $2,$1
sub $2,$0
lpe
mul... |
; A093544: Numerator of (4n-3)/A000265(n). Numerator of pairwise quotients of A004130.
; 1,5,3,13,17,7,25,29,11,37,41,15,49,53,19,61,65,23,73,77,27,85,89,31,97,101,35,109,113,39,121,125,43,133,137,47,145,149,51,157,161,55,169,173,59,181,185,63,193,197,67,205,209,71,217,221,75,229,233,79,241
mov $1,$0
add $0,4
gcd $0,3... |
#include "headers/logger.h"
Logger::Logger()
{
}
Logger::~Logger()
{
}
void Logger::logEvent(LogEvents event, std::string logstr)
{
std::string sEvent {};
switch (event)
{
case LogEvents::INFO:
sEvent = "[INFO]";
break;
case LogEvents::DEBUG:
sEvent = "[DEBUG]";
break;
case LogEvents::MOVEME... |
; A158607: Period 5: repeat 9,11,13,5,7.
; 9,11,13,5,7,9,11,13,5,7,9,11,13,5,7,9,11,13,5,7,9,11,13,5,7,9,11,13,5,7,9,11,13,5,7,9,11,13,5,7,9,11,13,5,7,9,11,13,5,7,9,11,13,5,7,9,11,13,5,7,9,11,13,5,7,9,11,13,5,7,9,11,13,5,7,9,11,13,5,7
mov $1,$0
add $1,2
mod $1,5
mul $1,2
add $1,5
|
_shm_cnt: file format elf32-i386
Disassembly of section .text:
00001000 <main>:
struct uspinlock lock;
int cnt;
};
int main(int argc, char *argv[])
{
1000: 8d 4c 24 04 lea 0x4(%esp),%ecx
1004: 83 e4 f0 and $0xfffffff0,%esp
1007: ff 71 fc pushl -0x4(%... |
format ELF64 executable 3
include "utils.inc"
; syscall(%rdi, %rsi, %rdx, %r10, %r8, %r9)
segment readable executable
entry $ ; entrypoint is current address ($)
lea rsi, [save_buffer] ; loading rsi with ANSI code that saves current terminal buffer
mov rd... |
; A092900: A Jacobsthal sequence (A078008) to base 4.
; Submitted by Christian Krause
; 1,0,2,2,12,22,112,222,1112,2222,11112,22222,111112,222222,1111112,2222222,11111112,22222222,111111112,222222222,1111111112,2222222222,11111111112,22222222222,111111111112,222222222222,1111111111112,2222222222222,11111111111112,22222... |
//дерева бінарного пошуку
//побудова та основні дії
#include <iostream>
using namespace std;
namespace k18lesson14 {
const int NMAX = 100;
typedef struct BTN {
int dat;
BTN *lt, *rt;
} BINTRN, *BINTRP;
BINTRP nwnode(int, BINTRP, BINTRP);
BINTRP build(int[], int);
void symord(BINTRP);
BINTRP find(BINT... |
<% from pwnlib.shellcraft import common %>
<% from pwnlib.shellcraft import amd64 %>
<% from socket import htons %>
<%page args="port = None"/>
<%docstring>
Args: port (defaults to any port)
Finds a socket, which is connected to the specified port.
Leaves socket in RDI.
</%docstring>
<%
findpeer = common.labe... |
;
; Z88dk Generic Floating Point Math Library
;
; Shift c ix de b right by a
;
; $Id: rshift_noaf.asm,v 1.1 2012/04/17 16:37:46 stefano Exp $:
XLIB rshift
XDEF rsh8
.RSHIFT LD B,0
.RSH2 SUB 8
JR C,RSH4 ;c => 7 or fewer shifts remain
LD B,E ;shift c ix de b... |
; A250120: Coordination sequence for planar net 3.3.3.3.6 (also called the fsz net).
; 1,5,9,15,19,24,29,33,39,43,48,53,57,63,67,72,77,81,87,91,96,101,105,111,115,120,125,129,135,139,144,149,153,159,163,168,173,177,183,187,192,197,201,207,211,216,221,225,231,235,240,245,249,255,259,264,269,273,279,283,288,293,297,303,3... |
;/* inffas32.asm is a hand tuned assembler version of inffast.c -- fast decoding
; *
; * inffas32.asm is derivated from inffas86.c, with translation of assembly code
; *
; * Copyright (C) 1995-2003 Mark Adler
; * For conditions of distribution and use, see copyright notice in zlib.h
; *
; * Copyright (C) 2003 Chris And... |
;Testname=avx005; Arguments=-fbin -oavx005.bin -Ox; Files=stdout stderr avx005.bin
%define regxmm xmm0
%define regymm ymm0
%define mem [0]
%define imm 3
%macro x 1+.nolist
%1 ; comment this line if RELAXed variants are not supported
%endmacro
VFMADDSUB132PS regxmm,regxmm,mem ; VEX_FMA,SO
VFMADDSUB132PS r... |
/******************************************************************************
* $Id: ogrmultilinestring.cpp 27044 2014-03-16 23:41:27Z rouault $
*
* Project: OpenGIS Simple Features Reference Implementation
* Purpose: The OGRMultiLineString class.
* Author: Frank Warmerdam, warmerdam@pobox.com
*
**********... |
; Copyright 2021 Justin Skists
;
; 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, publish, distribute,... |
Ani_39476: dc.w byte_39482-Ani_39476
dc.w byte_39488-Ani_39476
dc.w byte_3948B-Ani_39476
dc.w byte_3948E-Ani_39476
dc.w byte_3949A-Ani_39476
dc.w byte_3949D-Ani_39476
byte_39482: dc.b 7, 6, 7, 8, $FE, 1
byte_39488: dc.b $1F, 9, $FF
byte_3948B: dc.b $1F, $A, $FF
byte_3948E: dc.b 7, 6, 6, ... |
// seed 3
lbi r0, 128 // icount 0
slbi r0, 0 // icount 1
lbi r1, 128 // icount 2
slbi r1, 0 // icount 3
lbi r2, 128 // icount 4
slbi r2, 0 // icount 5
lbi r3, 128 // icount 6
slbi r3, 0 // icount 7
lbi r4, 128 // icount 8
slbi r4, 0 // icount 9
lbi r5, 128 // icount 10
slbi r5, 0 // icount 11
lbi r6, 128 // icount 12
s... |
/* Copyright 2018 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 ... |
; A115451: Expansion of 1/((1+x)*(1-2*x)*(1+x^2)).
; 1,1,2,4,9,17,34,68,137,273,546,1092,2185,4369,8738,17476,34953,69905,139810,279620,559241,1118481,2236962,4473924,8947849,17895697,35791394,71582788,143165577,286331153,572662306,1145324612,2290649225,4581298449,9162596898,18325193796,36650387593,73300775185,14660155... |
;--------------------------------------------------------
; Category 8 Function 02H Redetermine Media - not supported for versions below DOS 3.2
;--------------------------------------------------------
;
;
;
IODREDETERMINE PROC NEAR
RET
IODREDETERMINE ENDP
|
#include <bits/stdc++.h>
#define MAXN 300010
using namespace std;
struct PAM
{
int nxt[26],fail,l;
};
PAM tree[MAXN];
int n,tot=1,last;
char s[MAXN];
long long ans,cnt[MAXN];
inline void pre()
{
tree[0].fail=1;tree[1].l=-1;
return ;
}
void add(int x,int t)
{
int now=last;
while (s[t-tree[now].l-1]!=s[t]) now=t... |
section .data
%define smp_trampoline_size smp_trampoline_end - smp_trampoline
smp_trampoline: incbin "build/RELEASE/kernel/proc/trampoline.bin"
smp_trampoline_end:
section .text
%macro ISR_NO_ERR_CODE 1
global isr%1
isr%1:
push 0
push %1
jmp service_interrupt
%endmacro
%macro ISR_NO_ERR_CODE2 1
glo... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x14ae6, %rsi
lea addresses_normal_ht+0xa486, %rdi
nop
nop
add $41053, %r9
mov $122, %rcx
rep movsl
nop
xor %r12, %r12
lea addresses_D_ht+0x1e396, %rsi
nop
nop
nop
cmp $29766, %r13
movups (%rsi), ... |
db "AURORA@" ; species name
db "This divine"
next "#MON blows"
next "around the world,"
page "always in search"
next "of a pure"
next "reservoir.@"
|
.686
.model flat
.xmm
.code
_test_case proc
push ebp
mov ebp,esp
sub esp,8
push edi
mov edi,3
cmp edi,1
je label0001
cmp edi,2
je label0002
cmp edi,3
je label0003
... |
; A239868: Sum of sigma(i) mod i for i from 1 to n.
; 0,1,2,5,6,6,7,14,18,26,27,31,32,42,51,66,67,70,71,73,84,98,99,111,117,133,146,146,147,159,160,191,206,226,239,258,259,281,298,308,309,321,322,362,395,421,422,450,458,501,522,568,569,581,598,606,629,661,662,710,711,745,786,849,868,880,881,939,966,970,971,1022,1023,10... |
//
// Copyright (c) 2019 Vinnie Falco (vinnie.falco@gmail.com)
// Copyright (c) 2022 Alan Freitas (alandefreitas@gmail.com)
//
// 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)
//
// Official repository: https://githu... |
; Load the pulse pattern into the serial buffer.
; Note that the start bit will produce the first pulse, so this actually produces 5 pulses.
store_immediate UDR0, r31, 0b01010101
; Turn the serial port on, with 8-bit characters.
store_immediate UCSR0B, r31, (1<<TXEN0)|(1<<UCSZ01)|(1<<UCSZ00)
; Wait for the colorburst... |
song003restored_pri equ 0
song003restored_rev equ 0
song003restored_mvl equ 127
song003restored_key equ 0
song003restored_tbs equ 1
song003restored_exg equ 0
song003restored_cmp equ 1
.align 4
;**************** Track 1 (Midi-Chn.1) ****************;
@song003restored_1:
.byte TEMPO , 95
.byte KEYSH , son... |
// hash-table.hpp
//
// Phi Luu
//
// Data Structures and Algorithms: Hash Tables
//
// This implementation serves as one of many ways to refine skills in
// data structures and algorithms.
//
// The class HashTable provides a few simple methods to interact with a
// hash table, including
// - Creating a hash table
/... |
# Same thing in C's <stdio.h>
#
# extern r0 puts (r0)
.SECTION text
.GLOBAL puts
puts: LDC r1, STDOUT
FWRTS r0, r1, r0
MOV r0, 0xA
FWRTB r0, r1, r0
|
////////////////////////////////////////////////////////////
//
// SFML - Simple and Fast Multimedia Library
// Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org)
//
// This software is provided 'as-is', without any express or implied warranty.
// In no event will the authors be held liable for any damages a... |
; A064733: Final digits of A005165(2n) for large n, read from right.
; Submitted by Christian Krause
; 9,1,0,7,7,5,5,3,6,1,6,1,2,6,3,9,3,5,6,4,4,1,2,8,8,5,7,6,3,2,6,8,6,5,5,0,1,6,0,4,8,5,9,1,6,9,4,6,3,4,0,7,3,8,1,7,6,8,1,3,1,6,8,8,1,1,9,8,9,2,8,8,8,6,0,2,9,5,3,9,9,6,6,3,2,9,9,3,6,3,4,2,4,7,9,0,7,7,4,5
mov $3,$0
add $3... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Soma.asm - soma de numeros em hexadecimal
;Prof. Roberto M. Ziller - 04.01.2000
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
ORG 2000H
LDA N ; traz para A o valor de N
MOV C,A ; guarda este va... |
; Function to remove HOTKEY V2.00 1988 Tony Tebby QJUMP
section hotkey
xdef hot_remv
xref hot_thar
xref hot_rter
xref hk_remv
xref ut_gxnm1
;+++
; SuperBASIC Remove hotkey item
; error = HOT_REMV (key or name)
;---
hot_remv
jsr ... |
#include <bits/stdc++.h>
using namespace std;
char str[500];
int main()
{
// freopen("myIn.txt","r",stdin);
// freopen("myOut.txt","w",stdout);
int len;
scanf("%d \n%s",&len,str);
int mx =0,cnt,words=0;
for(int i=0; i<len; i++) {
cnt=0;
if(str[i] == '(') {
... |
; StartMenu.Items indexes
const_def
const STARTMENUITEM_POKEDEX ; 0
const STARTMENUITEM_POKEMON ; 1
const STARTMENUITEM_PACK ; 2
const STARTMENUITEM_STATUS ; 3
const STARTMENUITEM_SAVE ; 4
const STARTMENUITEM_OPTION ; 5
const STARTMENUITEM_EXIT ; 6
const STARTMENUITEM_POKEGEAR ; 7
const STAR... |
/*************************************************************************/
/* ustring.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
; A196630: Number of n X 2 0..4 arrays with each element x equal to the number its horizontal and vertical neighbors equal to 1,3,2,0,4 for x=0,1,2,3,4.
; Submitted by Jon Maiga
; 1,2,5,10,26,65,161,403,1006,2511,6270,15654,39083,97579,243625,608258,1518637,3791578,9466426,23634809,59008985,147327627,367832622,91836704... |
// Copyright (c) 2008, Jacob Burnim (jburnim@cs.berkeley.edu)
//
// This file is part of CREST, which is distributed under the revised
// BSD license. A copy of this license can be found in the file LICENSE.
//
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even... |
; A291900: Sum of the divisors of 24*n - 1, divided by 24, minus n.
; 0,0,0,1,1,1,0,0,2,0,0,2,0,3,0,0,2,0,9,0,0,2,2,7,0,4,0,3,6,0,0,3,5,7,0,0,0,0,15,6,0,3,0,9,4,0,10,0,13,5,0,3,3,22,0,4,0,5,12,0,19,0,0,13,0,0,0,10,14,4,6,7,5,19,11,0,0,0,16,5,4,12,8,28,0,0,0,0,35,6,4,0,5,32,4,18,8,0,31,0,0,0,15,21,10,0,7,0,22,30,0,0,0,2... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2011-2020 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... |
; =============================================================================
; Pure64 -- a 64-bit OS loader written in Assembly for x86-64 systems
; Copyright (C) 2008-2014 Return Infinity -- see LICENSE.TXT
;
; System Variables
; =============================================================================
;CONFI... |
; A311356: Coordination sequence Gal.6.219.1 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; Submitted by Simon Strandgaard
; 1,4,8,12,16,22,26,32,36,40,44,48,52,56,60,64,70,74,80,84,88,92,96,100,104,108,112,118,122,128,132,136,140,1... |
; DEV Version
section version
xdef dev_vmess
xdef dev_vmend
xdef dev_vers
; V2.00 Initial version
; V2.01 DEV_USE name permitted
; V2.02 Format returns not implemented
; V2.03 Allows DV3 to change channel block
; V2.04 Name length check corrected
; V2.05 DEV_USEN ( and DEV_USE with 0 or one params) added
dev_ve... |
; A024701: a(n) = (-1 + prime(n+1)^2)/4.
; 2,6,12,30,42,72,90,132,210,240,342,420,462,552,702,870,930,1122,1260,1332,1560,1722,1980,2352,2550,2652,2862,2970,3192,4032,4290,4692,4830,5550,5700,6162,6642,6972,7482,8010,8190,9120,9312,9702,9900,11130,12432,12882,13110
seq $0,98090 ; Numbers k such that 2k-3 is prime.
sub... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r15
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x86c, %rax
and %r9, %r9
movl $0x61626364, (%rax)
nop
nop
dec %r12
lea addresses_WC_ht+0xbbf9, %r13
nop
nop
nop
nop
sub $46160, %rsi
and $0xffffffffffffffc0, %r13
mova... |
// Copyright 2019 The MediaPipe Authors.
//
// 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... |
; A184746: floor(nr+h), where r=1+1/sqrt(5), h=1/2; complement of A184747.
; 1,3,4,6,7,9,10,12,13,14,16,17,19,20,22,23,25,26,27,29,30,32,33,35,36,38,39,41,42,43,45,46,48,49,51,52,54,55,56,58,59,61,62,64,65,67,68,69,71,72,74,75,77,78,80,81,82,84,85,87,88,90,91,93,94,96,97,98,100,101,103,104,106,107,109,110,111,113,114,1... |
.data
n_text: .asciiz "Insira valor de n: "
ans_text: .asciiz "Fib(n): "
.text
# Vinicius Gasparini
.globl main
main:
li $t1, 0 # contador
li $s0, 0 # valor base
li $s1, 1 # valor base
li $v0, 4 # call code para print_str
la $a0, n_text # carregando str para arg da syscall
syscall
li $... |
#include <message.h>
#include <sstream>
#undef ENABLE_SGX
#include <sgx_cryptoall.h>
#include <cryptopp/base64.h>
#include <cryptopp/filters.h>
//------------------------------------------------------------------------------
std::string& trim_right_inplace( std::string &s,
const std::str... |
; A250363: Number of length 5 arrays x(i), i=1..5 with x(i) in i..i+n and no value appearing more than 3 times.
; 32,243,1016,3094,7712,16700,32608,58826,99704,160672,248360,370718,537136,758564,1047632,1418770,1888328,2474696,3198424,4082342,5151680,6434188,7960256,9763034,11878552,14345840,17207048,20507566,24296144
... |
; A331952: a(n) = (-7 + (-1)^(1+n) + 6*n^2) / 8.
; -1,0,2,6,11,18,26,36,47,60,74,90,107,126,146,168,191,216,242,270,299,330,362,396,431,468,506,546,587,630,674,720,767,816,866,918,971,1026,1082,1140,1199,1260,1322,1386,1451,1518,1586,1656,1727,1800,1874,1950,2027,2106,2186,2268,2351,2436,2522,2610,2699,2790,2882,2976,3... |
0x0000 (0x000000) 0x700A- f:00070 d: 10 | P = P + 10 (0x000A)
0x0001 (0x000002) 0x002A- f:00000 d: 42 | PASS | **** non-standard encoding with D:0x002A ****
0x0002 (0x000004) 0x0030- f:00000 d: 48 | PASS | **** non-standard encoding wit... |
/*
ReflectionCodeGenerator
*/
// ReflectionCodeGenerator version 2.2.5, build 56 [Json, Binary, ImGui, EntityManager, Reflection, TypeInformation]
// File has been generated at 2022_01_10 22:51:06.394
#include "ComponentJsonSerializer.h"
#include "JsonPopMaster.h"
#include "JsonPushMaster.h"
#include "Singl... |
; A125199: Triangle read by rows: T(n,k) = 4*n*k - n - k, 1<=k<=n.
; Submitted by Simon Strandgaard
; 2,5,12,8,19,30,11,26,41,56,14,33,52,71,90,17,40,63,86,109,132,20,47,74,101,128,155,182,23,54,85,116,147,178,209,240,26,61,96,131
mov $1,3
lpb $0
sub $2,1
add $0,$2
add $1,4
lpe
add $0,1
mul $0,$1
add $0,$2
sub $... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkGeometricErrorMetric.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This s... |
/**
* @author : Maruf Tuhin
* @College : CUET CSE 11
* @Topcoder : the_redback
* @CodeForces : the_redback
* @UVA : the_redback
* @link : http://www.fb.com/maruf.2hin
*/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long lo... |
#include <gtest/gtest.h>
#include <marlin/core/fibers/LengthBufferFiber.hpp>
using namespace marlin::core;
struct Terminal {
Terminal(auto&&...) {}
auto& i(auto&&) { return *this; }
auto& o(auto&&) { return *this; }
auto& is(auto& f) { return f; }
auto& os(auto& f) { return f; }
size_t c = 1;
std::function<... |
// Test that volatile vars are turned into load/store
// Commodore 64 PRG executable file
.file [name="volatile-0.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"]
.segment Basic
:... |
; A112774: Semiprimes of the form 6n+4.
; Submitted by Jon Maiga
; 4,10,22,34,46,58,82,94,106,118,142,166,178,202,214,226,262,274,298,334,346,358,382,394,454,466,478,502,514,526,538,562,586,622,634,694,706,718,766,778,802,838,862,886,898,922,934,958,982,1006,1018,1042,1114,1126,1138,1174,1186,1198,1234,1282,1294,1306,1... |
SECTION code_clib
SECTION code_threads_mutex
PUBLIC asm_spinlock_release
.asm_spinlock_release
; enter : hl = & spinlock
;
; exit : hl = & spinlock
;
; uses : none
IF __CPU_INTEL__
dec (hl) ; atomic operation
ret
ELSE
ld (hl),$fe ; atomic operation
r... |
; This is the kernel's entry point. We could either call main here,
; or we can use this to setup the stack or other nice stuff, like
; perhaps setting up the GDT and segments. Please note that interrupts
; are disabled at this point: More on interrupts later!
[BITS 32]
global start
start:
mov esp, _sys_stack ;... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.