text stringlengths 1 1.05M |
|---|
#include "File_Analyzer.h"
File_Analyzer::File_Analyzer(const std::string & fileDictionary)
{
dictionary.createTrie(fileDictionary);
}
File_Analyzer::~File_Analyzer()
{
rFile.close();
}
void File_Analyzer::openFile(const std::string & file)
{
if (rFile.is_open())
rFile.close();
rFile.open(file);
if (!rFile... |
<%
from pwnlib.shellcraft.amd64.linux import syscall
%>
<%page args="path, buf, length"/>
<%docstring>
Invokes the syscall readlink. See 'man 2 readlink' for more information.
Arguments:
path(char): path
buf(char): buf
len(size_t): len
</%docstring>
${syscall('SYS_readlink', path, buf, length)}
|
/* file: cholesky_dense_default_batch_fpt_dispatcher.cpp */
/*******************************************************************************
* 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.
* Yo... |
#include "pch.h"
/////////////////////////////////////////////////////////////////////////////
//
// IPopup
//
/////////////////////////////////////////////////////////////////////////////
void IPopup::SetContainer(IPopupContainer* pcontainer)
{
m_pcontainer = pcontainer;
}
void IPopup::SetOwner(IPopup* ppopupOw... |
/**
@author Shin'ichiro Nakaoka
*/
#include "JointStateView.h"
#include "LinkDeviceTreeWidget.h"
#include "BodySelectionManager.h"
#include <cnoid/BodyItem>
#include <cnoid/Body>
#include <cnoid/ConnectionSet>
#include <cnoid/EigenUtil>
#include <cnoid/ExtraBodyStateAccessor>
#include <cnoid/LazyCaller>
#include <c... |
LMDiamond7 label byte
word C_BLACK
Bitmap <71,100,BMC_PACKBITS,BMF_MONO>
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0x01, 0x0f, 0xf8, 0xfa, 0x00
db 0x01, 0x0f, 0xf8, 0xfc, 0x00, 0x01, 0x04, 0x00
db 0x01, 0x0c, 0x18, 0xfc, 0x00, 0x01, 0x0e, 0x00
db 0x01, 0x0c, 0x38, 0xfc, 0x00, 0x01, ... |
.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, 96
call lwaitly_b
ld a, 80
ldff(68), a
ld a, ff
ld c, 69
ldff(c), a
ldff(c), a
ldff(c), a
ldff(c), a
ldff(c), a... |
; A082639: Numbers n such that 2*n*(n+2) is a square.
; 0,2,16,98,576,3362,19600,114242,665856,3880898,22619536,131836322,768398400,4478554082,26102926096,152139002498,886731088896,5168247530882,30122754096400,175568277047522,1023286908188736
mov $2,1
lpb $0
sub $0,1
add $1,$2
add $2,$1
add $2,$1
add $1,$2
l... |
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r15
push %r8
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0xb1e3, %rsi
lea addresses_D_ht+0x4a72, %rdi
and $31194, %r9
mov $9, %rcx
rep movsb
nop
nop
nop
add $2426, %r8
lea addresses_WT_ht+0x1339b, %r14
clflush (%r14)
nop
nop
nop
sub $37159, %r1... |
; A203170: Sum of the fourth powers of the first n odd-indexed Fibonacci numbers.
; Submitted by Jamie Morken(s4)
; 0,1,17,642,29203,1365539,64107780,3011403301,141469813301,6646055880582,312223061019703,14667837157106759,689076118833981960,32371909717271872585,1520790680382055836761,71444790066793903279242
mov $2,$0
... |
; A224880: a(n) = 2n + sum of divisors of n.
; 3,7,10,15,16,24,22,31,31,38,34,52,40,52,54,63,52,75,58,82,74,80,70,108,81,94,94,112,88,132,94,127,114,122,118,163,112,136,134,170,124,180,130,172,168,164,142,220,155,193,174,202,160,228,182,232,194,206,178,288,184,220,230,255,214,276,202,262,234,284,214,339,220,262,274,292... |
/*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#include <cmn/agent_cmn.h>
#include <ksync/ksync_index.h>
#include <ksync/ksync_entry.h>
#include <ksync/ksync_object.h>
#include <vnc_cfg_types.h>
#include <bgp_schema_types.h>
#include <agent_types.h>
#include <oper/peer.h>
#include <oper/vr... |
; A007486: a(n) = a(n-1) + a(n-2) + a(n-3).
; Submitted by Jamie Morken(s2)
; 1,3,4,8,15,27,50,92,169,311,572,1052,1935,3559,6546,12040,22145,40731,74916,137792,253439,466147,857378,1576964,2900489,5334831,9812284,18047604,33194719,61054607,112296930,206546256,379897793,698740979,1285185028,2363823800,4347749807,799675... |
; A252076: Numbers n such that the sum of the heptagonal numbers H(n) and H(n+1) is equal to the hexagonal number X(m) for some m.
; Submitted by Jon Maiga
; 0,486,701100,1010986002,1457841114072,2102205875506110,3031379414638696836,4371247013703125331690,6303335162380492089600432,9089404932905655890078491542,131069156... |
; A187110: Decimal expansion of sqrt(3/8).
; Submitted by Jon Maiga
; 6,1,2,3,7,2,4,3,5,6,9,5,7,9,4,5,2,4,5,4,9,3,2,1,0,1,8,6,7,6,4,7,2,8,4,7,9,9,1,4,8,6,8,7,0,1,6,4,1,6,7,5,3,2,1,0,8,1,7,3,1,4,1,8,1,2,7,4,0,0,9,4,3,6,4,3,2,8,7,5,6,6,3,4,9,6,4,8,5,8
mov $1,1
mov $2,1
mov $3,$0
add $3,8
mov $4,$0
add $4,3
mul $4,2
mov ... |
/* Copyright (c) 2005, Regents of Massachusetts Institute of Technology,
* Brandeis University, Brown University, and University of Massachusetts
* Boston. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condit... |
; A271017: Number of active (ON,black) cells at stage 2^n-1 of the two-dimensional cellular automaton defined by "Rule 251", based on the 5-celled von Neumann neighborhood.
; 1,5,41,185,761,3065,12281,49145,196601,786425,3145721,12582905,50331641,201326585,805306361,3221225465
mul $0,2
mov $1,2
pow $1,$0
mul $1,3
trn ... |
// -----------------------------------------------------------------------------------------
// QSVEnc/NVEnc by rigaya
// -----------------------------------------------------------------------------------------
// The MIT License
//
// Copyright (c) 2011-2016 rigaya
//
// Permission is hereby granted, free of ... |
; A081343: a(n) = (10^n + 4^n)/2.
; 1,7,58,532,5128,50512,502048,5008192,50032768,500131072,5000524288,50002097152,500008388608,5000033554432,50000134217728,500000536870912,5000002147483648,50000008589934592,500000034359738368,5000000137438953472,50000000549755813888,500000002199023255552,5000000008796093022208,5000000... |
; A236916: The first "octad" is 0, 1, 2, 2, 2, 2, 3, 3; thereafter add 4 to get the next octad.
; 0,1,2,2,2,2,3,3,4,5,6,6,6,6,7,7,8,9,10,10,10,10,11,11,12,13,14,14,14,14,15,15,16,17,18,18,18,18,19,19,20,21,22,22,22,22,23,23,24,25,26,26,26,26,27,27,28,29,30,30,30,30,31,31,32,33,34,34,34,34,35,35,36,37,38,38,38,38,39,39,... |
BITS 32
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
; convert 1 to a single precision float and store in xmm0
mov ecx, 1
cvtsi2ss xmm0, ecx
;TEST_BEGIN_RECORDING
; load 1 in single floating point form
lea ecx, [esp-8]
movss [ecx], xmm0
; value should appear in eax for testing
m... |
//------------------------------------
// parse.cpp
// (c) Bartosz Milewski, 1994
//------------------------------------
#include "parse.h"
#include "scan.h"
#include "tree.h"
#include "symtab.h"
#include "store.h"
#include <cstdlib>
#include <cassert>
#include <cmath>
#include <iostream>
using std::... |
; A047470: Numbers that are congruent to {0, 3} mod 8.
; 0,3,8,11,16,19,24,27,32,35,40,43,48,51,56,59,64,67,72,75,80,83,88,91,96,99,104,107,112,115,120,123,128,131,136,139,144,147,152,155,160,163,168,171,176,179,184,187,192,195,200,203,208,211,216,219,224,227,232,235,240,243,248,251,256,259,264,267,272,275,280,283,288,... |
;
; Sound effects driver for GB
;
; Copyright 2018, 2019 Damian Yerrick
;
; This software is provided 'as-is', without any express or implied
; warranty. In no event will the authors be held liable for any damages
; arising from the use of this software.
;
; Permission is granted to anyone to use this softwa... |
Sound2B_Swish_Header:
smpsHeaderStartSong 2
smpsHeaderVoiceNull
smpsHeaderTempoSFX $01
smpsHeaderChanSFX $01
smpsHeaderSFXChannel cPSG3, Sound2B_Swish_PSG3, $00, $00
; PSG3 Data
Sound2B_Swish_PSG3:
smpsPSGvoice $00
smpsPSGform $E7
dc.b nMaxPSG, $03, nRst, $03, nMaxPSG, $01, smpsNoAttack
Sou... |
//就我个人的实际提交体验来看
//CSDN有人提出:要想把fgets()接收的字符串变得和gets()一样还需要str[len - 2] = '\0';因为fgets()会把空格也接收到
//但经过我的实际提交,这样的做法会导致答案错误
//故我还是保持原来的做法
//只取其中的语句即可
void fgetstogets(char * str) {
int len = strlen(str); //这个len的长度是包括换行符的,真正的字符串长度还要小1
if(str[len - 1] == '\n' && str[len] == '\0') { //把最后接受到的换行符替换为'\0'空字符
str[len - 1]... |
; A000792: a(n) = max{(n - i)*a(i) : i < n}; a(0) = 1.
; 1,1,2,3,4,6,9,12,18,27,36,54,81,108,162,243,324,486,729,972,1458,2187,2916,4374,6561,8748,13122,19683,26244,39366,59049,78732,118098,177147,236196,354294,531441,708588,1062882,1594323,2125764,3188646,4782969,6377292,9565938,14348907,19131876,28697814,43046721,573... |
;
; This file contains an 'Intel Peripheral Driver' and is
; licensed for Intel CPUs and chipsets under the terms of your
; license agreement with Intel or your vendor. This file may
; be modified by the user, subject to additional terms of the
; license agreement
;; @file
; This is the code that goes from real... |
; A058481: a(n) = 3^n - 2.
; 1,7,25,79,241,727,2185,6559,19681,59047,177145,531439,1594321,4782967,14348905,43046719,129140161,387420487,1162261465,3486784399,10460353201,31381059607,94143178825,282429536479,847288609441,2541865828327,7625597484985,22876792454959,68630377364881,205891132094647,617673396283945,185302018... |
; Licensed to the .NET Foundation under one or more agreements.
; The .NET Foundation licenses this file to you under the MIT license.
include AsmMacros.inc
include asmconstants.inc
extern JIT_InternalThrow:proc
extern NDirectImportWorker:proc
extern ThePreStub:proc
extern ProfileEnter:proc
extern ProfileLeave:proc... |
#pragma once
namespace SmartIotInternals {
// config mode
const char PROGMEM_CONFIG_APPLICATION_JSON[] PROGMEM = "application/json";
const char PROGMEM_CONFIG_JSON_SUCCESS[] PROGMEM = "{\"success\":true}";
const char PROGMEM_CONFIG_JSON_FAILURE_BEGINNING[] PROGMEM = "{\"success\":false,\"error\":\"";
const ... |
; A254663: Numbers of n-length words on alphabet {0,1,...,7} with no subwords ii, where i is from {0,1,...,5}.
; 1,8,58,422,3070,22334,162478,1182014,8599054,62557406,455099950,3310814462,24085901134,175222936862,1274732360302,9273572395838,67464471491470,490798445231966,3570518059606702,25975223307710846
mov $1,1
lpb... |
MVI B,13H
MVI C,17H
ADD B
ADD C
ADI 16H
ADI 14H
|
//*****************************************************************************
// Copyright 2017-2021 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://w... |
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "bip38.h"
#include "init.h"... |
INCLUDE "sdk/hardware.inc"
; http://www.devrs.com/gb/files/sndtab.html
DEF NOTE_C_3 EQU 44
DEF NOTE_Cs3 EQU 156
DEF NOTE_D_3 EQU 262
DEF NOTE_Ds3 EQU 363
DEF NOTE_E_3 EQU 457
DEF NOTE_F_3 EQU 547
DEF NOTE_Fs3 EQU 631
DEF NOTE_G_3 EQU 710
DEF NOTE_Gs3 EQU 786
DEF NOTE_A_3 EQU 854
DEF NOTE_As3 EQU 923
DEF NOTE_B_3 EQU 9... |
;/*!
; @file
;
; @ingroup fapi
;
; @brief DosSetVerify DOS wrapper
;
; (c) osFree Project 2018, <http://www.osFree.org>
; for licence see licence.txt in root directory, or project website
;
; This is Family API implementation for DOS, used with BIND tools
; to link required API
;
; @author Yuri Prokushe... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r8
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x10313, %rsi
lea addresses_D_ht+0x1ac9b, %rdi
nop
nop
nop
cmp %r11, %r11
mov $40, %rcx
rep movsw
nop
nop
nop
nop
nop
cmp $63512, %r9
lea addresses_WT_ht+0x1de87, %rbp
nop
nop
n... |
; A014068: a(n) = binomial(n*(n+1)/2, n).
; 1,1,3,20,210,3003,54264,1184040,30260340,886163135,29248649430,1074082795968,43430966148115,1917283000904460,91748617512913200,4730523156632595024,261429178502421685800,15415916972482007401455,966121413245991846673830,64123483527473864490450300,4493328435856148676833725680,33... |
.p816
.feature c_comments
.include "macros.inc"
.rodata
ball0_tile_set: .incbin "tiles-256.bin"
ball1_tile_set: .incbin "tiles-224.bin"
ball2_tile_set: .incbin "tiles-192.bin"
ball3_tile_set: .incbin "tiles-160.bin"
bmp_1: .incbin "grid-00000.bin"
bmp_2: .incbin "grid-10000.bin"
bmp_3: .incbin "grid-20000.bin"
... |
; A023515: a(n) = prime(n)*prime(n-1) - 1.
; 1,5,14,34,76,142,220,322,436,666,898,1146,1516,1762,2020,2490,3126,3598,4086,4756,5182,5766,6556,7386,8632,9796,10402,11020,11662,12316,14350,16636,17946,19042,20710,22498,23706,25590,27220,28890,30966,32398,34570,36862,38020,39202,41988,47052,50620,51982,53356,55686,57598,6... |
# MIPS executa linha por linha
# Começa em .text, main é considerado padrão para começar
.text # programa vai embaixo de .text, o que vai rodar
# label
main:
# registradores armazenam informação
# no MARS, podemos ver os registradores na direita ($)
# Carregar valores em um registrador:
li $t0, 5 # load immediate, re... |
/***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2017, Alliance for Sustainable Energy, LLC. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are perm... |
; A032196: Number of necklaces with 11 black beads and n-11 white beads.
; 1,1,6,26,91,273,728,1768,3978,8398,16796,32066,58786,104006,178296,297160,482885,766935,1193010,1820910,2731365,4032015,5864750,8414640,11920740,16689036,23107896,31666376,42975796
mov $2,$0
mov $0,4
mov $1,10
add $1,$2
bin $1,10
mul $1,4
mov $... |
object_const_def ; object_event constants
const VICTORYROADGATE_OFFICER
const VICTORYROADGATE_OFFICER2
const VICTORYROADGATE_COOLTRAINERF
VictoryRoadGate_MapScripts:
db 2 ; scene scripts
scene_script .DummyScene0 ; SCENE_VICTORYROADGATE_NOTHING
scene_script .DummyScene1 ; SCENE_VICTORYROADGATE_CHECKBADGE
db 0... |
bits 64
default rel
section .text
global pal_execute_read_cs
pal_execute_read_cs :
xor rax, rax
mov ax, cs
ret
|
#ifndef EE_SYSTEM_IOSTREAMDEFLATE_HPP
#define EE_SYSTEM_IOSTREAMDEFLATE_HPP
#include <eepp/system/compression.hpp>
#include <eepp/system/iostream.hpp>
#include <eepp/system/scopedbuffer.hpp>
namespace EE { namespace System {
struct LocalStreamData;
/** @brief Implementation of a deflating stream */
class EE_API IOS... |
; A265611: a(n) = a(n-1) + floor((n-1)/2) - (-1)^n + 2 for n>=2, a(0)=1, a(1)=3.
; 1,3,4,8,10,15,18,24,28,35,40,48,54,63,70,80,88,99,108,120,130,143,154,168,180,195,208,224,238,255,270,288,304,323,340,360,378,399,418,440,460,483,504,528,550,575,598,624,648,675,700,728,754,783,810,840,868,899,928,960,990,1023,1054,1088,... |
#include <bits/stdc++.h>
using namespace std;
inline long long read()
{
long long x = 0;
int f = 1;
char ch = getchar();
while (ch < '0' || ch>'9')
{
if (ch == '-')
f = -1;
ch = getchar();
}
while (ch >= '0' && ch <= '9')
{
x = (x << 1) + (x << 3) + (ch ^ 48);
ch = getchar();
}
return x * f;
}
vo... |
; void sp1_InitCharStruct(struct sp1_cs *cs, void *drawf, uchar type, void *graphic, uchar plane)
; 05.2007 aralbrec, Sprite Pack v3.0
; sinclair spectrum version
SECTION code_clib
SECTION code_temp_sp1
PUBLIC asm_sp1_InitCharStruct
EXTERN _sp1_struct_cs_prototype
EXTERN SP1V_ROTTBL
asm_sp1_InitCharStruct:
; enter... |
; SBAS_IDATA - DATA Statement Handling 1994 Tony Tebby
section sbas
xdef bo_readf ; READ
xdef bo_read
xdef bo_readd
xdef bo_restore
xdef sb_dpset
xdef sb_dlsiset
xref sb_ierset
xref sb_fint
xref sb_adddst
xref sb_dstadd
include 'dev8_keys_sbasic'
include 'dev8_keys_err4'
include 'dev8_mac... |
; A293547: a(n) is the integer k that minimizes |k/Fibonacci(n) - 2/3|.
; 0,1,1,1,2,3,5,9,14,23,37,59,96,155,251,407,658,1065,1723,2787,4510,7297,11807,19105,30912,50017,80929,130945,211874,342819,554693,897513,1452206,2349719,3801925,6151643,9953568,16105211,26058779,42163991,68222770,110386761,178609531,288996291,467... |
/*-------------------------------------------------------------------------
* Vulkan Conformance Tests
* ------------------------
*
* Copyright (c) 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ob... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x10eba, %rdi
nop
nop
nop
nop
dec %rbx
movb $0x61, (%rdi)
nop
nop
nop
inc %rsi
lea addresses_UC_ht+0x1c4dc, %rsi
lea addresses_UC_ht+0x11dfa, %rdi
nop
nop
sub %rbx, %rbx
mov $10... |
clc
lda {m2}
adc {c1},x
sta {m1}
lda {m2}+1
adc {c1}+1,x
sta {m1}+1 |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r14
push %r8
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x1312d, %rsi
lea addresses_UC_ht+0x1efbf, %rdi
nop
nop
and %r12, %r12
mov $43, %rcx
rep movsl
nop
nop
inc %r14
lea addresses_normal_ht+0x137ed, %rsi
lea addresses_WC_ht+0x5c53,... |
/* i | %1 (ID: 4) | mem2reg */
void foo(int* a) {
*a += 42;
}
int main() {
int i = 10;
foo(&i);
return 0;
} |
/* ====================================================================
* The Vovida Software License, Version 1.0
*
* Copyright (c) 2000-2003 Vovida Networks, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the follo... |
; A184591: floor[(n*(pi-1)-1]; complement of A184592.
; 1,3,5,7,9,11,13,16,18,20,22,24,26,28,31,33,35,37,39,41,43,46,48,50,52,54,56,58,61,63,65,67,69,71,73,76,78,80,82,84,86,88,91,93,95,97,99,101,103,106,108,110,112,114,116,118,121,123,125,127,129,131,133,136,138,140,142,144,146,148,151,153,155,157,159,161,163,166,168,... |
;.word 0,0,0, NMI, RESET, IRQ
lda #$80
sta $8000
jmp RESET
.word NMI,$FFF2,IRQ
|
_mkdir: file format elf64-x86-64
Disassembly of section .text:
0000000000001000 <main>:
#include "stat.h"
#include "user.h"
int
main(int argc, char *argv[])
{
1000: f3 0f 1e fa endbr64
1004: 55 push %rbp
1005: 48 89 e5 mov %rsp,%rbp
1008: 48 83 ec... |
// Copyright 2016 Etix Labs
//
// 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 wr... |
// Copyright (c) 2009-2016 Vladimir Batov.
// Use, modification and distribution are subject to the Boost Software License,
// Version 1.0. See http://www.boost.org/LICENSE_1_0.txt.
#ifndef BOOST_CONVERT_DETAIL_IS_CHAR_HPP
#define BOOST_CONVERT_DETAIL_IS_CHAR_HPP
#include <boost/convert/detail/config.hpp>
#include <t... |
// ../MemoryAccess/PointerTest/PointerTest.vm
@3030
D=A
@SP
A=M
M=D
@SP
AM=M+1
@0
D=A
@R3
AD=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@3040
D=A
@SP
A=M
M=D
@SP
AM=M+1
@1
D=A
@R3
AD=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@32
D=A
@SP
A=M
M=D
@SP
AM=M+1
@2
D=A
@THIS
AD=D+M
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@46
D=A
@S... |
extern scanf, printf
global main
section .data
msg db "%d", 0AH, 0H
section .text
main:
mov ecx, 1000; Inicio
repetir:
xor edx, edx; Dividendo
mov eax, ecx; Dividendo
mov ebx, 11; Divisor
div ebx
cmp edx, 5
je imprimir
avalicao:
inc ecx
cmp ecx, 2000
jl repetir
fim:
mov eax, 1
xor ecx, ecx... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r15
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x19ca5, %rdi
nop
inc %r13
mov (%rdi), %r8w
nop
nop
nop
add %rbp, %rbp
lea addresses_UC_ht+0xe025, %r15
sub $38203, %r8
mov $0x6162636465666768, %r12
movq %r12, (%r15)
nop
... |
; A162274: a(n) = ((2+sqrt(3))*(4+sqrt(3))^n + (2-sqrt(3))*(4-sqrt(3))^n)/2.
; Submitted by Jamie Morken(s4)
; 2,11,62,353,2018,11555,66206,379433,2174786,12465659,71453054,409570865,2347677218,13456996499,77136168158,442148390777,2534416940162,14527406441195,83271831307454,477318366724097
mov $3,1
lpb $0
sub $0,$3
... |
; A028365: Order of general affine group over GF(2), AGL(n,2).
; Submitted by Jamie Morken(s1.)
; 1,2,24,1344,322560,319979520,1290157424640,20972799094947840,1369104324918194995200,358201502736997192984166400,375234700595146883504949480652800,1573079924978208093254925489963584716800,26385458351250481733136055834218002... |
; A021189: Decimal expansion of 1/185.
; 0,0,5,4,0,5,4,0,5,4,0,5,4,0,5,4,0,5,4,0,5,4,0,5,4,0,5,4,0,5,4,0,5,4,0,5,4,0,5,4,0,5,4,0,5,4,0,5,4,0,5,4,0,5,4,0,5,4,0,5,4,0,5,4,0,5,4,0,5,4,0,5,4,0,5,4,0,5,4,0,5,4,0,5,4,0,5,4,0,5,4,0,5,4,0,5,4,0,5
mov $2,6
lpb $0
sub $0,1
mod $0,3
mov $1,$3
sub $2,1
mov $3,$2
lpe
mov... |
; code for an interrupt serviced data buffer. similar code is used to drive the XY
; stepper motors on a plotter with new position information every 5mS and also to
; allow pen up/down movement time of 70mS
*= $B000 ; set origin (buffer and variables must be in RAM)
Buffer ; 256 byte buffer ... |
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... |
<%
from pwnlib.shellcraft.aarch64.linux import syscall
%>
<%page args="mqdes, msg_ptr, msg_len, msg_prio, abs_timeout"/>
<%docstring>
Invokes the syscall mq_timedsend. See 'man 2 mq_timedsend' for more information.
Arguments:
mqdes(mqd_t): mqdes
msg_ptr(char): msg_ptr
msg_len(size_t): msg_len
msg_... |
;;
;; Copyright (c) 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 the ... |
;================================================================================
; Service Request Support Code
;--------------------------------------------------------------------------------
; $7F5300 - $7F53FF - Multiworld Block
; $00 - $5F - RX Buffer
; $60 - $7E - Reserved
; $7F - RX Status
; $80 - $EF - TX B... |
; size_t w_vector_erase_range(w_vector_t *v, size_t idx_first, size_t idx_last)
SECTION code_clib
SECTION code_adt_w_vector
PUBLIC w_vector_erase_range_callee
EXTERN w_array_erase_range_callee
defc w_vector_erase_range_callee = w_array_erase_range_callee
|
; The MIT License (MIT)
;
; Copyright (c) 2014 Microsoft
;
; 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... |
; A147685: Squares and centered square numbers interleaved.
; 0,1,1,5,4,13,9,25,16,41,25,61,36,85,49,113,64,145,81,181,100,221,121,265,144,313,169,365,196,421,225,481,256,545,289,613,324,685,361,761,400,841,441,925,484,1013,529,1105,576,1201,625,1301,676,1405,729,1513,784,1625,841,1741,900,1861,961,1985,1024,2113,1089,... |
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// ... |
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <algorithm>
using namespace std;
int main() {
int n1, n2, test=1;
cin >> n1 >> n2;
while (n1 + n2 != 0) {
vector<int> v;
for (int i = 0; i < n1; i++) {
int temp;
cin >> temp;
v.push_back(temp);
}
int total = 0;
... |
BITS 32
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=FLAG_CF|FLAG_OF|FLAG_SF|FLAG_AF|FLAG_PF
;TEST_FILE_META_END
;TEST_BEGIN_RECORDING
lea ecx, [esp-0x20]
mov dword [ecx], 0x114400
bsf eax, [ecx]
mov ecx, 0
;TEST_END_RECORDING
|
# x86 mpn_divrem_1 -- mpn by limb division extending to fractional quotient.
#
# cycles/limb
# K7 42
# K6 20
# P6 40
# P5 44
# 486 approx 43 maybe
# Copyright (C) 1999, 2000 Free Software Foundation, Inc.
#
# This file is part of the GNU MP Library.
#
# The GNU MP Library is free s... |
// 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.
#ifdef _WIN32
# pragma warning(disable : 4996) // generated by inner_product use
#endif
#include <fstream>
#include <vecto... |
; QLSD boot string
section banner
xdef banner
xref.l qlsd_vers
banner
dc.w txt_end-*-2
dc.b 'QLSD WIN driver '
dc.l qlsd_vers
dc.b ' WL + MK 2020',$a
; 'QLSD WIN driver 0.00 WL + MK 2020',$a
; ' (max 35 chars) ',$0A
txt_end
end
|
; A097337: Integer part of the edge of a cube that has space-diagonal n.
; 0,1,1,2,2,3,4,4,5,5,6,6,7,8,8,9,9,10,10,11,12,12,13,13,14,15,15,16,16,17,17,18,19,19,20,20,21,21,22,23,23,24,24,25,25,26,27,27,28,28,29,30,30,31,31,32,32,33,34,34,35,35,36,36,37,38,38,39,39,40,40,41,42,42,43,43,44,45,45,46,46,47,47,48,49,49,50,5... |
PresetsMenuPkrd:
dw #presets_goto_pkrd_crateria
dw #presets_goto_pkrd_brinstar
dw #presets_goto_pkrd_wrecked_ship
dw #presets_goto_pkrd_red_brinstar_revisit
dw #presets_goto_pkrd_kraid
dw #presets_goto_pkrd_upper_norfair
dw #presets_goto_pkrd_lower_norfair
dw #presets_goto_pkrd_maridia
... |
; double __CALLEE__ scalbn(double x, int n)
SECTION code_fp_math48
PUBLIC cm48_sccz80_scalbn_callee
EXTERN am48_scalbn
cm48_sccz80_scalbn_callee:
pop af
pop hl ; hl = n
exx
pop hl ; AC'= x
pop de
pop bc
exx
push af
jp am4... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x114f6, %rsi
lea addresses_A_ht+0x15a76, %rdi
clflush (%rdi)
nop
nop
nop
nop
nop
inc %rbx
mov $19, %rcx
rep movsb
nop
nop
nop
add %rcx, %rcx
lea addresses_WT_ht+0x1a486, %rbx
nop
nop
n... |
; A200887: Number of 0..n arrays x(0..3) of 4 elements without any interior element greater than both neighbors.
; 12,51,144,325,636,1127,1856,2889,4300,6171,8592,11661,15484,20175,25856,32657,40716,50179,61200,73941,88572,105271,124224,145625,169676,196587,226576,259869,296700,337311,381952,430881,484364,542675,606096... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r14
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x1bb66, %r14
nop
nop
nop
nop
nop
cmp %r9, %r9
mov (%r14), %bx
dec %rcx
lea addresses_A_ht+0x8e68, %r11
nop
nop
inc %r12
mov $0x6162636465666768, %r9
movq %r9, %x... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>socketcall_setsockopt(vararg_0, vararg_1, vararg_2, vararg_3, vararg_4) -> str
Invokes the syscall socketcall_setsockopt.
See 'man 2 socketcall_setsockopt' for more information.
Arguments:
vararg(in... |
; A129343: a(2n) = a(n), a(2n+1) = 4n+1.
; 0,1,1,5,1,9,5,13,1,17,9,21,5,25,13,29,1,33,17,37,9,41,21,45,5,49,25,53,13,57,29,61,1,65,33,69,17,73,37,77,9,81,41,85,21,89,45,93,5,97,49,101,25,105,53,109,13,113,57,117,29,121,61,125,1,129,65,133,33,137
mul $0,2
mov $1,1
lpb $0
mov $1,$0
dif $0,2
lpe
sub $1,1
|
// 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 may... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2016 The Dash developers
// Copyright (c) 2016-2018 The Bithost developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "transactiontablemod... |
CreditsTextPointers:
dw CredVersion
dw CredTajiri
dw CredTaOota
dw CredMorimoto
dw CredWatanabe
dw CredMasuda
dw CredNisino
dw CredSugimori
dw CredNishida
dw CredMiyamoto
dw CredKawaguchi
dw CredIshihara
dw CredYamauchi
dw CredZinnai
dw CredHishida
dw CredSakai
dw CredYamaguchi
dw CredYamamoto
dw Cre... |
; float _negf (float number) __z88dk_fastcall
SECTION code_clib
SECTION code_fp_math32
PUBLIC asm_dneg
EXTERN m32_fsneg
; negate DEHL'
;
; enter : DEHL'= double x
;
; exit : DEHL'= -x
;
; uses :
.asm_dneg
exx
call m32_fsneg
exx
ret
|
/*
Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de)
Copyright (C) 2001 Dirk Mueller (mueller@kde.org)
Copyright (C) 2002 Waldo Bastian (bastian@kde.org)
Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
Copyright (c) 2... |
; Startup Code for Sega Master System
;
; Haroldo O. Pinheiro February 2006
;
; $Id: sms_crt0.asm,v 1.2 2007/06/02 22:33:59 dom Exp $
;
DEFC ROM_Start = $0000
DEFC INT_Start = $0038
DEFC NMI_Start = $0066
DEFC CODE_Start = $0100
DEFC RAM_Start = $C000
DEFC RAM_Length = $2000
DEFC Stack_Top = $dff0
... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT
#include "test_base.hpp"
namespace Azure { namespace Storage { namespace Test {
TEST_F(ClientSecretCredentialTest, ClientSecretCredentialWorks)
{
auto containerClient = GetClientForTest(GetTestName());
EXPECT_NO... |
INCLUDE "graphics/grafix.inc"
SECTION code_graphics
PUBLIC plotpixel
EXTERN pixeladdress
EXTERN __gfx_coords
;
; $Id: plotpixl.asm,v 1.7 2016-07-02 09:01:35 dom Exp $
;
; ******************************************************************
;
; Plot pixel at (x,y) coordinate.
;
; Design & programming by Gu... |
;------------------------------------------------------------------------------ ;
; Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
; Module Name:
;
; ExceptionHandlerAsm.Asm
;
; Abstract:
;
; x64 CPU Exception Handler
;
; Notes:
;
;-----------... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.