text stringlengths 1 1.05M |
|---|
_rm: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
int
main(int argc, char *argv[])
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 57 push %edi
4: 56 push %esi
... |
;
;==================================================================================================
; SIO DRIVER (SERIAL PORT)
;==================================================================================================
;
; SETUP PARAMETER WORD:
; +-------+---+-------------------+ +---+---+-----------+... |
/*
* Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* 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 ... |
SECTION "sec", ROM0
X0 EQUS "0"
m: MACRO
\1 EQUS STRCAT("{X\2}", "+1")
ENDM
n = 0
REPT $7E
n1 = n + 1
m X{X:n1}, {X:n}
n = n + 1
ENDR
; string of 127 zeros separated by plus signs
X EQUS "{X7E}"
db x+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+\
X+X+X+X+X+X+X+X+X+X+X+X+X+X+X... |
; A069173: Centered 22-gonal numbers.
; 1,23,67,133,221,331,463,617,793,991,1211,1453,1717,2003,2311,2641,2993,3367,3763,4181,4621,5083,5567,6073,6601,7151,7723,8317,8933,9571,10231,10913,11617,12343,13091,13861,14653,15467,16303,17161,18041,18943,19867,20813,21781,22771,23783,24817,25873,26951,28051,29173,30317,31483,... |
; A051946: Expansion of g.f.: (1+4*x)/(1-x)^7.
; 1,11,56,196,546,1302,2772,5412,9867,17017,28028,44408,68068,101388,147288,209304,291669,399399,538384,715484,938630,1216930,1560780,1981980,2493855,3111381,3851316,4732336,5775176,7002776,8440432,10115952,12059817,14305347,16888872,19849908,23231338,27079598,31444868,363... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Geoworks 1994 -- All Rights Reserved
PROJECT: GeoDex
MODULE: Misc
FILE: miscMiddleBWBitmapPizza.asm
AUTHOR: Greg Grisco, Jun 20, 1994
REVISION HISTORY:
Name Date Description
---- ---- -----------
grisc... |
;===============================================================================
; Copyright 2014-2020 Intel Corporation
;
; 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.apa... |
#pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/Scripting/Natives/Generated/game/MuppetAbility.hpp>
namespace RED4ext
{
namespace game {
struct MuppetAbilities
{
static constexpr const char* NAME = "gameMuppetAbilities";
... |
; size_t balloc_blockcount(unsigned int queue)
SECTION code_clib
SECTION code_alloc_balloc
PUBLIC _balloc_blockcount
EXTERN asm_balloc_blockcount
_balloc_blockcount:
pop af
pop hl
push hl
push af
jp asm_balloc_blockcount
|
clc
lda {c1},y
adc {c2},x
sta {c1},y
lda {c1}+1,y
adc {c2}+1,x
sta {c1}+1,y |
section .data
msg1 : db 'debug here --',10
l1 : equ $-msg1
msg2 : db 'the common elements between two array is ',10
l2 : equ $-msg2
msg3 : db '------------------------------------------',10
l3 : equ $-msg3
msg4 : db 'enter number of elements : '
l4: equ $-msg4
msg5 : db 'enter the elements : ',10
l5: e... |
; A306921: Number of ways of breaking the binary expansion of n into consecutive blocks with no leading zeros.
; Submitted by Jon Maiga
; 1,1,2,2,3,3,4,4,4,4,6,6,6,6,8,8,5,5,8,8,9,9,12,12,8,8,12,12,12,12,16,16,6,6,10,10,12,12,16,16,12,12,18,18,18,18,24,24,10,10,16,16,18,18,24,24,16,16,24,24,24,24,32,32,7,7,12,12,15,15,... |
; A194055: Natural fractal sequence of A000071 (Fibonacci numbers minus 1; a rectangular array, by antidiagonals.
; 1,1,2,1,2,3,1,2,3,4,5,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,9,10,11,12,13,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29
add... |
LDX #$00
LDY #$00
firstloop:
TXA
STA $0200,Y
PHA
INX
INY
CPY #$10
BNE firstloop ;loop until Y is $10
secondloop:
PLA
STA $0200,Y
INY
CPY #$20 ;loop until Y is $20
BNE secondloop
|
//
// defs.h
//
// Created by Fons Kuijk on 12-12-18.
//
#ifndef cwipc_kinect_k4aconfig_hpp
#define cwipc_kinect_k4aconfig_hpp
#include <cstdint>
#include <thread>
#include <pcl/common/transforms.h>
#include <pcl/common/common_headers.h>
#include <pcl/filters/voxel_grid.h>
//
// Definitions of types used across ... |
#include "LoadingScene.h"
#include "NNSceneDirector.h"
#include "PlayScene.h"
#include "NNSprite.h"
CLoadingScene::CLoadingScene(void)
{
elapsed_time = 0.0f;
NNSprite *tmp = NNSprite::Create(L"wugargar/Loading/Loading4.jpg");
tmp->SetPosition(0,0);
AddChild(tmp);
}
CLoadingScene::~CLoading... |
#include <blitzml/base/working_set.h>
namespace BlitzML {
void WorkingSet::clear() {
size_working_set = 0;
in_working_set.assign(max_size, false);
}
void WorkingSet::set_max_size(size_t size) {
working_set.resize(size);
sorted_working_set.resize(size);
indices.resize(size);
in_working_set.resize(size);... |
; A299337: Expansion of 1 / ((1 - x)^7*(1 + x)^5).
; 1,2,8,14,35,56,112,168,294,420,672,924,1386,1848,2640,3432,4719,6006,8008,10010,13013,16016,20384,24752,30940,37128,45696,54264,65892,77520,93024,108528,128877,149226,175560,201894,235543,269192,311696,354200,407330,460460,526240,592020,672750,753480,851760,950040,10... |
;Read a row of an ILBM RLE-compressed picture into memory
;D1=Y
;D2=Width
;D3=Depth
;A0=Data
;A2=DestList
;Returns A0=End of compressed data used. This can be used in the next
; call to this procedure (with Y incremented by one).
ReadILBM:
movem.l d0-d5/a1-a2,-(a7)
add.w #15,d2 ;Make sure it's word-aligned
lsr.w... |
#include "lm/builder/adjust_counts.hh"
#include "lm/builder/ngram_stream.hh"
#include "util/stream/timer.hh"
#include <algorithm>
#include <iostream>
namespace lm { namespace builder {
BadDiscountException::BadDiscountException() throw() {}
BadDiscountException::~BadDiscountException() throw() {}
namespace {
// Ret... |
TITLE ../openssl/crypto/bn/asm/bn-586.asm
IF @Version LT 800
ECHO MASM version 8.00 or later is strongly recommended.
ENDIF
.686
.XMM
IF @Version LT 800
XMMWORD STRUCT 16
DQ 2 dup (?)
XMMWORD ENDS
ENDIF
.MODEL FLAT
OPTION DOTNAME
IF @Version LT 800
.text$ SEGMENT PAGE 'CODE'
ELSE
.text$ SEGMENT ALIGN(64) 'CODE'
ENDIF
... |
.text
li $t0, 0x7FFFFFFF
addi $t0, $t0, 2
mfc0 $a0, $13
srl $a0, $a0, 2
andi $a0, $a0, 31 |
; int isupper(int c)
SECTION code_clib
SECTION code_ctype
PUBLIC isupper
EXTERN asm_isupper, error_zc
isupper:
inc h
dec h
jp nz, error_zc
ld a,l
call asm_isupper
ld l,h
ret c
inc l
ret
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _isupper
defc _isupper = isupper
ENDIF
|
; A006357: Number of distributive lattices; also number of paths with n turns when light is reflected from 4 glass plates.
; 1,4,10,30,85,246,707,2037,5864,16886,48620,139997,403104,1160693,3342081,9623140,27708726,79784098,229729153,661478734,1904652103,5484227157,15791202736,45468956106,130922641160,376976720745,1085... |
.data
HelloWorld:
.asciz "Hello World!\n"
HelloFunction:
.asciz "Hello Function!\n"
.text
.globl _start
.type MyFunction, @function
MyFunction: # String pointer and len to be added by caller
movl $4, %eax
movl $1, %ebx
int $0x80
ret
_start :
nop
# Print the Hello World String
... |
db 0 ; species ID placeholder
db 44, 75, 35, 45, 63, 33
; hp atk def spd sat sdf
db GHOST, GHOST ; type
db 225 ; catch rate
db 97 ; base exp
db NO_ITEM, SPELL_TAG ; items
db GENDER_F50 ; gender ratio
db 100 ; unknown 1
db 25 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/shuppet/... |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@ Loaded to address 0x3bba
0x0000 (0x000000) 0x1018- f:00010 d: 24 | A = 24 (0x0018)
0x0001 (0x000002) 0x2928- f:00024 d: 296 | OR[296] = A
0x0002 (0x000004) 0x1014- f:00010 d: 20 | A = 20 (0x0014)
0x0003 (... |
; Object Mappings Subtype Frame Arttile
dbglistobj Obj_Ring, Map_Ring, 0, 0, make_art_tile(ArtTile_Ring,1,1)
dbglistobj Obj_Monitor, Map_Monitor, 6, 0, make_art_tile(ArtTile_Monitors,0,0)
dbglistobj Obj_PathSwap, Map_PathSwap, 9, 1, make_art_tile(ArtTile_Ring,1,0)
dbglist... |
/*
* Copyright (c) 2017, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publi... |
// Copyright (c) 2016 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 <versionbits.h>
#include <consensus/params.h>
const struct VBDeploymentInfo VersionBitsDeploymentInfo[Consensus::MAX_VER... |
//// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
//// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
//// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
//// PARTICULAR PURPOSE.
////
//// Copyright (c) Microsoft Corporation. All rights reserved
#include "pch.... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r15
push %r8
push %rax
push %rbp
push %rbx
push %rdi
// Store
lea addresses_WT+0xf435, %rbx
clflush (%rbx)
dec %r8
mov $0x5152535455565758, %rdi
movq %rdi, %xmm5
movups %xmm5, (%rbx)
nop
sub %rax, %rax
// Store
... |
; A195321: a(n) = 18*n^2.
; 0,18,72,162,288,450,648,882,1152,1458,1800,2178,2592,3042,3528,4050,4608,5202,5832,6498,7200,7938,8712,9522,10368,11250,12168,13122,14112,15138,16200,17298,18432,19602,20808,22050,23328,24642,25992,27378,28800,30258,31752,33282,34848,36450,38088,39762,41472,43218,45000,46818,48672,50562,5248... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %r14
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x162b3, %rbx
cmp $44234, %rsi
mov (%rbx), %r10
nop
nop
add $26371, %rbx
lea addresses_WT_ht+0x1da01, %rsi
lea addresses_D_ht+0xc001, %rdi
sub %r13, %r13
mov $61, %rcx
rep mov... |
// Copyright (c) 2017-present, Qihoo, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
#include "src/redis_st... |
; A008734: Molien series for 3-dimensional group [2+,n ] = 2*(n/2).
; 1,0,2,0,3,1,4,2,6,3,8,4,10,6,12,8,15,10,18,12,21,15,24,18,28,21,32,24,36,28,40,32,45,36,50,40,55,45,60,50,66,55,72,60,78,66,84,72,91,78,98,84,105,91,112,98,120,105,128,112,136,120,144,128,153,136,162,144,171,153,180,162,190,171,200,180,210,190,220,20... |
// Copyright 2019 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... |
; A193399: Wiener index of a benzenoid consisting of a chain of n hexagons characterized by the encoding s = 1133 (see the Gutman et al. reference, Sec. 5).
; Submitted by Jamie Morken(s3)
; 27,109,271,545,931,1493,2199,3145,4267,5693,7327,9329,11571,14245,17191,20633,24379,28685,33327,38593,44227,50549,57271,64745,726... |
#include <stdio.h>
#include <string.h>
const int N = 100005;
struct state {
int r;
int c;
int h;
}tmp[N];
int n, dp[N];
void build(int k) {
int a, b, c;
scanf("%d%d%d", &a, &b, &c);
k *= 3;
tmp[k].r = a, tmp[k].c = b, tmp[k++].h = c;
tmp[k].r = b, tmp[k].c = c, tmp[k++].h = a;
tmp[... |
class Solution {
public:
int findJudge(int N, vector<vector<int>>& trust) {
vector<int> idegree(N, 0), odegree(N, 0);
for(auto a: trust){
int i = a[0] - 1, j = a[1] - 1;
++odegree[i];
++idegree[j];
}
for(int i = 0; i < N; ++i){
if (ideg... |
// Copyright 2011 Google Inc. All Rights Reserved.
// Author: rays@google.com (Ray Smith)
///////////////////////////////////////////////////////////////////////
// File: intfeaturedist.cpp
// Description: Fast set-difference-based feature distance calculator.
//
// Licensed under the Apache License, Version 2.0... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1993 -- All Rights Reserved
PROJECT:
MODULE:
FILE: gfsInitExit.asm
AUTHOR: Adam de Boor, Apr 13, 1993
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Descrip... |
;vc_crt_fix.asm
;Workaround for Visual C++ CRT incompatibility with old Windows versions
;Copyright © 2010 Far Group
;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 c... |
// w32clock.cpp : Defines the entry point for the application.
//
#include "stdafx.h"
#include "win32clock.h"
#include "commctrl.h"
#include "uxtheme.h"
#define MAX_LOADSTRING 100
// Global Variables:
HINSTANCE hInst; // current instance
TCHAR szTitle[MAX_LOADSTRING]; ... |
.model small
.data
.code
main proc
label: ; here we create a code block, which will go through moving the hex value for 5 into the dl register
mov dl, 53
mov ah, 02h ; here we specify the interrupt for printing a character to the screen
int 21h ... |
; ATARI determine processor / hardware type 1993 Tony Tebby
section init
xdef at_prtype
xref gu_exvt
xref gu_rbuse
include 'dev8_keys_atari'
include 'dev8_keys_atari_rtc'
include 'dev8_keys_atari_blit'
include 'dev8_keys_68000'
include 'dev8_keys_sys'
include 'dev8_mac_creg'
;+++
; Determines the va... |
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#inc... |
; $Id: ASMAtomicUoReadU64.asm 69111 2017-10-17 14:26:02Z vboxsync $
;; @file
; IPRT - ASMAtomicUoReadU64().
;
;
; Copyright (C) 2006-2017 Oracle Corporation
;
; This file is part of VirtualBox Open Source Edition (OSE), as
; available from http://www.virtualbox.org. This file is free software;
; you can redistribute i... |
; A076311: a(n) = floor(n/10) - 5*(n mod 10).
; 0,-5,-10,-15,-20,-25,-30,-35,-40,-45,1,-4,-9,-14,-19,-24,-29,-34,-39,-44,2,-3,-8,-13,-18,-23,-28,-33,-38,-43,3,-2,-7,-12,-17,-22,-27,-32,-37,-42,4,-1,-6,-11,-16,-21,-26,-31,-36,-41,5,0,-5,-10,-15,-20,-25,-30,-35,-40,6,1,-4,-9,-14,-19,-24,-29,-34,-39,7,2,-3,-8,-13,-18,-23,... |
include pe64.inc
.code
public ExportShellcode
ExportShellcode:
mov dword ptr[rcx], shellcode_end - shellcode
mov rax, offset shellcode
ret
shellcode: ;int 3
... |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2009 University of Washington
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This pro... |
;
; jcgryext.asm - grayscale colorspace conversion (SSE2)
;
; Copyright (C) 2011, 2016, D. R. Commander.
;
; Based on the x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYASAKA Masaru.
; For conditions of distribution and use, see copyright notice in jsimdext.inc
;
; This file should be assembled w... |
_mkdir: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
int
main(int argc, char *argv[])
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: ff 71 fc pushl -0x4(%ecx)
a: 55 ... |
#ifndef RADIUMENGINE_EVENTENUMS_HPP
#define RADIUMENGINE_EVENTENUMS_HPP
#include <Core/RaCore.hpp>
namespace Ra {
namespace Core {
namespace Modifier {
enum Modifier { RA_EMPTY = 0x1, RA_CTRL_KEY = 0x2, RA_SHIFT_KEY = 0x4, RA_ALT_KEY = 0x8 };
} // namespace Modifier
namespace KeyEventType {
enum KeyEventType { RA_K... |
MAIN: jsr $af87 ; calls BASIC RND subroutine, which puts random bits in bytes $0D..$10 of zero page
jsr COUNT
lda $0d
ldy $0e
jsr LOOKUP ; on returning from the LOOKUP subroutine, X is zero
lda ($70,X) ; A is the old state of the cell
dex ; X is the mask for the new value we'll store in the cell. It's now 0x... |
; A200562: Expansion of 1 / ((1 - 2*x) * (1 + 3*x + 4*x^2)) in powers of x.
; Submitted by Christian Krause
; 1,-1,3,3,-5,35,-21,51,187,-253,1035,-45,91,8099,-8277,25203,23035,-38845,286539,-179949,442267,1490147,-2045205,8563635,-732869,1498499,65544843,-68410797,211488475,176048675,-300358101,2344363251,-1536690053,3... |
.code
set R2, 0xFFFFFFC4
loop:
ldw R3, R2, 0
stw R3, R2, 0
bt loop
set R4, 0xFFFF
stw R4, R2, 0
|
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
... |
//
// This source file is part of appleseed.
// Visit https://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2010-2013 Francois Beaune, Jupiter Jazz Limited
// Copyright (c) 2014-2018 Francois Beaune, The appleseedhq Organization
//... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r8
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x18eef, %rsi
lea addresses_UC_ht+0xae7f, %rdi
nop
nop
and $45235, %rbx
mov $62, %rcx
rep movsl
add $13233, %r13
lea addresses_D_ht+0x14243, %rax
nop
add %r8, %r8
mov (%rax), %rbx
nop
nop... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r8
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x602f, %r8
nop
nop
nop
and $47795, %rbp
mov (%r8), %r13w
sub $15502, %r10
lea addresses_WT_ht+0xc1df, %rbp
nop
sub %rdx, %rdx
movl $0x61626364, (%rbp)
xor $32809, %rbp
lea add... |
BITS 32
mov eax, [esp]
add eax, 0x4D
jmp eax
|
LOAD 0F0F
STORE B
LOAD 0064
STORE C
LOAD 0F0F
STORE [C]
LOAD 0F0F
STORE [0384]
LOAD FF00
XOR 0F0F
LOAD FF00
XOR B
LOAD FF00
XOR [C]
LOAD FF00
XOR [0384]
HALT |
; A160272: Angle between the two hands of a 12 hour analog clock n*12 minutes after noon/midnight, measured in units of minutes.
; 0,11,22,27,16,5,6,17,28,21,10,1,12,23,26,15,4,7,18,29,20,9,2,13,24,25,14,3,8,19,30,19,8,3,14,25,24,13,2,9,20,29,18,7,4,15,26,23,12,1,10,21,28,17,6,5,16,27,22,11
mov $1,2
mul $1,$0
mul $1,4... |
; A021307: Decimal expansion of 1/303.
; 0,0,3,3,0,0,3,3,0,0,3,3,0,0,3,3,0,0,3,3,0,0,3,3,0,0,3,3,0,0,3,3,0,0,3,3,0,0,3,3,0,0,3,3,0,0,3,3,0,0,3,3,0,0,3,3,0,0,3,3,0,0,3,3,0,0,3,3,0,0,3,3,0,0,3,3,0,0,3,3,0,0,3,3,0,0,3,3,0,0,3,3,0,0,3,3,0,0,3
div $0,2
mod $0,2
mul $0,3
|
/****************************************************************************
*
* Copyright (c) 2012-2017 PX4 Development Team. 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. Red... |
#include <iostream>
#define NUM 10
int main() {
for (int i = 0; i < NUM; ++i) {
static bool flag = true;
if (flag) {
std::cout << "OK" << std::endl;
}
flag = false;
}
return 0;
}
|
; A190960: a(n) = 3*a(n-1) - 6*a(n-2), with a(0)=0, a(1)=1.
; 0,1,3,3,-9,-45,-81,27,567,1539,1215,-5589,-24057,-38637,28431,317115,780759,439587,-3365793,-12734901,-18009945,22379571,175198383,391317723,122762871,-1979617725,-6675430401,-8148584853,15606827847,95711992659,193495010895,6213076731,-1142330835177,-3464270... |
COMMENT }%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1988 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: VGALike video drivers
FILE: vgacomPointer.asm
AUTHOR: Jim DeFrisco
ROUTINES:
Name Description
---- -----------
GBL VidHidePtr Erase th... |
; macro.asm
SECTION "Code",CODE
Function: MACRO ;funcname
XDEF \1
\1:
ENDM
Function Start
|
#include "SaveState.h"
#include "SystemData.h"
#include "FileData.h"
#include "utils/StringUtil.h"
#include "ApiSystem.h"
#include "FileData.h"
#include "SaveStateRepository.h"
#include "SystemConf.h"
#define incrementalSaveStates (SystemConf::getInstance()->get("global.incrementalsavestates") != "0")
std::string Sav... |
; A349394: a(p^e) = p^(e-1) for prime powers, a(n) = 0 for all other n; Dirichlet convolution of A003415 (arithmetic derivative of n) with A055615 (Dirichlet inverse of n).
; Submitted by Christian Krause
; 0,1,1,2,1,0,1,4,3,0,1,0,1,0,0,8,1,0,1,0,0,0,1,0,5,0,9,0,1,0,1,16,0,0,0,0,1,0,0,0,1,0,1,0,0,0,1,0,7,0,0,0,1,0,0,0,... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 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 "pow.h"
#include "arith_uint256.h"
#include "chain.h"
#include "primiti... |
/*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include "ShapedWeights.hpp"
#include "ShapeTensor.hpp"
#include "Status.hpp"
#include "trt_utils.hpp"
#include <NvInfer.h>
#include <onnx/onnx_pb.h>
#include <cstring> // For std::memcpy
#include <iostream>
#include <numeric>
#include <sstream>
#include <l... |
#define NDEBUG
#include <bits/stdc++.h>
#include "poly.h"
#define cout cerr
using namespace std;
typedef long long lint;
namespace GROOT{
const char fin [] = "poly.in";
const char fout[] = "poly.out";
const int maxN = 100000 + 7;
static int mod = 998244353, g = 3;
inline static int Pow(int a, long long b)
{
... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 16.00.40219.01
TITLE D:\Projects\TaintAnalysis\AntiTaint\Epilog\src\func-iparam.c
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB MSVCRT
INCLUDELIB OLDNAMES
PUBLIC ??_C@_0N@FGAKPGKN@?$CFd?5?$CFd?5?$CFd?5?$CFs?6?$AA@ ; `string'
P... |
/* Copyright 2015 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... |
/*
* Copyright 2014-2020 Real Logic Limited.
*
* 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 ... |
;;
;; Copyright (c) 2012-2022, 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... |
/*
* 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 <EMotionFX/Source/PhysicsSetup.h>
#include <EMotionFX/Source/Actor.h>
#include "PhysicsSet... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r8
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x1414b, %rsi
lea addresses_UC_ht+0x5dab, %rdi
nop
nop
nop
add $6100, %r11
mov $8, %rcx
rep movsq
dec %rbx
lea addresses_A_ht+0x12b4b, %r8
nop
nop
nop
nop
nop
add $18560, %rcx
m... |
#
# Write a program that inputs two positive integer values N and D,
# finds their quatient (Q = N // D) and remainder (R = N % D) using the algorithm below[], print the result.
#
.include "macros.s"
.eqv N t0
.eqv D t1
.eqv Q t2
.eqv R t3
.macro int_input_pair(%N,%D)
print_str("Please, input integers N ... |
%ifdef CONFIG
{
"RegData": {
"RAX": "0xFFFFFFFFFFFFFFFF",
"RBX": "64",
"RCX": "0x00000000000003FF",
"RDX": "10",
"RSI": "0x00000000FFFFFFFF",
"RDI": "32",
"RBP": "0x00000000000003FF",
"RSP": "10"
}
}
%endif
; Should not alter the source value
mov rax, -1
mov rbx, 64
... |
; A330118: Beatty sequence for 1+x+x^2, where 1/(1+x) + 1/(1+x+x^2) = 1.
; 2,4,6,9,11,13,16,18,20,23,25,27,30,32,34,37,39,41,44,46,48,51,53,55,58,60,62,65,67,69,72,74,76,79,81,83,86,88,90,92,95,97,99,102,104,106,109,111,113,116,118,120,123,125,127,130,132,134,137,139,141
add $0,1
mul $0,86
div $0,37
|
; A047293: Numbers that are congruent to {0, 2, 4, 6} mod 7.
; 0,2,4,6,7,9,11,13,14,16,18,20,21,23,25,27,28,30,32,34,35,37,39,41,42,44,46,48,49,51,53,55,56,58,60,62,63,65,67,69,70,72,74,76,77,79,81,83,84,86,88,90,91,93,95,97,98,100,102,104,105,107,109,111,112,114,116,118,119,121,123,125,126,128,130,132,133,135,137,139,... |
global _get_file_list
_get_file_list:
push bp
mov bp, sp
sub sp, 2
mov [bp-2], bx
mov ax, word [bp+4]
call os_get_file_list
mov bx, ax
cmp byte [bx], 0
je .error
mov word [_ioerr], 0
jmp .skip
.error:
mov word [_ioerr], 1
.skip:
mov bx, word [bp-2]
mov sp... |
global long_start
section .text
bits 64
long_start:
; load 0 into all data segment registers
mov ax, 0
mov ss, ax
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
extern rust_main
call rust_main
; print `OKAY` to screen
mov rax, 0x02590241024b024f
mov qword [0xb8000], rax
hlt |
/// Thanks to F#READY for help in preparing this example
/// After loading, hit 'start', then wait two seconds and hit 'select'. Colors should appear.
.import * from "atari800.asm"
xex_load_header()
///////////////////... |
INCLUDE "hardware.inc"
; RST vectors
section "rst $10", rom0 [$10]
section "rst $18", rom0 [$18]
section "rst $20", rom0 [$20]
section "rst $28", rom0 [$28]
section "rst $30", rom0 [$30]
section "rst $38", rom0 [$38]
; Interrupts
SECTION "Vblank", rom0[$0040]
jp VBlank_isr
SECTION "LCDC", rom0[$0048]
reti
SECTIO... |
_ps: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "user.h"
#include "uproc.h"
//#include "syscall.h"
#define SIZE 72
int main(int argc, char* argv[]){
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: ff 71 fc ... |
// Copyright (c) 2018-2020, Zhirnov Andrey. For more information see 'LICENSE'
#ifdef FG_ENABLE_VULKAN
# include "framework/VR/VRDeviceEmulator.h"
namespace FGC
{
namespace {
template <typename T>
static constexpr T Pi = T( 3.14159265358979323846 );
/*
=================================================
Rotate*... |
/*===================== begin_copyright_notice ==================================
Copyright (c) 2017 Intel Corporation
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, includi... |
; A336247: a(n) = (n!)^n * Sum_{k=0..n} 1 / (k!)^n.
; Submitted by Jon Maiga
; 1,2,9,460,684545,50547203126,280807908057046657,165858480204085842350156792,13997217669604247492958380810030809089,218434494471443385260764665498960241287478619115850,792268399795067334328715213043856435592857850955707257780000000001,8200661... |
lda #0
sta {m1}+1
lda {c1}+1,y
sta {m1} |
/**
* \file dnn/src/cuda/batch_normalization/opr_impl.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distribut... |
; A023416: Number of 0's in binary expansion of n.
; 1,0,1,0,2,1,1,0,3,2,2,1,2,1,1,0,4,3,3,2,3,2,2,1,3,2,2,1,2,1,1,0,5,4,4,3,4,3,3,2,4,3,3,2,3,2,2,1,4,3,3,2,3,2,2,1,3,2,2,1,2,1,1,0,6,5,5,4,5,4,4,3,5,4,4,3,4,3,3,2,5,4,4,3,4,3,3,2,4,3,3,2,3,2,2,1,5,4,4,3,4,3,3,2,4,3,3,2,3,2,2,1,4,3,3,2,3,2,2,1,3,2,2,1,2,1,1,0,7,6,6,5,6,5... |
; A292346: The forgotten topological index of the Aztec diamond AZ(n) (see the Ramanes et al. reference, Theorem 2.1).
; 204,748,1548,2604,3916,5484,7308,9388,11724,14316,17164,20268,23628,27244,31116,35244,39628,44268,49164,54316,59724,65388,71308,77484,83916,90604,97548,104748,112204,119916,127884,136108,144588,15332... |
; A183264: Number of singly defective permutations of 1..n with exactly 1 maximum.
; 0,2,15,64,220,672,1904,5120,13248,33280,81664,196608,465920,1089536,2519040,5767168,13090816,29491200,65994752,146800640,324796416,715128832,1567621120,3422552064,7444889600,16139681792,34879832064,75161927680,161531035648,346281738240... |
; A061981: a(n) = 3^n - 2n - 1.
; 0,0,4,20,72,232,716,2172,6544,19664,59028,177124,531416,1594296,4782940,14348876,43046688,129140128,387420452,1162261428,3486784360,10460353160,31381059564,94143178780,282429536432,847288609392,2541865828276,7625597484932,22876792454904,68630377364824,205891132094588,617673396283884,18... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.