text stringlengths 1 1.05M |
|---|
; A285077: Positions of 0 in A285076; complement of A285078.
; 2,3,5,7,8,10,12,13,15,17,19,20,22,24,25,27,29,31,32,34,36,37,39,41,42,44,46,48,49,51,53,54,56,58,60,61,63,65,66,68,70,71,73,75,77,78,80,82,83,85,87,89,90,92,94,95,97,99,101,102,104,106,107,109,111,112,114,116,118,119,121,123,124,126,128,130,131,133,135,136,... |
; A060790: Inscribe two circles of curvature 2 inside a circle of curvature -1. Sequence gives curvatures of the smallest circles that can be sequentially inscribed in such a diagram.
; Submitted by Jon Maiga
; -1,2,2,3,15,38,110,323,927,2682,7754,22403,64751,187134,540822,1563011,4517183,13054898,37729362,109039875,31... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r9
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x2778, %rbx
nop
nop
nop
nop
sub $22417, %rcx
mov (%rbx), %r12
nop
nop
nop
sub %r9, %r9
lea addresses_WC_ht+0x145f0, %rax
nop
and %rdi, %rdi
movb (%rax), %bl
nop
sub %r12, %r12
... |
/*
*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*
* Copyright 2018 Intel Corporation All Rights Reserved.
*
*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance ... |
; A052980: Expansion of (1 - x)/(1 - 2*x - x^3).
; 1,1,2,5,11,24,53,117,258,569,1255,2768,6105,13465,29698,65501,144467,318632,702765,1549997,3418626,7540017,16630031,36678688,80897393,178424817,393528322,867954037,1914332891,4222194104,9312342245,20539017381,45300228866,99912799977,220364617335,486029463536,1071971727... |
; A032766: Numbers that are congruent to 0 or 1 (mod 3).
; 0,1,3,4,6,7,9,10,12,13,15,16,18,19,21,22,24,25,27,28,30,31,33,34,36,37,39,40,42,43,45,46,48,49,51,52,54,55,57,58,60,61,63,64,66,67,69,70,72,73,75,76,78,79,81,82,84,85,87,88,90,91,93,94,96,97,99,100,102,103,105,106,108,109,111,112,114,115,117,118,120,121,123,124... |
_ls: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
close(fd);
}
int
main(int argc, char *argv[])
{
0: f3 0f 1e fb endbr32
4: 8d 4c 24 04 lea 0x4(%esp),%ecx
8: 83 e4 f0 and $0xfffffff0,%esp
b: ff 71 fc pushl -0x4(%ecx)
... |
;
; ZXPac v3 (c) 2014/21 Jouni 'Mr.Spiv' Korhonen
; Done for fun.. ;-) And definitely not the greatest.
;
; ZXPac v3 bit tag encoding is as follows:
;
; [n] means an arbitrary bit vector of length n
; [B] means a complete byte in byte boundary
; 11100 means a bit vector, MSB 1 and LSB 0
; 1xx11 means a bit vect... |
/*
* 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 <AzCore/UnitTest/TestTypes.h>
#include <AzCore/Component/ComponentApplication.h>
#include <... |
; A092037: A092255 mod 3.
; Submitted by Christian Krause
; 1,1,0,1,2,0,0,0,0,1,2,0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,1,2,0,2,2,0,0,0,0,2,2,0,2,2,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,2,0,2,2,0,0,0,0,2,2,0,2,2,0,0,0,0,0
seq $0,151668 ; G.f.: Product_{k>=0} (1 + 2*x^(3^k)).
sub $... |
SECTION FRAGMENT "Frag", ROM0/*[1]*/
db $40
SECTION "Word", ROM0/*[6]*/
dw $78d5
SECTION FRAGMENT "Frag", ROM0/*[2]*/,ALIGN[1]
db $2e
SECTION FRAGMENT "Frag", ROM0/*[3]*/
db $1f
SECTION "Byte", ROM0/*[0]*/
db $44
SECTION FRAGMENT "Frag", ROM0/*[4]*/
db $7b
align 2 ; Uh oh
|
// vim: ts=4:sw=4
/**********************************************************************************
* Project: HistFitter - A ROOT-based package for statistical data analysis *
* Package: HistFitter *
* Namespace: Util ... |
;
; Copyright (C) 2019 Assured Information Security, Inc.
;
; 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... |
; A288381: Fixed point of the mapping 00->0001, 1->11, starting with 00.
; 0,0,0,1,0,1,1,0,1,1,1,1,0,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,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,0,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,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r15
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0xc39e, %rbp
cmp %rdi, %rdi
movups (%rbp), %xmm4
vpextrq $1, %xmm4, %rsi
nop
sub %rsi, %rsi
lea addresses_UC_ht+0x1993a, %rsi
lea addresses_WC_ht+0x559e, %rdi
clflush (%rdi)
nop
nop
... |
section .text
global rotate
rotate:
mov r10, rdx
xor rcx, rcx
mov r11, 26
mov r12, 'a'
mov r13, 'A'
loop:
xor rax, rax
xor rbx, rbx
xor rdx, rdx
mov al, byte [rdi+rcx]
test al, al
jz end
mov r14, rax
call is_lower
cmovbe rbx, r12
mov r14, rax
call is_u... |
;PUC-ECEC-CMP1057-ARQ1-
;12/02/19
;Wellington Junio De Melo Fernandes
;
;Segundo Programa print.asm
segment .data
;dados inicializados
mens db "Adeus mundo cruel",10,10,"é mentira hahaha",10,10
tamm equ $-mens ; tamm=constante ao ponto que estou no caso 18 - a quantidade de palavras do vetor anterior
segment .text
g... |
.region ILI9341 COMMANDS
LCD_TFTWIDTH = 240 // ILI9341 max TFT width
LCD_TFTHEIGHT = 320 // ILI9341 max TFT height
LCD_NOP = 0x00 // No-op register
LCD_SWRESET = 0x01 // Software reset register
LCD_RDDID = 0x04 // Read display identification information
LCD_RDDST = 0x09 // Read Display Status
LCD... |
; A267596: Decimal representation of the n-th iteration of the "Rule 173" elementary cellular automaton starting with a single ON (black) cell.
; 1,2,15,63,255,1023,4095,16383,65535,262143,1048575,4194303,16777215,67108863,268435455,1073741823,4294967295,17179869183,68719476735,274877906943,1099511627775,4398046511103,... |
NULL equ 0
STD_OUTPUT_HANDLE equ -11
extern GetStdhandle
extern WriteFile
extern ExitProcess
section .data
cell db 0
section .bss
StdHandle resd 1
Written resd 1
section .text
global Start
mod:
cmp ebx, 0
jl lower
ret
lower:
add ebx, 128
mov [cell], ebx
ret
Start
push STD_OUTPUT_HANDLE
call GetStdHandle... |
;; @file
; IPRT - ASMGetDS().
;
;
; Copyright (C) 2006-2015 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 it and/or modify it under the terms of the GNU
; General Public License (GPL) a... |
/****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding valid commercia... |
; This update does not print a confirmation code; print one yourself.
bits 16 ; Tells NASM to assume 16-bit registers
; no org because it doesn't matter
; mul R/M (implicitly with AX): DX=high, AX=low
; div R/M (implicitly DX:AX/(R/M)): DX=remainder, AX=quotient
; Why can I never remember where the results go?
cli
c... |
# Si implementi la procedura subseteq così definita:
# Input: due array di interi A1 e A2
# Output: 1 se ogni elemento di A1 è presente in A2, 0 altrimenti
.text
.globl subseteq
subseteq:
subu $sp, $sp, 16
sw $s0, 12($sp)
sw $s1, 8($sp)
sw $fp, 4($sp)
sw $ra, ($sp)
addiu $fp, $sp, 12
move $s0, $a0
move $... |
;################################################################################
;# Título: Interrupt Service Routines #
;# #
;# Versión: 1.0 Fecha: 13/09/2015 #
;# Autor: Javier Balloffet Tab: 4 #
;# Compilación: #
;# Usar Makefile #
;# Uso: - #
;# -------------------------... |
; A001903: Final digit of 7^n.
; 1,7,9,3,1,7,9,3,1,7,9,3,1,7,9,3,1,7,9,3,1,7,9,3,1,7,9,3,1,7,9,3,1,7,9,3,1,7,9,3,1,7,9,3,1,7,9,3,1,7,9,3,1,7,9,3,1,7,9,3,1,7,9,3,1,7,9,3,1,7,9,3,1,7,9,3,1,7,9,3,1,7,9,3,1,7,9,3,1,7,9,3,1,7,9,3,1,7,9,3,1,7,9,3,1,7,9,3,1,7,9,3,1,7,9,3,1,7,9,3,1,7,9,3,1,7,9,3,1,7,9,3,1,7,9,3,1,7,9,3,1,7,9,3... |
;******************************************************************************
;* Vorbis x86 optimizations
;* Copyright (C) 2006 Loren Merritt <lorenm@u.washington.edu>
;*
;* This file is part of Libav.
;*
;* Libav is free software; you can redistribute it and/or
;* modify it under the terms of the GNU Lesser General ... |
%include "include/u7bg-all-includes.asm"
defineAddress 330, 0x005A, usecodeCallSite
defineAddress 330, 0x0087, usecodeCallSite_end
%include "../u7-common/patch-call-eop-barkOverItemInWorld.asm"
|
; Hook reading of animations in zCModelPrototype::ReadAniEnum (g1), zCModelPrototype::ReadAniEnumMSB (g2)
%include "inc/macros.inc"
%if GOTHIC_BASE_VERSION == 1
%include "inc/symbols_g1.inc"
%elif GOTHIC_BASE_VERSION == 2
%include "inc/symbols_g2.inc"
%endif
%ifidn __OUTPUT_FORMAT__, bin
org g1g2(0x5... |
; A007204: Crystal ball sequence for D_4 lattice.
; 1,25,169,625,1681,3721,7225,12769,21025,32761,48841,70225,97969,133225,177241,231361,297025,375769,469225,579121,707281,855625,1026169,1221025,1442401,1692601,1974025,2289169,2640625,3031081,3463321,3940225,4464769,5040025,5669161,6355441,7102225,7912969,8791225,97406... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r14
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x1599, %r14
nop
nop
nop
nop
and $15944, %r10
movw $0x6162, (%r14)
nop
nop
nop
nop
dec %r14
lea addresses_D_ht+0x151e9, %rsi
lea addresses_D_ht+0x1e349, %rdi
nop
nop
nop
xor %r... |
#pragma once
#include <hive/chain/hive_fwd.hpp>
#include <hive/protocol/asset.hpp>
namespace hive { namespace plugins { namespace condenser_api {
using hive::protocol::asset;
using hive::protocol::asset_symbol_type;
using hive::protocol::share_type;
struct legacy_asset
{
public:
legacy_asset() {}
asset to... |
/*
* 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) 2015 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// X11Window.cpp: Implementation of OSWindow for X11
#include "util/x11/X11Window.h"
#include "common/debug.h"
#include "util/... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r15
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x19cdf, %r15
nop
nop
nop
add $59715, %r9
movups (%r15), %xmm7
vpextrq $0, %xmm7, %rbp
nop
xor $54017, %rbp
lea addresses_A_ht+0x1ad9f, %rsi
lea addresses_WT_ht+0x10fad, %rdi
nop
nop
nop
... |
; AVX-512CD testcases from gas
;------------------------
;
; This file is taken from there
; https://gnu.googlesource.com/binutils/+/master/gas/testsuite/gas/i386/x86-64-avx512cd-intel.d
; So the original author is "H.J. Lu" <hongjiu dot lu at intel dot com>
;
; Jin Kyu Song converted it for the nasm testing... |
; A081072: Fibonacci(4n) + 3, or Fibonacci(2n+2)*Lucas(2n-2).
; 3,6,24,147,990,6768,46371,317814,2178312,14930355,102334158,701408736,4807526979,32951280102,225851433720,1548008755923,10610209857726,72723460248144,498454011879267,3416454622906710,23416728348467688
mul $0,2
mov $2,1
lpb $0
sub $0,1
add $1,$2
add ... |
; BeepFX sound effect by shiru
; http://shiru.untergrund.net
SECTION rodata_sound_bit
PUBLIC _bfx_52
_bfx_52:
; Roboblip
defb 1 ;tone
defw 1,2000,200,0,128
defb 1 ;pause
defw 1,2000,0,0,0
defb 1 ;tone
defw 1,2000,200,0,32
defb 1 ;pause
defw 1,2000,0,0,0
defb 1 ;tone
defw 1,2000,20... |
; Rectangle, Intervals and Points
; 05.2006 aralbrec
SECTION code_clib
PUBLIC RIsPtInIval8
; Determine if 8-bit point lies in an 8-bit interval.
; Interval bounds wrap across 0-255 boundaries.
;
; enter : a = coordinate of point
; d = interval start coordinate
; e = width of interval
; exit : car... |
src_t *sp;
dest_t *dp;
*dp = (dest_t) *sp;
sp is stored in %rdi
dp is stored in %rsi
src_t dest_t instruction
long long movq (%rdi), %rax
movq %rax, (%rsi)
char int movb (%rdi), %al
movsbl %al, (%rsi)
char unsigned movzbl (%rdi), %eax
... |
;/*
; * FreeRTOS Kernel V10.4.3
; * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
; *
; * Permission is hereby granted, free of charge, to any person obtaining a copy of
; * this software and associated documentation files (the "Software"), to deal in
; * the Software without restri... |
SECTION code_fp_mbf64
INCLUDE "mbf64.def"
EXTERN ___mbf64_FA
; Put the two arguments into the required places
;
; This is for arithmetic routines, where we need to use
; double precision values (so pad them out)
;
; Entry: dehl = right hand operand
; Stack: defw return address
; defw c... |
; A197903: Ceiling((n+1/n)^4).
; 16,40,124,327,732,1447,2604,4359,6892,10407,15132,21319,29244,39207,51532,66567,84684,106279,131772,161607,196252,236199,281964,334087,393132,459687,534364,617799,710652,813607,927372,1052679,1190284,1340967,1505532,1684807,1879644,2090919,2319532,2566407,2832492,3118759,3426204,3755847... |
; A063139: Composite numbers which in base 3 contain their largest proper factor as a substring.
; 9,15,21,27,33,39,45,49,51,57,63,69,75,81,87,93,99,105,111,117,123,129,135,141,147,153,159,165,171,177,183,189,195,201,207,213,219,225,231,237,243,249,255,261,267,273,279,285,291,297
mov $2,$0
trn $0,6
pow $0,2
mov $1,3
t... |
ori $t0, $0, 0xcaca
sb $t0, 0($0)
sb $t0, 1($0)
lhu $t1, 0($0)
#slt $t3, $t0, $t1
bne $t3, $0, ACA
ori $t2, $0, 0xfafa
sw $t2, 4($0)
ACA:
hlt
|
; A173468: Sum n^k, k=0..n+1.
; 3,15,121,1365,19531,335923,6725601,153391689,3922632451,111111111111,3452271214393,116719860413533,4265491084507563,167534872139182395,7037580381120954241,314824432191309680913,14942027230321957802947,749896248023298716143375,39678305316298511426319801,2207528421052631578947368421,128829... |
; A075151: a(n)=L(n)^2*C(n), L(n)=Lucas numbers (A000032), C(n)=reflected Lucas numbers (comment to A061084).
; Submitted by Christian Krause
; 8,-1,27,-64,343,-1331,5832,-24389,103823,-438976,1860867,-7880599,33386248,-141420761,599077107,-2537716544,10749963743,-45537538411,192900170952,-817138135549,3461452853383,-1... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r15
push %r8
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x1c8b, %r12
nop
nop
nop
inc %rsi
movw $0x6162, (%r12)
nop
nop
nop
nop
cmp %rbx, %rbx
lea addresses_D_ht+0x1d478, %r15
nop
nop
nop
nop
dec %rdi
vmovups (%r15), %ymm6
vextracti12... |
; A244728: a(n) = 9*n^3.
; 0,9,72,243,576,1125,1944,3087,4608,6561,9000,11979,15552,19773,24696,30375,36864,44217,52488,61731,72000,83349,95832,109503,124416,140625,158184,177147,197568,219501,243000,268119,294912,323433,353736,385875,419904,455877,493848,533871,576000,620289,666792,715563,766656,820125,876024,934407,9... |
[BITS 64]
[GLOBAL MoveKPCRToRegister]
[GLOBAL GetKPCR]
MoveKPCRToRegister:
mov r14, rdi
ret
GetKPCR
mov rax, r14
ret |
/* crypto/des/cfb64ede.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercia... |
_ln: 文件格式 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: 53 push %ebx
4: 83 e4 f0 and $0xfffffff0,... |
;
; ZX81 libraries
;
;--------------------------------------------------------------
; This code comes from the 'HRG_Tool'
; by Matthias Swatosch
; Original function name: "HRG_Tool_TXTcopy"
;--------------------------------------------------------------
;
; $Id: copytxt.asm,v 1.2 2015/01/19 01:32:52 pauloscustodio Ex... |
// This file is distributed under the BSD 3-Clause License. See LICENSE for details.
// YAML to YAML graph conversion
#include "import_verilog.hpp"
#include <fstream>
#include <iostream>
#include <regex>
//FIXME: consider replacing with a simple lex/yacc parser?
//This only parses
void Import_verilog::update() {
... |
defop eval ; the ToS
pop ebx
pop eax
push ebx
jmp [eax+dict_entry_code]
defop doop ; the entry in eax
push eval_ip
mov eval_ip, [eax+dict_entry_data]
jmp [d_next+dict_entry_code]
defop next
mov eax, [eval_ip]
add eval_ip, ptrsize
call [eax+dict_entry_code]
jmp [d_next+dict_entry_code]
|
/******************************************************************************
* The MIT License
*
* Copyright (c) 2010 LeafLabs LLC.
*
* 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... |
Total: 819.30MB
ROUTINE ======================== main.(*Graph).buildAdjList
369.13MB 369.13MB (flat, cum) 45.05% of Total
. . 10ca6a0: MOVQ GS:0x30, CX ;graph.go:102
. . 10ca6a9: LEAQ -0x60(SP), AX
. . 10ca6ae: CMPQ 0x10(CX), AX
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r14
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x126fe, %r14
nop
nop
nop
and $13708, %r8
mov (%r14), %r11w
nop
nop
nop
cmp %rdi, %rdi
lea addresses_D_ht+0x13721, %r12
nop
nop
nop
nop
add %r13, %r13
movb (%r12), %d... |
;
; Small C+ Runtime Library
;
; CP/M functions
;
; CPM Plus "userf" custom Amstrad calls, for Amstrad CPC & PCW and ZX Spectrum +3
;
;
; $Id: a_serialport.asm,v 1.2 2017-01-02 20:06:48 aralbrec Exp $
;
SECTION code_clib
PUBLIC a_serialport
PUBLIC _a_serialport
EXTERN subuserf
INCLU... |
;
; jidctfst.asm - fast integer IDCT (64-bit SSE2)
;
; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
; Copyright (C) 2009, 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 n... |
//
// Copyright © 2022 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include <arm_compute/core/CL/ICLTensor.h>
#include <arm_compute/core/ITensorInfo.h>
namespace armnn
{
class ICLTensorProxy : public arm_compute::ICLTensor
{
public:
ICLTensorProxy(arm_compute::I... |
// bslstl_stringstream.t.cpp -*-C++-*-
#include <bslstl_stringstream.h>
#include <bslstl_allocator.h>
#include <bslstl_string.h>
#include <bslma_allocator.h>
#include <bslma_default.h>
#include <bslma_defaultallocatorguard.h>
#include <bslma_testallocator.h>
#include <bslma_te... |
loop: lda :x
add :y
sta :z
lda :y
sta :x
lda :z
sta :y
jc :exit
lda :z
out
jmp :loop
exit: hlt
x: 0
y: 1
z: 0
|
#include "LevinProtocol.h"
#include <System/TcpConnection.h>
using namespace CryptoNote;
namespace {
const uint64_t LEVIN_SIGNATURE = 0x0101010101012101LL; //Bender's nightmare
const uint32_t LEVIN_PACKET_REQUEST = 0x00000001;
const uint32_t LEVIN_PACKET_RESPONSE = 0x00000002;
const uint32_t LEVIN_DEFAULT... |
#include<bits/stdc++.h>
using namespace std;
void by_value(int a){
a+=10;
}
void by_ref(int *a){
(*a)+=10;
}
int by_ref2(int &a){
a+=10;
}
int main(){
int x=40;
cout<<by_value(x)<<endl;
//x==40
cout<<by_ref(&x)<<endl;
//x==50
cout<<by_ref2(x)<<endl;
//x==60
return 0;
}
|
aLine 0
gNew currentPtr
gMove currentPtr, Root
gNewVPtr currentNext
gMoveNext currentNext, currentPtr
aLine 1
gBeq currentNext, null, 5
aLine 2
gMove currentPtr, currentNext
gMoveNext currentNext, currentNext
Jmp -5
aLine 4
nNew newNodePtr, {0:D}
aLine 5
nMoveRel newNodePtr, currentPtr, 90, -164.545
pSetNext curren... |
MODULE MPLAYER
include "player_macros.asm"
K_KEY_NO_KEY EQU 0
K_KEY_UP EQU 1
K_KEY_UPRIGHT EQU 2
K_KEY_RIGHT EQU 3
K_KEY_DOWNRIGHT equ 4
K_KEY_DOWN EQU 5
K_KEY_DOWNLEFT equ 6
K_KEY_LEFT EQU 7
K_KEY_UPLEFT EQU 8
K_KEY_SPACE EQU 10
K_SHOOT_WAIT equ 8
K_FIREBAL... |
TITLE InputForParserGROUP4
LEA 0,87 (3)
LX 1, +124 (0)
STX 2, -93 (1)
LEA 3, X"39 (2)
LX 0, +X"C23 (3)
STX 1, -X"23D (0)
LEA 2, O"3723 (1)
LX 3, +O"3243 (2)
STX 0, -O"42 (3)
LEA 1, B"10101101 (0)
LX 2, +B"11010 (1)
STX 3, -B"10010111 (2)
LEA 0, (3)
END
|
; ==== STM32F30x PERIPHERALS =================================
;
; CTU Prague, FEL, Department of Measurement
;
; ------------------------------------------------------------
;
; Generated from "STM32F30x.svd"
;
; SVD parsing library (c) Paul Osborne, 2015-2016
; https://github.com/posborne/cmsis-svd
; ASM building s... |
SECTION code_clib
IF !__CPU_INTEL__ & !__CPU_RABBIT__ & !__CPU_GBZ80__
PUBLIC psg_envelope
PUBLIC _psg_envelope
;
; $Id: psg_envelope.asm $
;========================================================================================
; void psg_envelope(unsigned int waveform, int period, unsigned int channel) __s... |
; A175386: a(n) = denominator of sum((1/i)*C(2n-i-1,i-1),i=1..n).
; Submitted by Christian Krause
; 1,2,6,4,5,4,7,8,18,10,11,24,13,14,30,16,17,12,19,20,42,22,23,48,25,26,54,28,29,20,31,32,66,34,35,72,37,38,78,40,41,28,43,44,90,46,47,96,49,50,6,52,53,36,55,56,114,58,59,120,61,62,126,64,65,44,67,68,138,70,71
mul $0,2
ad... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %r14
push %rax
push %rbx
push %rdx
lea addresses_WC_ht+0x6307, %r13
nop
nop
nop
and %rbx, %rbx
mov (%r13), %r12
nop
inc %rax
lea addresses_A_ht+0xa04d, %rdx
nop
nop
xor %r10, %r10
movb $0x61, (%rdx)
nop
and $28224, %r13
lea addresses_D_ht+0... |
%ifdef CONFIG
{
"RegData": {
"XMM0": ["0x000000000000FFFF", "0x000000000000FFFF"],
"XMM1": ["0x000000000000FFFF", "0x000000000000FFFF"],
"XMM2": ["0x6162636465667778", "0x5152535455564748"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
mov rdx, 0xe0000000
mov rax, 0x7172737475767778
m... |
; 8259 Programmable Interrupt Controller related functions
; Remaps the 8259 Programmable Interrupt Controller.
; IN: Nothing
; OUT: Nothing
pic_init:
push ax
pushf
cli
; Get current mask
in al, 0x21
mov [.master_mask], al
; Restart
mov al, 0x11
out 0x20, al
xor al, al
out 0x80, al
; Set master PIC of... |
TITLE Calculating a Factorial (Fact.asm)
; This program uses recursion to calculate the
; factorial of an integer.
; Last update: 11/23/01
INCLUDE Irvine32.inc
.code
main PROC
push 12 ; calc 12!
call Factorial ; calculate factorial (eax)
ReturnMain:
call WriteDec ; display it
c... |
[BITS 32]
GLOBAL api_openwin
[SECTION .text]
api_openwin: ; int api_openwin(char *buf, int xsiz, int ysiz, int col_inv, char *title);
PUSH EDI
PUSH ESI
PUSH EBX
MOV EDX, 5
MOV EBX, [ESP+16] ; buf
MOV ESI, [ESP+20] ; xsiz
MOV ... |
; A199264: Period 18: repeat (9,8,7,6,5,4,3,2,1,0,1,2,3,4,5,6,7,8).
; 9,8,7,6,5,4,3,2,1,0,1,2,3,4,5,6,7,8,9,8,7,6,5,4,3,2,1,0,1,2,3,4,5,6,7,8,9,8,7,6,5,4,3,2,1,0,1,2,3,4,5,6,7,8,9,8,7,6,5,4,3,2,1,0,1,2,3,4,5,6,7,8,9,8,7,6,5,4,3,2,1,0,1,2,3,4,5,6,7,8,9,8,7,6,5,4,3,2,1,0,1,2,3,4,5,6,7,8,9,8,7,6,5,4,3,2,1,0,1,2,3,4,5,6,7,... |
; *****************************************************
; *** SPECTRUM +3 ROM 0 DISASSEMBLY (48K BASIC ROM) ***
; *****************************************************
; The Spectrum ROMs are copyright Amstrad, who have kindly given permission
; to reverse engineer and publish Spectrum ROM disassemblies.
; =====
; N... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
; A185858: 1/128 the number of (n+2) X 3 binary arrays with no 3 X 3 subblock trace equal to any horizontal or vertical neighbor 3 X 3 subblock trace.
; Submitted by Jon Maiga
; 4,22,124,694,3892,21814,122284,685462,3842404,21538774,120736732,676795894,3793814164,21266419702,119210006284,668237802454,3745841266372,2099... |
.data
inputfile: .asciiz "./test.dat"
.text
j main
knapsack_dp_loop:
# save $ra and $sn
subi $sp, $sp, 16
sw $ra, 0($sp)
sw $s0, 4($sp)
sw $s1, 8($sp)
sw $s2, 12($sp)
# cache_ptr: $s0
# weight: $s1
# val: $s2
# allocate space for cache_ptr
subi $sp, $sp, 256
m... |
; A049380: Expansion of (1-25*x)^(-2/5).
; Submitted by Jamie Morken(s3)
; 1,10,175,3500,74375,1636250,36815625,841500000,19459687500,454059375000,10670395312500,252209343750000,5989971914062500,142837791796875000,3417904303710937500,82029703289062500000,1973839735393066406250,47604370088891601562500,115043894381488037... |
namespace factor {
namespace atomic {
FACTOR_FORCE_INLINE static bool load(volatile bool* ptr) {
atomic::fence();
return *ptr;
}
FACTOR_FORCE_INLINE static cell load(volatile cell* ptr) {
atomic::fence();
return *ptr;
}
FACTOR_FORCE_INLINE static fixnum load(volatile fixnum* ptr) {
atomic::fence();
return ... |
;;
;; Copyright (c) 2012-2020, 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... |
; 2018 July feilipu
INCLUDE "config_private.inc"
SECTION code_clib
SECTION code_math
PUBLIC l_z80_zxn_mulu_32_32x32, l0_z80_zxn_mulu_32_32x32
l_z80_zxn_mulu_32_32x32:
; multiplication of two 32-bit numbers into a 32-bit product
;
; enter : dehl = 32-bit multiplicand
; dehl'= 32-bit multipli... |
// Copyright (c) by respective owners including Yahoo!, Microsoft, and
// individual contributors. All rights reserved. Released under a BSD (revised)
// license as described in the file LICENSE.
#include "slates_label.h"
#include "cache.h"
#include "parser.h"
#include "vw_string_view.h"
#include "constant.h"
#includ... |
; ------------------------------------------------------------------
; MichalOS File Manager
; ------------------------------------------------------------------
%INCLUDE "michalos.inc"
start:
mov [.load_segment], gs
call .draw_background
mov byte [32767], 0
call os_file_selector
jc near .exit... |
SECTION TRICEROPOP
org 55000
; *** Song layout ***
LOOPSTART: DEFW PAT0
DEFW PAT0
DEFW PAT0
DEFW PAT0
DEFW PAT4
DEFW PAT3
DEFW PAT4
... |
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 3.7.0 #10231 (Linux)
;--------------------------------------------------------
.module stm8s_gpio
.optsdcc -mstm8
;--------------------------------------------------------
; Public variables... |
; utilises iprint and iprintLF in functions.asm
%include 'src/include/functions.asm'
SECTION .text
global _start
_start:
mov ecx, 0
nextNumber:
inc ecx
mov eax, ecx
call iprintLF
cmp ecx, 10
jne nextNumber
call quit |
; A309337: a(n) = n^3 if n odd, 3*n^3/4 if n even.
; 0,1,6,27,48,125,162,343,384,729,750,1331,1296,2197,2058,3375,3072,4913,4374,6859,6000,9261,7986,12167,10368,15625,13182,19683,16464,24389,20250,29791,24576,35937,29478,42875,34992,50653,41154,59319,48000,68921,55566,79507,63888,91125
pow $0,3
mov $1,$0
dif $1,2
add ... |
stx {m1}+3 |
; A091577: Poincaré series [or Poincare series] of the preprojective algebra of a Dynkin diagram of type E_6.
; 6,10,14,18,20,20,20,18,14,10,6,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,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
sub $0,2
mov $2,9
trn $2,$0
mov ... |
; A087290: Number of pairs of polynomials (f,g) in GF(3)[x] satisfying deg(f) <= n, deg(g) <= n and gcd(f,g) = 1.
; 8,56,488,4376,39368,354296,3188648,28697816,258280328,2324522936,20920706408,188286357656,1694577218888,15251194969976,137260754729768,1235346792567896,11118121133111048,100063090197999416,900567811781994... |
#include <kernel/syscall.h>
; defined in idt.c
extern isr_handler
extern irq_handler
extern int_handler
isr_common_stub:
pusha ; pushes e[ds]i, e[bs]p, e[abcd]x
push ds
push es
push fs
push gs
mov ax, 0x10 ; load the kernel data segment descriptor
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
mo... |
; A103424: E.g.f.: 1 + sinh(2*x).
; 1,2,0,8,0,32,0,128,0,512,0,2048,0,8192,0,32768,0,131072,0,524288,0,2097152,0,8388608,0,33554432,0,134217728,0,536870912,0,2147483648,0,8589934592,0,34359738368,0,137438953472,0,549755813888,0,2199023255552,0,8796093022208,0,35184372088832,0,140737488355328,0,562949953421312,0,2251799... |
#include <iostream>
using namespace std;
int main()
{
string line;
int vowels, consonants, digits, spaces;
vowels = consonants = digits = spaces = 0;
cout << "Enter a line of string: ";
getline(cin, line);
for(int i = 0; i < line.length(); ++i)
{
if(line[i]=='a' || line[i]=='e' || l... |
# /* **************************************************************************
# * *
# * (C) Copyright Paul Mensonides 2002.
# * Distributed under the Boost Software License, Version 1.0. (See
# * accompanying file LICENSE_1_0... |
; A134202: Number of rigid Hv-groups of order n.
; 1,5,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14
add $0,1
bin $0,2
mul $0,2
add $0,3
mul $0,2
lpb $0,1
mov $0,19
lpe
mo... |
.8086
.model small
.data
array db 01h, 02h, 03h, 04h, 05h, 06h, 07h, 08h, 09h, 0ah
count db 0ah
avg dw ?
.code
start:
mov ax, @data
mov ds, ax
mov ax, 00h
lea si, array
mov cl, count
back: mov dl, [si]
mov dh, 00h
add ax, dx
inc si
dec cl
jnz back
div count
mov avg, ax
mov ah... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.