text stringlengths 1 1.05M |
|---|
; A170110: Number of reduced words of length n in Coxeter group on 5 generators S_i with relations (S_i)^2 = (S_i S_j)^38 = I.
; 1,5,20,80,320,1280,5120,20480,81920,327680,1310720,5242880,20971520,83886080,335544320,1342177280,5368709120,21474836480,85899345920,343597383680,1374389534720,5497558138880,21990232555520,87... |
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#include "ProjectTargetPlatformEditorPrivatePCH.h"
#include "IProjectManager.h"
#define LOCTEXT_NAMESPACE "SProjectTargetPlatformSettings"
BEGIN_SLATE_FUNCTION_BUILD_OPTIMIZATION
void SProjectTargetPlatformSettings::Construct(const FArguments& InArgs)
{
/... |
; A142567: Primes congruent to 37 mod 53.
; Submitted by Jon Maiga
; 37,461,673,991,1097,1627,1733,2687,3217,3323,3853,5231,5443,5867,6079,6397,7351,7457,7669,8093,8623,8941,10531,11273,11909,12227,12757,13499,13711,14029,14347,14771,14983,15619,15937,16361,16573,17209,18269,18481,18587,19541,19753,20071,20177,20389,20... |
#include "Controllino.h"
#include <iostream>
#include <string>
#include "serial.h"
#include "Util.h"
#include "Log.h"
#include "modbus.h"
Controllino::Controllino() noexcept
: DeviceBase("Controllino")
{
}
Controllino::~Controllino()
{
}
bool ParseIO(const std::string &str, Controllino::AreaName &port, uint... |
//===----------------------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; SELECT CRT0 FROM -STARTUP=N COMMANDLINE OPTION ;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
INCLUDE "zcc_opt.def"
IFNDEF startup
; startup undefined so select a default
defc startup = 0
ENDIF
;;;;;;;;;;;... |
# handler
section .text
vector0:
push 0
push 0
jmp __alltraps
vector1:
push 0
push 1
jmp __alltraps
vector2:
push 0
push 2
jmp __alltraps
vector3:
push 0
push 3
jmp __alltraps
vector4:
push 0
push 4
jmp __alltraps
vector5:
push 0
push 5
jmp __alltraps
vector6:
push 0
push 6
jmp... |
STRING equs "OK"
WRAPPER equs "TRIN"
PRINTT "{S{WRAPPER}G}\n"
PRINTT "{S{WRAPPER}G"
|
<%
from pwnlib.shellcraft.i386.linux import syscall
%>
<%page args="epfd, op, fd, event"/>
<%docstring>
Invokes the syscall epoll_ctl. See 'man 2 epoll_ctl' for more information.
Arguments:
epfd(int): epfd
op(int): op
fd(int): fd
event(epoll_event): event
</%docstring>
${syscall('SYS_epoll_c... |
; A208138: Number of n X 4 0..1 arrays avoiding 0 0 1 and 0 1 1 horizontally and 0 0 1 and 1 0 1 vertically.
; 9,81,324,900,2025,3969,7056,11664,18225,27225,39204,54756,74529,99225,129600,166464,210681,263169,324900,396900,480249,576081,685584,810000,950625,1108809,1285956,1483524,1703025,1946025,2214144,2509056,283248... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0xe2ac, %r9
nop
nop
nop
nop
cmp %r11, %r11
mov (%r9), %di
nop
nop
nop
nop
dec %rcx
lea addresses_UC_ht+0x448c, %r8
cmp %r13, %r13
mov (%r8), %eax
nop
cmp $2581, %rdi
lea address... |
.data
.text
addi $t0, $zero, 2000
addi $t1, $zero, 10
mult $t0, $t1 #two-register multiplication of 2000 and 10
#the results are large, so the product is stored in lo and hi regs
mflo $s0
mfhi $s1 #not used here
#display result
li $v0, 1
add $a0, $zero, $s0
syscall |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r15
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x1bcfd, %rax
nop
nop
add $59740, %r9
mov (%rax), %r13
nop
nop
add %r8, %r8
lea addresses_D_ht+0xacd5, %rsi
lea addresses_WT_ht+0x1eadd, %rdi
clflush (%rdi)
nop
nop
nop
dec %r15
... |
segment .rdata, align=16
correct dq 0000800000008000h, 0000800000008000h
round dq 0000200000002000h, 0000200000002000h
round1 dq 0000020000000200h, 0000020000000200h
round2 dq 0002000000020000h, 0002000000020000h
segment .text
%include "a_triblt.inc"
extern _kVDCubicInterpTableFX14_075_MMX
;--... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r15
push %rbp
push %rcx
push %rdx
lea addresses_WC_ht+0xa6f4, %r13
clflush (%r13)
nop
nop
nop
xor %rcx, %rcx
mov (%r13), %r15
nop
xor %rbp, %rbp
lea addresses_A_ht+0x13754, %rbp
nop
nop
nop
nop
nop
add $25168, %r12
mov $0x6162636465666768,... |
; A245346: Sum of digits of n in fractional base 10/3.
; 0,1,2,3,4,5,6,7,8,9,3,4,5,6,7,8,9,10,11,12,6,7,8,9,10,11,12,13,14,15,9,10,11,12,13,14,15,16,17,18,5,6,7,8,9,10,11,12,13,14,8,9,10,11,12,13,14,15,16,17,11,12,13,14,15,16,17,18,19,20,7,8,9
lpb $0
mov $2,$0
div $0,10
mul $0,3
mod $2,10
add $1,$2
lpe
mov $... |
; A207069: Number of 2 X n 0..1 arrays avoiding 0 0 1 and 0 1 0 horizontally and 0 0 1 and 1 0 1 vertically.
; 4,16,36,81,196,441,961,2116,4624,10000,21609,46656,100489,216225,465124,1000000,2149156,4618201,9922500,21316689,45792289,98366724,211295296,453860416,974875729,2093977600,4497714225,9660727521,20750402500,445... |
; A292046: The list of distinct values of A072464.
; 1,3,6,7,11,12,13,14,16,17,18,19,20,21,22,23,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,1... |
.global s_prepare_buffers
s_prepare_buffers:
push %r8
push %r9
push %rax
push %rbp
push %rbx
push %rdi
push %rdx
lea addresses_D_ht+0x74c6, %rbx
nop
nop
nop
nop
sub %rbp, %rbp
movb (%rbx), %r9b
nop
nop
nop
and $27840, %r9
lea addresses_UC_ht+0x17cc6, %rdx
nop
xor %rax, %rax
mov (%rdx), %bp
sub %rax, %rax
lea addresses_... |
; A017110: a(n) = (8*n+3)^10.
; 59049,25937424601,6131066257801,205891132094649,2758547353515625,21611482313284249,119042423827613001,511116753300641401,1822837804551761449,5631351470947265625,15516041187205853449,38941611811810745401,90438207500880449001,196715135728956532249,404555773570791015625,79259460960518912664... |
#ifndef BOOST_GEOMETRY_PROJECTIONS_DENOY_HPP
#define BOOST_GEOMETRY_PROJECTIONS_DENOY_HPP
// Boost.Geometry - extensions-gis-projections (based on PROJ4)
// This file is automatically generated. DO NOT EDIT.
// Copyright (c) 2008-2015 Barend Gehrels, Amsterdam, the Netherlands.
// This file was modified by O... |
###############################################################################
# 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... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x16aa9, %rsi
lea addresses_normal_ht+0x156a9, %rdi
nop
nop
nop
nop
mfence
mov $30, %rcx
rep movsl
nop
nop
xor $62355, %rsi
pop %rsi
pop %rdi
pop %rcx
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r10
... |
;
; Sharp OZ family functions
;
; ported from the OZ-7xx SDK by by Alexander R. Pruss
; by Stefano Bodrato - Oct. 2003
;
;
; display blanking control functions
; LCDStatus is 0c024h in the OS;
;
;
; ------
; $Id: ozblankscreen.asm,v 1.1 2003/10/21 17:15:21 stefano Exp $
;
XLIB ozblankscreen
LIB ozunblankscreen
LI... |
#include "gal/opengl/object_impl/gal_texture_sampler_impl_gl.h"
namespace gal {
bool GALTextureSamplerImplGL::Create(GALPlatform* gal_platform, const GALTexture& texture) {
// TODO(colintan): Replace this with something better
static int unit_counter = 0;
// TODO(colintan): Check that GALTexture returns a valid ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0xc556, %rsi
lea addresses_D_ht+0x15d56, %rdi
nop
cmp $52293, %r10
mov $7, %rcx
rep movsq
nop
nop
cmp %rdx, %rdx
lea addresses_WC_ht+0xf06, %rsi
lea addresses_WT_ht+0x2b7c, %r... |
#include <pbcopper/cli2/internal/PositionalArgumentTranslator.h>
#include <sstream>
#include <pbcopper/cli2/PositionalArgument.h>
#include <pbcopper/cli2/internal/PositionalArgumentData.h>
#include <pbcopper/json/JSON.h>
using Json = PacBio::JSON::Json;
using PositionalArgument = PacBio::CLI_v2::PositionalArgument;
... |
; A258387: a(n) = (n+1)^n + n^(n-1).
; 3,11,73,689,8401,125425,2214801,45143873,1043046721,26937424601,768945795289,24041093493169,817012858376625,29986640798644769,1182114430632237601,49814113380273715457,2234572751614363400449,106313261857649938064809,5347007350297911241532841,283461309446951548637196401
mov $1,$0
m... |
#include "uritests.h"
#include "../guiutil.h"
#include "../walletmodel.h"
#include <QUrl>
void URITests::uriTests()
{
SendCoinsRecipient rv;
QUrl uri;
uri.setUrl(QString("americs:LQDPC5rbjDB72fGFVHu4enYhxGAZuRiFh9?req-dontexist="));
QVERIFY(!GUIUtil::parseBitcoinURI(uri, &rv));
uri.setUrl(QString... |
/*
* Copyright (C) 2012 Open Source Robotics Foundation
*
* 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 appl... |
; A110507: Number of nodes in the smallest cubic graph with crossing number n.
; Submitted by Christian Krause
; 4,6,10,14,16,18,20,22,24,26,28,28
add $0,1
pow $0,2
add $0,1
mov $2,5
lpb $0
mul $0,7
div $0,8
add $1,$2
lpe
div $1,10
mov $0,$1
add $0,1
mul $0,2
|
; A188031: [nr]-[nr-kr]-[kr], where r=(1+sqrt(5))/2, k=11, [ ]=floor.
; Submitted by Jamie Morken(s4)
; 1,1,0,1,1,1,1,0,1,1,0,1,1,1,1,0,1,1,1,1,0,1,1,0,1,1,1,1,0,1,1,1,1,1,1,1,0,1,1,1,1,0,1,1,0,1,1,1,1,0,1,1,1,1,0,1,1,0,1,1,1,1,0,1,1,1,1,1,1,1,0,1,1,1,1,0,1,1,0,1,1,1,1,0,1,1,1,1,1,1,1,0,1,1,1,1,0,1,1,0
add $0,1
seq $0... |
org 0x7c00
bits 16
mov ax, 0
mov ds, ax
cli
mov cx, 0 ; inicializa quantidade de letras como 0
read:
mov ax, 0 ; leitura do teclado
int 0x16
cmp al, 13 ; checa se a tecla enter foi apertada
je lineBreak
mov ah, 0x0e ; printa na tela o que foi lido
int 0x10
push ax ; c... |
; DRAW XOR SPRITE 1 BYTE DEFINITION ROTATED
; 04.2006 aralbrec, Sprite Pack v3.0
; sinclair spectrum version
INCLUDE "clib_target_cfg.asm"
SECTION code_temp_sp1
PUBLIC _SP1_DRAW_XOR1
EXTERN _SP1_DRAW_XOR1NR
EXTERN SP1RETSPRDRAW
; following data segment copied into struct sp1_cs
ld hl,0
ld ix,0
call _SP1... |
org 0x7e00
jmp 0x0000:start
data:
; dados da interface console
texto_menu_console db 'PLAYSTATION 6', 0 ; texto console
texto_menu_pong db 'P - JOGAR PONG', 0 ; texto jogar Pong console
texto_menu_space db 'S - JOGAR SPACE INVADERS', 0 ; texto jogar S... |
/**********
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
Free Software Foundation; either version 2.1 of the License, or (at your
option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.)
This libr... |
section sprite
xdef mes_cd_prev
mes_cd_prev
dc.w $0220,4,0,0,0,0
dc.l 0,0,0,0
dc.l sp_ex-*
sp_ex dc.l sp_btn-*
dc.l sp_btn_cur-*
dc.l 0,0,0
sp_btn
incbin 'win1_util_sprite_cd_prev_spr'
sp_btn_cur
incbin 'win1_util_sprite_cd_prev2_spr'
end
|
// Copyright 2018 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 "chrome/browser/ash/login/quick_unlock/auth_token.h"
#include "base/bind.h"
#include "base/single_thread_task_runner.h"
#include "base/threading... |
; struct sp1_update __CALLEE__ *sp1_GetUpdateStruct_callee(uchar row, uchar col)
; 02.2008 aralbrec, Sprite Pack v3.0
; zx81 hi-res version
INCLUDE "zx81hr/customize.asm"
SECTION code_sprite_sp1
PUBLIC sp1_GetUpdateStruct_callee
PUBLIC ASMDISP_SP1_GETUPDATESTRUCT_CALLEE
.sp1_GetUpdateStruct_callee
pop hl
pop ... |
SECTION code_fp_am9511
PUBLIC tan_fastcall
EXTERN asm_am9511_tan_fastcall
defc tan_fastcall = asm_am9511_tan_fastcall
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _tan_fastcall
defc _tan_fastcall = asm_am9511_tan_fastcall
ENDIF
|
.MACRO joypad_event
lda \3 ; read joypad
bit #\1
bne +
stz LKS_STDCTRL + \2
bra ++
+:
lda LKS_STDCTRL + \2
cmp #$00
bne +
lda #01
sta LKS_STDCTRL + \2
bra ++
+:
lda #02
sta LKS_STDCTRL + \2
++:
.ENDM
.DEFINE _A $00
.DEFINE _B $01
.DEFINE _Y $02
.DEFINE _X $03
.DEFINE _L $0... |
; A256646: 26-gonal pyramidal numbers: a(n) = n*(n+1)*(8*n-7)/2.
; 0,1,27,102,250,495,861,1372,2052,2925,4015,5346,6942,8827,11025,13560,16456,19737,23427,27550,32130,37191,42757,48852,55500,62725,70551,79002,88102,97875,108345,119536,131472,144177,157675,171990,187146,203167,220077,237900,256660,276381,297087,318802,3... |
#include <iostream>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
cout<<a+b;
}
|
// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (C) Microsoft Corporation
// All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and related
// electronic documentation provided with the library.
// See these sourc... |
////////////////////////////////////////////////////////////////////////////////
// This file is distributed under the University of Illinois/NCSA Open Source
// License. See LICENSE file in top directory for details.
//
// Copyright (c) 2016 Jeongnim Kim and QMCPACK developers.
//
// File developed by:
// Ken Esler, ... |
bits 64
default rel
section .text
global pal_execute_rdtscp
pal_execute_rdtscp :
push rbx
rdtscp
shl rdx, 32
or rax, rdx
mov rdi, rax
xor rax, rax
xor rbx, rbx
xor rcx, rcx
xor rdx, rdx
cpuid
mov rax, rdi
pop rbx
ret
|
; A067016: Start with a(0)=1, a(1)=4, a(2)=3, a(3)=2; for n>=3, a(n+1) = max_i (a(i)+a(n-i)).
; 1,4,3,2,7,8,11,12,15,16,19,20,23,24,27,28,31,32,35,36,39,40,43,44,47,48,51,52,55,56,59,60,63,64,67,68,71,72,75,76,79,80,83,84,87,88,91,92,95,96,99,100,103,104,107,108,111,112,115,116,119,120,123,124,127,128,131,132,135,136,1... |
// Copyright 2008-2016 Conrad Sanderson (http://conradsanderson.id.au)
// Copyright 2008-2016 National ICT Australia (NICTA)
//
// 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... |
; A059556: Beatty sequence for 1 + 1/gamma.
; Submitted by Jamie Morken(s4)
; 2,5,8,10,13,16,19,21,24,27,30,32,35,38,40,43,46,49,51,54,57,60,62,65,68,71,73,76,79,81,84,87,90,92,95,98,101,103,106,109,112,114,117,120,122,125,128,131,133,136,139,142,144,147,150,153,155,158,161,163,166,169,172,174,177,180,183,185,188,191,1... |
; A185170: a(n) = floor( (2*n^2 - 6*n + 9) / 5).
; 1,1,1,1,3,5,9,13,17,23,29,37,45,53,63,73,85,97,109,123,137,153,169,185,203,221,241,261,281,303,325,349,373,397,423,449,477,505,533,563,593,625,657,689,723,757,793,829,865,903,941,981,1021,1061,1103,1145,1189,1233,1277,1323,1369,1417,1465,1513,1563,1613,1665,1717,1769,1... |
pragma_embed-profiler-output := true
mov 0
mov 1
profiler start, one instruction
nop
profiler stop, one instruction
profiler start, loop test
mov 4
loop:
dec
jnz @loop
profiler stop, loop test
hlt
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %r8
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0xd2ea, %r8
clflush (%r8)
dec %r13
mov (%r8), %r10d
nop
nop
nop
nop
nop
dec %rsi
lea addresses_D_ht+0x52c8, %rbx
xor %r8, %r8
mov $0x6162636465666768, %r12
movq %r12,... |
;***********************************************************
; UTN-2014-Rutinas de Interrupcion
;***********************************************************
;***********************************************************
; Author : Fernandez Marcelo Joaquin
; Date : 23th May 2014
;*******************************... |
// push constant 111
@111
D=A // store the current address as a value
@SP // >> push constant value (111) onto stack <<
A=M // move to top of stack
M=D // write value of D to current location
@SP // increment stack pointer
M=M+1
// push constant 333
@333 ... |
/*
*********************************************************************************************************
* uC/Probe Communication
*
* Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com
*
* SPDX-License-Identifier: APA... |
; A081006: a(n) = Fibonacci(4n) - 1, or Fibonacci(2n+1)*Lucas(2n-1).
; 2,20,143,986,6764,46367,317810,2178308,14930351,102334154,701408732,4807526975,32951280098,225851433716,1548008755919,10610209857722,72723460248140,498454011879263,3416454622906706,23416728348467684
mul $0,2
add $0,1
lpb $0
sub $0,1
add $1,1
... |
#include "raw_pixel_area.hpp"
#include "pixel_format.hpp"
#include <functional>
#include <map>
#include <cassert>
#include <cstring>
using namespace ::std;
using namespace ::atlas2d;
using namespace ::atlas2d::details;
namespace {
struct row_selector;
/// The generic row fetcher
using row_fetch... |
;*******************************************************************************
; Program: MC6809E
; Version: 1.20
; Written: July 15, 1990
; Updated: Friday, August 12, 1994 7:52 pm
; Author : Tony G. Papadimitriou
; Purpose: This is an enhanced version of the MC6809E emulator program
; originally written i... |
; A017171: a(n) = (9*n)^11.
; 0,31381059609,64268410079232,5559060566555523,131621703842267136,1532278301220703125,11384956040305711104,62050608388552823487,269561249468963094528,984770902183611232881,3138105960900000000000,8953382542587164451099,23316389970546096340992,56239892154164025151533,127079645979756182501376,... |
; A249124: Position of 2*n^6 in the ordered union of {h^6, h >= 1} and {2*k^6, k >= 1}.
; 2,4,6,8,10,12,14,16,19,21,23,25,27,29,31,33,36,38,40,42,44,46,48,50,53,55,57,59,61,63,65,67,70,72,74,76,78,80,82,84,87,89,91,93,95,97,99,101,104,106,108,110,112,114,116,118,120,123,125,127,129,131
mov $2,2
add $2,$0
add $0,$2
mov... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r8
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0xbfb7, %r8
nop
nop
nop
nop
sub $21348, %rdi
movl $0x61626364, (%r8)
nop
nop
nop
xor %r8, %r8
lea addresses_WC_ht+0x143b7, %rdi
nop
and %r13, %r13
movb (%rdi), %al
nop
nop
nop
... |
<%
from pwnlib.shellcraft.powerpc.linux import syscall
%>
<%page args="clock_id, tp"/>
<%docstring>
Invokes the syscall clock_gettime. See 'man 2 clock_gettime' for more information.
Arguments:
clock_id(clockid_t): clock_id
tp(timespec): tp
</%docstring>
${syscall('SYS_clock_gettime', clock_id, tp)}
|
// Copyright 2019 The IREE Authors
//
// Licensed under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#include "iree/compiler/Dialect/HAL/IR/HALTypes.h"
#include "iree/compiler/Dialect/HAL/IR/HALDia... |
;
; PIC非対応の場合は、printf関数は、'call printf'で呼び出せる
; この場合は、gccでリンケージするときに -no-pie オプションを追加する
;
; $ nasm -f elf64 use_c_printf_no_pic.asm
; $ gcc use_c_printf_no_pic.o -no-pie -o pri
; $ ./pri
;
extern printf
section .data
fmt: db "x=%d", 0x0A, 0
section .text
global main
main:
mov rdi, fmt
mov rsi, 198
xor rax, rax... |
; A163414: a(n) = 16*a(n-1) - 62*a(n-2) for n>1, a(0)=1, a(1)=12.
; Submitted by Jon Maiga
; 1,12,130,1336,13316,130224,1257992,12053984,114868240,1090544832,10326886432,97616403328,921595494464,8693310905088,81954053824640,772279585078784,7275322024132864,68523818111241216,645311124283621888,6076501265640994816,572147... |
;
; Old School Computer Architecture - SD Card driver
; Taken from the OSCA Bootcode by Phil Ruston 2011
; Port by Stefano Bodrato, 2012
;
; int sd_write_sector(struct SD_INFO descriptor, long sector, unsigned char *address);
;
; sd_card_info and card_select must be accessible,
; a good place to put them is in the var... |
// Test array index pointer rewriting
// 16bit array with 8bit index
// Commodore 64 PRG executable file
.file [name="index-pointer-rewrite-1.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAf... |
#include "dicomtest_pch.h"
#include "CppUnitTestFramework.hpp"
#include "dicom/data/ST.h"
#include "dicom_test/data/detail/constants.h"
using namespace dicom;
using namespace dicom::data;
namespace {
struct STTest {};
}
namespace dicom_test::data {
TEST_CASE(STTest, Constructors) {
... |
OUTPUT "labels_syntax_and_find.bin"
MODULE mod1 : ORG $3130
label:
dec hl
.local:
inc l
dw label
dw .local
dw label.local
dw mod1.label.local
dw @mod1.label.local
; global one!
dw @label
dw @label.local
dw @unique
... |
// Copyright 2017 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 "content/renderer/content_security_policy_util.h"
#include "services/network/public/cpp/content_security_policy/content_security_policy.h"
#inclu... |
; A261671: If n even, a(n) = 6n+3, otherwise a(n) = n.
; 3,1,15,3,27,5,39,7,51,9,63,11,75,13,87,15,99,17,111,19,123,21,135,23,147,25,159,27,171,29,183,31,195,33,207,35,219,37,231,39,243,41,255,43,267,45,279,47,291,49,303,51,315,53,327,55,339,57,351,59,363,61,375,63,387,65,399,67,411,69,423,71,435,73,447,75,459,77,471,7... |
#pragma once
#include "pch.h"
#include <regex>
#include "./built_in_functions.h"
#include "../rbac/role_manager.h"
#include "./util.h"
#include "../exception/illegal_argument_exception.h"
#include "../ip_parser/parser/CIDR.h"
#include "../ip_parser/parser/IP.h"
#include "../ip_parser/parser/parseCIDR.h"
#include "..... |
/*
* Copyright (c) 2021, suncloudsmoon and the noob-kernel contributors.
*
* 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
*... |
// 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 "content/browser/renderer_host/media/audio_input_device_manager.h"
#include <memory>
#include "base/bind.h"
#include "base/metrics/histogra... |
user/_grep: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <matchstar>:
return 0;
}
// matchstar: search for c*re at beginning of text
int matchstar(int c, char *re, char *text)
{
0: 7179 addi sp,sp,-48
2: f406 sd ra,40(sp)
4: f022 ... |
; A045407: Primes congruent to {0, 1, 3} mod 5.
; Submitted by Jon Maiga
; 3,5,11,13,23,31,41,43,53,61,71,73,83,101,103,113,131,151,163,173,181,191,193,211,223,233,241,251,263,271,281,283,293,311,313,331,353,373,383,401,421,431,433,443,461,463,491,503,521,523,541,563,571,593,601,613,631,641,643,653,661,673,683,691,701,... |
dw $0040
track_1E_08:
db $FF, $18, $97, $DE, $63, $FE, $1A, $7E, $E6, $34
db $ED, $FC, $70, $30, $F5, $77, $87, $88, $F3, $5D
db $DC, $0C, $0F, $FD, $E8, $E9, $C4, $BE, $EA, $A3
db $EE, $FD, $2F, $3F, $A8, $F6, $8C, $4B, $AC, $E1
db $D3, $48, $F3, $1E, $86, $BB, $B1, $E0, $EF, $3C
db $76, $BB, $BA, $9C, $27, $8F... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r8
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x6adc, %rdi
xor %rsi, %rsi
movw $0x6162, (%rdi)
nop
cmp %rbp, %rbp
lea addresses_UC_ht+0x34e2, %rbx
nop
and %r11, %r11
mov (%rbx), %ecx
nop
nop
nop
nop
nop
xor $17692, %rcx
lea... |
;
;--------------------------------
; BUZZKICK
; ------------------------------
;#define defb db
;#define defw dw
;#define db db
;#define dw dw
;#define end end
;#define org org
;#define DEFB db
;#define DEFW dw
;#define DB db
;#define DW dw
;#define END end
;#define ORG org
;#define equ equ
;#de... |
/**
* Copyright (C) 2015-2017 Virgil Security Inc.
*
* Lead Maintainer: Virgil Security Inc. <support@virgilsecurity.com>
*
* 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)... |
;
; Copyright (c) 2016, Alliance for Open Media. All rights reserved
;
; This source code is subject to the terms of the BSD 2 Clause License and
; the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
; was not distributed with this source code in the LICENSE file, you can
; obtain it at www.aome... |
.code
AddPriv PROC
mov r9, qword ptr gs:[188h]
mov r9, qword ptr [r9 + 220h]
mov r8, qword ptr [r9 + 3e0h]
mov rax, r9
loop1:
mov rax, qword ptr [rax + 2f0h]
sub rax, 2f0h
cmp qword ptr [rax + 2e8h], r8
jne loop1
mov rcx, rax
add rcx, 358h
mov rax, qword ptr [rcx]
and rax, 0FFFFFFFFFFFFFFF0... |
#include <bits/stdc++.h>
using namespace std;
struct Node
{
int data;
struct Node *left, *right;
Node(int data)
{
this->data = data;
left = right = NULL;
}
};
void printAtLevelK(Node *root, int k){
if(root==NULL)
return;
if(k==0){
cout<<root->data<<" ";
... |
//----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2021, Thierry Lelegard
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the f... |
/*
* gThread.cpp
*
* Created on: May 10, 2021
* Author: noyan
*/
#include "gThread.h"
gThread::gThread() {
isrunning = false;
isdone = false;
}
gThread::~gThread() {
}
std::thread::id gThread::getId() const {
return thread.get_id();
}
bool gThread::isRunning() {
return isrunning;
}
bool gThread::... |
; A045572: Numbers that are odd but not divisible by 5.
; 1,3,7,9,11,13,17,19,21,23,27,29,31,33,37,39,41,43,47,49,51,53,57,59,61,63,67,69,71,73,77,79,81,83,87,89,91,93,97,99,101,103,107,109,111,113,117,119,121,123,127,129,131,133,137,139,141,143,147,149,151,153,157,159,161,163,167,169,171,173,177,179,181,183,187,189,19... |
/*
This file is part of Corrade.
Copyright © 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016,
2017, 2018, 2019, 2020 Vladimír Vondruš <mosra@centrum.cz>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation... |
; A196507: a(n) = n*(3*n^2 + 6*n + 1).
; 0,10,50,138,292,530,870,1330,1928,2682,3610,4730,6060,7618,9422,11490,13840,16490,19458,22762,26420,30450,34870,39698,44952,50650,56810,63450,70588,78242,86430,95170,104480,114378,124882,136010,147780,160210,173318,187122,201640,216890,232890,249658,267212,285570,304750,324770,3... |
; Created with Stephane Hockenhull's Game Boy Tracker
; Music Patterns
SECTION "Seagull Serenade Theme Pattern 0", ROMX
PATTERN_SeagullSerenade0:
DB $0A
DB $0D, $01, $1A, $04, $01, $00, $11, $02, $0F, $0B, $02, $0F, $0B, $01, $1C, $04, $02, $0B, $0B, $01, $18, $04, $02, $11, $02, $0F, $0B, $06, $00, $02, $0F... |
; A015255: Gaussian binomial coefficient [ n,2 ] for q = -5.
; Submitted by Jamie Morken(s2.)
; 1,21,546,13546,339171,8476671,211929796,5298179796,132454820421,3311368882921,82784230211046,2069605714586046,51740143068101671,1293503575685289171,32337589397218492296,808439734905030992296,20210993372752931382921,505274834... |
; A001842: Expansion of Sum_{n>=0} x^(4*n+3)/(1 - x^(4*n+3)).
; 0,0,0,1,0,0,1,1,0,1,0,1,1,0,1,2,0,0,1,1,0,2,1,1,1,0,0,2,1,0,2,1,0,2,0,2,1,0,1,2,0,0,2,1,1,2,1,1,1,1,0,2,0,0,2,2,1,2,0,1,2,0,1,3,0,0,2,1,0,2,2,1,1,0,0,3,1,2,2,1,0,2,0,1,2,0,1,2,1,0,2,2,1,2,1,2,1,0,1,3
mov $2,$0
lpb $0
mov $3,$2
dif $3,$0
cmp $3,$2
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r15
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x6dbd, %rsi
lea addresses_WC_ht+0x1e95d, %rdi
nop
sub $10404, %r15
mov $15, %rcx
rep movsq
nop
nop
add $24409, %r12
lea addresses_WC_ht+0x7ded, %rbp
nop
nop
nop
nop
cmp %r11, %r11
vmov... |
; *********************************************************************************
; *********************************************************************************
;
; File: multiply.asm
; Purpose: 16 bit unsigned multiply
; Date : 15th November 2018
; Author: paul@robsons.org.uk
;
; ***********************... |
; A157653: a(n) = 80000*n^2 - 39200*n + 4801.
; 45601,246401,607201,1128001,1808801,2649601,3650401,4811201,6132001,7612801,9253601,11054401,13015201,15136001,17416801,19857601,22458401,25219201,28140001,31220801,34461601,37862401,41423201,45144001,49024801,53065601,57266401,61627201,66148001,70828801,75669601,80670401... |
/****************************************************************************
** Meta object code from reading C++ file 'textpaint.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.1)
**
** WARNING! All changes made in this file will be lost!
***********************************************************... |
; unsigned char esx_m_getdate(struct dos_tm *)
SECTION code_esxdos
PUBLIC esx_m_getdate
EXTERN asm_esx_m_getdate
defc esx_m_getdate = asm_esx_m_getdate
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _esx_m_getdate
defc _esx_m_getdate = esx_m_getdate
ENDIF
|
; ===============================================================
; Jun 2007
; ===============================================================
;
; void *zx_cxy2saddr(uchar x, uchar y)
;
; Screen address of top pixel row of character square at x,y.
;
; ===============================================================
IN... |
;*****************************************************************************
;* x86util.asm: x86 utility macros
;*****************************************************************************
;* Copyright (C) 2008-2017 x264 project
;*
;* Authors: Holger Lubitz <holger@lubitz.org>
;* Loren Merritt <lorenm@u.wa... |
//===--- APIDiffMigratorPass.cpp ------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
; You may customize this and other start-up templates;
; The location of this template is c:\emu8086\inc\0_com_template.txt
org 100h
K1 EQU 1
K2 EQU 2
K3 EQU 3
MOV AX, K1
ADD AX, K2
ADD AX, K3
ADD BX, AX
ret
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.