text stringlengths 1 1.05M |
|---|
<%
from pwnlib.shellcraft.aarch64.linux import syscall
%>
<%page args="from_, to"/>
<%docstring>
Invokes the syscall link. See 'man 2 link' for more information.
Arguments:
from(char): from
to(char): to
</%docstring>
${syscall('SYS_link', from_, to)}
|
; Z88 Small C+ Run time Library
; Moved functions over to proper libdefs
; To make startup code smaller and neater!
;
; 6/9/98 djm
PUBLIC l_gchar
; fetch char from (HL) and sign extend into HL
.l_gchar ld a,(hl)
.l_sxt ld l,a
rlca
sbc a,a
... |
kernel: file format elf32-i386
Disassembly of section .text:
80100000 <multiboot_header>:
80100000: 02 b0 ad 1b 00 00 add 0x1bad(%eax),%dh
80100006: 00 00 add %al,(%eax)
80100008: fe 4f 52 decb 0x52(%edi)
8010000b: e4 .byte 0xe4
8010000c <entry>:
# E... |
###############################################################################
# Copyright 2019 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... |
CharCR equ 13
CharLF equ 10
; IN HL = address of string
PrintString:
ld a,(hl)
inc hl
or a
ret z
call PrintChar
jr PrintString
; IN HL = address of string
PrintStringWithPixels:
ld a,(hl)
inc hl
or a
ret z
call PrintCharWithPixels
jr PrintStringWithPixels
; IN HL = address of string
PrintS... |
; CRT0 for the Sharp X1
;
; Karl Von Dyson (for X1s.org)
;
; $Id: x1_crt0.asm,v 1.17 2016-07-20 05:45:02 stefano Exp $
;
MODULE x1_crt0
defc crt0 = 1
INCLUDE "zcc_opt.def"
EXTERN _main
EXTERN _x1_printf
PUBLIC cleanup
PUBLIC l_dcal
PUBLIC _wait_sub_cpu
EXTER... |
; A109161: Triangle read by rows: T(n, k) = n*(n+9) + k + 5, with T(0, 0) = 5 and T(1, 0) = 15.
; 5,15,16,27,28,29,41,42,43,44,57,58,59,60,61,75,76,77,78,79,80,95,96,97,98,99,100,101,117,118,119,120,121,122,123,124,141,142,143,144,145,146,147,148,149,167,168,169,170,171,172,173,174,175,176,195,196,197,198,199,200,201,2... |
/**
* Copyright (C) 2015 MongoDB Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be usef... |
_kill: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
int
main(int argc, char **argv)
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: ff 71 fc pushl -0x4(%ecx)
a: 55 ... |
// Copyright 2020, Intel Corporation
#include "benchmark/benchmark.h"
#include "networks/oplib/oplib.h"
#include "plaidml/exec/exec.h"
#include "plaidml/op/op.h"
#include "pmlc/util/logging.h"
namespace networks::oplib {
struct resnet50 : public benchmark::Fixture {};
BENCHMARK_DEFINE_F(resnet50, compile)(benchmar... |
copyright zengfr site:http://github.com/zengfr/romhack
08BEB6 move.b D0, ($338d,A5)
08BEBA move.b D0, ($350d,A5)
08BEBE move.b D0, ($368d,A5)
08BEC2 move.w D0, ($b0,A6)
08C352 move.b #$3d, ($119,A0)
08C358 move.b ($a0,A0), D0 [123p+119]
08C37C subq.b #1, ($119,A0)
08C380 tst.b D6 [123p+119]
copy... |
; A172137: Number of ways to place 2 nonattacking zebras on an n X n board
; 0,6,36,112,276,582,1096,1896,3072,4726,6972,9936,13756,18582,24576,31912,40776,51366,63892,78576,95652,115366,137976,163752,192976,225942,262956,304336,350412,401526,458032,520296,588696,663622,745476,834672,931636,1036806,1150632,1273576,1406... |
; A090139: a(n) = 10*a(n-1) - 20*a(n-2), a(0)=1,a(1)=5.
; Submitted by Jamie Morken(s3.)
; 1,5,30,200,1400,10000,72000,520000,3760000,27200000,196800000,1424000000,10304000000,74560000000,539520000000,3904000000000,28249600000000,204416000000000,1479168000000000,10703360000000000,77450240000000000,560435200000000000,40... |
# mp_limb_t mulredc5(mp_limb_t * z, const mp_limb_t * x, const mp_limb_t * y,
# const mp_limb_t *m, mp_limb_t inv_m);
#
# Linux: z: %rdi, x: %rsi, y: %rdx, m: %rcx, inv_m: %r8
# Needs %rbx, %rsp, %rbp, %r12-%r15 restored
# Windows: z: %rcx, x: %rdx, y: %r8, m: %r9, inv_m: 28(%rsp)
# ... |
; A181655: Expansion of (1+2x-x^3+x^4)/(1-4x^2+3x^4).
; 1,2,4,7,14,22,44,67,134,202,404,607,1214,1822,3644,5467,10934,16402,32804,49207,98414,147622,295244,442867,885734,1328602,2657204,3985807,7971614,11957422,23914844,35872267,71744534,107616802,215233604
mov $2,$0
add $2,1
mov $4,$0
lpb $2
mov $0,$4
sub $2,1
... |
// Copyright 2014 MongoDB 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 obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wri... |
; A007904: Crystal ball sequence for diamond.
; 1,5,17,41,83,147,239,363,525,729,981,1285,1647,2071,2563,3127,3769,4493,5305,6209,7211,8315,9527,10851,12293,13857,15549,17373,19335,21439,23691,26095,28657,31381,34273,37337,40579,44003,47615,51419,55421,59625,64037,68661,73503,78567,83859,89383,95145,101149,107401,11390... |
; A002248: Number of points on y^2 + xy = x^3 + x^2 + x over GF(2^n).
; Submitted by Jamie Morken(s2)
; 2,8,14,16,22,56,142,288,518,968,1982,4144,8374,16472,32494,65088,131174,263144,525086,1047376,2094358,4193912,8393806,16783200,33550022,67092488,134210174,268460656,536911222,1073731736,2147392942,4294896768,85900454... |
/*++
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License.
Module Name:
ConvSymKernelNeonDot.asm
Abstract:
This module implements the kernels for the symmetric quantized integer
convolution operation.
--*/
#include "kxarm64.h"
#define MLAS_CONV_SYM_FLAG_INPUT... |
SECTION code_clib
SECTION code_fp_am9511
PUBLIC cam32_sccz80_frexp_callee
EXTERN asm_am9511_frexp_callee
; float frexpf(float x, int16_t *pw2);
.cam32_sccz80_frexp_callee
; Entry:
; Stack: float left, ptr right, ret
; Reverse the stack, return on top
pop hl ;my return
pop ... |
; receiving the data in 'dx'
; For the examples we'll assume that we're called with dx=0x1234
print_hex:
pusha
mov cx, 0 ; our index variable
; Strategy: get the last char of 'dx', then convert to ASCII
; Numeric ASCII values: '0' (ASCII 0x30) to '9' (0x39), so just add 0x30 to byte N.
; For alphabetic charac... |
#include "dialog.hh"
#include "sys/msys.h"
#include "intro.hh"
struct ResolutionDesc
{
short w;
short h;
char guessedRatio;
bool isValid;
const char* desc;
};
static ResolutionDesc resolutions[] = {
{ 800, 600, 0, false, "800x600"},
{1024, 768, 0, false, "1024x768"},
{1200, 900, 0, false, "1200x900... |
#include<iostream>
using namespace std;
int gcd(int a, int b) {
if (a % b == 0)
return b;
return gcd(b, a % b);
}
int main(){
int a, b;
while (cin >> a >> b)
cout << gcd(a, b) << endl;
return 0;
} |
; A007917: Version 1 of the "previous prime" function: largest prime <= n.
; Submitted by Christian Krause
; 2,3,3,5,5,7,7,7,7,11,11,13,13,13,13,17,17,19,19,19,19,23,23,23,23,23,23,29,29,31,31,31,31,31,31,37,37,37,37,41,41,43,43,43,43,47,47,47,47,47,47,53,53,53,53,53,53,59,59,61,61,61,61,61,61,67,67,67,67,71,71,73,73,7... |
db DEX_LINOONE ; pokedex id
db 78 ; base hp
db 70 ; base attack
db 61 ; base defense
db 100 ; base speed
db 55 ; base special
db DARK ; species type 1 galarian?
db NORMAL ; species type 2
db 90 ; catch rate
db 128 ; base exp yield
INCBIN "pic/ymon/linoone.pic",0,1 ; 55, sprite dimensions
dw LinoonePicFront... |
;
; Copyright (c) 2010 The WebM project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license and patent
; grant that can be found in the LICENSE file in the root of the source
; tree. All contributing project authors may be found in the AUTHORS
; file in the root of the sour... |
; A080545: Characteristic function of {1} union {odd primes}: 1 if n is 1 or an odd prime, else 0.
; 1,0,1,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,0,0,0,0,1,0,1,0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,1,0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,1,0,1,0... |
/*##############################################################################
HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems.
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 ... |
SafariZoneNorthRestHouse_Script:
call EnableAutoTextBoxDrawing
ret
SafariZoneNorthRestHouse_TextPointers:
dw SafariZoneRestHouse4Text1
dw SafariZoneRestHouse4Text2
dw SafariZoneRestHouse4Text3
SafariZoneRestHouse4Text1:
text_far _SafariZoneRestHouse4Text1
text_end
SafariZoneRestHouse4Text2:
text_far _SafariZ... |
;
; Sharp OZ family functions
;
; ported from the OZ-7xx SDK by by Alexander R. Pruss
; by Stefano Bodrato - Oct. 2003
;
; Serial libraries
;
;
; ------
; $Id: ozserinton.asm,v 1.4 2016-06-27 21:25:36 dom Exp $
;
SECTION code_clib
PUBLIC ozserinton
PUBLIC _ozserinton
EXTERN ozcustomisr
EXTERN serial_hook
... |
.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, 03
call lwaitly_b
ld c, 41
lbegin_waitm0:
ldff a, (c)
and a, b
jrnz lbegin_waitm0
ld a, 80
ldff(68), a
ld a, ff
... |
ld hl, #1
ld de, #2
call $0708 |
; A264888: a(n) = n*(n + 1)*(13*n^2 + 13*n - 14)/24.
; 0,1,16,71,205,470,931,1666,2766,4335,6490,9361,13091,17836,23765,31060,39916,50541,63156,77995,95305,115346,138391,164726,194650,228475,266526,309141,356671,409480,467945,532456,603416,681241,766360,859215,960261,1069966
mov $15,$0
mov $17,$0
lpb $17
clr $0,15
... |
; AtieDOS 2.10 Writer
; Copyright (c) 2020 AtieSoftware.
; See LICENSE in root folder
command_write:
call os_clear_screen
call os_command_init
mov bx, .WRITE_HEADER
call os_print_string
call os_print_new_line
call os_print_new_line
mov bx, .WRITE_MSG
call os_print_string
call ... |
%include "io.inc"
section .text
global CMAIN
CMAIN:
mov ebp, esp; for correct debugging
mov eax, 7 ; vrem sa aflam al N-lea numar; N = 7
mov ebx, 0
mov ecx, 1
sbb eax, 2 ; avem deja primele 2 numere din sir, acesta fiind recurent
fibonacci:
sbb eax, 1
mov edx, ec... |
; A078045: Expansion of (1-x)/(1+x+x^2-2*x^3).
; Submitted by Jamie Morken(s2)
; 1,-2,1,3,-8,7,7,-30,37,7,-104,171,-53,-326,721,-501,-872,2815,-2945,-1614,10189,-14465,1048,33795,-63773,32074,99289,-258909,223768,233719,-975305,1189122,253621,-3393353,5517976,-1617381,-10687301,23340634,-15888095,-28827141,91396504
mo... |
/**
* eZmax API Definition (Full)
* This API expose all the functionnalities for the eZmax and eZsign applications.
*
* The version of the OpenAPI document: 1.1.7
* Contact: support-api@ezmax.ca
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-gener... |
#include<bits/stdc++.h>
using namespace std;
int main(){
long long int n,ans;
scanf("%lld",&n);
ans=n*(n+1)/2-(n-1);
printf("%lld\n",ans);
return 0;
}
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %rax
lea addresses_WC_ht+0x1b5be, %r10
nop
nop
nop
nop
add %r11, %r11
movb $0x61, (%r10)
nop
nop
nop
cmp $31955, %rax
pop %rax
pop %r12
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r13
push %r8
p... |
; A070376: a(n) = 5^n mod 26.
; 1,5,25,21,1,5,25,21,1,5,25,21,1,5,25,21,1,5,25,21,1,5,25,21,1,5,25,21,1,5,25,21,1,5,25,21,1,5,25,21,1,5,25,21,1,5,25,21,1,5,25,21,1,5,25,21,1,5,25,21,1,5,25,21,1,5,25,21,1,5,25,21,1,5,25,21,1,5,25,21,1,5,25,21,1,5,25,21,1,5,25,21,1,5,25,21,1,5,25,21,1,5,25,21,1,5,25,21,1,5,25,21,1,5,25,2... |
#define _CRT_SECURE_NO_DEPRECATE 1
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <aclapi.h>
#include <accctrl.h>
#include <psapi.h>
#include <tlhelp32.h>
#include <lm.h>
#include <wchar.h>
#include <sddl.h>
#include "common.h"
extern wchar_t* commandline;
extern wchar_t* argum... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Geoworks 1993 -- All Rights Reserved
PROJECT: PC GEOS J
MODULE: JCalendar/Holiday
FILE: holidayUtils.asm
AUTHOR: TORU TERAUCHI, JUL 28, 1993
ROUTINES:
NAME DESCRIPTION
---- -----------
JCalendarRed... |
_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: 83 ec 28 sub $0x28,%esp
int i, n;
int l, w, c, inword;
l = w = c = 0;
6: c7... |
; A077467: Sum of binary digits of A077465(n).
; 1,2,2,3,3,4,5,5,6,6,7,8,8,9,9,10,10,11,12,12,13,13,14,15,15,16,16,17,18,18,19,19,20,20,21,22,22,23,23,24,25,25,26,26,27,27,28,29,29,30,30,31,32,32,33,33,34,34,35,36,36,37,37,38,39,39,40,40,41,41,42,43,43,44
add $0,1
mov $3,$0
lpb $0
div $0,2
add $4,$3
add $5,6
lpe... |
;================================================================================
; Utility Functions
;================================================================================
!PROGRESSIVE_SHIELD = "$7EF416" ; ss-- ----
;--------------------------------------------------------------------------------
; GetSprit... |
; A257240: Decimal expansion of the real root of x^3 - 3*x - 10.
; Submitted by Jon Maiga
; 2,6,1,2,8,8,7,8,6,4,7,1,7,5,4,4,7,5,4,4,0,7,2,4,9,9,3,8,6,2,9,7,6,2,9,1,2,8,7,5,7,7,1,2,8,4,8,0,6,3,2,8,1,7,2,3,0,2,7,0,0,5,1,8,2,1,0,1,8,3,5,8,4,9,1,1,2,5,7,3,6,3,4,4,2,2,7,1,1,3,9,6,0,1,9,8,4,8,5,6
mov $2,1
mov $3,$0
mul $3,3... |
; A269110: Numbers of unit circles packed in a triangle of smallest area admitting an equilateral triangle solution.
; Submitted by Jon Maiga
; 1,3,5,6,9,10,14,15,20,21
sub $1,$0
min $0,1
sub $0,$1
div $1,2
bin $1,2
add $0,$1
add $0,1
|
#define NOMINMAX 1
#include "ExceptionUtils.hpp"
#include <Doxybook/DefaultTemplates.hpp>
#include <Doxybook/Exception.hpp>
#include <spdlog/spdlog.h>
#include <Doxybook/Renderer.hpp>
#include <Doxybook/Utils.hpp>
#include <chrono>
#include <dirent.h>
#include <fmt/format.h>
#include <inja/inja.hpp>
#include... |
/***************************************************************************
* Copyright 1998-2018 by authors (see AUTHORS.txt) *
* *
* This file is part of LuxCoreRender. *
* ... |
[org 0x7c00] ; tell the assembler that our offset is bootsector code
; The main routine makes sure the parameters are ready and then calls the function
mov bx, HELLO
call print
call print_nl
mov bx, GOODBYE
call print
call print_nl
mov dx, 0x12fe
call print_hex
; that's it! we can hang now
jmp $
; remember to in... |
// Copyright 2012 the V8 project authors. 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 above copyright
// notice, this list of ... |
; A175005: Expansion of x/(1 - 4*x + 3*x^2 - 2*x^3).
; Submitted by Jamie Morken(s3)
; 0,1,4,13,42,137,448,1465,4790,15661,51204,167413,547362,1789617,5851208,19130705,62548430,204504021,668632204,2186113613,7147565882,23369187097,76406277968,249812682345,816770269670,2670455587581
mov $1,1
lpb $0
sub $0,1
mul $1,... |
; A212742: Number of (w,x,y,z) with all terms in {0,...,n} and max{w,x,y,z}<=2*min{w,x,y,z}.
; 1,2,17,32,97,162,337,512,881,1250,1921,2592,3697,4802,6497,8192,10657,13122,16561,20000,24641,29282,35377,41472,49297,57122,66977,76832,89041,101250,116161,131072,149057,167042,188497,209952,235297
mov $16,$0
mov $18,$0
add ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r15
push %r8
push %rbx
push %rsi
lea addresses_WC_ht+0x1656d, %r13
nop
nop
nop
nop
cmp $47150, %r8
mov $0x6162636465666768, %rsi
movq %rsi, (%r13)
nop
sub %r8, %r8
lea addresses_A_ht+0x67d1, %r13
clflush (%r13)
nop
cmp $24692, %rbx
mov $0x6162636465666768, %r... |
global _get_via_serial
_get_via_serial:
push bp
mov bp, sp
call os_get_via_serial
and ah, 64
jnz .error
mov word [_ioerr], 0
jmp .skip
.error:
mov word [_ioerr], 1
.skip:
pop bp
ret
|
; A082140: A transform of binomial(n,6).
; 1,7,56,336,1680,7392,29568,109824,384384,1281280,4100096,12673024,38019072,111132672,317521920,889061376,2444918784,6615662592,17641766912,46425702400,120706826240,310388981760,790081044480,1992378286080,4980945715200,12352745373696,30406757842944,74327630282752,18050995925811... |
; A024898: Positive integers k such that 6*k - 1 is prime.
; 1,2,3,4,5,7,8,9,10,12,14,15,17,18,19,22,23,25,28,29,30,32,33,38,39,40,42,43,44,45,47,49,52,53,58,59,60,64,65,67,70,72,74,75,77,78,80,82,84,85,87,93,94,95,98,99,100,103,107,108,109,110,113,114,117,120,124,127,129,133,135,137,138,140,143,144,147,148,152,155,157... |
; A124093: Triangular numbers alternating with squares.
; 0,0,1,1,3,4,6,9,10,16,15,25,21,36,28,49,36,64,45,81,55,100,66,121,78,144,91,169,105,196,120,225,136,256,153,289,171,324,190,361,210,400,231,441,253,484,276,529,300,576,325,625,351,676,378,729,406,784,435,841,465,900,496,961,528,1024,561,1089,595,1156,630,1225,66... |
// (C) Copyright Edward Diener 2011-2015
// 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.org/LICENSE_1_0.txt).
#if !defined(BOOST_VMD_DETAIL_EQUAL_HPP)
#define BOOST_VMD_DETAIL_EQUAL_HPP
#includ... |
; A238276: a(n) = (9*8^n - 2)/7.
; 1,10,82,658,5266,42130,337042,2696338,21570706,172565650,1380525202,11044201618,88353612946,706828903570,5654631228562,45237049828498,361896398627986,2895171189023890
mov $1,1
lpb $0,1
sub $0,1
mul $1,8
add $1,2
lpe
|
/*=========================================================================
Program: Visualization Toolkit
Module: vtkPieceCacheFilter.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This softw... |
#include "system/message.h"
namespace PS {
Message::Message(const NodeID& dest, int time, int wait_time)
: recver(dest) {
task.set_time(time);
if (wait_time != kInvalidTime) task.add_wait_time(wait_time);
}
void Message::miniCopyFrom(const Message& msg) {
task = msg.task;
task.clear_value_type();
task.... |
/* -------------------------------------------------------------------------
*
* dbcommands.cpp
* Database management commands (create/drop database).
*
* Note: database creation/destruction commands use exclusive locks on
* the database objects (as expressed by LockSharedObject()) to avoid
* stepping on each o... |
#include "header.hpp"
class Solution
{
private:
vector<int> tmp;
vector<vector<int>> res;
public:
void helper(int n, int k, int k_now, int start)
{
if (n == 0 && k_now == 0)
{
res.push_back(tmp);
return;
}
if (n < 0 || k_now < 0)
retu... |
; A264443: a(n) = n*(n + 5)*(n + 10)/6.
; 0,11,28,52,84,125,176,238,312,399,500,616,748,897,1064,1250,1456,1683,1932,2204,2500,2821,3168,3542,3944,4375,4836,5328,5852,6409,7000,7626,8288,8987,9724,10500,11316,12173,13072,14014,15000
mov $1,$0
add $0,8
bin $0,2
sub $0,3
mul $1,$0
div $1,3
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r14
push %rbp
push %rdi
push %rdx
lea addresses_WC_ht+0x7033, %r10
nop
nop
nop
add $33189, %r11
mov (%r10), %r13w
nop
nop
nop
add $38308, %rdx
lea addresses_WC_ht+0x16913, %rdi
nop
sub %rbp, %rbp
movb $0x61, (%rdi)
nop
nop
nop
add $9631, %... |
#include <hxcpp.h>
#ifndef INCLUDED_openfl_text_AntiAliasType
#include <openfl/text/AntiAliasType.h>
#endif
namespace openfl{
namespace text{
::openfl::text::AntiAliasType AntiAliasType_obj::ADVANCED;
::openfl::text::AntiAliasType AntiAliasType_obj::NORMAL;
HX_DEFINE_CREATE_ENUM(AntiAliasType_obj)
in... |
; ----------------------------------------------------------------
; Z88DK INTERFACE LIBRARY FOR THE BIFROST* ENGINE - RELEASE 1.2/L
;
; See "bifrost_l.h" for further details
; ----------------------------------------------------------------
; unsigned char BIFROSTL_getAnimGroup(unsigned int tile)
SECTION code_clib
S... |
#pragma once
#include <atomic>
#include <thread>
//https://probablydance.com/2019/12/30/measuring-mutexes-spinlocks-and-how-bad-the-linux-scheduler-really-is/
//https://rigtorp.se/spinlock/
namespace moon
{
class spin_lock
{
std::atomic<bool> lock_ = { false };
public:
bool try_lock() noex... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r14
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x3fe6, %r10
cmp $30257, %r12
movb (%r10), %r11b
nop
nop
nop
nop
nop
add $30302, %r14
lea addresses_D_ht+0x8022, %rsi
lea addresses_A_ht+0xd79c, %rdi
nop
nop
nop
nop
dec %... |
/*
* Copyright 2013-2014, Rene Gollent, rene@gollent.com.
* Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
* Distributed under the terms of the MIT License.
*/
#include "VariablesViewState.h"
#include <new>
#include "ExpressionValues.h"
#include "FunctionID.h"
#include "StackFrameValues.h"
#include "Type.... |
// Copyright 2019 the Drakhtar authors. All rights reserved. MIT license.
#include "TextureManager.h"
#include "../Errors/DrakhtarError.h"
#include "Structures/Game.h"
#include "Utils/TimePool.h"
TextureManager* TextureManager::instance_ = nullptr;
TextureManager* TextureManager::getInstance() {
if (instance_ == n... |
;******************************************************************************
;* VP9 MC SIMD optimizations
;*
;* Copyright (c) 2013 Ronald S. Bultje <rsbultje gmail com>
;*
;* This file is part of FFmpeg.
;*
;* FFmpeg is free software; you can redistribute it and/or
;* modify it under the terms of the GNU Lesser Gene... |
/****************************************************************************
** Meta object code from reading C++ file 'macnotificationhandler.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.0.2)
**
** WARNING! All changes made in this file will be lost!
**********************************************... |
// Copyright (c) 2011-2017 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <arith_uint256.h>
#include <uint256.h>
#include <version.h>
#include <test/test_titcoin.h>
#include <boost/test/unit... |
; A133818: a(n) = (8*n+3)*(8*n+5)*(8*n+7)*(8*n+9).
; 945,36465,229425,801009,2070705,4456305,8473905,14737905,23961009,36954225,54626865,77986545,108139185,146289009,193738545,251888625,322238385,406385265,506025009,622951665,759057585,916333425,1096868145
mul $0,8
mov $1,7
add $1,$0
sub $1,1
pow $1,2
mov $2,2
add $2,... |
global idt_write
idt_write:
mov eax, [esp+4]
lidt [eax]
ret
|
; 5e04.asm
global main
section .rodata
chpair DB `pair\n`
chpairlg DD $ - chpair
chimpair DB `impair\n`
chimpairlg DD $ - chimpair
fichier DB `resultat`, 0
section .bss
nombre RESD 1
descr RESD 1
section .text
main:
mov edx, 53 ; un nombre
mov dword [nombre], edx ... |
/*
* Copyright 2018-2021 Mahdi Khanalizadeh
*
* 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 o... |
#include "GameApp.h"
int main(){
GameApp app;
app.escena();
app.initRender();
return 0;
} |
; Aula 01 - Introdução
; hello.asm
; Meu primeiro assembly!
; nasm -f elf64 hello.asm ; ld hello.o -o hello.x
section .data
strOla : db "Ola", 10
strOlaL: equ $ - strOla
section .text
global _start
_start:
mov rax, 1
mov rdi, 1
lea rsi, [strOla]
mov edx, strOlaL
syscall
fim:
mo... |
extern m7_ippsGFpElementInit:function
extern n8_ippsGFpElementInit:function
extern y8_ippsGFpElementInit:function
extern e9_ippsGFpElementInit:function
extern l9_ippsGFpElementInit:function
extern n0_ippsGFpElementInit:function
extern k0_ippsGFpElementInit:function
extern ippcpJumpIndexForMergedLibs
extern ippcpSafeIni... |
// This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems"
// by Nisan and Schocken, MIT Press.
// File name: projects/04/Mult.asm
// Multiplies R0 and R1 and stores the result in R2.
// (R0, R1, R2 refer to RAM[0], RAM[1], and RAM[2], respectively.)
// Multiplication is addition... |
; A028020: Expansion of 1/((1-2x)(1-8x)(1-11x)(1-12x)).
; Submitted by Jon Maiga
; 1,33,711,12677,203175,3043341,43527247,602201829,8127414999,107618860349,1403846663583,18094236941781,230951316035623,2924174000253357,36776292351134319,459910668538753733
mov $1,1
mov $2,$0
mov $3,$0
lpb $2
mov $0,$3
mul $1,2
sub... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r15
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x1908c, %r9
nop
nop
nop
nop
nop
add %r11, %r11
movb (%r9), %al
nop
sub $62072, %r12
lea addresses_WC_ht+0x2934, %rsi
lea addresses_normal_ht+0x5543, %rdi
nop
nop
nop
dec %r15
... |
/*
* Copyright (c) 2018 Spotify AB.
*
* 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,... |
#define DOCTEST_CONFIG_IMPLEMENT
#include "doctest.h"
using namespace doctest;
const int MIN_TESTS = 100;
struct ReporterGrader: public ConsoleReporter {
ReporterGrader(const ContextOptions& input_options)
: ConsoleReporter(input_options) {}
void test_run_end(const TestRunStats& run_s... |
//===--- SILGenDecl.cpp - Implements Lowering of ASTs -> SIL for Decls ----===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
; A254460: a(n) is the number of predecessors of the all-ones state of the binary cellular automaton on the n X n grid graph with edges joining diagonal neighbors as well as vertical and horizontal neighbors, whose local rule is f(i,j) = sum of the state at vertex (i,j) and the states at all of its neighbors mod 2.
; 1... |
; A181668: Period 12: repeat [5,5,5,2,2,2,8,8,8,2,2,2].
; 5,5,5,2,2,2,8,8,8,2,2,2,5,5,5,2,2,2,8,8,8,2,2,2,5,5,5,2,2,2,8,8,8,2,2,2,5,5,5,2,2,2,8,8,8,2,2,2,5,5,5,2,2,2,8,8,8,2,2,2,5,5,5,2,2,2,8,8,8,2,2,2,5,5,5,2,2,2,8,8,8,2,2,2,5,5,5,2,2,2,8,8,8,2,2,2,5,5,5,2,2,2,8,8,8,2,2,2
div $0,3
mov $1,$0
gcd $1,4
mul $1,2
mod $1,5... |
/* Copyright (c) 2018 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
#include "kvstore/PartManager.h"
namespace nebula {
namespace kvstore {
meta::PartsMap MemPartManager::parts(const HostAddr&) { return partsMap_; }
meta::ListenersMap MemPartManager::listeners(con... |
export InitTrigger
code
proc InitTrigger 12 8
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 0
INDIRP4
CNSTI4 116
ADDP4
ARGP4
ADDRGP4 vec3_origin
ARGP4
ADDRLP4 0
ADDRGP4 VectorCompare
CALLI4
ASGNI4
ADDRLP4 0
INDIRI4
CNSTI4 0
NEI4 $54
ADDRFP4 0
INDIRP4
CNSTI4 116
ADDP4
ARGP4
ADDRFP4 0
INDIRP4
CNSTI4 672
ADDP4
ARGP4
ADDRGP4 ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x715f, %rsi
lea addresses_WT_ht+0x185df, %rdi
nop
nop
nop
nop
nop
and $4922, %r8
mov $117, %rcx
rep movsb
nop
nop
nop
nop
nop
dec %r13
lea addresses_WT_ht+0x11a5f, %rsi
lea add... |
/******************************************************************************/
/* */
/* Name : QUERY.CPP */
/* Date : 10/13/1997 */
/* Author : Jim Susoy */... |
#include "uipriv_qt5.hpp"
#include <QLineEdit>
struct uiEntry : uiQt5Control {};
char *uiEntryText(uiEntry *e)
{
if (auto lineEdit = uiValidateAndCastObjTo<QLineEdit>(e)) {
return uiQt5StrdupQString(lineEdit->text());
}
return nullptr;
}
void uiEntrySetText(uiEntry *e, const char *text)
{
if (auto lineEdit =... |
<%
from pwnlib.shellcraft.aarch64.linux import syscall
%>
<%page args="clock_id, flags, req, rem"/>
<%docstring>
Invokes the syscall clock_nanosleep. See 'man 2 clock_nanosleep' for more information.
Arguments:
clock_id(clockid_t): clock_id
flags(int): flags
req(timespec): req
rem(timespec): rem
... |
; void tshc_cls_wc(struct r_Rect8 *r, uchar attr)
SECTION code_clib
SECTION code_arch
PUBLIC tshc_cls_wc
EXTERN asm_tshc_cls_wc
tshc_cls_wc:
pop af
pop hl
pop ix
push hl
push hl
push af
jp asm_tshc_cls_wc
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r15
push %rbp
push %rbx
push %rdi
push %rsi
lea addresses_D_ht+0x6ce, %rbx
nop
nop
nop
xor %r14, %r14
mov $0x6162636465666768, %rsi
movq %rsi, (%rbx)
sub %r11, %r11
lea addresses_WC_ht+0x9716, %rdi
nop
nop
nop
cmp %rbp, %rbp
mov $0x6162636465666768,... |
; A084182: 3^n+(-1)^n-[1/(n+1)], where [] represents the floor function.
; 1,2,10,26,82,242,730,2186,6562,19682,59050,177146,531442,1594322,4782970,14348906,43046722,129140162,387420490,1162261466,3486784402,10460353202,31381059610,94143178826,282429536482,847288609442
mov $1,2
mov $7,2
lpb $0
add $0,1
mov $2,$7
... |
// Copyright (c) Facebook, Inc. and its affiliates.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.
#include <spectrum/image/metadata/ReadContext.h>
#include <gtest/gtest.h>
namespace facebook {
namespace spectrum {
namespace image {
na... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.