text stringlengths 1 1.05M |
|---|
; A040302: Continued fraction for sqrt(320).
; 17,1,7,1,34,1,7,1,34,1,7,1,34,1,7,1,34,1,7,1,34,1,7,1,34,1,7,1,34,1,7,1,34,1,7,1,34,1,7,1,34,1,7,1,34,1,7,1,34,1,7,1,34,1,7,1,34,1,7,1,34,1,7,1,34,1,7,1,34,1,7,1,34,1,7,1,34,1,7,1,34,1,7,1
mov $3,4
cal $0,40236 ; Continued fraction for sqrt(252).
mov $2,1
lpb $2,2
mov $... |
C arm/v6/sha1-compress.asm
ifelse(<
Copyright (C) 2013 Niels Möller
This file is part of GNU Nettle.
GNU Nettle is free software: you can redistribute it and/or
modify it under the terms of either:
* the GNU Lesser General Public License as published by the Free
Software Foundation; either v... |
;
; Small C+ Library Functions
;
; Renamed once more and rechristened for ANSIstdio
;
; This outputs a character to the console
;
; 1/4/2000 (Original Aug 98)
;
;
;
; $Id: fputc_cons.asm,v 1.9 2016-07-02 13:52:45 dom Exp $
;
INCLUDE "stdio.def"
MODULE fputc_cons_native
SECTION code_clib
... |
; A127835: (Order of Galois group of Chebyshev polynomial)/(order of polynomial); or A124827(n)/n.
; Submitted by Jon Maiga
; 1,1,2,2,4,2,6,2,6,4,10,4,12,6,8,4,16,6,18,8,12
add $0,1
mov $1,1
lpb $0
mov $3,$0
lpb $3
mov $4,$0
mov $6,$2
cmp $6,0
add $2,$6
mod $4,$2
cmp $4,0
cmp $4,0
m... |
;reverse a string
section .data
msg1 : db 'Enter string : '
l1 : equ $-msg1
msg2 : db 'Reversed string is : '
l2 : equ $-msg2
newline : db 10
section .bss
string : resb 50
str_len : resb 1
temp : resb 1
section .text
global _start:
_start:
mov eax, 4
mov ebx, 1
mov ecx, msg1
mov edx, l1
int 80h
mov ebx, strin... |
%define BE(a) ( ((((a)>>24)&0xFF) << 0) + ((((a)>>16)&0xFF) << 8) + ((((a)>>8)&0xFF) << 16) + ((((a)>>0)&0xFF) << 24))
ftyp_start:
dd BE(ftyp_end - ftyp_start)
dd "ftyp"
db 0x61, 0x76, 0x69, 0x66 ; brand(32) ('avif')
db 0x00, 0x00, 0x00, 0x00 ; version(32)
db 0x61, 0x76, 0x69, 0x66 ; compatible_... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 17.00.50727.1
include listing.inc
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
CONST SEGMENT
$SG3516 DB 'dev', 00H
CONST ENDS
PUBLIC ?sys_open_file@@YAHPEADPEAU_file_@@@Z ; sys_open_file
PUBLIC ?sys_read_file@@YAXHPEAEPEAU_file_@@@Z ; sys_read_file
PUBLIC ... |
; A147612: If n is a Jacobsthal number then 1 else 0.
; 1,1,0,1,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,... |
; void __CALLEE__ sp1_GetTiles_callee(struct sp1_Rect *r, struct sp1_tp *dest)
SECTION code_clib
SECTION code_temp_sp1
PUBLIC sp1_GetTiles_callee
EXTERN asm_sp1_GetTiles
sp1_GetTiles_callee:
pop af
pop hl
ex (sp),hl
ld d,(hl)
inc hl
ld e,(hl)
inc hl
ld b,(hl)
inc hl
ld c,(hl)
pop h... |
; A154252: Expansion of (1-x+8x^2)/((1-x)(1-2x)) .
; 1,2,12,32,72,152,312,632,1272,2552,5112,10232,20472,40952,81912,163832,327672,655352,1310712,2621432,5242872,10485752,20971512,41943032,83886072,167772152,335544312,671088632,1342177272,2684354552,5368709112,10737418232,21474836472,42949672952,85899345912,17179869183... |
/*
* 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: WriteURB.asm
//
// General purpose modul... |
/*
* Editor UI property grid builder file
*
* This file is part of the "ForkENGINE" (Copyright (c) 2014 by Lukas Hermanns)
* See "LICENSE.txt" for license information.
*/
#include "UIPropertyGridBuilder.h"
#include "../../Core/UIExtensions/UIPropertyGrid.h"
#include "../../Language/LanguageLoader.h"
namespace ... |
INCLUDE "config_private.inc"
SECTION smc_driver
EXTERN asm_shadow_copy
EXTERN asm_shadow_copy_end
PUBLIC asm_shadow_relocate
; @feilipu November 2021
;
; The RAM bank is toggled by outputting 0/1 to 0x0030
;
; asm_shadow_copy is located in the DATA section and, for ROM builds,
; is copied to both main and ... |
; A158620: Partial products of A068601.
; Submitted by Jon Maiga
; 7,182,11466,1421784,305683560,104543777520,53421870312720,38891121587660160,38852230466072499840,51673466519876424787200,89240076679826585607494400,195971208388899181994057702400,537549024610750456209700277683200,1813690409036672039251528736903116800,74... |
vs_3_0
dcl_position v0
dcl_position o0
dcl_position1 o1.xy
dcl_position2 o2.xy
mul r0, c0.xyxy, v0.xyyx
add o0.xz, r0.yy, r0.xy
mul r0, c1.xyxy, v0.xyyx
add o0.yw, r0.xy, r0.xx
mul r0.xy, c0.xy, v0.yx_abs
add o1.x, r0.y, r0.x
mul r0.xy, c1.xy, v0.yx_abs
add o1.y, r0.y, r0.x
add r0.xy, v0.xy, v0.xy
mul r0.... |
#pragma once
#include <cmath>
#include <cstdint>
#include <iostream>
#include <stdexcept>
#include <string>
#include <unordered_map>
#include <vector>
#include <Eigen/Geometry>
#include <common_robotics_utilities/math.hpp>
#include <common_robotics_utilities/serialization.hpp>
#include <common_robotics_utilities/util... |
#include "SampleAnalyzer/User/Analyzer/user.h"
using namespace MA5;
bool user::Initialize(const MA5::Configuration& cfg,
const std::map<std::string,std::string>& parameters)
{
// Initializing PhysicsService for MC
PHYSICS->mcConfig().Reset();
// definition of the multiparticle "hadronic"
... |
; A049669: a(n) = Fibonacci(9*n)/34.
; Submitted by Jamie Morken(m4)
; 0,1,76,5777,439128,33379505,2537281508,192866774113,14660412114096,1114384187445409,84707858657965180,6438911642192799089,489441992665310695944,37204030354205805690833,2827995748912306543199252,214964880947689503088833985,163401589477733145412945821... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; 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... |
; A036464: Number of ways to place two nonattacking queens on an n X n board.
; 0,0,8,44,140,340,700,1288,2184,3480,5280,7700,10868,14924,20020,26320,34000,43248,54264,67260,82460,100100,120428,143704,170200,200200,234000,271908,314244,361340,413540,471200,534688,604384,680680,763980,854700,953268,1060124,1175720,13005... |
// Copyright (C) 2018 Ian Dunn
// For conditions of distribution and use, see the LICENSE file
#include "Application.hpp"
int main(int argc, char ** argv)
{
Application app;
app.ReadArguments(argc, argv);
return app.Run();
}
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r15
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x43ce, %rdx
nop
and $48255, %r11
movb (%rdx), %al
nop
and $57668, %rbp
lea addresses_A_ht+0x150ce, %rsi
lea addresses_WC_ht+0x7d0e, %rdi
add $17230, %r15
mov $48, %rcx
rep mo... |
;
; ZX IF1 & Microdrive functions
;
; remove a given file in the given drive
;
; int if1_remove (int drive, char *filename);
;
; $Id: if1_remove_file.asm,v 1.3 2016/07/01 22:08:20 dom Exp $
;
SECTION code_clib
PUBLIC if1_remove_file
PUBLIC _if1_remove_file
EXTERN if1_setname
EXTERN if1_rommap
EXTERN E... |
#include "feature_parallel_dataset_builder.h"
#include "compressed_index_builder.h"
#include "feature_layout_feature_parallel.h"
#include "dataset_helpers.h"
#include <catboost/libs/helpers/vector_helpers.h>
namespace NCatboostCuda {
TFeatureParallelDataSetsHolder TFeatureParallelDataSetHoldersBuilder::BuildDataS... |
;;
;; Copyright (c) 2012-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... |
.filenamespace DemonsMadeMeDoADemo_DMS
:BasicUpstart2(mainStartup)
//----------------------------------------------------------
// Variables
//----------------------------------------------------------
.const D = 0
.const A = 1
.const M = 2
.const O = 3
.const N = 4
.const EE = 5
.const S = 6
.c... |
; DV3 QLWA Format V3.01 1992 Tony Tebby
;
; 2020-04-07 3.01 Changed for new ddf_mname format with size word (MK)
section dv3
xdef qlf_ftwa
include 'dev8_dv3_keys'
include 'dev8_dv3_qlf_keys'
include 'dev8_keys_qlwa'
include 'dev8_keys_err'
include 'dev8_keys_sys'
include 'dev8_keys_hdr'
inclu... |
;;----------------------------------------------------------------------------;;
;; Use the familiar long name in Zoom menu
;; Copyright 2014 Benito Palacios (aka pleonex)
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
... |
; :::
#d8 0
#addr 0 ; error: behind
; :::
#addr -1 ; error: valid range
; :::
#d8 0
#d8 1
#addr 0x2
; = 0x0001
; :::
#d8 0
#d8 1
#d8 2
#addr 0x2 ; error: behind
; :::
#d8 0
#d8 1
#d8 2
#d8 3
#addr 0x2 ; error: behind
; :::
#bankdef non_writable { #addr 0, #size 10 }
#res 1
#res 1
#res 1
#res 1
#addr 0x2
; :::
#ba... |
#include "testcrypt.h"
#include <crypt.h>
std::string crypt_something() {
char const* result = crypt("will error out", "\0");
if (result == NULL) {
return std::string("*");
}
return std::string(result);
}
|
;Copyright (c) 1987, 1990, 1993, 2005 Vrije Universiteit, Amsterdam, The Netherlands.
;All rights reserved.
;
;Redistribution and use of the Amsterdam Compiler Kit in source and
;binary forms, with or without modification, are permitted provided
;that the following conditions are met:
;
; * Redistributions of source ... |
;******************************************************************************
;* VP9 MC SIMD optimizations
;*
;* Copyright (c) 2013 Ronald S. Bultje <rsbultje gmail com>
;*
;* This file is part of FFmpeg.
;*
;* FFmpeg is free software; you can redistribute it and/or
;* modify it under the terms of the GNU Lesser Gene... |
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
80
.text@150
lbegin:
ld c, 41
ld b, 03
lbegin_waitm3:
ldff a, (c)
and a, b
cmp a, b
jrnz lbegin_waitm3
ld a, 20
ldff(c), a
xor a, a
ldff(0f), a
ld a, 02
ldff(ff), a
ei
ld a, 02
ldff(43), a
ld hl, 8000
ld(hl), 00
.text@1000
lstatint:
... |
processor 6502
include "vcs.h"
include "macro.h"
SKY_BLUE = 160
DARK_WATER = 160
SUN_RED = 48
CLOUD_ORANGE = 34
GREY_SCALE = 2
WHITE_WATER = 10
GREEN = 178
RED = 66
YELLOW = 30
WHITE = 14
BLACK = 0
SEG
ORG $F000
Reset
; set TIA to known state (clear to 0)
lda #0
ldx... |
/*++
Copyright (C) Microsoft Corporation, 2002
Module Name:
selbinding.hxx
Abstract:
Manipulation of the selective binding registry settings.
Revision History:
MauricF 03-20-02 Consolodate access to selective binding settings across
rpccfg/rpcnsh/rpctra... |
; A021345: Decimal expansion of 1/341.
; 0,0,2,9,3,2,5,5,1,3,1,9,6,4,8,0,9,3,8,4,1,6,4,2,2,2,8,7,3,9,0,0,2,9,3,2,5,5,1,3,1,9,6,4,8,0,9,3,8,4,1,6,4,2,2,2,8,7,3,9,0,0,2,9,3,2,5,5,1,3,1,9,6,4,8,0,9,3,8,4,1,6,4,2,2,2,8,7,3,9,0,0,2,9,3,2,5,5,1
add $0,2
mov $1,10
pow $1,$0
mul $1,2
div $1,6820
mod $1,10
mov $0,$1
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r14
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0xf245, %rsi
lea addresses_A_ht+0x18c0d, %rdi
nop
nop
nop
and %rbp, %rbp
mov $99, %rcx
rep movsb
nop
nop
nop
nop
nop
xor $6422, %rbp
lea addresses_UC_ht+0x9aad, %rsi
lea addresses_W... |
// ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ----------------------------------------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2018-2021 www.open3d.org
//
// Perm... |
// Copyright (c) 2014 Adam Wulkiewicz, Lodz, Poland.
//
// Use, modification and distribution is subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_CORE_IGNORE_UNUSED_HPP
#define BOOST_CORE_IGNORE_UNUSED_HPP
#... |
;Variables only used with the Deflemask playback ROM
SECTION "Deflemask player variables",wram0
NewJoyData: ds 1
OldJoyData: ds 1
|
; DRAW LOAD SPRITE 1 BYTE DEFINITION ROTATED
; 01.2006 aralbrec, Sprite Pack v3.0
; sinclair spectrum version
INCLUDE "clib_target_cfg.asm"
SECTION code_temp_sp1
PUBLIC _SP1_DRAW_LOAD1
EXTERN _SP1_DRAW_LOAD1NR
EXTERN SP1RETSPRDRAW
; following data segment copied into struct sp1_cs
ld hl,0
ld ix,0
call _... |
; A001590: Tribonacci numbers: a(n) = a(n-1) + a(n-2) + a(n-3) with a(0)=0, a(1)=1, a(2)=0.
; 0,1,0,1,2,3,6,11,20,37,68,125,230,423,778,1431,2632,4841,8904,16377,30122,55403,101902,187427,344732,634061,1166220,2145013,3945294,7256527,13346834,24548655,45152016,83047505,152748176,280947697,516743378,950439251,1748130326... |
#include "bound_duvdt.h"
void bound_duvdt() {
auto &dudt = ::dudt;
auto &dvdt = ::dvdt;
auto &na = ::na;
auto &ncrms = ::ncrms;
// for (int k=0; k<nzm; k++) {
// for (int j=0; j<ny; j++) {
// for (int icrm=0; icrm<ncrms; icrm++) {
parallel_for( SimpleBounds<3>(nzm,ny,ncrms) , YAKL_LAMBDA (i... |
; A094373: Expansion of (1-x-x^2)/((1-x)*(1-2*x)).
; 1,2,3,5,9,17,33,65,129,257,513,1025,2049,4097,8193,16385,32769,65537,131073,262145,524289,1048577,2097153,4194305,8388609,16777217,33554433,67108865,134217729,268435457,536870913,1073741825,2147483649,4294967297,8589934593,17179869185,34359738369,68719476737,13743895... |
; A130722: The twice repeated nonnegative integers at even indices, the non-repeated nonnegative integers at odd indices.
; 0,0,0,1,1,2,1,3,2,4,2,5,3,6,3,7,4,8,4,9,5,10,5,11,6,12,6,13,7,14,7,15,8,16,8,17,9,18,9,19,10,20,10,21,11,22,11,23,12,24,12,25,13,26,13,27,14,28,14,29,15,30,15,31,16,32,16,33,17,34,17,35,18,36,18,3... |
; long long atoll(const char *buf)
SECTION code_clib
SECTION code_stdlib
PUBLIC atoll
EXTERN asm_atoll, l_store_64_dehldehl_mbc
atoll:
pop af
pop bc
pop hl
push hl
push bc
push af
push ix
push bc ; save result *
call asm_atoll
pop bc ... |
#include <memory>
#include <mutex>
struct some_resource {
void do_something() { }
};
std::shared_ptr<some_resource> resource_ptr;
std::mutex resource_mutex;
void foo() {
std::unique_lock<std::mutex> lk(resource_mutex);
if (!resource_ptr) {
resource_ptr.reset(new some_resource);
}
lk.unloc... |
////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2014-2016, Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory.
// Written by the LBANN Research Team (B. Van Essen, et al.) listed in
// the CONTRIBUTORS file. <lbann-dev@l... |
extern m7_ippsDLPGenerateDH:function
extern n8_ippsDLPGenerateDH:function
extern y8_ippsDLPGenerateDH:function
extern e9_ippsDLPGenerateDH:function
extern l9_ippsDLPGenerateDH:function
extern n0_ippsDLPGenerateDH:function
extern k0_ippsDLPGenerateDH:function
extern ippcpJumpIndexForMergedLibs
extern ippcpSafeInit:funct... |
INCLUDE "../../../hardware.inc/hardware.inc"
default_palette EQU %11100100
; ###########################################################
wait_for_vblank: MACRO
.loop\@
ld a, [rLY]
cp SCRN_Y;
jr c, .loop\@
ENDM
; ###########################################################
var: MACRO
PUSHS
SECTION "vari... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r15
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x5cf4, %rsi
lea addresses_A_ht+0x17dc0, %rdi
nop
add $64351, %rdx
mov $48, %rcx
rep movsb
nop
nop
nop
nop
dec %r8
lea addresses_A_ht+0x14f4, %r11
nop
nop
nop
xor $3625, %r15
movups (%r11... |
/**********
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 lib... |
SECTION code_clib
PUBLIC pixeladdress
INCLUDE "graphics/grafix.inc"
EXTERN __primo_screen_base
;
; $Id: pixladdr.asm,v 1.9 2016-04-22 20:17:17 dom Exp $
;
; ******************************************************************
;
; Get absolute pixel address in map of virtual (x,y) coordinate.
;
; in: hl = (x,y) ... |
Entity start
No options
Constants
0 S start
1 S tab
2 S index
3 I 1
4 I 10
5 S tab[
6 S ]=
7 I 4
8 S io.writeln
End
Valid context (always)
No properties
Def start
No parameters
Local variables
0 table tab
1 int index
End
No results
ldconst 3 --> [1]
stvar 1 --> [index]
2: ldva... |
; A026644: a(n) = a(n-1) + 2*a(n-2) + 2, for n>=3, where a(0)= 1, a(1)= 2, a(2)= 4.
; 1,2,4,10,20,42,84,170,340,682,1364,2730,5460,10922,21844,43690,87380,174762,349524,699050,1398100,2796202,5592404,11184810,22369620,44739242,89478484,178956970,357913940,715827882,1431655764,2863311530,5726623060,11453246122,229064922... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
%>
<%docstring>mq_timedsend(mqdes, msg_ptr, msg_len, msg_prio, abs_timeout) -> str
Invokes the syscall mq_timedsend.
See 'man 2 mq_timedsend' for more information.
Arguments:
mqdes(mqd_t): mqdes
msg_ptr(char*): msg_ptr
... |
/*******************************************************************\
Module: Pointer Logic
Author: Daniel Kroening, kroening@kroening.com
\*******************************************************************/
/// \file
/// Pointer Logic
#include "pointer_logic.h"
#include <cassert>
#include <util/arith_tools.h>
... |
-- HUMAN RESOURCE MACHINE PROGRAM --
COMMENT 11
INBOX
COPYTO 0
INBOX
COPYTO 1
INBOX
OUTBOX
COPYFROM 1
OUTBOX
COPYFROM 0
OUTBOX
COMMENT 12
INBOX
OUTBOX
INBOX
OUTBOX
INBOX
OUTBOX
a:
b:
c:
d:
e:
f:
COMMENT 4
... |
; A258812: a(n) = n^11 - 1.
; 0,2047,177146,4194303,48828124,362797055,1977326742,8589934591,31381059608,99999999999,285311670610,743008370687,1792160394036,4049565169663,8649755859374,17592186044415,34271896307632,64268410079231,116490258898218,204799999999999
add $0,1
mov $1,$0
pow $1,11
sub $1,1
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r14
push %r15
push %r8
push %rbx
push %rdi
lea addresses_WC_ht+0x10ae7, %r14
nop
and $31404, %r11
mov (%r14), %ebx
nop
nop
sub %rdi, %rdi
lea addresses_UC_ht+0x10a67, %r8
nop
nop
nop
nop
nop
sub %rdi, %rdi
mov (%r8), %r13
cmp %r11, %r11
lea addresse... |
;**************************************************************************
; 485E.ASM
;
; High Speed Auto Enable, Auto Baud detect converter
;
; Version Info
; -------------
; Version 1.3
; Changed from counting loop to Timer0 based timing
;
; Version 1.4
; Added watchdog timeout support and commented some code.
;... |
user/_echo: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <main>:
0: 7179 addi sp,sp,-48
2: f406 sd ra,40(sp)
4: f022 sd s0,32(sp)
6: ec26 sd s1,24(sp)
8: e84a sd s2,16(sp)
a: e44e ... |
; A300523: a(n) = (5*n + 5)*(5*n + 6)*(5*n + 7)/6.
; 35,220,680,1540,2925,4960,7770,11480,16215,22100,29260,37820,47905,59640,73150,88560,105995,125580,147440,171700,198485,227920,260130,295240,333375,374660,419220,467180,518665,573800,632710,695520,762355,833340,908600,988260,1072445,1161280,1254890,1353400,1456935,15... |
// Commodore 64 PRG executable file
.file [name="iterarray.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
:BasicUpstart(main)
.segment Code
main: {
.label buf... |
#pragma once
#include <ion/gfx/pixel_format.hpp>
#include <ion/gfx/type.hpp>
#include <ostream>
#include <vector>
namespace ion { namespace gfx
{
class Image
{
public:
Image(const std::string&);
const std::string& name() const;
unsigned int width() const;
unsigned int hei... |
; Various sub-routines that will be useful to the boot loader code
; Output Carriage-Return/Line-Feed (CRLF) sequence to screen using BIOS
Console_Write_CRLF:
mov ah, 0Eh ; Output CR
mov al, 0Dh
int 10h
mov al, 0Ah ; Output LF
int 10h
ret
; Write to the console using BIOS.
;
; I... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_file_82a.cpp
Label Definition File: CWE761_Free_Pointer_Not_at_Start_of_Buffer.label.xml
Template File: source-sinks-82a.tmpl.cpp
*/
/*
* @description
* CWE: 761 Free Pointer not at Start of Buffer
* BadSource: ... |
; Initialize the stack pointer
MOV XL, 0xFF
MOV XH, 0xFF
MOV SP, X
SUB SP, 7
; Write the stack pointer to the Output Port C
MOV X, SP
OUT C
; Signal the listener that new data is available on Output Port C
MOV XL, 00000010b
OUT D
MOV XL, 00000000b
OUT D
; Write the stack pointer to the Output Port C
MOV X, SP
MOV X... |
; A090996: Number of leading 1's in binary expansion of n.
; 0,1,1,2,1,1,2,3,1,1,1,1,2,2,3,4,1,1,1,1,1,1,1,1,2,2,2,2,3,3,4,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,3,3,3,3,4,4,5,6,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,5,5,6,7,1,1... |
; A064756: a(n) = n*10^n - 1.
; 9,199,2999,39999,499999,5999999,69999999,799999999,8999999999,99999999999,1099999999999,11999999999999,129999999999999,1399999999999999,14999999999999999,159999999999999999,1699999999999999999,17999999999999999999,189999999999999999999,1999999999999999999999,20999999999999999999999,21999... |
#include "pch.h"
#include "Entity.h"
Entity::Entity(SMALL_RECT dimensions)
:Dimensions(dimensions)
{
}
Entity::~Entity()
{
}
|
; A211813: Number of (n+1) X (n+1) -10..10 symmetric matrices with every 2 X 2 subblock having sum zero and two distinct values.
; 32,44,62,92,140,218,344,548,878,1412,2276,3674,5936,9596,15518,25100,40604,65690,106280,171956,278222,450164,728372,1178522,1906880,3085388,4992254,8077628,13069868,21147482,34217336,553648... |
INCLUDE "constants/hardware.inc"
INCLUDE "constants/transition.inc"
INCLUDE "constants/screens.inc"
INCLUDE "constants/games/battleship.inc"
INCLUDE "constants/actors.inc"
INCLUDE "constants/sfx.inc"
INCLUDE "constants/SoundSystem.inc"
INCLUDE "constants/engine.inc"
SECTION UNION "Game Variables", HRAM
hEndDelay:
... |
#ifndef STAN_MATH_REV_CORE_VVD_VARI_HPP
#define STAN_MATH_REV_CORE_VVD_VARI_HPP
#include <stan/math/rev/core/vari.hpp>
namespace stan {
namespace math {
class op_vvd_vari : public vari {
protected:
vari* avi_;
vari* bvi_;
double cd_;
public:
op_vvd_vari(double f, vari* avi, vari* bvi, doubl... |
; A056117: Expansion of (1+8*x)/(1-x)^9.
; 1,17,117,525,1815,5247,13299,30459,64350,127270,238238,425646,730626,1211250,1947690,3048474,4657983,6965343,10214875,14718275,20868705,29156985,40190085,54712125,73628100,98030556,129229452,168785452,218546900,280690740,357767652,452751684,569094669,710785725,882416145,108924... |
/*
* Copyright (C) 2019-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/helpers/state_base_address.h"
#include "shared/source/helpers/state_base_address_bdw_and_later.inl"
#include "shared/source/helpers/state_base_address_icllp_and_later.inl"
namespace NEO {
template struct ... |
; ===============================================================
; Jan 2014
; ===============================================================
;
; char *strerror(int errnum)
;
; Return string message corresponding to errnum.
;
; ===============================================================
SECTION code_string
PUB... |
/**************************************************************************/
/*!
@file RTClib.cpp
@mainpage Adafruit RTClib
@section intro Introduction
This is a fork of JeeLab's fantastic real time clock library for Arduino.
For details on using this library with an RTC module like the DS1307, PCF852... |
; A054243: Number of partitions of n into distinct positive parts <= n, where parts are combined by XOR.
; 1,1,1,2,2,4,8,16,16,32,64,128,256,512,1024,2048,2048,4096,8192,16384,32768,65536,131072,262144,524288,1048576,2097152,4194304,8388608,16777216,33554432,67108864,67108864,134217728,268435456,536870912,1073741824,21... |
/*
Note that the ZP being used here need to
match the ZP of the pointer used by the
IRQ loader
*/
exo_exo:
lda $f0
sta opbase + 1
lda $f1
sta opbase + 2
jmp exod_decrunch
exod_get_crunched_byte:
lda opbase + 1
bne nowrap
dec opbase + 2
nowrap:
dec opbase + 1
opbase:
lda $ffff
rts
//
// Copy... |
; A134298: a(n) = (107*n)^5.
; 0,14025517307,448816553824,3408200705601,14362129722368,43829741584375,109062422579232,235726869378749,459588151115776,828192771461043,1402551730700000,2258823587809657,3489997522535424,5207576397467951
pow $0,5
mul $0,14025517307
|
#include <iostream>
#include <climits>
using namespace std;
int main(){
// Program to find max and minimum number from the list
// take min = infinity
// take max = minus infinity
int min = INT_MAX;
int max = INT_MIN;
int n,no;
cin>>n;
for(int i=0;i<n;i++){
cin>>no;
if(no<min){
min = no;
}
if(no>... |
; A265100: a(n) = 9*A005836(n) + 5, n >= 1.
; 5,14,32,41,86,95,113,122,248,257,275,284,329,338,356,365,734,743,761,770,815,824,842,851,977,986,1004,1013,1058,1067,1085,1094,2192,2201,2219,2228,2273,2282,2300,2309,2435,2444,2462,2471,2516,2525
mov $35,$0
mov $37,$0
lpb $37
mov $0,$35
sub $37,1
sub $0,$37
mov $3... |
; A056084: Numbers k such that k^8 == 1 (mod 9^3).
; 1,728,730,1457,1459,2186,2188,2915,2917,3644,3646,4373,4375,5102,5104,5831,5833,6560,6562,7289,7291,8018,8020,8747,8749,9476,9478,10205,10207,10934,10936,11663,11665,12392,12394,13121,13123,13850,13852,14579,14581,15308,15310,16037,16039,16766,16768,17495,17497,18224... |
; A220753: Expansion of (1+4*x+5*x^2-x^3)/((1-x)*(1+x)*(1-2*x^2)).
; 1,4,8,11,22,25,50,53,106,109,218,221,442,445,890,893,1786,1789,3578,3581,7162,7165,14330,14333,28666,28669,57338,57341,114682,114685,229370,229373,458746,458749,917498,917501,1835002,1835005,3670010,3670013
mov $1,1
mov $2,$0
lpb $2
add $1,3
sub ... |
global _start
section .data
align 16
quad1:
dq 0x70ad80ad7fffffff
quad2:
dq 0x71ae01ff0f00ffbe
quad3:
dq 0xf100808080f0ff42
quad4:
dq 0xffffffffffffffff
mydword:
dd 0xcafebabe
myaddress:
dq 0x00adbeefc0de00ce
%include "header.inc"
movq mm0, [quad1]
movq mm1, [quad2]
movq mm2, [quad3]
movq mm3, [quad2]... |
.686p
;BT、BTS、BTR、BTC: 位测试指令
;BT(Bit Test): 位测试
;BTS(Bit Test and Set): 位测试并置位
;BTR(Bit Test and Reset): 位测试并复位
;BTC(Bit Test and Complement): 位测试并取反
;它们的结果影响 CF
DATA_BREAKPOINT EQU 1
PORT_BREAKPOINT equ 2
INSTRUCTION_BREAKPOINT EQU 3
BD_BREAKPOINT EQU 4
BS_BREAKPOINT ... |
IDEAL
ASSUME CS:SEG1,DS:SEG1,ES:SEG1,SS:SEG1
SEGMENT SEG1 PUBLIC
mov bx, OFFSET thing
mov al, 42
add dl, ch
thing:
int 21h
ENDS
END
|
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>socketpair(domain, type, protocol, fds) -> str
Invokes the syscall socketpair.
See 'man 2 socketpair' for more information.
Arguments:
domain(int): domain
type(int): type
protocol(int): prot... |
/*************************************************************************/
/* sample_library.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
;------------------------------------------------------------------------------
;
; 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... |
; A020338: Doublets: base-10 representation is the juxtaposition of two identical strings.
; 11,22,33,44,55,66,77,88,99,1010,1111,1212,1313,1414,1515,1616,1717,1818,1919,2020,2121,2222,2323,2424,2525,2626,2727,2828,2929,3030,3131,3232,3333,3434,3535,3636,3737,3838,3939,4040,4141,4242,4343,4444,4545,4646,4747,4848,4949,... |
// Free and unknown voxel data, bound to each free or unknown voxel in hash table
#ifndef free_unk_data_hh
#define free_unk_data_hh
//_//_//_//_//_//_//_//_//_//_//_//_//_//_//_//_//_//_//_//_//_//_//_//_//_//_//
struct free_unk_data
{
int hits;
free_unk_data() : hits(0),
sr_extent(1)
... |
; A267708: Triangle read by rows giving successive states of cellular automaton generated by "Rule 206" initiated with a single ON (black) cell.
; 1,1,1,0,1,1,1,0,0,1,1,1,1,0,0,0,1,1,1,1,1,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1... |
; A106826: Trajectory of 1 under the morphism 1->{2,1}, 2->{2,3}, 3->{4,3}, 4->{4,1}.
; 2,3,4,3,4,1,4,3,4,1,2,1,4,1,4,3,4,1,2,1,2,3,2,1,4,1,2,1,4,1,4,3,4,1,2,1,2,3,2,1,2,3,4,3,2,3,2,1,4,1,2,1,2,3,2,1,4,1,2,1,4,1,4,3,4,1,2,1,2,3,2,1,2,3,4,3,2,3,2,1,2,3,4,3,4,1,4,3,2,3,4,3,2,3,2,1,4,1,2,1
seq $0,88748 ; a(n) = 1 + Sum_{... |
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.16384
//
//
///
// Buffer Definitions:
//
// cbuffer cbCS
// {
//
// uint g_tex_width; // Offset: 0 Size: 4 [unused]
// uint g_num_block_x; // Offset: 4 Size: 4
// uint g_format; // O... |
; A164120: Partial sums of A162396.
; 5,7,17,21,41,49,89,105,185,217,377,441,761,889,1529,1785,3065,3577,6137,7161,12281,14329,24569,28665,49145,57337,98297,114681,196601,229369,393209,458745,786425,917497,1572857,1835001,3145721,3670009,6291449,7340025,12582905,14680057,25165817,29360121,50331641,58720249,100663289,11... |
;------------------------------------------------------------------------------ ;
; Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
;-------------------------------------------------------------------------------
%include "Nasm.inc"
DEFAULT REL
... |
;// demo2.asm
;//
;// Copyright (C)2005-2012 The NASMX Project
;//
;// Purpose:
;// This program demonstrates how to use command line
;// arguments and how to use the stack for storing values.
;//
;// Contributors:
;// Bryant Keller
;// Rob Neff
;//
%include 'nasmx.inc'
%include 'bsd/libc.inc'
ENTRY demo2... |
; A041494: Numerators of continued fraction convergents to sqrt(264).
; Submitted by Jon Maiga
; 16,65,2096,8449,272464,1098305,35418224,142771201,4604096656,18559157825,598497147056,2412547746049,77800025020624,313612647828545,10113404755534064,40767231669964801,1314664818194407696,5299426504447595585,1708963129605174... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.