text stringlengths 1 1.05M |
|---|
.global s_prepare_buffers
s_prepare_buffers:
push %r15
push %r9
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x189be, %rsi
lea addresses_A_ht+0x1b2fe, %rdi
clflush (%rsi)
clflush (%rdi)
nop
nop
nop
add %r9, %r9
mov $31, %rcx
rep movsq
dec %rsi
lea addresses_WC_ht+0xeb06, %rax
nop
nop
... |
; A198763: 4*5^n-1.
; 3,19,99,499,2499,12499,62499,312499,1562499,7812499,39062499,195312499,976562499,4882812499,24414062499,122070312499,610351562499,3051757812499,15258789062499,76293945312499,381469726562499,1907348632812499,9536743164062499,47683715820312499,238418579101562499,1192092895507812499,59604644775390624... |
/*
* 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.
*
*/
// Module name: RGB16x8_Save_RGB... |
[bits 64]
mov ax, [0] ; out: 66 8B 04 25 00 00 00 00
mov rax, [qword 0] ; out: 48 A1 00 00 00 00 00 00 00 00
mov rax, [0] ; out: 48 8B 04 25 00 00 00 00
mov rax, [dword 0] ; out: 48 8B 04 25 00 00 00 00
mov al, [qword 0xfedcba9876543210] ; out: A0 10 32 54 76 98 BA DC FE
mov al, [0xfedcba9876543210] ; out: 8A 04 ... |
#include "QDate.h"
#include <boost/date_time/gregorian/gregorian_types.hpp>
#include <ctime>
#include <boost/date_time/posix_time/posix_time_io.hpp>
#include "boost/date_time/local_time/local_time.hpp"
namespace pt = boost::posix_time;
namespace g = boost::gregorian;
qtime::QDate::QDate(int day, int month... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %rdi
lea addresses_normal_ht+0x4b17, %r13
cmp %r10, %r10
movw $0x6162, (%r13)
nop
nop
nop
nop
nop
xor $14407, %r11
pop %rdi
pop %r13
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r9
push %rax
push %rbx
push... |
;------------------------------------------------------------------------------
; @file
; Sets the CR3 register for 64-bit paging
;
; Copyright (c) 2008 - 2013, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and condition... |
// qem.cc - Main function for the QuAM emulator.
//
// ##Copyright##
//
// Copyright 2000-2016 Peter Robinson (pjr@itee.uq.edu.au)
//
// 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
//
// ... |
INCLUDE "config_private.inc"
SECTION code_driver
SECTION code_driver_terminal_output
PUBLIC vgl_01_output_4000_oterm_msg_pause
;@FIXME: Just set it to vgl_01_input_4000_getc
vgl_01_output_4000_oterm_msg_pause:
;ret ; Do nothing, no pause
;@TODO: Show arrow symbol in a corner or something
; Wait... |
; ===============================================================
; feilipu Jan 2020
; ===============================================================
;
; int in_test_key(void)
;
; Return true if a key is currently pressed.
;
; ===============================================================
SECTION code_clib
SECTION... |
global _main
section .data
TXT "This is a text", 0xa
section .text
_main:
MOV RAX, 1
MOV RDI, 1
MOV RSI, TXT
MOV RDX, 15
SYSCALL
MOV RAX, 60
MOV RDI, 0
SYSCALL |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r15
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0xb986, %rsi
lea addresses_D_ht+0x17286, %rdi
nop
nop
nop
nop
cmp $43185, %r13
mov $64, %rcx
rep movsb
xor %rcx, %rcx
lea addresses_D_ht+0x1d3a6, %r15
nop
nop
nop
sub $54894, %r... |
// This visitor class exposes operators to Python
// Usage is similar to the indexing suites:
//
// class_<Foo>("Foo")
// .def(operator_suite<Foo>())
// ;
#ifndef ICETRAY_PYTHON_OPERATOR_SUITE_HPP_INCLUDED
#define ICETRAY_PYTHON_OPERATOR_SUITE_HPP_INCLUDED
#include <boost/preprocessor/cat.hpp>
#include <boost/pyt... |
/*
* Copyright 2009-2017 Alibaba Cloud 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... |
;
; Copyright (c) 2016 - 2021, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
;
; Module Name:
;
; Thunk64To32.nasm
;
; Abstract:
;
; This is the assembly code to transition from long mode to compatibility mode to execute 32-bit code and then
; transit back to long m... |
Thargon: DB $F0
DW $0640
DW ThargonEdges
DB ThargonEdgesSize
DB $00, $12
DB ThargonVertSize /6
DB ThargonVertSize
DB ThargonEdgesCnt
... |
#include "multisenddialog.h"
#include "addressbookpage.h"
#include "addresstablemodel.h"
#include "base58.h"
#include "init.h"
#include "ui_multisenddialog.h"
#include "walletmodel.h"
#include <QLineEdit>
#include <QMessageBox>
#include <QStyle>
#include <boost/lexical_cast.hpp>
using namespace std;
using namespace b... |
/*
* Qt4 bitcoin GUI.
*
* W.J. van der Laan 2011-2012
* The Bitcoin Developers 2011-2012
*/
#include "bitcoingui.h"
#include "transactiontablemodel.h"
#include "addressbookpage.h"
#include "sendcoinsdialog.h"
#include "signverifymessagedialog.h"
#include "optionsdialog.h"
#include "aboutdialog.h"
#include "clientm... |
; A008438: Sum of divisors of 2*n + 1.
; 1,4,6,8,13,12,14,24,18,20,32,24,31,40,30,32,48,48,38,56,42,44,78,48,57,72,54,72,80,60,62,104,84,68,96,72,74,124,96,80,121,84,108,120,90,112,128,120,98,156,102,104,192,108,110,152,114,144,182,144,133,168,156,128,176,132,160,240,138,140,192,168,180,228,150,152,234,192,158,216,192,... |
/*
* Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <Translation/TranslationSerializer.h>
#include <Translation/TranslationAsset.h>
namespace ... |
; A014578: Binary expansion of Thue constant (or Roth's constant).
; 0,1,1,0,1,1,0,1,1,1,1,1,0,1,1,0,1,1,1,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,1,1,1,0,1,1,0,1,1,1,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,1,1,1,0,1,1,0,1,1,1,1,1,0,1,1,0,1,1,1,1,1,0,1,1,0,1,1,1,1,1,0,1,1,0,1,1
mov $1,8
mov $2,$0
gcd $2,243
add $1,$2
sub $1,3
div... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x1dc5d, %rbp
nop
nop
nop
nop
nop
and $53225, %rbx
movb $0x61, (%rbp)
nop
nop
nop
dec %r9
lea addresses_WC_ht+0x445d, %rsi
lea addresses_WC_ht+0xbead, %rdi
clflush (%rdi)
nop
in... |
COMMENT @----------------------------------------------------------------------
Copyright (c) Geoworks 1992-1994 -- All Rights Reserved
PROJECT: GEOS
MODULE: Studio
FILE: articleArticle.asm
ROUTINES:
Name Description
---- -----------
INT GetRegionPos Get the position of a region
INT A... |
BITS 32
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
;TEST_BEGIN_RECORDING
lea edi, [esp-0x300]
and edi, 0xFFFFFFF0
FXSAVE [edi]
; a simple sanity check that something was written
mov eax, [edi]
mov edi, 0
;TEST_END_RECORDING
|
; A192979: Constant term of the reduction by x^2 -> x+1 of the polynomial p(n,x) defined at Comments.
; 1,1,4,9,19,36,65,113,192,321,531,872,1425,2321,3772,6121,9923,16076,26033,42145,68216,110401,178659,289104,467809,756961,1224820,1981833,3206707,5188596,8395361,13584017,21979440,35563521,57543027,93106616,150649713,... |
;-----------------
;
;
;
;
.386
.model flat,stdcall
option casemap:none
__UNICODE__ equ 1
include windows.inc
include user32.inc
includelib user32.lib
include kernel32.inc
includelib kernel32.lib
include gdi32.inc
includelib gdi32.lib
ID_BUTTON1 equ 1
ID_BUTTON2 equ 2
ID_LABEL1 equ 3
ID_LABEL2 equ 4
ID_EDIT1 equ 5
ID_... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r14
push %r9
push %rbx
push %rdi
push %rdx
push %rsi
// Store
lea addresses_A+0x14736, %r11
nop
nop
nop
and %rdx, %rdx
mov $0x5152535455565758, %rsi
movq %rsi, (%r11)
nop
nop
nop
add $63909, %rdx
// Store
lea ad... |
/* **********************************************************
* Copyright (c) 2020 Google, Inc. All rights reserved.
* Copyright (c) 2016 ARM Limited. All rights reserved.
* **********************************************************/
/*
* Redistribution and use in source and binary forms, with or without
* modifi... |
.text
main:
# Testing with same values
li $t0, 10
li $t1, 10
# Should be 1
sle $a0, $t0, $t1
li $v0, 1
syscall
# Should be 1
sleu $a0, $t0, $t1
li $v0, 1
syscall
# Testing with diff values
li $t0, -10
li $t1, 10
# Should be 1
sle $a0, $t0, $t1
li $v0, 1
syscall
# Should be 0
sleu $a0, $t0, $t1
li $v0, 1
syscall |
###############################################################################
# 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... |
; Factorial Sequence Display using Recursion
;
; Calculates and displays the factorial values for N from 1 to 5,
; which is the maximum factorial that can be calculated in 8-bit math.
; Uses a recursive approach enabled by a stack pointer.
OUTPUT = $7800 ; The display register is found at address $7800
MAX_N ... |
//===--- ASTPrinter.cpp - Swift Language AST Printer ----------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
; Test of the function inlining feature
org #4000
ld bc, var
; calling func1 (this should be inlined)
; call func1 ; -mdl
func1:
ld a, (bc)
; ret ; -mdl
ld hl, var
ld (hl), a
; calling func2 (this should not be inlined, since it's called twice)
call func2
; calling func3 (this should not be inlined e... |
db GASTLY ; 092
db 30, 35, 30, 80, 100, 35
; hp atk def spd sat sdf
db GHOST, POISON ; type
db 190 ; catch rate
db 95 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F50 ; gender ratio
db 100 ; unknown 1
db 20 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/gastly/front.dimensions... |
; void __CALLEE__ sp1_IterateUpdateArr_callee(struct sp1_update **ua, void *hook)
; 03.2006 aralbrec, Sprite Pack v3.0
; sinclair spectrum version
PUBLIC sp1_IterateUpdateArr_callee
PUBLIC ASMDISP_SP1_ITERATEUPDATEARR_CALLEE
EXTERN l_jpix
.sp1_IterateUpdateArr_callee
pop hl
pop ix
ex (sp),hl
.asmentry
; ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r8
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0xf444, %rax
xor %rbx, %rbx
movb (%rax), %r9b
nop
xor $51989, %r8
lea addresses_normal_ht+0x1ac44, %rdi
nop
nop
sub $53063, %rcx
movl $0x61626364, (%rdi)
nop
nop
nop
nop
nop
inc ... |
#include "AppClass.h"
void Application::InitVariables(void)
{
////Change this to your name and email
//m_sProgrammer = "Alberto Bobadilla - labigm@rit.edu";
m_Mesh = new MyMesh();
m_Mesh->AddVertexPosition(vector3(0, 0, 0));
m_Mesh->AddVertexPosition(vector3(1, 0, 0));
m_Mesh->AddVertexPosition(vector3(0, 1, 0));... |
; Tabla de instrumentos
TABLA_PAUTAS: DW PAUTA_0,PAUTA_1,PAUTA_2,PAUTA_3,PAUTA_4,PAUTA_5,PAUTA_6,PAUTA_7,PAUTA_8,PAUTA_9,PAUTA_10,PAUTA_11,PAUTA_12,PAUTA_13,PAUTA_14,PAUTA_15
; Tabla de efectos
TABLA_SONIDOS: DW SONIDO0,SONIDO1,SONIDO2,SONIDO3,SONIDO4,SONIDO5,SONIDO6,SONIDO7
;Pautas (instrumentos)
;Instrumen... |
; A070502: a(n) = n^3 mod 40.
; 0,1,8,27,24,5,16,23,32,9,0,11,8,37,24,15,16,33,32,19,0,21,8,7,24,25,16,3,32,29,0,31,8,17,24,35,16,13,32,39,0,1,8,27,24,5,16,23,32,9,0,11,8,37,24,15,16,33,32,19,0,21,8,7,24,25,16,3,32,29,0,31,8,17,24,35,16,13,32,39,0,1,8,27,24,5,16,23,32,9,0,11,8,37,24,15,16,33,32,19
pow $0,3
mod $0,40
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r15
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x6bf7, %rdi
nop
nop
nop
nop
nop
sub %r9, %r9
movl $0x61626364, (%rdi)
nop
and %rbp, %rbp
lea addresses_WT_ht+0xfb27, %rsi
lea addresses_A_ht+0x2237, %rdi
nop
nop
and %r10, %r10
mov $47,... |
/*
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "TimelineContainer.h"
#include "TimelineView.h"
#include <LibGUI/Layout.h>
namespace Profiler {
TimelineContainer::TimelineContainer(GUI::Widget& header_container, TimelineView& timeline_view)
{
... |
/*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... |
; A059830: a(n) = n^6 + n^4 + n^2 + 1.
; 1,4,85,820,4369,16276,47989,120100,266305,538084,1010101,1786324,3006865,4855540,7568149,11441476,16843009,24221380,34117525,47176564,64160401,85961044,113614645,148316260,191435329,244531876,309373429,387952660,482505745,595531444,729810901,888428164,1074791425,1292654980,15461... |
#pragma once
#include "esp_afe_sr_iface.h"
#include "__base__.hpp"
class AppSpeech : public Subject
{
public:
const esp_afe_sr_iface_t *afe_handle;
esp_afe_sr_data_t *afe_data;
bool detected;
command_word_t command;
AppSpeech();
void run();
};
|
; A272144: Convolution of A000217 and A001045.
; 0,0,1,4,12,30,69,150,316,652,1329,2688,5412,10866,21781,43618,87300,174672,349425,698940,1397980,2796070,5592261,11184654,22369452,44739060,89478289,178956760,357913716,715827642,1431655509,2863311258,5726622772,11453245816,22906491921,45812984148,91625968620,18325193758... |
SECTION code_fp_math48
PUBLIC cm48_sccz80p_dpush
EXTERN am48_dpush
; sccz80 float primitive
; Push float in AC' onto the stack.
;
; Float is in math48 format.
;
; enter : AC' = double (math48 format)
; stack = return
;
; exit : stack = double (math48 format)
;
; uses : A... |
; A141105: Upper Even Swappage of Upper Wythoff Sequence.
; 2,6,8,10,14,16,18,20,24,26,28,32,34,36,40,42,44,48,50,52,54,58,60,62,66,68,70,74,76,78,82,84,86,90,92,94,96,100,102,104,108,110,112,116,118,120,124,126,128,130,134,136,138,142,144,146,150,152,154,158,160,162,164,168,170,172,176,178,180,184,186,188,192,194,196,... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
; Copyright (c) 2017, AMD Incorporated. All rights reserved.<BR>
;
; This program and the accompanying materials are licensed and made available
; under the terms an... |
; A283623: a(n) = prime(n) + (1 + prime(1 + n))/2.
; 4,6,9,13,18,22,27,31,38,45,50,58,63,67,74,83,90,95,103,108,113,121,128,138,148,153,157,162,166,177,193,200,207,214,225,230,239,247,254,263,270,277,288,292,297,305,323,337,342,346,353,360,367,380,389,398,405,410,418,423,430,447,463,468,472,483,500,511,522,526,533,543,... |
SECTION code_clib
SECTION code_fp_math48
PUBLIC asm_dne_s
EXTERN am48_dne_s
defc asm_dne_s = am48_dne_s
|
[BITS 64]
global idt_load
global idt_get_idtr
; void idt_load(uint64_t base, int32_t size);
idt_load:
xor rax, rax
push rax
push rax
mov [rsp + 2], rdi
mov [rsp], si
lidt [rsp]
pop rax
pop rax
ret
; uint64_t idt_get_idtr();
idt_get_idtr:
xor rax, rax
push rax
push rax
... |
; float sin(float x)
SECTION code_clib
SECTION code_fp_math48
PUBLIC cm48_sdcciy_sin
EXTERN cm48_sdcciy_sin_fastcall
cm48_sdcciy_sin:
pop af
pop hl
pop de
push de
push hl
push af
jp cm48_sdcciy_sin_fastcall
|
/*
Copyright (c) 2016, The CyanogenMod Project
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 the fo... |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... |
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#include "UnrealEd.h"
#include "PListNodeString.h"
#include "SPlistEditor.h"
/** Validation check */
bool FPListNodeString::IsValid()
{
// Check Key (if we're not an array member)
if(bArrayMember)
{
if(KeyString.Len() == 0)
{
return false;
}
}
... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23506.0
TITLE D:\Projects\TaintAnalysis\AntiTaint\Epilog\src\struct-align.c
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB MSVCRT
INCLUDELIB OLDNAMES
_DATA SEGMENT
$SG5418 DB '%d %d %d', 00H
ORG $+3
$SG5428 DB '%s %d %... |
; void *sms_set_vram(unsigned char c, unsigned int n)
SECTION code_clib
SECTION code_crt_common
PUBLIC sms_set_vram_unsafe
EXTERN asm_sms_set_vram_unsafe
sms_set_vram_unsafe:
pop af
pop bc
pop hl
push hl
push bc
push af
ld a,l
jp asm_sms_set_vram_unsafe
|
; A070909: Triangle read by rows giving successive states of cellular automaton generated by "Rule 28" and by "Rule 156".
; 1,1,1,1,0,1,1,0,1,1,1,0,1,0,1,1,0,1,0,1,1,1,0,1,0,1,0,1,1,0,1,0,1,0,1,1,1,0,1,0,1,0,1,0,1,1,0,1,0,1,0,1,0,1,1,1,0,1,0,1,0,1,0,1,0,1,1,0,1,0,1,0,1,0,1,0,1,1,1,0,1,0,1,0,1,0,1,0,1,0,1,1,0,1,0,1,0,1,... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r8
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0xf553, %rdx
sub $598, %rsi
mov $0x6162636465666768, %r8
movq %r8, %xmm6
vmovups %ymm6, (%rdx)
nop
nop
nop
nop
nop
xor %r8, %r8
lea addresses_UC_ht+0x114f3, %rsi
lea addresses_... |
/*!
* Copyright (c) 2018 by Contributors
* \file allreduce_base.cc
* \brief Basic implementation of AllReduce
*
* \author Ankun Zheng
*/
#include "comm/communicator_base.h"
#include <cstdlib>
#include <cstring>
#include <map>
#include "common/env.h"
#include "common/threadpool.h"
#include "core/logging.h"
#inclu... |
; A024914: Numbers k such that 10*k - 3 is prime.
; Submitted by Jamie Morken(s4)
; 1,2,4,5,7,10,11,13,14,16,17,20,23,26,28,31,32,34,35,37,40,46,47,49,55,56,58,59,61,62,65,68,73,76,79,80,83,86,88,89,91,94,95,97,98,100,109,110,112,119,122,124,128,130,131,133,137,143,145,149,157,160,161,163,164,166,167,170,175,178,179,18... |
.set IRQ_BASE, 0x20
.section .text
.extern _ZN10interrupts16InterruptManager15HandleInterruptEhj
.macro ExceptionRequest num
.global _ZN10interrupts16InterruptManager16ExceptionRequestEv
_ZN10interrupts16InterruptManager16ExceptionRequestEv:
movb $\num, (number)
jmp int_bottom
.endm
.macro InterruptRequest num
.g... |
/*
* Simd Library (http://ermig1979.github.io/Simd).
*
* Copyright (c) 2011-2022 Yermalayeu Ihar.
*
* 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 witho... |
; A026219: Position of n in A026218.
; 1,2,5,3,9,4,13,6,17,7,21,8,25,10,29,11,33,12,37,14,41,15,45,16,49,18,53,19,57,20,61,22,65,23,69,24,73,26,77,27,81,28,85,30,89,31,93,32,97,34,101,35,105,36,109,38,113,39,117,40,121
mov $4,$0
mod $0,2
mov $3,10
mul $4,2
mov $1,$4
lpb $0
bin $0,$3
add $1,1
div $1,3
lpe
add $2,... |
; A135273: Row 9 of A038207.
; Submitted by Jon Maiga
; 512,2304,4608,5376,4032,2016,672,144,18,1
mov $2,9
sub $2,$0
add $0,$2
bin $0,$2
mov $1,2
pow $1,$2
mul $0,$1
|
// Copyright 2018 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
#pragma once
#include <vector>
#include "Engine/Exports.hpp"
#include "Thread.hpp"
namespace acid
{
/// <summary>
/// A pool of threads.
/// </summary>
class ACID_EXPORT ThreadPool
{
private:
std::vector<std::unique_ptr<Thread>> m_threads;
public:
static const uint32_t HARDWARE_CONCURRENCY;
ThreadPool(c... |
/* Copyright 2012-2013 Peter Goodman, all rights reserved. */
#include "granary/x86/asm_defines.asm"
#include "granary/x86/asm_helpers.asm"
#include "granary/pp.h"
#if CONFIG_ENV_KERNEL
START_FILE
DECLARE_FUNC(granary_run_initialisers)
GLOBAL_LABEL(granary_run_initialisers:)
.cfi_startproc
push %rbp;
mo... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//
//
/******************************************************************************/
/* ... |
// Copyright (c) 2014 The Bitcoin Core developers
// Copyright (c) 2014-2017 The Xeon Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "networkstyle.h"
#include "guiconstants.h"
#include "guiutil.h"
#in... |
; A199688: (8*10^n+1)/3.
; 3,27,267,2667,26667,266667,2666667,26666667,266666667,2666666667,26666666667,266666666667,2666666666667,26666666666667,266666666666667,2666666666666667,26666666666666667,266666666666666667,2666666666666666667,26666666666666666667,266666666666666666667,2666666666666666666667,266666666666666666... |
; A005286: a(n) = (n + 3)*(n^2 + 6*n + 2)/6.
; 1,6,15,29,49,76,111,155,209,274,351,441,545,664,799,951,1121,1310,1519,1749,2001,2276,2575,2899,3249,3626,4031,4465,4929,5424,5951,6511,7105,7734,8399,9101,9841,10620,11439,12299,13201,14146,15135,16169,17249,18376,19551,20775,22049,23374,24751,26181,27665,29204,30799,3245... |
###############################################################################
# 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... |
; A136105: Partial sums of A051941.
; 6,27,73,155,285,476,742,1098,1560,2145,2871,3757,4823,6090,7580,9316,11322,13623,16245,19215,22561,26312,30498,35150,40300,45981,52227,59073,66555,74710,83576,93192,103598,114835,126945,139971,153957
add $0,1
lpb $0
sub $0,1
add $3,6
add $2,$3
add $2,$0
add $1,$2
add $... |
#include "Codes.h"
#include <string.h>
static AnsiString _cachedData;
static INTEGER _cachedID=0;
INTEGER GetOperatorType(INTEGER ID) {
switch (ID) {
// selectors
case KEY_INDEX_OPEN:
case KEY_INDEX_CLOSE:
case KEY_P_OPEN:
case KEY_SELECTOR_P:
case K... |
; Default addresses for scrollable HDMA gradients.
!ScrollDefBank = $7F ; The bank of the HDMA data tables
!ScrollDefRedGreen = $1343 ; The address for the red-green table
!ScrollDefBlue = $1943 ; The address for the blue table
; Initialises the gradient by decompressing it and sets up HDMA table.
; gradient_ptr is ... |
#include<iostream>
using namespace std;
int main()
{
int n;
int r;
cin>>n>>r;
int arr[n];
for(int i=0; i<n; i++)
{
cin>>arr[i];
}
int k=arr[0];
for(int i=0; i<r; i++)
{
for(int j=0; j<n; j++)
{
arr[j]=arr[j+1];
}
arr[n-1]=k;
k=arr[0];
}
for(int i=0; i<... |
; A073145: a(n) = -a(n-1) - a(n-2) + a(n-3), a(0)=3, a(1)=-1, a(2)=-1.
; Submitted by Christian Krause
; 3,-1,-1,5,-5,-1,11,-15,3,23,-41,21,43,-105,83,65,-253,271,47,-571,795,-177,-1189,2161,-1149,-2201,5511,-4459,-3253,13223,-14429,-2047,29699,-42081,10335,61445,-113861,62751,112555,-289167,239363,162359,-690889,76789... |
_main:
;paillier_cec1302.c,1 :: void main() {
;paillier_cec1302.c,3 :: }
L_end_main:
L__main_end_loop:
B L__main_end_loop
; end of _main
|
#include "message_22.hpp"
#include <algorithm>
#include <cmath>
#include <marnav/ais/angle.hpp>
namespace marnav
{
namespace ais
{
constexpr message_id message_22::ID;
constexpr std::size_t message_22::SIZE_BITS;
message_22::message_22()
: message(ID)
{
}
message_22::message_22(const raw & bits)
: message(ID)
{
i... |
; A081490: Leading term of n-th row of A081491.
; 1,2,4,9,19,36,62,99,149,214,296,397,519,664,834,1031,1257,1514,1804,2129,2491,2892,3334,3819,4349,4926,5552,6229,6959,7744,8586,9487,10449,11474,12564,13721,14947,16244,17614,19059,20581,22182,23864,25629,27479,29416,31442,33559,35769,38074,40476,42977,45579,48284,51094... |
; A264440: Row lengths of the irregular triangle A137510 (number of divisors d of n with 1 < d < n, or 0 if no such d exists).
; 1,1,1,1,1,2,1,2,1,2,1,4,1,2,2,3,1,4,1,4,2,2,1,6,1,2,2,4,1,6,1,4,2,2,2,7,1,2,2,6,1,6,1,4,4,2,1,8,1,4,2,4,1,6,2,6,2,2,1,10,1,2,4,5,2,6,1,4,2,6,1,10,1,2,4,4,2,6,1,8,3,2,1,10,2,2,2,6,1,10,2,4,2,2... |
; A142009: Primes congruent to 5 mod 31.
; Submitted by Jon Maiga
; 5,67,191,439,563,811,997,1307,1493,1741,2113,2237,2423,2609,2671,2857,3167,3229,3539,3911,4159,4283,4903,5399,5647,6143,6329,6577,6701,6763,6949,7321,7507,7817,7879,8623,8747,8933,9181,9491,9677,9739,10111,10607,10979,11351,11909,11971,12157,12281,1234... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r8
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x1dbb0, %rsi
lea addresses_normal_ht+0xc10, %rdi
nop
and %r13, %r13
mov $12, %rcx
rep movsl
nop
nop
nop
nop
nop
sub $63734, %r13
lea addresses_normal_ht+0xc060, %rsi
nop
nop
dec %r8
mov... |
; A315693: Coordination sequence Gal.3.50.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,17,22,28,34,40,46,51,56,62,68,74,80,85,90,96,102,108,114,119,124,130,136,142,148,153,158,164,170,176,182,187,192,198,204,210,216,221,2... |
;
; ANSI Video handling for the ABC80
;
; set it up with:
; .text_cols = max columns
; .text_rows = max rows
;
; Display a char in location (ansi_ROW),(ansi_COLUMN)
; A=char to display
;
; A slower (but working) method it commented out
;
;
; $Id: f_ansi_char.asm,v 1.4 2015/01/19 01:33:18 pauloscustodio Exp $
;
PUBLI... |
; A170516: Number of reduced words of length n in Coxeter group on 27 generators S_i with relations (S_i)^2 = (S_i S_j)^46 = I.
; 1,27,702,18252,474552,12338352,320797152,8340725952,216858874752,5638330743552,146596599332352,3811511582641152,99099301148669952,2576581829865418752,66991127576500887552,1741769316989023076... |
; A102909: a(n) = Sum_{j=0..8} n^j.
; 1,9,511,9841,87381,488281,2015539,6725601,19173961,48427561,111111111,235794769,469070941,883708281,1589311291,2745954241,4581298449,7411742281,11668193551,17927094321,26947368421,39714002329,57489010371,81870575521,114861197401,158945719401,217180147159,293292210961,391794664941,5... |
//---- GPL ---------------------------------------------------------------------
//
// Copyright (C) Stichting Deltares, 2011-2016.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation version ... |
%include "defaults_bin.asm"
mov bx,0x0102
mov al,'B'
cmp bl,bh
mov cx,9999
loope l1
mov al,'A'
l1:
outputCharacter
mov bx,0x0102
mov al,'B'
cmp bl,bh
mov cx,9999
loopne l2
mov al,'A'
l2:
outputCharacter
mov bx,0x0102
mov al,'B'
cmp bl,bh
mov cx,9999
db 0xf2
loope l3
mov a... |
; A126825: Ramanujan numbers (A000594) read mod 3.
; 1,0,0,1,0,0,2,0,0,0,0,0,2,0,0,1,0,0,2,0,0,0,0,0,1,0,0,2,0,0,2,0,0,0,0,0,2,0,0,0,0,0,2,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,2,0,0,1,0,0,2,0,0,0,0,0,2,0,0,2,0,0,2,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,2,0,0,1,0,0,2,0,0
cal $0,64987 ; a(n) = n*sigma(n).
mod $0,3
mov $1,$0
|
; A143844: Triangle T(n,k) = k^2 read by rows.
; 0,0,1,0,1,4,0,1,4,9,0,1,4,9,16,0,1,4,9,16,25,0,1,4,9,16,25,36,0,1,4,9,16,25,36,49,0,1,4,9,16,25,36,49,64,0,1,4,9,16,25,36,49,64,81,0,1,4,9,16,25,36,49,64,81,100,0,1,4,9,16,25,36,49,64,81,100,121
lpb $0
sub $0,1
mov $1,$0
add $2,1
trn $0,$2
lpe
pow $1,2
|
; A273769: First differences of number of active (ON,black) cells in n-th stage of growth of two-dimensional cellular automaton defined by "Rule 913", based on the 5-celled von Neumann neighborhood.
; 3,13,31,33,40,48,56,64,72,80,88,96,104,112,120,128,136,144,152,160,168,176,184,192,200,208,216,224,232,240,248,256,264,... |
; A145130: 2 + (89040 + (71868 + (29932 + (8449 + (1960 + (322 + (28 + n)*n)*n)*n)*n)*n)*n)*n/40320.
; 2,7,25,81,236,622,1498,3334,6931,13586,25312,45124,77403,128351,206551,323647,495160,741457,1088891,1571131,2230702,3120756,4307096,5870476,7909201,10542052,13911562,18187670,23571781,30301261,38654397,48955853,615826... |
format PE
use32
include 'C:\fasm\include\win32a.inc'
section '.bss' writable readable
mem rd 20000000
section '.text' data readable executable writeable
entry _start
macro mutation_mov1 src,dst,counter,d,e
{
push ecx
mov ecx,counter
and counter,0
and d,0
inc d
and e,0
no... |
/*
* Copyright (c) 2014 Juniper Networks, Inc. All rights reserved.
*/
#include "loadbalancer_config.h"
#include <cerrno>
#include <fstream>
#include <boost/assign/list_of.hpp>
#include "base/logging.h"
#include "agent.h"
#include "init/agent_param.h"
#include "loadbalancer_properties.h"
using namespace std;
usin... |
[bits 16]
EnterProMode:
cli ; 1) Выключаем прерывания
lgdt [GDTDescriptor] ; 2) Загружаем GDT
mov eax, cr0 ; 3) Устанавливаем 32 битный режим
or eax, 0x1
mov cr0, eax
jmp CodeSegment:InitProMode ; 4) far jump. Зачем - пока не разобрался
[bits 32]
In... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x1ad17, %r9
nop
nop
dec %rbx
mov (%r9), %r11d
nop
nop
nop
nop
nop
add $60414, %rcx
lea addresses_WT_ht+0x1be17, %r12
nop
nop
sub $22895, %rbx
mov (%r12), %esi
nop
nop
nop
sub %... |
#include "stdafx.h"
extern "C"
{
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>
};
#include "../../lua_tinker/lua_tinker.h"
using namespace SOUI;
#include "exp_Basic.h"
#include "exp_string.h"
#include "exp_strcpcvt.h"
#include "exp_pugixml.h"
#include "exp_app.h"
#include "exp_hostwnd... |
; PE FILE STRUCTURE
; =================
%include "pe.inc"
BIN_Begin
MZHeader
MZExtendedHeader
MZSection.text_Begin
push cs
pop ds
mov dx,MZSection.text_VA(text_string)
mov ah,09
int 21h
mov ax,4C01h
int 21h
text_string: db 'Thi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.