text stringlengths 1 1.05M |
|---|
/**
* Copyright 2020-2021 Huawei Technologies Co., Ltd
*
* 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 applicabl... |
#include <iostream>
#include "AdjacencyMapGraph.h"
#include "adjacency_map_graph_factory.h"
#include "kruskal_mst_compressed.h"
#include "sum_weights.h"
int main() noexcept {
typedef size_t Label; // nodes are identified by size_t type
typedef long Weight; // weights are of type long
AdjacencyMapGraph... |
#include "windowSys.h"
#include "inputSys.h"
#include "objects.h"
#include "program.h"
#include <filesystem>
namespace fs = std::filesystem;
// FONT
FontSet::FontSet(const char* name) {
TTF_Font* tmp = nullptr;
#ifdef _WIN32
for (const fs::path& drc : {fs::path(L"."), fs::path(_wgetenv(L"SystemDrive")) / L"\\Window... |
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r8
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x11764, %rcx
nop
cmp %rdx, %rdx
movw $0x6162, (%rcx)
nop
nop
and %rdi, %rdi
lea addresses_A_ht+0x1c1c4, %r8
nop
nop
nop
cmp $25756, %r14
movw $0x6162, (%r8)
nop
xor $62045, %rd... |
#include <atomic>
#include <mutex>
#include "globals.hpp"
std::vector<cerb::ListenThread> cerb_global::all_threads;
thread_local cerb::msize_t cerb_global::allocated_buffer(0);
thread_local cerb::Time cerb_global::poll_start;
cerb::Interval cerb_global::slow_poll_elapse;
static std::mutex remote_addrs_mutex;
static... |
COMMENT }%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1988 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: SVGA screen driver
FILE: svga.asm
AUTHOR: Jim DeFrisco
REVISION HISTORY:
Name Date Description
---- ---- -----------
Jim 9/90 initial v... |
#ifndef GRB_BACKEND_APSPIE_DESCRIPTOR_HPP
#define GRB_BACKEND_APSPIE_DESCRIPTOR_HPP
#include <vector>
#include <moderngpu.cuh>
namespace graphblas
{
namespace backend
{
class Descriptor
{
public:
// Default Constructor, Standard Constructor (Replaces new in C++)
// -it's imperative to call construc... |
; A131470: a(n)=smallest number that gives a product with the sum of digits of n written in base 2 greater than n.
; 2,3,2,5,3,4,3,9,5,6,4,7,5,5,4,17,9,10,7,11,8,8,6,13,9,9,7,10,8,8,7,33,17,18,12,19,13,13,10,21,14,15,11,15,12,12,10,25,17,17,13,18,14,14,12,19,15,15,12,16,13,13,11,65,33,34,23
mov $1,$0
add $0,1
seq $1,4... |
; A223577: Positive integers n for which there is exactly one negative integer m such that -n = floor(cot(Pi/(2*m))).
; 1,2,3,5,8,10,12,15,17,19,22,24,26,29,31,33,35,38,40,42,45,47,49,52,54,56,59,61,63,66,68,70,73,75,77,80,82,84,87,89,91,94,96,98,101,103,105,108,110,112,115,117,119,122,124,126,129,131,133,136,138
mov ... |
#include "bitcoinunits.h"
#include <QStringList>
BitcoinUnits::BitcoinUnits(QObject *parent):
QAbstractListModel(parent),
unitlist(availableUnits())
{
}
QList<BitcoinUnits::Unit> BitcoinUnits::availableUnits()
{
QList<BitcoinUnits::Unit> unitlist;
unitlist.append(BTC);
unitlist.append(mBT... |
<%
from pwnlib.shellcraft.arm.linux import syscall
%>
<%page args="fd, iovec, count"/>
<%docstring>
Invokes the syscall readv. See 'man 2 readv' for more information.
Arguments:
fd(int): fd
iovec(iovec): iovec
count(int): count
</%docstring>
${syscall('SYS_readv', fd, iovec, count)}
|
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r13
push %r15
push %rax
push %rbx
push %rdx
// Store
lea addresses_D+0x5633, %r10
nop
nop
nop
nop
add $8694, %r13
movl $0x51525354, (%r10)
nop
nop
xor $53032, %r13
// Store
mov $0x19feab0000000f51, %ra... |
.intel_syntax noprefix
MFENCE
NOP
NOP
NOP
ADD R14, 40
JMP .bb0
.bb0:
AND RCX, 0b111111000000
ADD RCX, R14
CMOVZ ECX, dword ptr [RCX]
LAHF
{store} ADC RAX, RAX
AND RDX, 0b111111000000
ADD RDX, R14
SETNZ byte ptr [RDX]
MOVSX EDX, BX
AND RCX, 0b111111000000
ADD RCX, R14
SUB CX, 19187
JNP .bb1
JMP .bb2
.bb1:
MOVZX EDX, CX
... |
; A183574: n+Floor[sqrt(2n+2)].
; 3,4,5,7,8,9,11,12,13,14,15,17,18,19,20,21,23,24,25,26,27,28,29,31,32,33,34,35,36,37,39,40,41,42,43,44,45,46,47,49,50,51,52,53,54,55,56,57,59,60,61,62,63,64,65,66,67,68,69,71,72,73,74,75,76,77,78,79,80,81,83,84,85,86,87,88,89,90,91,92
mov $1,$0
add $1,4
add $1,$0
lpb $1
add $0,1
su... |
;===========================================================================
; Util.asm
;---------------------------------------------------------------------------
; Assembly x86 library
;
;
; Author: Ahmed Hussein
; Created:
;
;
; This file provide some Macros that help in d... |
/*
Copyright (c) 2022 Xavier Leclercq
Released under the MIT License
See https://github.com/ishiko-cpp/logging/blob/main/LICENSE.txt
*/
#include "LogLevel.hpp"
using namespace Ishiko;
LogLevel::LogLevel()
: m_value(error)
{
}
LogLevel::LogLevel(Value value)
: m_value(value)
{
}
LogLevel LogLeve... |
; Erase current save file
; by Sixtare
Erase:
REP #$10
LDA $010A
CMP #$01
BEQ .01
BCS .02
.00
LDX #$008F
JMP .delete
.01
LDX #$011E
JMP .delete
.02
LDX #$01AD
.delete
LDY #$008F
LDA #$00
- STA $700000,x
STA $7001AD,x
DEX
DEY
BPL -
SEP #$10
RTS
|
;#############################################################################################
;# SHAPES AND DRAWING
;b = height
;c = width
;d = starting x
;e = starting y
drawBox:
dec b
dec b
dec b
dec b
ld a,(yOff)
add a,e
ld e,a
ld a,(xOff)
add a,d
ld d,a
and $7
ex af,af'
ld a,d
ld l,e
ld h,0
... |
; A038572: a(n) = n rotated one binary place to the right.
; 0,1,1,3,2,6,3,7,4,12,5,13,6,14,7,15,8,24,9,25,10,26,11,27,12,28,13,29,14,30,15,31,16,48,17,49,18,50,19,51,20,52,21,53,22,54,23,55,24,56,25,57,26,58,27,59,28,60,29,61,30,62,31,63,32,96,33,97,34,98,35,99,36,100,37,101,38,102,39,103,40,104,41,105,42,106,43,107,4... |
;PROGRAM PODAJĄCY GODZINĘ PO KAŻDYM NACIŚNIĘCIU KLAWISZA RETURN
MINUTE: DC INTEGER(60)
HOUR: DC INTEGER(3600)
DAY: DC INTEGER(86400)
UTC: DC INTEGER(7200)
SEPARATOR: DC CHAR(':')
TEN: DC INTEGER(10)
MAIN:
XOR 1, 1
CLOCK:
HALT
... |
; A044788: Numbers n such that string 7,5 occurs in the base 10 representation of n but not of n+1.
; Submitted by Christian Krause
; 75,175,275,375,475,575,675,759,775,875,975,1075,1175,1275,1375,1475,1575,1675,1759,1775,1875,1975,2075,2175,2275,2375,2475,2575,2675,2759,2775,2875,2975,3075,3175,3275,3375,3475,3575
ad... |
; A099531: Expansion of (1+x)^3/((1+x)^3+x^4).
; Submitted by Jamie Morken(w1)
; 1,0,0,0,-1,3,-6,10,-14,15,-7,-20,80,-188,351,-549,702,-622,-42,1839,-5471,11560,-20064,29144,-33329,21059,27730,-142182,355626,-689121,1114937,-1490892,1461360,-337220,-2996465,10030587,-22226506,39921442,-60118930,72788383,-55703295,-3105... |
<%
from pwnlib.shellcraft.i386.linux import syscall
%>
<%page args="fromfd, from_, tofd, to, flags"/>
<%docstring>
Invokes the syscall linkat. See 'man 2 linkat' for more information.
Arguments:
fromfd(int): fromfd
from(char): from
tofd(int): tofd
to(char): to
flags(int): flags
</%docstring>
... |
; A086113: Number of 3 X n (0,1) matrices such that each row and each column is nondecreasing or nonincreasing.
; 6,36,102,216,390,636,966,1392,1926,2580,3366,4296,5382,6636,8070,9696,11526,13572,15846,18360,21126,24156,27462,31056,34950,39156,43686,48552,53766,59340,65286,71616,78342,85476,93030,101016,109446,118332,1... |
<%
from pwnlib.shellcraft.thumb.linux import syscall
%>
<%page args="rgid, egid, sgid"/>
<%docstring>
Invokes the syscall getresgid. See 'man 2 getresgid' for more information.
Arguments:
rgid(gid_t): rgid
egid(gid_t): egid
sgid(gid_t): sgid
</%docstring>
${syscall('SYS_getresgid', rgid, egid, sg... |
; A021058: Decimal expansion of 1/54.
; 0,1,8,5,1,8,5,1,8,5,1,8,5,1,8,5,1,8,5,1,8,5,1,8,5,1,8,5,1,8,5,1,8,5,1,8,5,1,8,5,1,8,5,1,8,5,1,8,5,1,8,5,1,8,5,1,8,5,1,8,5,1,8,5,1,8,5,1,8,5,1,8,5,1,8,5,1,8,5,1,8,5,1,8,5,1,8,5,1,8,5,1,8,5,1,8,5,1,8
lpb $0
sub $2,2
add $2,$0
trn $0,$1
sub $1,$0
trn $1,1
add $1,4
trn... |
;
; Generic pseudo graphics routines for text-only platforms
;
; Xor pixel at (x,y) coordinate.
SECTION code_clib
PUBLIC c_xorpixel
defc NEEDxor = 1
.c_xorpixel
INCLUDE "c_pixel.asm"
|
; by Ish.
; Public domain from https://ish.works/bootsector/bootsector.html
bits 16 ; tell NASM this is 16 bit code
org 0x7c00 ; tell NASM that our code will be loaded at offset 0x7c00
%define CURRENT_LEVEL 0x1000
%define CURRENT_LEVEL_4 0x1004
%define SCREEN_DS 0xb800
boot:
; clear screen (re-set text... |
//
// Created by Oleg on 6/14/2018.
//
#include "neural_matrix.h"
#include "namespaces.h"
//
// Created by oleg on 6/4/18.
//
#include <iostream>
#include <cmath>
#include <stdexcept>
#include <random>
#include <ctime>
#pragma clang diagnostic push
#pragma ide diagnostic ignored "OCDFAInspection"
/************ NEUR... |
/***************************************************************************
*
* Project _____ __ ____ _ _
* ( _ ) /__\ (_ _)_| |_ _| |_
* )(_)( /(__)\ )( (_ _)(_ _)
* (_____)(__)(__)(__) |_| |_|
*
*
* Copyright 2018-present, Leoni... |
_BillsHouseText_1e865::
text "Hiya! I'm a"
line "#MON..."
cont "...No I'm not!"
para "Call me BILL!"
line "I'm a true blue"
cont "#MANIAC! Hey!"
cont "What's with that"
cont "skeptical look?"
para "I'm not joshing"
line "you, I screwed up"
cont "an experiment and"
cont "got combined with"
cont "a #MON!"
... |
; Z88 Small C+ Run time Library
; Moved functions over to proper libdefs
; To make startup code smaller and neater!
;
; 6/9/98 djm
SECTION code_l_sccz80
PUBLIC l_gchar, l_gchar_sxt
l_gchar:
; fetch char from (HL) and sign extend into HL
ld a,(hl)
l_gchar_sxt:
; sign extend a int... |
MoveEffectsPointers:
; entries correspond to EFFECT_* constants
dw NormalHit
dw DoSleep
dw PoisonHit
dw LeechHit
dw BurnHit
dw FreezeHit
dw ParalyzeHit
dw Selfdestruct
dw DreamEater
dw MirrorMove
dw AttackUp
dw DefenseUp
dw SpeedUp
dw SpecialAttackUp
dw SpecialDefenseUp
dw AccuracyUp
dw EvasionUp
dw N... |
; A258881: a(n) = n + the sum of the squared digits of n.
; 0,2,6,12,20,30,42,56,72,90,11,13,17,23,31,41,53,67,83,101,24,26,30,36,44,54,66,80,96,114,39,41,45,51,59,69,81,95,111,129,56,58,62,68,76,86,98,112,128,146,75,77,81,87,95,105,117,131,147,165,96,98,102
mov $1,$0
add $0,100
lpb $1
mov $2,$1
div $1,10
mod $2... |
/****************************************************************************
** Copyright (c) 2001-2014
**
** This file is part of the QuickFIX FIX Engine
**
** This file may be distributed under the terms of the quickfixengine.org
** license as defined by quickfixengine.org and appearing in the file
** LICENSE includ... |
; A040894: Continued fraction for sqrt(925).
; 30,2,2,2,2,60,2,2,2,2,60,2,2,2,2,60,2,2,2,2,60,2,2,2,2,60,2,2,2,2,60,2,2,2,2,60,2,2,2,2,60,2,2,2,2,60,2,2,2,2,60,2,2,2,2,60,2,2,2,2,60,2,2,2,2,60,2,2,2,2,60,2,2,2,2,60,2,2,2,2,60,2,2,2,2
mov $6,2
mov $7,$0
lpb $6
mov $0,$7
sub $6,1
add $0,$6
mov $2,8
mov $3,8
... |
;******************************************************************************
;* x86 optimized Format Conversion Utils
;* Copyright (c) 2008 Loren Merritt
;* Copyright (c) 2012 Justin Ruggles <justin.ruggles@gmail.com>
;*
;* This file is part of Libav.
;*
;* Libav is free software; you can redistribute it and/or
;* m... |
;
;
;
; This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
;
; Copyright 2007-2019 Broadcom Inc. All rights reserved.
;
;
; This is the default program for Greyhound SKUs:
; BCM534x6 Option2, BCM534x6 Option3
;
; To start it, use th... |
; int tape_load_block(void *addr, size_t len, unsigned char type)
; CALLER linkage for function pointers
PUBLIC tape_load_block
EXTERN tape_load_block_callee
EXTERN ASMDISP_TAPE_LOAD_BLOCK_CALLEE
.tape_load_block
pop ix
pop bc
pop de
pop hl
push hl
push de
push bc
push ix
jp tape_load... |
; ==================================================================
; MATH ROUTINES
; ==================================================================
; ------------------------------------------------------------------
; os_seed_random -- Seed the random number generator based on clock
; IN: Nothing; OUT: Nothing ... |
#include "TP_Type.h"
#include "third-party/fmt/core.h"
namespace decompiler {
u32 regs_to_gpr_mask(const std::vector<Register>& regs) {
u32 result = 0;
for (const auto& reg : regs) {
if (reg.get_kind() == Reg::GPR) {
result |= (1 << reg.get_gpr());
}
}
return result;
}
std::string TypeState::pri... |
; A021800: Decimal expansion of 1/796.
; Submitted by Jon Maiga
; 0,0,1,2,5,6,2,8,1,4,0,7,0,3,5,1,7,5,8,7,9,3,9,6,9,8,4,9,2,4,6,2,3,1,1,5,5,7,7,8,8,9,4,4,7,2,3,6,1,8,0,9,0,4,5,2,2,6,1,3,0,6,5,3,2,6,6,3,3,1,6,5,8,2,9,1,4,5,7,2,8,6,4,3,2,1,6,0,8,0,4,0,2,0,1,0,0,5,0
seq $0,199685 ; a(n) = 5*10^n+1.
div $0,398
mod $0,10
|
.model tiny
.code
org 100h
kkk:
nop ; ID
nop ; ID
mov cx,80h
mov si,0080h
mov di,0ff7fh
rep movsb ; save param
lea ax,begp ; begin prog
mov cx,ax
sub ax,100h
mov ds:[0fah],ax ; len VIR
add cx,fso
mov ds:[0f8h],cx ; begin buffer W
ADD CX,AX
mov... |
dnl AMD64 mpn_addlsh_n and mpn_rsblsh_n. R = V2^k +- U.
dnl Copyright 2006, 2010-2012 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of either:
dnl
dnl * the GNU Lesser Gener... |
;/*!
; @file
;
; @ingroup fapi
;
; @brief DosStartSession DOS wrapper
;
; (c) osFree Project 2022, <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 Proku... |
#ruledef test
{
ld {x} => 0x55 @ x`8
}
ld $ ; = 0x5500
#align 16 + 16 ; = 0x0000
ld $ ; = 0x5504 |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r14
push %r15
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x778c, %r11
xor %rcx, %rcx
vmovups (%r11), %ymm5
vextracti128 $1, %ymm5, %xmm5
vpextrq $1, %xmm5, %r12
nop
nop
nop
cmp %r11, %r11
lea addresses_WT_ht+0x12f14, %r15
nop
xor $15... |
INCLUDE "hardware.inc"
INCLUDE "header.inc"
SECTION "Main",HOME
;--------------------------------------------------------------------------
;- Main() -
;--------------------------------------------------------------------------
Main:
ld hl,$A000
... |
/***
* Copyright (C) Falko Axmann. All rights reserved.
* Licensed under the MIT license.
* See LICENSE.txt file in the project root for full license information.
****/
#include "GetProperty.h"
#include <Scene/Scene.h>
namespace spix {
namespace cmd {
GetProperty::GetProperty(ItemPath path, std::string property... |
segment .data
textoebx db 0xA,0xD,"El valor de ebx es: "
lentextoebx equ $- textoebx
saltodelinea db 0xA,0xD
lensaltodelinea equ $- saltodelinea
segment .bss
valorebx resb 1
section .text
global _start
_start:
mov al, 5 ; guardamos el valor cinco en pantalla
add al, 48 ; el cual estableceremo... |
; A022354: Fibonacci sequence beginning 0, 20.
; 0,20,20,40,60,100,160,260,420,680,1100,1780,2880,4660,7540,12200,19740,31940,51680,83620,135300,218920,354220,573140,927360,1500500,2427860,3928360,6356220,10284580,16640800,26925380,43566180,70491560,114057740,184549300,298607040,483156340,781763380,1264919720,204668310... |
; A093917: a(n) = n^3+n for odd n, (n^3+n)*3/2 for even n: Row sums of A093915.
; 2,15,30,102,130,333,350,780,738,1515,1342,2610,2210,4137,3390,6168,4930,8775,6878,12030,9282,16005,12190,20772,15650,26403,19710,32970,24418,40545,29822,49200,35970,59007,42910,70038,50690,82365,59358
mov $3,$0
mul $0,2
add $0,3
div $0,2... |
; A200455: Number of -n..n arrays x(0..2) of 3 elements with zero sum and nonzero first and second differences
; 4,10,26,44,72,102,142,184,236,290,354,420,496,574,662,752,852,954,1066,1180,1304,1430,1566,1704,1852,2002,2162,2324,2496,2670,2854,3040,3236,3434,3642,3852,4072,4294,4526,4760,5004,5250,5506,5764,6032,6302,6... |
#include "opencv2/objdetect.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/imgproc.hpp"
#include <iostream>
using namespace std;
using namespace cv;
static void help()
{
cout << "\nThis program demonstrates the use of cv::CascadeClassifier class to detect objects (Face + eyes). You can use Haar or LBP feat... |
; A083039: Number of divisors of n that are <= 3.
; 1,2,2,2,1,3,1,2,2,2,1,3,1,2,2,2,1,3,1,2,2,2,1,3,1,2,2,2,1,3,1,2,2,2,1,3,1,2,2,2,1,3,1,2,2,2,1,3,1,2,2,2,1,3,1,2,2,2,1,3,1,2,2,2,1,3,1,2,2,2,1,3,1,2,2,2,1,3,1,2,2,2,1,3,1,2,2,2,1,3
mov $1,$0
mod $0,3
cal $0,142
mod $1,2
add $1,$0
|
; A161549: a(n) = 2n^2 + 14n + 1.
; 1,17,37,61,89,121,157,197,241,289,341,397,457,521,589,661,737,817,901,989,1081,1177,1277,1381,1489,1601,1717,1837,1961,2089,2221,2357,2497,2641,2789,2941,3097,3257,3421,3589,3761,3937,4117,4301,4489,4681,4877,5077,5281,5489,5701,5917,6137,6361,6589,6821,7057,7297,7541,7789,8041,8297,... |
; @file
; Copyright (c) 2006 - 2019 Intel Corporation. All rights reserved. <BR>
;
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
DEFAULT REL
SECTION .text
;------------------------------------------------------------------------------
; VOID
; EFIAPI
; JumpToKernel (
; VOID *KernelStart, // rcx
; V... |
#include <opencv/cv.h>
#include <pcl/point_cloud.h>
#include <pcl/point_types.h>
#include <pcl/range_image/range_image.h>
#include <pcl/filters/filter.h>
#include <pcl/filters/voxel_grid.h>
#include <pcl/kdtree/kdtree_flann.h>
#include <pcl/common/common.h>
#include <pcl/registration/icp.h>
#include <vector>
#includ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r14
push %r15
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x8942, %r15
nop
nop
dec %r10
movw $0x6162, (%r15)
nop
nop
nop
add $59252, %r14
lea addresses_normal_ht+0xa52, %rsi
lea addresses_WT_ht+0x88f6, %rdi
nop
nop
nop
nop
sub %r... |
_wc: file format elf32-i386
Disassembly of section .text:
00000000 <wc>:
char buf[512];
void
wc(int fd, char *name)
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 57 push %edi
4: 31 ff xor %edi,%edi
6: 56 ... |
; A258087: Start with all terms set to 0. Then add n to the next n+2 terms for n=0,1,2,... .
; 0,0,1,3,6,9,14,18,25,30,39,45,56,63,76,84,99,108,125,135,154,165,186,198,221,234,259,273,300,315,344,360,391,408,441,459,494,513,550,570,609,630,671,693,736,759,804,828,875,900,949,975,1026,1053,1106,1134,1189,1218,1275,1305,... |
#include "extensions/filters/http/ext_authz/ext_authz.h"
#include "common/common/assert.h"
#include "common/common/enum_to_int.h"
#include "common/http/utility.h"
#include "common/router/config_impl.h"
#include "extensions/filters/http/well_known_names.h"
namespace Envoy {
namespace Extensions {
namespace HttpFilter... |
;
;
;
; This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
;
; Copyright 2007-2019 Broadcom Inc. All rights reserved.
;
;
; This is the default program for the (24+1+4 port) BCM56685K24TS
; To start it, use the following commands from B... |
BITS 32
SECTION .rodata
vakioteksti db "12345", 0
SECTION .text
EXTERN strtoul
EXTERN reset_errno
EXTERN get_errno
... |
; float __ulong2fs (unsigned long ul)
SECTION code_fp_math48
PUBLIC cm48_sdcciyp_ulong2ds
EXTERN am48_double32u, cm48_sdcciyp_m482d
cm48_sdcciyp_ulong2ds:
; unsigned long to double
;
; enter : stack = unsigned long ul, ret
;
; exit : dehl = sdcc_float(ul)
;
; uses : af, bc, de, hl, bc', de'... |
; A130303: A130296 * A000012.
; 1,3,1,5,2,1,7,3,2,1,9,4,3,2,1,11,5,4,3,2,1,13,6,5,4,3,2,1,15,7,6,5,4,3,2,1,17,8,7,6,5,4,3,2,1,19,9,8,7,6,5,4,3,2,1
seq $0,143956 ; Triangle read by rows, A000012 * A136521 * A000012; 1<=k<=n.
dif $0,2
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0xea37, %rsi
lea addresses_normal_ht+0x1637, %rdi
nop
nop
nop
nop
cmp $37314, %rbx
mov $42, %rcx
rep movsb
nop
nop
nop
xor $6827, %rdi
lea addresses_WC_ht+0x88c7, %rsi
lea addresses... |
IDEAL
MODEL tiny
CODESEG
ORG 100h
start:
mov ax, [codex]
mov ax, [datax]
int 20h
codex dw 1234h
DATASEG
mov ax, [codex]
mov ax, [datax]
datax dw 5678h
CODESEG
nop
END start
|
; char *strnchr_callee(const char *s, size_t n, int c)
SECTION code_string
PUBLIC _strnchr_callee
EXTERN asm_strnchr
_strnchr_callee:
pop af
pop hl
pop bc
pop de
push af
jp asm_strnchr
|
/* Copyright 2017 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... |
; Filename: strlen.asm
; Subroutine: STRLEN
; Description: Finds length of an ASCIIZ string
; Assumes: R1 - string address
; Returns: R2 - length of the string
;return length of the string
.orig x0200
START
LEA R1, S1
JSR STRLEN
LEA R1, S6
JSR STRLEN
LEA R1, S2
JSR STRLEN
LEA R1, S5
JSR STRLEN
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0xed9e, %rsi
lea addresses_A_ht+0x2232, %rdi
nop
nop
nop
nop
add %r13, %r13
mov $35, %rcx
rep movsb
nop
nop
nop
nop
add $8734, %rbx
lea addresses_D_ht+0x5ee6, %rdx
nop
nop
nop... |
#include <iostream>
using namespace std;
int f(int n){
int div=2, nrDiv=0, s=0;
while(n>1){
nrDiv=0;
while(n%div==0){
n/=div;
nrDiv++;
}
if(nrDiv) s+=div;
div++;
if(div*div>n) div=n;
}
return s;
}
int main(){
int a, b;
... |
; ===============================================================
; Jan 2014
; ===============================================================
;
; int fflush_unlocked(FILE *stream)
;
; Flush the stream. For streams most recently written to, this
; means sending any buffered output to the device. For streams
; most ... |
; A070369: a(n) = 5^n mod 14.
; 1,5,11,13,9,3,1,5,11,13,9,3,1,5,11,13,9,3,1,5,11,13,9,3,1,5,11,13,9,3,1,5,11,13,9,3,1,5,11,13,9,3,1,5,11,13,9,3,1,5,11,13,9,3,1,5,11,13,9,3,1,5,11,13,9,3,1,5,11,13,9,3,1,5,11,13,9,3,1,5,11,13,9,3,1,5,11,13,9,3,1,5,11,13,9,3,1,5,11,13,9,3,1,5,11,13,9,3,1,5,11,13,9,3,1,5,11,13,9,3,1,5,11,1... |
; void tshr_cls_wc_pix(struct r_Rect8 *r, uchar pix)
SECTION code_clib
SECTION code_arch
PUBLIC tshr_cls_wc_pix_callee
EXTERN asm_tshr_cls_wc_pix
tshr_cls_wc_pix_callee:
pop af
pop hl
pop ix
push af
jp asm_tshr_cls_wc_pix
|
; A025745: Index of 10^n within sequence of numbers of form 7^i*10^j.
; 1,3,6,10,15,21,29,38,48,59,71,85,100,116,133,151,170,191,213,236,260,285,312,340,369,399,430,462,496,531,567,604,642,682,723,765,808,852,897,944,992,1041,1091,1142,1195,1249,1304,1360,1417,1475,1535,1596,1658
lpb $0
mov $2,$0
sub $0,1
seq $2... |
; A099925: a(n) = Lucas(n) + (-1)^n.
; 3,0,4,3,8,10,19,28,48,75,124,198,323,520,844,1363,2208,3570,5779,9348,15128,24475,39604,64078,103683,167760,271444,439203,710648,1149850,1860499,3010348,4870848,7881195,12752044,20633238,33385283,54018520,87403804,141422323,228826128,370248450,599074579,969323028,1568397608,253772... |
_sh: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
return 0;
}
int
main(void)
{
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 push %ebp
b: 89 e5 ... |
extern m7_ippsECCPVerifyDSA:function
extern n8_ippsECCPVerifyDSA:function
extern y8_ippsECCPVerifyDSA:function
extern e9_ippsECCPVerifyDSA:function
extern l9_ippsECCPVerifyDSA:function
extern n0_ippsECCPVerifyDSA:function
extern k0_ippsECCPVerifyDSA:function
extern ippcpJumpIndexForMergedLibs
extern ippcpSafeInit:funct... |
; A176402: Decimal expansion of (9+sqrt(87))/3.
; Submitted by Jon Maiga
; 6,1,0,9,1,2,6,3,5,1,0,2,9,6,0,5,0,1,5,1,8,4,8,2,5,1,8,0,7,7,3,5,1,8,9,9,4,4,2,5,4,1,3,5,6,4,7,3,0,5,5,1,5,5,7,0,1,8,7,3,2,4,3,2,8,1,5,5,9,4,8,4,9,6,0,2,4,1,6,5,5,9,4,7,1,4,0,6,8,5,4,3,0,3,9,6,0,6,7,2
mov $2,1
mov $3,$0
mul $3,3
mov $5,2
lpb $3
... |
; A083101: a(n) = 2*a(n-1) + 10*a(n-2).
; Submitted by Jamie Morken(w4)
; 1,12,34,188,716,3312,13784,60688,259216,1125312,4842784,20938688,90305216,389997312,1683046784,7266066688,31362601216,135385869312,584397750784,2522654194688,10889285897216,47005113741312,202903086454784,875857310322688,3780745485193216,163200640... |
;
; ARMv7 versions of the font routines
;
format ELF
; entry start
; segment readable executable
USE32
section '.text'
; code readable executable
; Declare public symbols
; Declare public symbols
public _draw_bitfont_32asm
public draw_bitfont_32asm
public _draw_bitfont_16asm
public draw_bitf... |
; A143829: Numbers n such that 10n^2 - 1 is prime.
; Submitted by Jon Maiga
; 3,6,9,12,21,30,33,36,45,48,60,69,72,75,81,87,99,108,111,114,117,120,123,126,129,153,165,168,174,177,183,201,204,207,222,234,243,252,267,279,282,285,294,303,312,315,318,339,345,348,369,378,381,384,393,396
mov $2,332202
lpb $2
seq $3,10051 ;... |
; A173529: a(n) = 1 + A053830(n-1), where A053830 is the sum of the digits of its argument in base 9.
; 1,2,3,4,5,6,7,8,9,2,3,4,5,6,7,8,9,10,3,4,5,6,7,8,9,10,11,4,5,6,7,8,9,10,11,12,5,6,7,8,9,10,11,12,13,6,7,8,9,10,11,12,13,14,7,8,9,10,11,12,13,14,15,8,9,10,11,12,13,14,15,16,9,10,11,12,13,14,15,16,17,2,3,4,5,6,7,8,9,10... |
copyright zengfr site:http://github.com/zengfr/romhack
004A84 abcd -(A0), -(A2) [1p+93]
copyright zengfr site:http://github.com/zengfr/romhack
|
; A246640: Sequence a(n) = 1 + A001519(n+1) appearing in a certain touching problem for three circles and a chord, together with A246638.
; 2,3,6,14,35,90,234,611,1598,4182,10947,28658,75026,196419,514230,1346270,3524579,9227466,24157818,63245987,165580142,433494438,1134903171,2971215074,7778742050,20365011075,53316291... |
#include "Timer.h"
#include "Image.h"
HRESULT Timer::Init()
{
posX = (WINSIZE_X / 2)+3;
posY = (WINSIZE_Y / 10)*1.5;
CountDown_Num = new Image();
CountNum = 0;
CountDown_Num->Init("Image/Timer.bmp", posX, posY, 140, 75, 10, 3, true, transColor[CountNum]);
printTime = 45;
currKeyFrameY = 0;
elapsedFrame = ... |
// This file was automatically generated on Sat Oct 11 19:26:16 2014
// by libs/config/tools/generate.cpp
// Copyright John Maddock 2002-4.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.... |
SECTION "mobile_40", ROMX
Function100000:
Function100022:
Function100057:
call DisableMobile
call ReturnToMapFromSubmenu
ld hl, wVramState
res 1, [hl]
ret
SetRAMStateForMobile:
xor a
ld hl, wBGMapBuffer
ld bc, $65
call ByteFill
xor a
ld hl, wc300
ld bc, $100
call ByteFill
ldh a, [rIE]
ld [wBGMapBuffer]... |
;code by unic0rn/Asm Force
org 100h
segment .code
mov al,13h
int 10h
xor ax,ax
mov dx,03C8h
out dx,al
inc dx
pal: push ax
mov cl,al
shr al,2
and cl,0Fh
cmp cl,0Fh
je ps1
ror ax,1
ps1: out dx,al
out dx,al
je ps2
rol ax... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r8
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x19ad, %r8
nop
cmp %rdx, %rdx
movups (%r8), %xmm4
vpextrq $0, %xmm4, %rdi
nop
nop
nop
nop
sub $47133, %rcx
lea addresses_A_ht+0x1ad41, %rsi
clflush (%rsi)
nop
dec %rbx
movups (%rsi), %xm... |
// Copyright 2019 Amazon.com, Inc. or its affiliates. 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
//
// Unles... |
; A295683: a(n) = a(n-1) + a(n-3) + a(n-4), where a(0) = 2, a(1) = 1, a(2) = 0, a(3) = 1.
; Submitted by Jon Maiga
; 2,1,0,1,4,5,6,11,20,31,48,79,130,209,336,545,884,1429,2310,3739,6052,9791,15840,25631,41474,67105,108576,175681,284260,459941,744198,1204139,1948340,3152479,5100816,8253295,13354114,21607409,34961520,565... |
; A026058: a(n) = (d(n)-r(n))/2, where d = A026057 and r is the periodic sequence with fundamental period (0,0,1,0).
; 13,25,41,63,90,123,162,209,263,325,395,475,564,663,772,893,1025,1169,1325,1495,1678,1875,2086,2313,2555,2813,3087,3379,3688,4015,4360,4725,5109,5513,5937,6383,6850,7339,7850,8385,8943,9525,10131,10763,... |
////////////////////////////////////////////////////////////
//
// SFML - Simple and Fast Multimedia Library
// Copyright (C) 2007-2017 Laurent Gomila (laurent@sfml-dev.org)
//
// This software is provided 'as-is', without any express or implied warranty.
// In no event will the authors be held liable for any damages a... |
Name: zel_mpdt.asm
Type: file
Size: 269850
Last-Modified: '2016-05-13T04:36:32Z'
SHA-1: C9C5750DE42B4CAC127993B51DF2B6A355FCB988
Description: null
|
//===-- AVRAsmBackend.cpp - AVR Asm Backend ------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
;*!
;* \copy
;* Copyright (c) 2004-2013, Cisco Systems
;* All rights reserved.
;*
;* Redistribution and use in source and binary forms, with or without
;* modification, are permitted provided that the following conditions
;* are met:
;*
;* * Redistributions of source code must retain the abo... |
; Ellipse Workstation 1100 (fictitious computer)
; Ellipse DOS file I/O functionality
;
; Copyright (c) 2020 Sampo Hippeläinen (hisahi)
;
; 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 Softw... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.