text stringlengths 1 1.05M |
|---|
// Typedef pointer to const/volatile type and instantiate it
// Commodore 64 PRG executable file
.file [name="typedef-6.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"]
.segment B... |
.ORIG x3900
; char UserInput(void);
; Inputs: None
; Outputs: 0 if user inputs 'a'
; Outputs: 1 if user inputs 'w'
; Outputs: 2 if user inputs 'd'
; Outputs: 3 if user inputs 's'
; Else wait for valid input
UserInput
;Push R7, R6
STR R7, R6, #0
STR R1, R6, #-1
ADD R6, R6, #-2
GET_CHAR
GETC
NOT R0, R0
... |
<%
from pwnlib.shellcraft import common
from pwnlib.shellcraft import arm
%>
<%page args="N"/>
<%docstring>
Divides r0 by 10. Result is stored in r0, N and Z flags are updated.
Code is from generated from here:
https://raw.githubusercontent.com/rofirrim/raspberry-pi-assembler/master/chapter15/magic.py
With c... |
; Add modules to distribution file for QDOS job
;
; This requires the main routine of the job to have
;
; strict section ordering
; base the QDOS "special job" header
; special empty for the special job code here
; main the main part of the program
; (the boot_concat routine is in main)
;
; the data declar... |
; A090326: Number of rules of a context-free grammar in Chomsky normal form that generates all permutations of n symbols.
; 1,4,15,54,185,608,1939,6058,18669,57012,173063,523262,1577953,4750216,14283387,42915666,128878037,386896220,1161212911,3484687270,10456158921,31372671024,94126401635,282395982074,847221500605,2541... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r14
push %r15
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0xcfb2, %r15
sub %rbx, %rbx
movw $0x6162, (%r15)
nop
nop
xor %rbx, %rbx
lea addresses_WC_ht+0x100f4, %rsi
lea addresses_D_ht+0x8ef2, %rdi
nop
nop
nop
cmp %r14, %r14
mov $68, %r... |
;/*
; * Microsoft Confidential
; * Copyright (C) Microsoft Corporation 1991
; * All Rights Reserved.
; */
?WIN = 0 ;Not windows;
?PLM = 1 ;DO use PL/M calling conventions
include cmacros.inc
; Following are C-fns that use CW to put up/t... |
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance w... |
; A065361: Rebase n from 3 to 2. Replace 3^k with 2^k in ternary expansion of n.
; 0,1,2,2,3,4,4,5,6,4,5,6,6,7,8,8,9,10,8,9,10,10,11,12,12,13,14,8,9,10,10,11,12,12,13,14,12,13,14,14,15,16,16,17,18,16,17,18,18,19,20,20,21,22,16,17,18,18,19,20,20,21,22,20,21,22,22,23,24,24,25,26,24,25,26,26,27,28,28,29,30,16,17,18,18,19,... |
#include "miningpage.h"
#include "ui_miningpage.h"
MiningPage::MiningPage(QWidget *parent) :
QWidget(parent),
ui(new Ui::MiningPage)
{
ui->setupUi(this);
setFixedSize(400, 420);
minerActive = false;
minerProcess = new QProcess(this);
minerProcess->setProcessChannelMode(QProcess::MergedCh... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; zx spectrum ram model ;;
;; generated by target/zx/startup/zx_crt_ram.m4 ;;
;; ;;
;; 48k memory model (flat 64k address space) ;;... |
////////////////////////////////////////////////////////////
//
// SFML - Simple and Fast Multimedia Library
// Copyright (C) 2007-2014 Laurent Gomila (laurent.gom@gmail.com)
//
// This software is provided 'as-is', without any express or implied warranty.
// In no event will the authors be held liable for any da... |
// Copyright 2017 The Fuchsia 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 <fs/service.h>
#include <utility>
#include <zircon/device/vfs.h>
namespace fs {
Service::Service(Connector connector) : connector_(std::move(c... |
Music_VermilionCity:
musicheader 3, 1, Music_VermilionCity_Ch1
musicheader 1, 2, Music_VermilionCity_Ch2
musicheader 1, 3, Music_VermilionCity_Ch3
db $3
Music_VermilionCity_Ch1:
stereopanning $f
tempo 176
volume $77
dutycycle $2
notetype $c, $65
octave 4
note B_, 4
note G#, 4
note F#, 4
note E_, 4
note... |
;==================================================================================================
; Settings and tables which the front-end may write
;==================================================================================================
; This is used to determine if and how the cosmetics can be patched... |
#include <bits/stdc++.h>
#define CYC(i, a, b) for(int i=a; i<b; i++)
#define CYCI(i, a, b) for(auto i=a; i!=b; ++i)
using namespace std;
typedef vector<int> vi;
typedef vector<bool> vb;
typedef vector<long long> vll;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<long, long> pll;
int main(){
ios_... |
; A051612: a(n) = sigma(n) - phi(n).
; 0,2,2,5,2,10,2,11,7,14,2,24,2,18,16,23,2,33,2,34,20,26,2,52,11,30,22,44,2,64,2,47,28,38,24,79,2,42,32,74,2,84,2,64,54,50,2,108,15,73,40,74,2,102,32,96,44,62,2,152,2,66,68,95,36,124,2,94,52,120,2,171,2,78,84,104,36,144,2,154,67,86,2,200,44,90,64,140,2,210,40,124,68,98,48,220,2,129,... |
_zombie: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
int
main(void)
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 e4 f0 and $0xfffffff0,%esp
6: 83 ec 10 sub $0x10,%... |
; A068096: a(n) = F(L(n)) where F(n) = n-th Fibonacci number and L(n) = n-th Lucas number.
; 1,1,2,3,13,89,2584,514229,2971215073,3416454622906707,22698374052006863956975682
seq $0,32 ; Lucas numbers beginning at 2: L(n) = L(n-1) + L(n-2), L(0) = 2, L(1) = 1.
seq $0,45 ; Fibonacci numbers: F(n) = F(n-1) + F(n-2) with ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x16adc, %rax
and $3483, %r12
movl $0x61626364, (%rax)
xor $36673, %r9
lea addresses_WT_ht+0xf69c, %rsi
lea addresses_WC_ht+0x1c76c, %rdi
nop
nop
add $59691, %r12
mov $95, %rcx
... |
; sp1_ValUpdateStruct
; 03.2006 aralbrec, Sprite Pack v3.0
; sinclair spectrum version
SECTION code_clib
SECTION code_temp_sp1
PUBLIC asm_sp1_ValUpdateStruct
; FASTCALL
; Validate struct_sp1_update so that it is not drawn in
; the next update. You must make sure that this tile is
; not invalidated by any call bef... |
; A044543: Numbers n such that string 3,3 occurs in the base 7 representation of n but not of n+1.
; 24,73,122,174,220,269,318,367,416,465,517,563,612,661,710,759,808,860,906,955,1004,1053,1102,1151,1224,1249,1298,1347,1396,1445,1494,1546,1592,1641,1690,1739,1788,1837,1889,1935,1984
mov $3,$0
mul $0,6
add $0,3
mov $1,... |
; A332408: a(n) = Sum_{k=0..n} binomial(n,k) * k! * k^n.
; Submitted by Jon Maiga
; 1,1,10,213,8284,513105,46406286,5772636373,945492503320,197253667623681,51069324556151290,16067283861476491941,6037615013420387657844,2670812587802323522405393,1373842484756310928089102022,813119045938378747809030359445
mov $4,$0
add $... |
; Phantasy Star Gaiden tile decompressor
; To use:
;
; .define PSGDecoderBuffer $c000 ; define a 34 byte work area for it
; .include "Phantasy Star Gaiden decompressor.inc" ; include this file
; ld ix, <address of compressed data>
; ld hl, <VRAM address to write to, ORed with $4000>
; call PSG_decompr... |
/**************************************************************************
**
** Copyright (c) 2013 David Dibben
**
** 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 restricti... |
; A094869: E.g.f.: exp(5x)/(1-5x)^(1/5).
; Submitted by Christian Krause
; 1,6,41,356,4401,78826,1893481,56341416,1978638881,79749105326,3622010623401,182895318578956,10160561511881041,615728464210461906,40414538467581457001,2855999961062529064976,216180544920721807887681
mov $1,1
mov $2,1
lpb $0
sub $0,1
add $1,$... |
; A052995: Expansion of 2*x*(1 - x)/(1 - 3*x + x^2).
; 0,2,4,10,26,68,178,466,1220,3194,8362,21892,57314,150050,392836,1028458,2692538,7049156,18454930,48315634,126491972,331160282,866988874,2269806340,5942430146,15557484098,40730022148,106632582346,279167724890,730870592324,1913444052082,5009461563922,13114940639684,3... |
SECTION code_clib
SECTION code_l_sdcc
PUBLIC ___sdcc_enter_ix
___sdcc_enter_ix:
IF __SDCC_IX
ex (sp),ix
push ix
ld ix,2
add ix,sp
ret
ELSE
ex (sp),iy
push iy
ld iy,2
add iy,sp
ret
ENDIF
|
/*
!@
MIT License
Copyright (c) 2020 Skylicht Technology CO., LTD
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... |
#include <Implementation.h>
#include <any>
#include <memory>
namespace dpa::internal
{
std::shared_ptr<std::any> Implementation::impl()
{
if (!m_pImpl)
m_pImpl = createImpl();
return m_pImpl;
}
}
|
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
c0
.text@150
lbegin:
ld a, 00
ldff(ff), a
ld a, 30
ldff(00), a
ld a, 01
ldff(4d), a
stop, 00
ld a, ff
ldff(45), a
ld b, 91
call lwaitly_b
ld hl, fe00
ld d, 10
ld a, d
ld(hl++), a
ld a, 08
ld(hl++), a
inc l
inc l
ld a, d
ld(hl++), ... |
; float atanh(float x)
SECTION code_fp_math48
PUBLIC cm48_sdcciy_atanh
EXTERN cm48_sdcciy_atanh_fastcall
cm48_sdcciy_atanh:
pop af
pop hl
pop de
push de
push hl
push af
jp cm48_sdcciy_atanh_fastcall
|
;/** @file
;
; IDT vector entry.
;
; Copyright (c) 2007 - 2016, 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. The full text of the license may be... |
; A324352: Total number of occurrences of 2 in the (signed) displacement sets of all permutations of [n+2] divided by 2!.
; Submitted by Jamie Morken(w2)
; 0,1,5,28,179,1306,10757,98932,1006007,11214406,136041329,1784556808,25174694723,380087428618,6115760751869,104481070398556,1888837397941487,36026457717419662,723015... |
audio_header: MACRO
db (_NARG - 2) << 6 | \2
dw \1_\2
IF _NARG > 2
db \3
dw \1_\3
ENDC
IF _NARG > 3
db \4
dw \1_\4
ENDC
IF _NARG > 4
db \5
dw \1_\5
ENDC
ENDM
const_def $10
; arguments: length [0, 7], pitch change [-7, 7]
; length: length of time between pitch shifts
; sometimes used with ... |
; A056106: Second spoke of a hexagonal spiral.
; 1,3,11,25,45,71,103,141,185,235,291,353,421,495,575,661,753,851,955,1065,1181,1303,1431,1565,1705,1851,2003,2161,2325,2495,2671,2853,3041,3235,3435,3641,3853,4071,4295,4525,4761,5003,5251,5505,5765,6031,6303,6581,6865,7155,7451,7753,8061,8375,8695,9021,9353,9691,10035,10... |
.text
win:
addi sp, sp , -12
sw s0, 0(sp)
sw t0, 4(sp)
sw t1, 8(sp)
la a1, bmp_win # pointer to string of filename; necessary for load_bmp
jal load_bmp # loads the win bitmap
li s0, KEYBOARD_ADDRESS
win.loop: # endless loop for key stroke detection
lw t0, (s0) # bool key_pressed
beq t0, zero, win.end # if (key... |
.data
.text
addi $s0, $zero, 4 #s0 = 2;
sll $t0, $s0, 2 #t0 = s0 * 2^n, n = 2: t0 = 4 * 4 = 16;
#Print results
li $v0, 1 #set print type to integer
add $a0, $zero, $t0 #set t0 to the print buffer
syscall #Do It! |
SECTION .text
GLOBAL square_p256
square_p256:
sub rsp, 0x60 ; last 0x30 (6) for Caller - save regs
mov [ rsp + 0x30 ], rbx; saving to stack
mov [ rsp + 0x38 ], rbp; saving to stack
mov [ rsp + 0x40 ], r12; saving to stack
mov [ rsp + 0x48 ], r13; saving to stack
mov [ rsp + 0x50 ], r14; saving to stack
mov [ rsp + 0x... |
pepper_ai_attack_selector:
.(
; Do not try to attack in incapacited states, it would ruin ai reactivity after such states
lda player_b_state
cmp #PEPPER_STATE_CRASHING
beq end
cmp #PEPPER_STATE_HYPERSPEED_CRASHING
beq end
jmp ai_attack_selector
; No return, jump to subroutine
end:
rts
.)
pepper_ai_recover_... |
// Copyright 2018 The Abseil Authors.
//
// 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 agr... |
; A183154: T(n,k) is the number of order-preserving partial isometries (of an n-chain) of fixed k (fix of alpha is the number of fixed points of alpha)
; Submitted by Christian Krause
; 1,1,1,3,2,1,9,3,3,1,23,4,6,4,1,53,5,10,10,5,1,115,6,15,20,15,6,1,241,7,21,35,35,21,7,1,495,8,28,56,70,56,28,8,1,1005,9,36,84,126,126,8... |
; Platform specific colour transformation
;
; Entry: a = colour
; Exit: a = colour to use on screen
; Used: hl,bc,f
;
SECTION code_clib
PUBLIC conio_map_colour
EXTERN __CLIB_CONIO_NATIVE_COLOUR
conio_map_colour:
ld c,__CLIB_CONIO_NATIVE_COLOUR
rr c
ret c
and 15
ld c,a
l... |
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trad... |
* 32-bit integer arithmetic v0.01 Mar 1988 J.R.Oakley QJUMP
*
section cv
*
include 'dev8_keys_68000'
*
xdef cv_uldiv
xdef cv_sldiv
xdef cv_ulmul
xdef cv_slmul
*+++
* Divide a 32-bit signed dividend by a 32-bit signed divisor, giving
* similar quotient and remainder. The rules are that the remainder has
* t... |
; Copyright (C) 2014 Renesas Electronics Corporation
; RENESAS ELECTRONICS CONFIDENTIAL AND PROPRIETARY.
; This program must be used solely for the purpose for which
; it was furnished by Renesas Electronics Corporation. No part of this
; program may be reproduced or disclosed to others, in any
; form, without the... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: dBase III
MODULE: Export
FILE: exportFile.asm
AUTHOR: Ted H. Kim, 9/14/92
ROUTINES:
Name Description
---- -----------
TransExport Library routine called by Impex
... |
#include <rl_agent/SavedPolicy.hh>
#include <algorithm>
SavedPolicy::SavedPolicy(int numactions, const char* filename):
numactions(numactions)
{
ACTDEBUG = false;
LOADDEBUG = false;
loaded = false;
loadPolicy(filename);
}
SavedPolicy::~SavedPolicy() {}
int SavedPolicy::first_action(const std::vector<... |
// in case of error the function fill a value_list
// with -1
#include "misc.h"
void get_null_values(int args_num,octave_value_list *list) {
for (int i=0;i<args_num;i++) (*list)(i) = octave_value(-1);
}
|
; --- [ f ] -------------------------------------------------------
; int f(int y)
;
; ebp-8: s
; ebp-4: x
; ebp+0: old ebp
; ebp+4: return address
; ebp+8: y
f:
push ebp ; store old stack frame
mov ebp, esp ; create new stack frame
sub esp, 8 ; allocat... |
db DEX_NIDOQUEEN ; pokedex id
db 90 ; base hp
db 82 ; base attack
db 87 ; base defense
db 76 ; base speed
db 75 ; base special
db GROUND ; species type 1
db POISON ; species type 2
db 52 ; catch rate
db 194 ; base exp yield
INCBIN "pic/ymon/nidoqueen.pic",0,1 ; 77, sprite dimensions
dw NidoqueenPicFront
dw NidoqueenPic... |
// stdafx.cpp : source file that includes just the standard includes
// DawnAppFramework.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
// TODO: reference any additional headers you need in STDAFX.H
// and not in this file
|
/*
Проблем: скриване на член-данни от локални променливи
*/
#include <iostream>
using std::cout;
using std::endl;
class Test {
int number;
public:
Test() {
// Грешно!
int number = 3;
// Правилно 1: number = 3;
// Правилно 2: this->number = 3;
};
Test(int number) {
... |
; Copyright (c) 2004, Intel Corporation
; All rights reserved. This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution... |
@ This file was created from a .asm file
@ using the ads2gas.pl script.
.equ DO1STROUNDING, 0
.equ ARCH_ARM , 0
.equ ARCH_MIPS , 0
.equ ARCH_X86 , 0
.equ ARCH_X86_64 , 0
.equ HAVE_EDSP , 0
.equ HAVE_MEDIA , 0
.equ HAVE_NEON , 0
.equ HAVE_NEON_ASM , 0
.equ HAVE_MIPS32 , 0
.equ HAVE_DSPR2 , 0
.equ HAVE_MSA , ... |
; Generated at 4/14/2019 1:59:47 AM
DebugStub_CheckStack:
add EAX, 0x4
mov EBX, EBP
add EBX, EAX
cmp EBX, ESP
JE near DebugStub_CheckStack_Block1_End
mov EAX, dword [ESP]
mov dword [DebugStub_CallerEIP], EAX
Call DebugStub_SendStackCorruptionOccurred
DebugStub_CheckStack_halt:
Jmp DebugStub_CheckStack_halt
DebugSt... |
; int putc(int c, FILE *stream)
INCLUDE "config_private.inc"
SECTION code_clib
SECTION code_stdio
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $02
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC putc
EXTERN fputc
defc putc = fputc
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
ELSE
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLI... |
###############################################################################
# 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... |
SilphCo4F_h:
db FACILITY ; tileset
db SILPH_CO_4F_HEIGHT, SILPH_CO_4F_WIDTH ; dimensions (y, x)
dw SilphCo4F_Blocks ; blocks
dw SilphCo4F_TextPointers ; texts
dw SilphCo4F_Script ; scripts
db 0 ; connections
dw SilphCo4F_Object ; objects
|
; coppy an array to another using string instructions
.386
.model flat,stdcall
.stack 4096
ExitProcess proto,dwExitCode:dword
.data
source BYTE 24 DUP(9)
target BYTE 24 DUP(?)
.code
main proc
cld
mov ecx, LENGTHOF source
mov esi, OFFSET source
mov edi, OFFSET target
rep movsb
quit:
invoke Exi... |
object_const_def ; object_event constants
const GOLDENRODPOKECENTER1F_NURSE
const GOLDENRODPOKECENTER1F_LINK_RECEPTIONIST
const GOLDENRODPOKECENTER1F_GAMEBOY_KID
const GOLDENRODPOKECENTER1F_LASS
const GOLDENRODPOKECENTER1F_POKEFAN_F
GoldenrodPokecenter1F_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
Gold... |
// Copyright (c) 2009-2018 The BIDX developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <checkpoints.h>
#include <chain.h>
#include <chainparams.h>
#include <reverse_iterator.h>
#include <validation.h>
#include... |
; A140347: Composites of the form ((x+y)/3+2)/(x-y), where x=composite and y=prime.
; 4,6,8,9,10,12,14,15,16,18,20,21,22,24,25,26,27,28,30,32,33,34,35,36,38,39,40,42,44,45,46,48,49,50,51,52,54,55,56,57,58,60,62,63,64,65,66,68,69,70,72,74,75,76,77,78,80,81,82,84,85,86,87,88,90,91,92,93,94,95,96,98,99,100,102,104
add $0... |
;
; tftp - shellcode to accept download and execute a file
;
; Copyright (c) 2005 by Abs
; All Rights Reserved
;
; NOTE: Should work on Win98/ME/NT4/2K/XP, no matter which SP/language
;
;
.386
.model flat, stdcall
option casemap:none
include \masm32\include\windows.inc
;
; kernel32 for testing only... |
%include "asmdefs.inc"
%include "ia_32e.inc"
%if (__ARCH32E >= __ARCH32E_M7)
segment .text align=ARCH_ALIGN_FACTOR
;
; carry, r[:size] = a[:size] + w
; uint64_t mpn_inc_vectorized(uint64_t *r, const uint64_t *a, unsigned int size, uint64_t w)
;
align ARCH_ALIGN_FACTOR
IPPASM mpn_inc_vectorized,PUBLIC
%assign LOCAL_F... |
//////////////////////////////////////////////////////////////////////////////
// NOTICE:
//
// ADLib, Prop and their related set of tools and documentation are in the
// public domain. The author(s) of this software reserve no copyrights on
// the source code and any code generated using the tools. You are encourag... |
; A295684: a(n) = a(n-1) + a(n-3) + a(n-4), where a(0) = 2, a(1) = 0, a(2) = 1, a(3) = 1.
; Submitted by Christian Krause
; 2,0,1,1,3,4,6,10,17,27,43,70,114,184,297,481,779,1260,2038,3298,5337,8635,13971,22606,36578,59184,95761,154945,250707,405652,656358,1062010,1718369,2780379,4498747,7279126,11777874,19057000,308348... |
/*
* Copyright 2018- The Pixie Authors.
*
* 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 ag... |
// Copyright (c) 2014-2019, AEON, The Monero 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 ... |
; A000203: a(n) = sigma(n), the sum of the divisors of n. Also called sigma_1(n).
; 1,3,4,7,6,12,8,15,13,18,12,28,14,24,24,31,18,39,20,42,32,36,24,60,31,42,40,56,30,72,32,63,48,54,48,91,38,60,56,90,42,96,44,84,78,72,48,124,57,93,72,98,54,120,72,120,80,90,60,168,62,96,104,127,84,144,68,126,96,144,72,195,74,114,124,140,9... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.16.27026.1
TITLE Z:\Sources\Lunor\Repos\rougemeilland\Palmtree.Math.Core.Implements\Palmtree.Math.Core.Implements\TEST_op_Subtruct.c
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB MSVCRT
INCLUDELIB OLDNAMES
END
|
; A130505: a(n) = 3*a(n-1) if n is odd, otherwise 6*a(n-1).
; Submitted by Jon Maiga
; 1,3,18,54,324,972,5832,17496,104976,314928,1889568,5668704,34012224,102036672,612220032,1836660096,11019960576,33059881728,198359290368,595077871104,3570467226624,10711401679872,64268410079232,192805230237696,1156831381426176,3470494... |
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include "bin/dartdev_isolate.h"
#if !defined(DART_PRECOMPILED_RUNTIME)
#include <functional>
#includ... |
#include <mbgl/gl/context.hpp>
#include <mbgl/gl/texture_resource.hpp>
namespace mbgl {
namespace gl {
static int channelCount(gfx::TexturePixelType format) {
switch (format) {
case gfx::TexturePixelType::Alpha:
case gfx::TexturePixelType::Depth:
case gfx::TexturePixelType::Luminance:
... |
#include "sendmessagesentry.h"
#include "ui_sendmessagesentry.h"
#include "guiutil.h"
#include "addressbookpage.h"
#include "walletmodel.h"
#include "messagemodel.h"
#include "optionsmodel.h"
#include "addresstablemodel.h"
#include "smessage.h"
#include <QApplication>
#include <QClipboard>
SendMessagesEntry::SendMes... |
; A135530: a(n) = a(n-1) + 2*a(n-2) - 2*a(n-3), with a(0)=2, a(1)=1.
; 2,1,4,2,8,4,16,8,32,16,64,32,128,64,256,128,512,256,1024,512,2048,1024,4096,2048,8192,4096,16384,8192,32768,16384,65536,32768,131072,65536,262144,131072,524288,262144,1048576,524288,2097152,1048576,4194304,2097152,8388608,4194304,16777216,8388608,33... |
// Copyright 2013 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 "google_apis/gcm/engine/mcs_client.h"
#include <stddef.h>
#include <stdint.h>
#include <memory>
#include <utility>
#include "base/bind.h"
#inc... |
; A269681: Number of length-6 0..n arrays with no repeated value differing from the previous repeated value by other than plus or minus one modulo n+1.
; 22,462,2976,12390,39156,102606,234912,485766,927780,1662606,2827776,4604262,7224756,10982670,16241856,23447046,33135012,45946446,62638560,84098406,111356916,145603662... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r8
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x1c86a, %r10
nop
and %rbx, %rbx
mov (%r10), %di
nop
nop
add %rcx, %rcx
lea addresses_WT_ht+0x1248a, %r10
nop
xor %r8, %r8
movb $0x61, (%r10)
inc %r10
lea addresses_UC_ht+0x1b5ea... |
; A022532: Nexus numbers (n+1)^16-n^16.
; 1,65535,42981185,4251920575,148292923329,2668522016831,30411820662145,248242046141055,1571545212141185,8146979811148159,35949729863572161,138934529031464255,480532350288143425,1512536728626191295,4390455017903519489,11878335717996660991,30214447801957316865,72778339220927383295... |
// Copyright (c) 2007-2016 Hartmut Kaiser
// Copyright (c) 2011 Bryce Lelbach
//
// SPDX-License-Identifier: BSL-1.0
// 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)
#include <hpx/execution/executors/curre... |
out (c),1 ; "illegal" error, only "0" is valid
out (c),0 ; "warning" about `out (c),0` being unstable
out (c),0 ; out0-ok ; suppressed warning
ASSERT 0==__ERRORS__ ; this assert should fail
ASSERT 0==__WARNINGS__ ; this assert should... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
;;; Microsoft Research Singularity
;;;
;;; Copyright (c) Microsoft Corporation. All rights reserved.
;;;
;;; This file contains ARM-specific assembly code.
;;;
|defining ?g_CompareExchange@Class_System_Thre... |
; atomic_rw structure : 5 bytes
define KERNEL_ATOMIC_RW_SIZE 5
define KERNEL_ATOMIC_RW_LOCK 0
define KERNEL_ATOMIC_RW_WAIT_COUNT 1
define KERNEL_ATOMIC_RW_WAIT_HEAD 2
define KERNEL_ATOMIC_RW_MAGIC_READ $00 ; or null
define KERNEL_ATOMIC_RW_MAGIC_WRITE $FF ; or any non zero
; mutex are quite similar : 6 bytes
define ... |
#include "GameObject.h"
#include "Game.h"
namespace Lamter
{
GameObject::GameObject(Game* _game) : game(_game)
{
game->AddGameObject(this);
}
template<class T>
T* GameObject::GetComponent(GameObject* gameObject)
{
return dynamic_cast<T*>(gameObject);
}
void GameObject::SaveToFile(tinyxml2::XMLDocument* ... |
xor a
ld hl, basescradr + #0875
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld hl, basescradr + #08aa
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld hl, basescradr + #0c55
ld (hl), a
... |
; A053104: a(n) = ((7*n+8)(!^7))/8, related to A045754 ((7*n+1)(!^7) sept-, or 7-factorials).
; 1,15,330,9570,344520,14814360,740718000,42220926000,2702139264000,191851887744000,14964447244032000,1271978015742720000,117021977448330240000,11585175767384693760000,1228028631342777538560000,138767235341733861857280000,1665... |
BITS 32
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
FLDZ
FLDPI
FLD1
;TEST_BEGIN_RECORDING
FXCH st2
;TEST_END_RECORDING
|
; A016780: a(n) = (3*n+1)^4.
; 1,256,2401,10000,28561,65536,130321,234256,390625,614656,923521,1336336,1874161,2560000,3418801,4477456,5764801,7311616,9150625,11316496,13845841,16777216,20151121,24010000,28398241,33362176,38950081,45212176,52200625,59969536,68574961,78074896,88529281,100000000,112550881,126247696,14115... |
; Author - Jatin Rohilla
; Course - MCA 102
; Objective - Implement Linear Search
; User input - elements of the array, and element to be searched.
; approach - compare the element to be searched to each element of the array one by one.
; If found, print index and return, else print not found and return.
; data... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#define _USE_MATH_DEFINES // For VC++ to get M_PI. This has to be first.
#include "ui/views/view.h"
#include <algorithm>
#include <cmath>
#include ... |
; A100148: Structured small rhombicosidodecahedral numbers.
; Submitted by Christian Krause
; 1,60,285,784,1665,3036,5005,7680,11169,15580,21021,27600,35425,44604,55245,67456,81345,97020,114589,134160,155841,179740,205965,234624,265825,299676,336285,375760,418209,463740,512461,564480,619905,678844,741405,807696,877825,... |
; A285977: Positions of 1 in A285975; complement of A285976.
; 2,3,5,7,8,10,12,13,15,17,19,20,22,23,25,27,28,30,32,33,35,36,38,40,42,43,45,47,48,50,52,53,55,57,59,60,62,63,65,67,69,70,72,74,75,77,79,80,82,83,85,87,88,90,92,93,95,97,99,100,102,103,105,107,108,110,112,113,115,116,118,120,122,123,125,127,128,130,132,133,1... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1993 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Printer Drivers
FILE: grpr9Text.asm
AUTHOR: Dave Durran
ROUTINES:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Dave ... |
//
// This script converts the CIFAR dataset to the leveldb format used
// by caffe to perform classification.
// Usage:
// convert_cifar_data input_folder output_db_file
// The CIFAR dataset could be downloaded at
// http://www.cs.toronto.edu/~kriz/cifar.html
#include <fstream> // NOLINT(readability/streams)
#... |
; hello.asm
section .data
msg db "Hello World",0
section .bss
section .text
global main
main:
mov rax, 1 ; 1 = write
mov rdi, 1 ; 1 = to stdout
mov rsi, msg ; string to display in rsi
mov rdx, 12 ; length of the string, without 0
syscall ; dis... |
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 4.0.7 #12017 (Linux)
;--------------------------------------------------------
; Processed by Z88DK
;--------------------------------------------------------
EXTERN __divschar
EXTERN __divsc... |
; A061502: a(n) = Sum_{k<=n} tau(k)^2, where tau = number of divisors function A000005.
; 1,5,9,18,22,38,42,58,67,83,87,123,127,143,159,184,188,224,228,264,280,296,300,364,373,389,405,441,445,509,513,549,565,581,597,678,682,698,714,778,782,846,850,886,922,938,942,1042,1051,1087,1103,1139,1143,1207,1223,1287,1303,1319,1... |
;==============================================================================
; Contents of this file are copyright Phillip Stevens
;
; You have permission to use this for NON COMMERCIAL USE ONLY
; If you wish to use it elsewhere, please include an acknowledgement to myself.
;
; https://github.com/feilipu/
;
; https:... |
; A166552: a(n) = 3*a(n-2) for n > 2; a(1) = 1; a(2) = 4.
; 1,4,3,12,9,36,27,108,81,324,243,972,729,2916,2187,8748,6561,26244,19683,78732,59049,236196,177147,708588,531441,2125764,1594323,6377292,4782969,19131876,14348907,57395628,43046721,172186884,129140163,516560652,387420489,1549681956,1162261467,4649045868,3486784... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.