text stringlengths 1 1.05M |
|---|
; A169231: Number of reduced words of length n in Coxeter group on 26 generators S_i with relations (S_i)^2 = (S_i S_j)^28 = I.
; 1,26,650,16250,406250,10156250,253906250,6347656250,158691406250,3967285156250,99182128906250,2479553222656250,61988830566406250,1549720764160156250,38743019104003906250,96857547760009765625... |
#include <iostream>
using namespace std;
#include "graph.h"
#include "tools.h"
// SeneGraph program
int main() {
int noOfSamples = 0;
int samples[MAX_NO_OF_SAMPLES] = { 0 };
bool done = false;
cout << "Welcome to SeneGraph" << endl;
while (!done) {
cout << "No Of Samples: " << noOfSamples << endl;
switch (men... |
//#include "DXGlobal.h"
#include "LogFile.h"
namespace ri
{
FILE *LogFile::mpFile = NULL;
} // namespace ri |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The GoCoinMe developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license... |
#include "chainerx/reduction_kernel_arg.h"
#include <cstdint>
#include <tuple>
#include "chainerx/array.h"
#include "chainerx/macro.h"
#include "chainerx/shape.h"
#include "chainerx/squash_dims.h"
#include "chainerx/strides.h"
namespace chainerx {
ReductionArg::ReductionArg(const Array& in, const Axes& axis, const ... |
#include <vtkSmartPointer.h>
#include <vtkTestPolyDataFilter.h>
int main(int, char *[])
{
vtkSmartPointer<vtkPoints> points =
vtkSmartPointer<vtkPoints>::New();
points->InsertNextPoint(0.0, 0.0, 0.0);
vtkSmartPointer<vtkPolyData> inputPolydata =
vtkSmartPointer<vtkPolyData>::New();
inputPolydat... |
leaw $0, %A
;Mover o que ta em A[0] para D
movw (%A), %D
leaw $1, %A
WHILE:
leaw $1, %A
;Subtrai D - A[1] e salva em D
subw %D, (%A), %D
;Incrementa 1 em %S
incw %S
leaw $WHILE, %A
;Volta se D for maior que zero
jg %D
nop
leaw $2, %A
;Move A[2] -> S
movw %S, (%A)
... |
; This file is a part of the IncludeOS unikernel - www.includeos.org
;
; Copyright 2015 Oslo and Akershus University College of Applied Sciences
; and Alfred Bratterud
;
; 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 ... |
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... |
;*******************************************************************************
;* TMS320C55x C/C++ Codegen PC v4.4.1 *
;* Date/Time created: Sat Oct 06 06:38:40 2018 *
;****************************************************************************... |
; signed long long __fs2ulonglong (float f)
SECTION code_clib
SECTION code_fp_math48
PUBLIC cm48_sdccixp_ds2ulonglong
EXTERN cm48_sdccixp_dread3, am48_dfix64u, l_store_64_dehldehl_mbc
cm48_sdccixp_ds2ulonglong:
; double to unsigned long long
;
; enter : stack = sdcc_float x, result *, ret
;
; exit ... |
LHLD 2050H ; store contents of 2050H in L and 2051H in H
XCHG ; place A in E and B in D
CALL MLTPLY ; multiply A and B
SHLD 2052H ; store the product in 2052H and 2053H
HLT ; stop
MLTPLY: MOV A,D ; copy B in accumulator
MVI D,00H ; clear D to use in DAD instruc... |
.model small
.stack
.code
start:
; Start of background
mov ah, 06h
mov bh, 70h
mov ch, 00
mov cl, 00
mov dh, 32
mov dl, 80
int 10h
;Start of Nes
;Cap
mov ah, 06h
mov bh, 00h
mov ch, 4
mov cl, 4
mov dh, 6
mov dl, 4
int 10h
mov ah, 06h
mov bh, 00h
mov ch, 3
mov cl, 5
mov dh, 3
mo... |
; A199264: Period 18: repeat (9,8,7,6,5,4,3,2,1,0,1,2,3,4,5,6,7,8).
; 9,8,7,6,5,4,3,2,1,0,1,2,3,4,5,6,7,8,9,8,7,6,5,4,3,2,1,0,1,2,3,4,5,6,7,8,9,8,7,6,5,4,3,2,1,0,1,2,3,4,5,6,7,8,9,8,7,6,5,4,3,2,1,0,1,2,3,4,5,6,7,8,9,8,7,6,5,4,3,2,1,0,1,2,3,4,5,6,7,8,9,8,7,6,5,4,3,2,1,0,1,2,3,4,5,6,7,8,9,8,7,6,5,4,3,2,1,0,1,2,3,4,5,6,7,... |
// Copyright (C) 2011-2020 Roki. Distributed under the MIT License
#include <srook/brainfk/llvm/brainfk_compiler.hpp>
int main()
{
using namespace std::string_literals;
namespace br_keywords = srook::brainfk::label;
const auto bk_keywords = srook::brainfk::make_keywords((
br_keywords::_INCREMENT_... |
;;
;; Copyright (c) 2019-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... |
; A158944: Triangle by columns: the natural numbers interleaved with zeros in every column: (1, 0, 2, 0, 3, 0, 4,...)
; 1,0,1,2,0,1,0,2,0,1,3,0,2,0,1,0,3,0,2,0,1,4,0,3,0,2,0,1,0,4,0,3,0,2,0,1,5,0,4,0,3,0,2,0,1,0,5,0,4,0,3,0,2,0,1,6,0,5,0,4,0,3,0,2,0,1,0,6,0,5,0,4,0,3,0,2,0,1
seq $0,212012 ; Triangle read by rows in wh... |
#pragma once
/// @file
/// @brief Various crypto functions.
#include <string>
#include <vector>
#include "mtx/common.hpp"
#include "mtx/responses/crypto.hpp"
#include "mtx/secret_storage.hpp"
namespace mtx {
namespace crypto {
//! Exception thrown for various encryption related errors (not reported by olm), that ge... |
#include <iostream>
#include <algorithm>
#include <iterator>
#include <random>
#include <math.h>
#include <complex>
#include "cards.h"
#include "Player.h"
#include "Rules.h"
#define LOGCARD(Suit, Num) std::cout << "Suit = " << Suit << " Card number = " << Num << std::endl
#define LOG(X) std::cout << X << ... |
// Copyright (c) 2014-2020, The BRT Project
//
// 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
/... |
;;
;
; Name: single_findsock
; Platforms: Linux
; Authors: vlad902 <vlad902 [at] gmail.com>
; Authors: skape <mmiller [at] hick.org>
; Version: $Revision: 1856 $
; License:
;
; This file is part of the Metasploit Exploit Framework
; and is subject to the same licenses and copyrigh... |
#include "catch.hpp"
#include "cppio/iolinemanager.h"
#include "win32/win_socket.h"
#include <numeric>
#include <thread>
#ifdef __MINGW32__
#ifndef _GLIBCXX_HAS_GTHREADS
#include "mingw.thread.h"
#endif // _GLIBCXX_HAS_GTHREADS
#endif
#include <unistd.h>
using namespace cppio;
static void checkIo(const std::shared... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r14
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x137b6, %rsi
lea addresses_A_ht+0x16a16, %rdi
clflush (%rsi)
clflush (%rdi)
nop
xor %rax, %rax
mov $9, %rcx
rep movsq
nop
nop
nop
nop
nop
xor %rdi, %rdi
lea addresses_D_ht+0xb6... |
SECTION .text
GLOBAL mul_p256
mul_p256:
sub rsp, 0xd0 ; last 0x30 (6) for Caller - save regs
mov [ rsp + 0xa0 ], rbx; saving to stack
mov [ rsp + 0xa8 ], rbp; saving to stack
mov [ rsp + 0xb0 ], r12; saving to stack
mov [ rsp + 0xb8 ], r13; saving to stack
mov [ rsp + 0xc0 ], r14; saving to stack
mov [ rsp + 0xc8 ], ... |
Name: ys_hmap.asm
Type: file
Size: 95396
Last-Modified: '2016-05-13T04:51:16Z'
SHA-1: 6D36899D15A1270F99FFC4061FD8C111B824B1F0
Description: null
|
#ifndef TRISYCL_SYCL_DETAIL_GLOBAL_CONFIG_HPP
#define TRISYCL_SYCL_DETAIL_GLOBAL_CONFIG_HPP
/** \file The OpenCL SYCL details on the global triSYCL configuration
Ronan at Keryell point FR
This file is distributed under the University of Illinois Open Source
License. See LICENSE.TXT for details.
*/
/** \... |
// Copyright (c) 2012-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.
#include <serialize.h>
#include <streams.h>
#include <hash.h>
#include <test/test_iridium.h>
#include <stdint.h>
#include <... |
; author <pasecinic.nichita>
; FAF 192
; 04.12.2021
org 0x7C00 ; add 0x7C00 to label addresses
bits 16 ; tell the assembler we want 16 bit code
; print OS welcome message
mov si, msg
call print
mainloop:
; print the prompt promptol
mov si, prompt
call print
; get user input and save it to b... |
dcode BRANCH,6,F_COMPILEONLY,
nxa
tax
txi
nxt
dcode 0BRANCH,7,F_COMPILEONLY,ZBRANCH
nxa
ply
bne ZBRANCH_false
tax
txi
ZBRANCH_false:
nxt
dword RECURSE,7,F_IMMED+F_COMPILEONLY,
.wp LATEST
.wp PEEK
.wp TCFA
... |
#include "FileHelper.h"
#include <stdio.h>
bool IBLLib::readFile(const char* _path, std::vector<char>& _outBuffer)
{
FILE* file = fopen(_path, "rb");
if (file == nullptr)
{
printf("Failed to open file %s\n", _path);
return false;
}
// obtain file size:
fseek(file, 0, SEEK_END);
auto size = ftell(file);
r... |
; A184218: a(n) = largest k such that A000217(n+1) = A000217(n) + (A000217(n) mod k), or 0 if no such k exists.
; 0,0,0,0,9,14,20,27,35,44,54,65,77,90,104,119,135,152,170,189,209,230,252,275,299,324,350,377,405,434,464,495,527,560,594,629,665,702,740,779,819,860,902,945,989,1034,1080,1127,1175,1224,1274,1325,1377,1430,... |
/*************************************************************************/
/* texture_progress.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
;
; Crazy way to call TRSDOS functions.
;
;
; On entry:
; trsdos (function,HL,DE) --or-- trsdos (function,A,DE)
;
; On exit: Return code = A (e.g. an error code or the resulting value)
;
SECTION code_clib
PUBLIC trsdos_callee
PUBLIC _trsdos_callee
EXTERN errno
PUBLIC asm_trsdos
; int (unsigned int fn, ... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: System.MulticastDelegate
#include "System/MulticastDele... |
; A134828: Numerator of moments of Chebyshev U- (or S-) polynomials.
; 1,0,1,0,1,0,5,0,7,0,21,0,33,0,429,0,715,0,2431,0,4199,0,29393,0,52003,0,185725,0,334305,0,9694845,0,17678835,0,64822395,0,119409675,0,883631595,0,1641030105,0,6116566755,0,11435320455,0,171529806825,0
seq $0,126120 ; Catalan numbers (A000108) inter... |
; A136313: a(1) = 1; for n>1, a(n) = a(n-1) + 8 mod 22.
; 1,9,17,3,11,19,5,13,21,7,15,1,9,17,3,11,19,5,13,21,7,15,1,9,17,3,11,19,5,13,21,7,15,1,9,17,3,11,19,5,13,21,7,15,1,9,17,3,11,19,5,13,21,7,15,1,9,17,3,11,19,5,13,21,7,15,1,9,17,3,11,19,5,13,21,7,15,1,9,17,3,11,19,5,13,21,7,15,1,9,17,3,11,19,5,13,21,7,15,1,9,17,3,1... |
; A097080: a(n) = 2*n^2 - 2*n + 3.
; 3,7,15,27,43,63,87,115,147,183,223,267,315,367,423,483,547,615,687,763,843,927,1015,1107,1203,1303,1407,1515,1627,1743,1863,1987,2115,2247,2383,2523,2667,2815,2967,3123,3283,3447,3615,3787,3963,4143,4327,4515,4707,4903,5103,5307,5515,5727,5943,6163,6387,6615,6847,7083,7323,7567,7815... |
; Small C+ Z88 Support Library
;
; Convert signed int to long
SECTION code_clib
SECTION code_l_sccz80
PUBLIC l_int2long_s_float
EXTERN float
l_int2long_s_float:
; If MSB of h sets de to 255, if not sets de=0
ld de,0
bit 7,h
jp z, float
dec de
jp float
|
#include "extdll.h"
#include "util.h"
#include "cbase.h"
#include "ASCustomEntitiesUtils.h"
void CASBaseClassCreator::GenerateCommonBaseClassContents( CASClassWriter& writer, const char* const pszEntityClass, const char* const pszBaseClass )
{
ASSERT( pszEntityClass );
ASSERT( pszBaseClass );
const std::string sz... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0xb44, %r13
nop
dec %r11
vmovups (%r13), %ymm4
vextracti128 $0, %ymm4, %xmm4
vpextrq $1, %xmm4, %rbx
inc %rbp
lea addresses_D_ht+0xa24, %rdi
clflush (%rdi)
nop
ad... |
; A116722: Number of permutations of length n which avoid the patterns 312, 1324, 3421; or avoid the patterns 312, 1324, 2341, etc.
; 1,2,5,12,25,47,82,135,212,320,467,662,915,1237,1640,2137,2742,3470,4337,5360,6557,7947,9550,11387,13480,15852,18527,21530,24887,28625,32772,37357,42410,47962,54045,60692,67937,75815,8436... |
//%LICENSE////////////////////////////////////////////////////////////////
//
// Licensed to The Open Group (TOG) under one or more contributor license
// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
// this work for additional information regarding copyright ownership.
// Each contributor lice... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r15
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x83d5, %rsi
lea addresses_normal_ht+0x13575, %rdi
nop
nop
nop
add $18616, %r12
mov $26, %rcx
rep movsb
nop
nop
nop
nop
nop
cmp $17303, %rbp
lea addresses_normal_ht+0x4d5, %r10
nop
... |
#lwsw test
.data
tst: .word 0
.text
la $t0, tst
li $t1, 69
sw $t1, ($t0)
lw $t2, ($t0) |
RadioChannelSongs:
; entries correspond to radio channel ids
dw MUSIC_POKEMON_TALK
dw MUSIC_POKEMON_CENTER
dw MUSIC_TITLE
dw MUSIC_GAME_CORNER
dw MUSIC_BUENAS_PASSWORD
dw MUSIC_VIRIDIAN_CITY
dw MUSIC_BICYCLE
dw MUSIC_ROCKET_OVERTURE
dw MUSIC_POKE_FLUTE_CHANNEL
dw MUSIC_RUINS_OF_ALPH_RADIO
dw MUSIC_LAKE_OF_RA... |
#include "crc32.h"
namespace VulkanTest
{
static U32 crc32Table[256] =
{
0, 1996959894, 3993919788, 2567524794, 124634137, 1886057615, 3915621685, 2657392035, 249268274, 2044508324, 3772115230, 2547177864, 162941995, 2125561021, 3887607047, 2428444049,
498536548, 1789927666, 4089016648,... |
;
; S-OS (The Sentinel) Japanese OS - Stdio
;
; getk() Read key status
;
; Stefano Bodrato, 2013
;
;
; $Id: getk.asm,v 1.3 2016/06/12 17:32:01 dom Exp $
;
SECTION code_clib
PUBLIC getk
PUBLIC _getk
.getk
._getk
call 1FD0h
ld l, a
ld h,0
ret
|
; A071190: Greatest prime factor of sum of divisors of n, for n >= 2; a(1) = 1.
; 1,3,2,7,3,3,2,5,13,3,3,7,7,3,3,31,3,13,5,7,2,3,3,5,31,7,5,7,5,3,2,7,3,3,3,13,19,5,7,5,7,3,11,7,13,3,3,31,19,31,3,7,3,5,3,5,5,5,5,7,31,3,13,127,7,3,17,7,3,3,3,13,37,19,31,7,3,7,5,31,11,7,7,7,3,11,5,5,5,13,7,7,2,3,5,7,7,19,13,31
seq $0,203... |
; A164907: a(n) = (3*3^n-(-1)^n)/2.
; 1,5,13,41,121,365,1093,3281,9841,29525,88573,265721,797161,2391485,7174453,21523361,64570081,193710245,581130733,1743392201,5230176601,15690529805,47071589413,141214768241,423644304721,1270932914165,3812798742493,11438396227481,34315188682441,102945566047325,308836698141973,9265100... |
#include "./pid-attiny.h"
#ifndef abs
#define abs(a) ((a) < 0 ? -1 * (a) : (a))
#endif
/* Initialisation of PID controller parameters.
*
* Initialise the variables used by the PID algorithm.
* \param p_factor Proportional term.
* \param i_factor Integral term.
* \param d_factor Derivate term.
* \param p... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r15
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x1c122, %r14
nop
nop
nop
dec %r11
mov (%r14), %ebp
nop
add %r15, %r15
lea addresses_WC_ht+0x19324, %rcx
nop
xor $56857, %rdx
mov $0x6162636465666768, %rbx
movq %rbx,... |
.global s_prepare_buffers
s_prepare_buffers:
push %r8
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x5032, %rsi
lea addresses_A_ht+0x11a32, %rdi
clflush (%rdi)
and %r8, %r8
mov $47, %rcx
rep movsq
nop
nop
nop
nop
nop
dec %rax
lea addresses_UC_ht+0xcb96, %rsi
lea addresses_UC_ht+0x9d32, %rdi
nop... |
; vim: ts=4:et:sw=4:
; Copyleft (K) by Jose M. Rodriguez de la Rosa
; (a.k.a. Boriel)
; http://www.boriel.com
;
; This ASM library is licensed under the BSD license
; you can use it for any purpose (even for commercial
; closed source programs).
;
; Please read the BSD license on the internet
; ----- IMPLEMENTATION... |
; A216114: The Wiener index of a link of n fullerenes C_{20} (see the Ghorbani and Hosseinzadeh reference).
; 500,3400,9900,21200,38500,63000,95900,138400,191700,257000,335500,428400,536900,662200,805500,968000,1150900,1355400,1582700,1834000,2110500,2413400,2743900,3103200,3492500,3913000,4365900,4852400,5373700,59310... |
extern _base
%macro getaddr 1
mov r11, [rel _base]
add r11, %1
%endmacro
%macro relcall 1
getaddr %1
call r11
%endmacro
%macro pushallnorax 0
push rbx
push rdi
push rsi
push rdx
push rcx
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
%endmacro
%macro popallnorax 0
pop r15
po... |
.386
.model flat
PBYTE TYPEDEF PTR BYTE ;8bits
PWORD TYPEDEF PTR WORD ;32 bits
PDWORD TYPEDEF PTR DWORD; 64 bits
.data
arrayB BYTE F,A,49,0,0;
arrayW WORD AAAAh,BBBBh,CCCh
arrayDW DWORD 4,5,6,7,8
;defining pointers to these arrays
pt_1 PBYTE arrayB
pt_2 PWORD arrayW
pt_3 PDWORD arrayDW
.code
pointproc proc:
mo... |
; A004696: a(n) = floor(Fibonacci(n)/3).
; 0,0,0,0,1,1,2,4,7,11,18,29,48,77,125,203,329,532,861,1393,2255,3648,5903,9552,15456,25008,40464,65472,105937,171409,277346,448756,726103,1174859,1900962,3075821,4976784,8052605,13029389,21081995,34111385,55193380,89304765,144498145,233802911,378301056,612103967,990405024,16025... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r14
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x6e0d, %r11
nop
nop
nop
nop
xor %r12, %r12
mov $0x6162636465666768, %r13
movq %r13, %xmm2
and $0xffffffffffffffc0, %r11
movntdq %xmm2, (%r11)
nop
nop
nop
nop
inc %rc... |
// *****************************************************************************
// Rendering core interface
//
// Module: Graphics
// Contact person: SZI, DGY, AID
//
// SG compatible
// *****************************************************************************
#ifndef _IRENDERINGCORE_HPP_
#define _IRENDERINGC... |
; A329753: Doubly square pyramidal numbers.
; 0,1,55,1015,9455,56980,255346,924490,2850730,7757035,19096385,43312841,91753025,183453270,349074740,636310340,1117143236,1897397285,3129084635,5026125195,7884086595,12104671656,18225763270,26957923950,39228339150,56233289775,79500340101,110961532605
seq $0,188475 ; a(n) = ... |
.inesprg 1 ; 1x 16KB PRG code
.ineschr 1 ; 1x 8KB CHR data
.inesmap 0 ; mapper 0 = NROM, no bank swapping
.inesmir 1 ; background mirroring
;;;;;;;;;;;;;;;
.bank 0
.org $C000
RESET:
SEI ; disable IRQs
CLD ; disable decimal mode
LDX #$40
;STX $4017... |
;*****************************************************************************
;* MMX optimized DSP utils
;*****************************************************************************
;* Copyright (c) 2000, 2001 Fabrice Bellard
;* Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>
;*
;* This file is part o... |
// Copyright (c) 2010 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 "webkit/plugins/ppapi/resource_helper.h"
#include "base/logging.h"
#include "ppapi/shared_impl/resource.h"
#include "webkit/plugins/ppapi/ho... |
//push constant 111
@111
D=A
@SP
A=M
M=D
@SP
M=M+1
//push constant 333
@333
D=A
@SP
A=M
M=D
@SP
M=M+1
//push constant 888
@888
D=A
@SP
A=M
M=D
@SP
M=M+1
//pop static 8
@SP
M=M-1
A=M
D=M
@24
M=D
//pop static 3
@SP
M=M-1
A=M
D=M
@19
M=D
//pop static 1
@SP
M=M-1
A=M
D=... |
; A030186: a(n) = 3*a(n-1) + a(n-2) - a(n-3) for n >= 3, a(0)=1, a(1)=2, a(2)=7.
; Submitted by Jamie Morken(w3)
; 1,2,7,22,71,228,733,2356,7573,24342,78243,251498,808395,2598440,8352217,26846696,86293865,277376074,891575391,2865808382,9211624463,29609106380,95173135221,305916887580,983314691581,3160687827102,101594612... |
class StreamChecker {
struct Node {
Node *next[26];
Node *fail;
bool isWord;
Node() {
memset(next, NULL, sizeof(next));
fail = NULL;
isWord = false;
}
};
public:
StreamChecker(vector<string>& words) {
root = new Node();
... |
OPTION DOTNAME
.text$ SEGMENT ALIGN(256) 'CODE'
EXTERN OPENSSL_ia32cap_P:NEAR
PUBLIC rsaz_512_sqr
ALIGN 32
rsaz_512_sqr PROC PUBLIC
mov QWORD PTR[8+rsp],rdi ;WIN64 prologue
mov QWORD PTR[16+rsp],rsi
mov rax,rsp
$L$SEH_begin_rsaz_512_sqr::
mov rdi,rcx
mov rsi,rdx
mov rdx,r8
mov rcx,r9
mov r8,QWORD PTR[40+rsp]... |
/*++
Copyright (c) 2006 Microsoft Corporation
Module Name:
smt_internalizer.cpp
Abstract:
<abstract>
Author:
Leonardo de Moura (leonardo) 2008-02-20.
Revision History:
--*/
#include "smt/smt_context.h"
#include "ast/expr_stat.h"
#include "ast/ast_pp.h"
#include "ast/ast_ll_pp.h"
#include "ast/ast_sm... |
<%
from pwnlib.shellcraft.aarch64.linux import syscall
%>
<%page args="when"/>
<%docstring>
Invokes the syscall stime. See 'man 2 stime' for more information.
Arguments:
when(time_t): when
</%docstring>
${syscall('SYS_stime', when)}
|
; A276883: Sums-complement of the Beatty sequence for 2 + sqrt(3).
; 1,2,5,6,9,10,13,16,17,20,21,24,25,28,31,32,35,36,39,40,43,46,47,50,51,54,57,58,61,62,65,66,69,72,73,76,77,80,81,84,87,88,91,92,95,96,99,102,103,106,107,110,113,114,117,118,121,122,125,128,129,132
mov $2,$0
mul $2,$0
lpb $2
add $0,2
add $2,$3
su... |
; A319998: a(n) = Sum_{d|n, d is even} mu(n/d)*d, where mu(n) is Moebius function A008683.
; 0,2,0,2,0,4,0,4,0,8,0,4,0,12,0,8,0,12,0,8,0,20,0,8,0,24,0,12,0,16,0,16,0,32,0,12,0,36,0,16,0,24,0,20,0,44,0,16,0,40,0,24,0,36,0,24,0,56,0,16,0,60,0,32,0,40,0,32,0,48,0,24,0,72,0,36,0,48,0,32,0,80,0,24,0,84,0,40,0,48,0,44,0,92,0... |
; A186852: Number of 3-step knight's tours on a (n+2)X(n+2) board summed over all starting positions
; 16,104,328,664,1112,1672,2344,3128,4024,5032,6152,7384,8728,10184,11752,13432,15224,17128,19144,21272,23512,25864,28328,30904,33592,36392
mov $1,$0
pow $0,2
add $1,$0
mul $1,7
trn $1,3
mul $1,8
add $1,16
|
/* Copyright 2017 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... |
AdjustTransition:
{
lda $ab : and #$01ff : beq .reset
phy : ldy #$06 ; operating on vertical registers during horizontal trans
cpx.b #$02 : bcs .horizontalScrolling
ldy #$00 ; operate on horizontal regs during vert trans
.horizontalScrolling
cmp #$0008 : bcs +
pha : lda $ab : and #$0200 : beq ++
pl... |
//
// generic/datagram_protocol.cpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot 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)
//
// Disabl... |
;
;
; Aquarius colours
; 0 = black
; 1 = red
; 2 = green
; 3 = yellow
; 4 = blue
; 5 = violet
; 6 = cyan
; 7 = white
; 8 = light grey
; 9 = blue green
; 10 = magenta
; 11 = dark blue
; 12 = light yellow
; 13 = light green
; 14 = orange
; 15 = dark gray
SECTION code_clib
PUBLIC generic_console_cls
P... |
/*
-----------------------------------------------------------------------------------------------
Copyright (C) 2013 Henry van Merode. 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... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#include <windows.h>
#include "interface.h"
#include "tier0/icommandline.h"
#include "filesystem_tools.h"
#include "KeyValues.h"
#include "ti... |
0x0000 (0x000000) 0x211A- f:00020 d: 282 | A = OR[282]
0x0001 (0x000002) 0x2719- f:00023 d: 281 | A = A - OR[281]
0x0002 (0x000004) 0x1458- f:00012 d: 88 | A = A + 88 (0x0058)
0x0003 (0x000006) 0x1482- f:00012 d: 130 | A = A + 130 (0x0082)
... |
<%
from pwnlib.shellcraft.amd64.linux import syscall
%>
<%page args="pid, policy, param"/>
<%docstring>
Invokes the syscall sched_setscheduler. See 'man 2 sched_setscheduler' for more information.
Arguments:
pid(pid_t): pid
policy(int): policy
param(sched_param): param
</%docstring>
${syscall('SY... |
// Copyright 2021 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/device_api/device_attribute_api.h"
#include "build/chromeos_buildflags.h"
#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "chrome/browse... |
TITLE GETSET - GETting and SETting MS-DOS system calls
NAME GETSET
;
; Microsoft Confidential
; Copyright (C) Microsoft Corporation 1991
; All Rights Reserved.
;
; ==========================================================================
;** GETSET - System Calls which get and set various things
;
; $GET_VERSIO... |
_usertests: file format elf32-i386
Disassembly of section .text:
00000000 <iputtest>:
int stdout = 1;
// does chdir() call iput(p->cwd) in a transaction?
void
iputtest(void)
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 ec 18 sub $0x... |
// Copyright 2014 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 "base/files/file_path.h"
#include "base/macros.h"
#include "base/strings/stringprintf.h"
#include "chrome/browser/extensions/extension_browsertes... |
; A158316: 400n^2 - 2n.
; 398,1596,3594,6392,9990,14388,19586,25584,32382,39980,48378,57576,67574,78372,89970,102368,115566,129564,144362,159960,176358,193556,211554,230352,249950,270348,291546,313544,336342,359940,384338,409536,435534,462332,489930,518328,547526,577524,608322,639920,672318,705516,739514,774312,809910,... |
db "SEA SLUG@" ; species name
db "Long ago, its"
next "entire back was"
next "shielded with a"
page "sturdy shell."
next "Traces of it are"
next "left in its DNA.@"
|
; A036172: Log base 2 (n) mod 59.
; Submitted by Christian Krause
; 0,1,50,2,6,51,18,3,42,7,25,52,45,19,56,4,40,43,38,8,10,26,15,53,12,46,34,20,28,57,49,5,17,41,24,44,55,39,37,9,14,11,33,27,48,16,23,54,36,13,32,47,22,35,31,21,30,29
add $0,1
mov $1,$0
seq $1,196 ; Integer part of square root of n. Or, number of positiv... |
; ---------------------------------------------------------------------------
; Animation script - Sonic on the title screen
; ---------------------------------------------------------------------------
Ani_TSon: dc.w byte_A706-Ani_TSon
byte_A706: dc.b 1, 0, 0, afBack, 1
even |
;
; HelloASM.asm
;
; Created: 12/02/2021 15:31:56
; Author : Markus
;
ldi r16, 0b00000111
ldi r22, 0x15
; Replace with your application code
ldi r17, 0x1
ldi r18, 0x1
ldi r19, 0x0
start:
inc r16
mov r17, r18
add r18, r19
rjmp start
|
%ifdef CONFIG
{
"RegData": {
"XMM0": ["0xFFFFFFFFFFFFFFFF", "0x0"],
"XMM1": ["0xFFFFFFFFFFFFFFFF", "0x0"],
"XMM2": ["0x6162636465666768", "0x5152535455565758"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
mov rdx, 0xe0000000
mov rax, 0x7172737475767778
mov [rdx + 8 * 0], rax
mov rax,... |
SilphCo10F_Script:
call SilphCo10Script_5a14f
call EnableAutoTextBoxDrawing
ld hl, SilphCo10TrainerHeader0
ld de, SilphCo10F_ScriptPointers
ld a, [wSilphCo10FCurScript]
call ExecuteCurMapScriptInTable
ld [wSilphCo10FCurScript], a
ret
SilphCo10Script_5a14f:
ld hl, wCurrentMapScriptFlags
bit 5, [hl]
res 5, [h... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x68ac, %rsi
lea addresses_WT_ht+0xa8ac, %rdi
mfence
mov $61, %rcx
rep movsl
nop
nop
dec %r12
lea addresses_A_ht+0x8e6c, %r13
nop
inc %r12
mov $0x6162636465666768, %rdi
movq %r... |
; A144925: Number of nontrivial divisors of the n-th composite number.
; 1,2,2,1,2,4,2,2,3,4,4,2,2,6,1,2,2,4,6,4,2,2,2,7,2,2,6,6,4,4,2,8,1,4,2,4,6,2,6,2,2,10,2,4,5,2,6,4,2,6,10,2,4,4,2,6,8,3,2,10,2,2,2,6,10,2,4,2,2,2,10,4,4,7,6,6,6,2,10,6,2,8,6,2,4,4,2,2,14,1,2,2,4,2,10,6,2,6,10,2
seq $0,2808 ; The composite numbers: ... |
; A269223: Factorial of the sum of digits of n in base 3.
; 1,1,2,1,2,6,2,6,24,1,2,6,2,6,24,6,24,120,2,6,24,6,24,120,24,120,720,1,2,6,2,6,24,6,24,120,2,6,24,6,24,120,24,120,720,6,24,120,24,120,720,120,720,5040,2,6,24,6,24,120,24,120,720,6,24,120,24,120,720,120,720
mov $2,$0
cal $2,53735 ; Sum of digits of (n written i... |
; A045821: Numerical distance between m-th and (n+m)-th circles in a loxodromic sequence of circles in which each 4 consecutive circles touch.
; Submitted by Jon Maiga
; -1,1,1,1,7,17,49,145,415,1201,3473,10033,28999,83809,242209,700001,2023039,5846689,16897249,48833953,141132743,407881201,1178798545,3406791025,9845808... |
; A233441: Floor(2^n / n^3).
; 2,0,0,0,0,0,0,0,0,1,1,2,3,5,9,16,26,44,76,131,226,393,689,1213,2147,3818,6818,12228,22012,39768,72084,131072,239027,437102,801393,1472896,2713342,5009438,9267786,17179869,31906432,59362467,110632938,206519839,386111079
mov $2,$0
mov $3,2
mov $4,$0
add $4,1
pow $3,$4
add $4,2
lpb $3,2
m... |
; A067771: Number of vertices in Sierpiński triangle of order n.
; 3,6,15,42,123,366,1095,3282,9843,29526,88575,265722,797163,2391486,7174455,21523362,64570083,193710246,581130735,1743392202,5230176603,15690529806,47071589415,141214768242,423644304723,1270932914166,3812798742495,11438396227482,34315188682443,1029455660... |
#include "../include/sensor.h"
#include <iostream>
Sensor::Sensor(double min_z, double max_z, double noise, FILE *file) : min_z__(min_z), max_z__(max_z), sense_noise__(noise), file__(file)
{
std::cout << "Initializing a range sensor ..." << std::endl;
}
void Sensor::set_noise(double noise)
{
sense_noise__ = n... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x1dd14, %rcx
nop
nop
nop
nop
add $29032, %r10
vmovups (%rcx), %ymm4
vextracti128 $0, %ymm4, %xmm4
vpextrq $0, %xmm4, %rdx
nop
nop
nop
and $29313, %r10
lea addresses_normal_ht+0xb314, %r... |
; A037529: Base-4 digits are, in order, the first n terms of the periodic sequence with initial period 1,1,2.
; 1,5,22,89,357,1430,5721,22885,91542,366169,1464677,5858710,23434841,93739365,374957462,1499829849,5999319397,23997277590,95989110361,383956441445,1535825765782,6143303063129,24573212252517,98292849010070
mov... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.