text stringlengths 1 1.05M |
|---|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r8
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0xe024, %rsi
lea addresses_WC_ht+0xe70a, %rdi
nop
nop
nop
cmp %r8, %r8
mov $119, %rcx
rep movsl
nop
nop
nop
and $24600, %r11
lea addresses_UC_ht+0x8044, %rdi
nop
sub %r10, ... |
; A033880: Abundance of n, or (sum of divisors of n) - 2n.
; -1,-1,-2,-1,-4,0,-6,-1,-5,-2,-10,4,-12,-4,-6,-1,-16,3,-18,2,-10,-8,-22,12,-19,-10,-14,0,-28,12,-30,-1,-18,-14,-22,19,-36,-16,-22,10,-40,12,-42,-4,-12,-20,-46,28,-41,-7,-30,-6,-52,12,-38,8,-34,-26,-58,48,-60,-28,-22,-1,-46,12,-66,-10,-42,4,-70,51,-72,-34,-26,-... |
; ISR_example.asm: a) Increments/decrements a BCD variable every half second using
; an ISR for timer 2; b) Generates a 2kHz square wave at pin P3.7 using
; an ISR for timer 0; and c) in the 'main' loop it displays the variable
; incremented/decremented using the ISR for timer 0 on the LCD. Also resets it to
; ze... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0xf8b, %rdi
nop
nop
nop
nop
nop
sub $53282, %r10
mov (%rdi), %r11d
nop
add %rax, %rax
lea addresses_UC_ht+0x3173, %rcx
nop
sub %rdx, %rdx
movb $0x61, (%rcx)
add %r10, %r10
lea ... |
MODULE _printk
SECTION code_clib
PUBLIC _printk
PUBLIC _cprintf
EXTERN asm_printf
EXTERN printk_outc
;sdcc version
_printk:
_cprintf:
ld hl,4
add hl,sp ;points to first argument
pop bc ;ret address
pop de ;fmt
push de
push bc
IF !__CPU_INTEL__ && !__CPU_GBZ80__
push ix ;save ix
ENDIF
push bc ;fp... |
// Copyright (c) 2005-2007 Andre Merzky
// Copyright (c) 2005-2018 Hartmut Kaiser
// Copyright (c) 2011 Bryce Lelbach
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// make inspect happy: hpxinspect:n... |
#include "mesh.h"
#include <utility>
/*
* @Description:
* @Author: 妄想
* @Email: long452a@163.com
* @Date: 2021-2-20
*
* @Author: xiji
* @Email: wncka@foxmail.com
* @Date: 2021-04-13
*/
//==================================================BaseMesh========================================================
void... |
; A120845: 2^n+3^n+5*n.
; 2,10,23,50,117,300,823,2350,6857,20240,60123,179250,535597,1602580,4799423,14381750,43112337,129271320,387682723,1162785850,3487833077,10462450460,31385254023,94151567550,282446313817,847322164000,2541932937323,7625731702850,22877060890557,68630914235940,205892205836623,617675543767750,1853024... |
; A116970: a(n) = (3^n - 7)/2.
; 1,10,37,118,361,1090,3277,9838,29521,88570,265717,797158,2391481,7174450,21523357,64570078,193710241,581130730,1743392197,5230176598,15690529801,47071589410,141214768237,423644304718,1270932914161
mov $1,3
pow $1,$0
div $1,2
mul $1,9
add $1,1
mov $0,$1
|
[XCX_DAMAGES]
moduleMatches = 0xF882D5CF, 0x30B6E091 ; 1.0.1E, 1.0.2U
.origin = codecave
.int $divr
_divide_dmg:
li r4, $divr
divw r4, r31, r4
blr
0x025D896C = bla _divide_dmg
[XCX_DAMAGES_1U]
moduleMatches = 0xAB97DE6B ; 1.0.1U
.origin = codecave
.int $mult
0x025D88FC = mulli r4, r31, $mult
|
;
; CPC Maths Routines
;
; August 2003 **_|warp6|_** <kbaccam /at/ free.fr>
;
; $Id: dleq.asm,v 1.6 2016-06-22 19:50:49 dom Exp $
;
SECTION code_fp
INCLUDE "cpcfirm.def"
INCLUDE "cpcfp.def"
PUBLIC dleq
PUBLIC dleqc
EXTERN fsetup
EXTERN stkequcmp
EXTERN cmpfin
.dleq call ... |
;
; Generic pseudo graphics routines for text-only platforms
;
; Written by Stefano Bodrato 30/01/2002
;
;
; Erases pixel at (x,y) coordinate.
;
;
; $Id: respixl.asm,v 1.8 2016/08/05 07:04:09 stefano Exp $
;
INCLUDE "graphics/grafix.inc"
SECTION code_clib
PUBLIC respixel
... |
; A316466: a(n) = 2*n*(7*n - 3).
; 0,8,44,108,200,320,468,644,848,1080,1340,1628,1944,2288,2660,3060,3488,3944,4428,4940,5480,6048,6644,7268,7920,8600,9308,10044,10808,11600,12420,13268,14144,15048,15980,16940,17928,18944,19988,21060,22160,23288,24444,25628,26840,28080,29348,30644,31968,33320,34700,36108,37544,39008,40... |
;;
;; Copyright (c) 2018-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... |
; $Id: ASMAtomicCmpXchgExU64.asm $
;; @file
; IPRT - ASMAtomicCmpXchgExU64().
;
;
; Copyright (C) 2006-2017 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 t... |
_ln: 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
if(argc != 3){
7: 83 39 03 cmpl $0x3,(%ecx)... |
; A017122: a(n) = (8*n + 4)^10.
; 1048576,61917364224,10240000000000,296196766695424,3656158440062976,27197360938418176,144555105949057024,604661760000000000,2113922820157210624,6428888932339941376,17490122876598091776,43438845422363213824,100000000000000000000,215892499727278669824,441143507864991563776,85944255064918... |
; A176059: Periodic sequence: Repeat 3, 2.
; 3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2
gcd $0,2
add $0,1
|
// Copyright (c) 2018-2021, The DeroGold Developers
// Copyright (c) 2012-2017, The CryptoNote developers, The Bytecoin developers
// Copyright (c) 2014-2018, The Monero Project
// Copyright (c) 2018-2019, The TurtleCoin Developers
//
// Please see the included LICENSE file for more information.
/////////////////////... |
; A047365: Numbers that are congruent to {0, 3, 4, 5} mod 7.
; 0,3,4,5,7,10,11,12,14,17,18,19,21,24,25,26,28,31,32,33,35,38,39,40,42,45,46,47,49,52,53,54,56,59,60,61,63,66,67,68,70,73,74,75,77,80,81,82,84,87,88,89,91,94,95,96,98,101,102,103,105,108,109,110
mov $1,$0
lpb $0
trn $0,3
add $1,$0
trn $0,1
add $1,2
... |
%ifdef MSVC
; MSVC puts underscores before its symbols in C
%define main _main
%define puts _puts
%endif
global main
extern puts
section .text
main: push message
call puts
pop eax
xor eax, eax
retn
section .data
message: db " *Notices Bulge*", 10
db "__ ___ ... |
#include <iostream>
#include <exception>
#include <string>
#include <stdexcept>
#include <vector>
#include <cmath>
class Server {
private:
static int load;
public:
static int compute(long long A, long long B) {
load += 1;
if (A < 0) {
throw std::invalid_argument("A is negative");
... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/input_method/input_method_manager_impl.h"
#include <stddef.h>
#include <algorithm>
#include <memory>
#include <uti... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distr... |
; A293400: Greatest integer k such that k/n^2 < (1 + sqrt(5))/2 (the golden ratio).
; 0,1,6,14,25,40,58,79,103,131,161,195,232,273,317,364,414,467,524,584,647,713,783,855,931,1011,1093,1179,1268,1360,1456,1554,1656,1762,1870,1982,2096,2215,2336,2461,2588,2719,2854,2991,3132,3276,3423,3574,3727,3884,4045,4208,4375,4545,... |
; Copyright © 2018, VideoLAN and dav1d authors
; Copyright © 2018, Two Orioles, LLC
; All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions are met:
;
; 1. Redistributions of source code must retain the above copy... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r15
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x58d0, %rax
clflush (%rax)
nop
nop
nop
nop
nop
xor %r10, %r10
mov (%rax), %ebp
nop
nop
nop
nop
nop
cmp $26954, %rsi
lea addresses_WC_ht+0x8bea, %rsi
lea addresses_UC_ht+0x26da,... |
; A099168: a(n) = 3^n * 5^binomial(n,2).
; 1,3,45,3375,1265625,2373046875,22247314453125,1042842864990234375,244416296482086181640625,286425347439944744110107421875,1678273520155926235020160675048828125
mov $1,3
mov $2,3
lpb $0
sub $0,1
mul $1,$2
mul $2,5
lpe
div $1,3
mov $0,$1
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r8
push %rcx
lea addresses_D_ht+0x1e910, %r10
nop
nop
nop
nop
nop
cmp %r14, %r14
movups (%r10), %xmm5
vpextrq $0, %xmm5, %r8
inc %rcx
pop %rcx
pop %r8
pop %r14
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r14
push... |
.text
li $t1, 5 # 0000 0101
srl $t3, $t1, 2 # 5 = 00000101
# 1 bit shifted to the right 00000010
# 2 bits shifted to the right 00000001
# shift right means division of the number by 2 to the power of amount of shifted bits
# 5 shifted to the right by 2 bits. New number is 5 / pow(2,2) = 1
|
0x0000 (0x000000) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0001 (0x000002) 0x291A- f:00024 d: 282 | OR[282] = A
0x0002 (0x000004) 0x2118- f:00020 d: 280 | A = OR[280]
0x0003 (0x000006) 0x1419- f:00012 d: 25 | A = A + 25 (0x0019)
... |
#include <bits/stdc++.h>
#define MOD 1000000007
#define INF INT_MAX
#define ll long long
#define ld long double
#define pb push_back
#define mp make_pair
#define all(c) c.begin() , c.end()
#define gcd(m,n) __gcd(m,n)
#define lcm(m,n) (m*n)/gcd(m,n)
#define endl "\n"
#define IOS ios_base::sync_with_stdio(false); cin.ti... |
; A154026: a(n+2) = 81*a(n+1) - a(n), a(1)=0, a(2)=9.
; Submitted by Jon Maiga
; 0,9,729,59040,4781511,387243351,31361929920,2539929080169,205702893563769,16659394449585120,1349205247522830951,109268965654899721911,8849437012799354643840,716695129071092826429129,58043456017745719586115609,4700803242308332193648935200,3... |
;nasm 2.11.08
section .data
hello: db 'Hello world!',10 ; 'Hello world!' plus a linefeed character
helloLen: equ $-hello ; Length of the 'Hello world!' string
section .text
global _start
_start:
mov eax, 6
mov esp, 2
div esp
mov esp, eax
mov eax,4 ; The syste... |
;****************************************************************************
;*
;* RUNCCALL.ASM - Call glue routines for calling C functions from Poco code.
;*
;* This routine is the interface between the Poco runops interpreter and
;* functions written in compiled C (such as builtin library or POE routines.)
... |
/**
* Copyright (c) 2014-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "KvStore.h"
#include <fb303/ServiceData.h>
#include <fbzmq/service/logging/LogSample.h>
#include <fbzmq/zmq/Zmq.h>
#include <f... |
/*
* This file is part of the Simutrans-Extended project under the Artistic License.
* (see LICENSE.txt)
*/
#include <stdio.h>
#include "gui_frame.h"
#include "../simcolor.h"
#include "../dataobj/environment.h"
#include "../display/simgraph.h"
#include "simwin.h"
#include "../simworld.h"
#include "../player/simpla... |
#ruledef test
{
ld {x: u8} =>
{
0x11 @ x`8
}
ld {x: u16} =>
{
0x22 @ x`16
}
ld {x: u24} =>
{
0x33 @ x`24
}
}
ld 0x215 ; = 0x220215 |
/*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "tools/viewer/SkottieSlide.h"
#if defined(SK_ENABLE_SKOTTIE)
#include "include/core/SkCanvas.h"
#include "include/core/SkFont.h"
#include "modules/skottie/include/S... |
;
; Z88 Graphics Functions - Small C+ stubs
;
; Written around the Interlogic Standard Library
;
; Stubs Written by D Morris - 30/9/98
;
;
; $Id: point_callee.asm $
;
; CALLER LINKAGE FOR FUNCTION POINTERS
; ----- void point(int x, int y)
;Result is true/false
SECTION code_graphics
... |
; A117869: Partial sums of floor(e^n).
; 1,3,10,30,84,232,635,1731,4711,12814,34840,94714,257468,699881,1902485,5171502,14057612,38212564,103872533,282354833,767520028,2086335762,5671248608,15416052054,41905174183,113910073520,309639682948
lpb $0
mov $2,$0
sub $0,1
seq $2,149 ; a(n) = floor(e^n).
add $3,$2
lpe... |
#include "pointCorrespondence.h"
PointCorrespondence::PointCorrespondence()
{
pointList = new QList<PointOnLayer>();
numofItems=0;
}
PointCorrespondence::~PointCorrespondence()
{
delete pointList;
}
void PointCorrespondence::addPoint(PointOnLayer &newPt)
{
pointList->append(newPt);
... |
;
; Copyright (C) 2008-2020 Advanced Micro Devices, Inc. All rights reserved.
;
; Redistribution and use in source and binary forms, with or without modification,
; are permitted provided that the following conditions are met:
; 1. Redistributions of source code must retain the above copyright notice,
; this list... |
// CvPlotQt - https://github.com/Profactor/cv-plot-qt
// Copyright (c) 2020 by PROFACTOR GmbH - https://www.profactor.at/
#include <CvPlotQt/version.h>
namespace CvPlotQt {
std::string version() {
return CVPLOTQT_VERSION;
}
}
|
; use for library code only
; use l_call_ix_dd for compile time user code
SECTION code_clib
SECTION code_l
PUBLIC l_jpix_18
PUBLIC l_jpix_15
PUBLIC l_jpix_12
PUBLIC l_jpix_09
PUBLIC l_jpix_06
PUBLIC l_jpix_03
; implement jump table pointed at by ix
l_jpix_18:
push ix
push bc
ld bc,18
jr l_jpix_go
... |
/*
* Copyright (C) 2016, 2017, 2018
* Computer Graphics Group, University of Siegen
* Written by Martin Lambers <martin.lambers@uni-siegen.de>
*
* 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 ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r14
push %r15
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x393c, %r15
nop
nop
nop
nop
dec %r14
movw $0x6162, (%r15)
nop
nop
nop
nop
add %r13, %r13
lea addresses_normal_ht+0x253c, %r11
nop
sub %rsi, %rsi
mov (%r11), %cx
xor $34189, %... |
#include <stan/math/prim/scal.hpp>
#include <gtest/gtest.h>
#include <vector>
TEST(MetaTraits, length_mvt) {
using stan::max_size;
double x1 = 1.0, x2 = 0.0, x3 = 2.0, x4 = -3.0, x5 = -11.0;
EXPECT_EQ(1U, max_size(x1, x2));
EXPECT_EQ(1U, max_size(x1, x2, x3));
EXPECT_EQ(1U, max_size(x1, x2, x3, x4));
EXPE... |
; the stack grows downwards from bp (i.e. sp gets decremented)
mov ah, 0x0e ; tty mode
; bp register stores the base address (i.e. bottom) of the stack
mov bp, 0x8000 ; this is an address far away from 0x7c00 so that we don't get overwritten
; sp stores the top
mov sp, bp ; if the stack is empty then sp points... |
frame=266
notelength=282
which_element=283
counter = 284
table_index = 285
A0 = $0A
B0 = $0B
C0 = $0C
D0 = $0D
E0 = $0E
F0 = $0F
G0 = $10
H0 = $11
I0 = $12
J0 = $13
K0 = $14
L0 = $15
M0 = $16
N0 = $17
O0 = $18
P0 = $19
Q0 = $1A
R0 = $1B
S0 = $1C
T0 = $1D
U0 = $1E
V0 = $1F
W0 = $20
X0 = $21... |
#include "pxt.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include <stdarg.h>
#include <fcntl.h>
namespace pxt {
static FILE *dmesgFile;
static int dmesgPtr;
static int dmesgSerialPtr;
static char dmesgBuf[4096];
void dumpDmesg() {
auto len = dmesgPtr - dmesgSerialPtr;
... |
; ssize_t read_callee(int fd, void *buf, size_t nbyte)
SECTION code_fcntl
PUBLIC _read_callee
EXTERN asm_read
_read_callee:
pop af
pop hl
pop de
pop bc
push af
jp asm_read
|
; A225585: Floor((3^n-1)/n).
; 2,4,8,20,48,121,312,820,2186,5904,16104,44286,122640,341640,956593,2690420,7596480,21523360,61171656,174339220,498112057,1426411800,4093181688,11767897353,33891544377,97764070320,282429536480,817028301962,2366564736720,6863037736488,19924948267224,57906880901620,168456380804712,4905053441... |
user/_ls: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <fmtname>:
#include "user/user.h"
#include "kernel/fs.h"
char*
fmtname(char *path)
{
0: 7179 addi sp,sp,-48
2: f406 sd ra,40(sp)
4: f022 sd s0,32(sp)
6: ec26 ... |
; A179398: a(n) = prime(n)^2 mod prime(n-3).
; Submitted by Jamie Morken(s1)
; 1,1,4,2,9,9,8,11,12,28,20,26,21,41,8,37,26,22,10,2,37,8,75,18,3,64,100,79,48,11,17,62,59,46,47,105,99,93,29,151,17,75,64,131,85,187,113,100,144,144,91,85,2,73,196,196,144,144,256,114,218,107,100,89,263,266,324,256,144,324,47,41,256,256,324
... |
; A120509: Generalized meta-Fibonacci sequence a(n) with parameters s=2 and k=4.
; Submitted by Christian Krause
; 1,1,1,2,3,4,4,4,4,5,6,7,8,8,9,10,11,12,12,13,14,15,16,16,16,16,16,17,18,19,20,20,21,22,23,24,24,25,26,27,28,28,29,30,31,32,32,32,33,34,35,36,36,37,38,39,40,40,41,42
mov $6,$0
add $0,1
mov $2,$0
lpb $0
l... |
; A026053: (d(n)-r(n))/5, where d = A008778 and r is the periodic sequence with fundamental period (0,3,1,0,1).
; 1,2,5,9,14,21,29,40,53,68,86,106,130,157,187,221,258,300,346,396,451,510,575,645,720,801,887,980,1079,1184,1296,1414,1540,1673,1813,1961,2116,2280,2452,2632,2821,3018,3225,3441,3666,3901,4145,4400,4665,4940... |
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2020-2021 Intel Corporation
#include <opencv2/gapi/s11n.hpp>
#include <opencv2/gapi/garg.hpp>
#... |
; A040860: Continued fraction for sqrt(890).
; 29,1,4,1,58,1,4,1,58,1,4,1,58,1,4,1,58,1,4,1,58,1,4,1,58,1,4,1,58,1,4,1,58,1,4,1,58,1,4,1,58,1,4,1,58,1,4,1,58,1,4,1,58,1,4,1,58,1,4,1,58,1,4,1,58,1,4,1,58,1,4,1,58,1,4,1,58,1,4,1,58,1,4,1
cal $0,10199 ; Continued fraction for sqrt(140).
lpb $0,1
mov $1,$0
cal $1,2980... |
; Cerberus Application Header (Ti83+[SE] App)
;
; hjp - 28 june 2001 - First (clumsy) attempt to write a header-file
; hjp - 29 june 2001 - Fixed/added things
; hjp - 3 july 2001 - Straightened up some things for grayscale
; hjp - 13 july 2001 - Reshaped variable initialisation (clears statvars now)
MODULE Ti83plus_... |
{ 'abc_class': 'AbcFile'
, 'minor_version': 16
, 'major_version': 46
, 'int_pool': [ undefined ]
, 'uint_pool': [ undefined ]
, 'double_pool': [ undefined ]
, 'utf8_pool': [ undefined
, ''
, 'Object'
, 'Array'
, 'RegExp'
, 'f'
, ... |
; A071993: a(n) = 3*n - 2* A003159(n).
; Submitted by Jon Maiga
; 1,0,1,2,1,0,-1,0,1,0,1,2,1,2,3,2,1,0,1,2,1,0,-1,0,1,0,-1,-2,-1,0,-1,0,1,0,1,2,1,0,-1,0,1,0,1,2,1,2,3,2,1,0,1,2,1,2,3,2,3,4,3,2,1,2,3,2,1,0,1,2,1,0,-1,0,1,0,1,2,1,2,3,2,1,0,1,2,1,0,-1,0,1,0,-1,-2,-1,0,-1,0,1,0,1,2
mov $1,1
add $1,$0
seq $0,3156 ; A self-... |
//
// detail/impl/posix_mutex.ipp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef ASIO_... |
; int esxdos_f_fstat(uchar handle, void *buf)
SECTION code_clib
SECTION code_esxdos
PUBLIC _esxdos_f_fstat
EXTERN l0_esxdos_f_fstat_callee
_esxdos_f_fstat:
pop bc
dec sp
pop af
pop hl
push hl
dec sp
push bc
jp l0_esxdos_f_fstat_callee
|
;
; ANSI Video handling for the Jupiter ACE
;
; Stefano Bodrato - Feb. 2001
;
;
; set it up with:
; .text_cols = max columns
; .text_rows = max rows
;
; Display a char in location (ansi_ROW),(ansi_COLUMN)
; A=char to display
;
;
; $Id: f_ansi_char.asm,v 1.5 2015/01/19 01:33:18 pauloscustodio Exp $
;
PUBLIC ansi_CHAR... |
; A181709: Indices of primes in A007310.
; Submitted by Christian Krause
; 2,3,4,5,6,7,8,10,11,13,14,15,16,18,20,21,23,24,25,27,28,30,33,34,35,36,37,38,43,44,46,47,50,51,53,55,56,58,60,61,64,65,66,67,71,75,76,77,78,80,81,84,86,88,90,91,93,94,95,98,103,104,105,106,111,113,116,117,118,120,123,125,127,128,130,133,134,137,... |
; A099861: Bisection of A002808.
; 4,8,10,14,16,20,22,25,27,30,33,35,38,40,44,46,49,51,54,56,58,62,64,66,69,72,75,77,80,82,85,87,90,92,94,96,99,102,105,108,111,114,116,118,120,122,124,126,129,132,134,136,140,142,144,146,148,152,154,156,159,161,164,166,169,171,174,176,178,182,184,186,188,190,194,196,200,202,204,206,208,... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: System.IntPtr
#include "System/IntPtr.hpp"
#include "extern/beatsaber... |
; A089255: Odd numbers n such that 2*n-5 is a prime.
; Submitted by Jon Maiga
; 5,9,11,17,21,23,29,33,39,47,51,53,57,59,71,77,81,89,93,99,101,117,119,123,131,137,141,143,149,159,161,171,177,179,189,197,201,203,207,213,219,227,231,233,257,263,273,281,287,291,299,303,309,311,323,329,333
mov $2,36
mul $2,$0
mov $4,4
lpb ... |
; ==================================================================
; MikeOS -- The Mike Operating System kernel
; Copyright (C) 2006 - 2019 MikeOS Developers -- see doc/LICENSE.TXT
;
; COMMAND LINE INTERFACE
; ==================================================================
os_command_line:
call os_clear_screen
... |
//
// ofxDepthTouchPad.cpp
// kinectExample
//
// Created by nausea on 4/4/17.
//
//
#include "ofxDepthTouch.h"
using namespace ofxDepthTouch;
void DepthGeneric::setupSensor(float fovW, float fovH){
mshSensor.clear();
mshSensor.setUsage(GL_STATIC_DRAW);
mshSensor.setMode(OF_PRIMITIVE_LINES);
float... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r15
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0xfa22, %rdx
nop
nop
nop
nop
nop
dec %r14
vmovups (%rdx), %ymm4
vextracti128 $1, %ymm4, %xmm4
vpextrq $1, %xmm4, %rdi
nop
and $9432, %r13
lea addresses_D_ht+0xf9ed, %rsi
lea addresses_WC... |
#include<iostream>
#include<bits/stdc++.h>
using namespace std;
#define max 410
int level[max];
void bfs(vector<int>edge[],int src,int desti)
{
queue<int>Q;
Q.push(src);
int visited[max]={0};
memset(level,0,sizeof(level));
//int parent[max];
visited[src]=1;
level[src]=0;
while(!Q.empty()&&visited[desti]==... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <string>
#include <vector>
#include <ngraph/opsets/opset1.hpp>
#include "ie_parallel.hpp"
#include "mkldnn_reverse_sequence_node.h"
using namespace MKLDNNPlugin;
using namespace InferenceEngine;
bool MKLDNNReverseSequenc... |
/*
Copyright 2011 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 obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... |
; A214982: a(n) = (Fibonacci(5n)/Fibonacci(n) - 5)/50.
; 0,1,6,45,300,2080,14196,97461,667590,4576825,31367160,215001216,1473620616,10100397385,69229018950,474503107365,3252291758436,22291541752096,152788493829180,1047227932532925,7177806988136070
cal $0,127546 ; a(n) = F(n)^2 + F(n+1)^2 + F(n+2)^2, where F(n) denotes... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x1518, %r12
nop
nop
dec %rdx
mov (%r12), %cx
nop
nop
nop
nop
cmp $58009, %r13
lea addresses_normal_ht+0x1e208, %r9
nop
nop
nop
sub $59105, %rbx
mov (%r9), %r11
nop
no... |
%define VA(x) (MULTIBOOT_BASE + (x - ___FirstAddressLabel))
%define REBASE(x) (((x) - reloc) + INT32_BASE)
;
; PXE 32 bit loader code
;
; for documentation check out MULTIBOOT 0.6.96 specs
; http://www.gnu.org/software/grub/manual/multiboot/multiboot.html
;
; ianichitei: in order to be sure that this is linked first,... |
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x95da, %rsi
lea addresses_UC_ht+0xdbda, %rdi
nop
nop
nop
nop
and $41497, %r9
mov $125, %rcx
rep movsl
nop
nop
nop
nop
sub $14231, %rcx
lea addresses_A_ht+0x1d5fc, %r14
clflush (%r14... |
; A014987: a(n) = (1 - (-6)^n)/7.
; 1,-5,31,-185,1111,-6665,39991,-239945,1439671,-8638025,51828151,-310968905,1865813431,-11194880585,67169283511,-403015701065,2418094206391,-14508565238345,87051391430071,-522308348580425,3133850091482551
mov $1,-6
pow $1,$0
sub $1,1
div $1,7
mul $1,6
add $1,1
|
; A081596: Let n = 10x + y where 0 <= y <= 9, x >= 0. Then a(n) = 5x+y.
; 0,1,2,3,4,5,6,7,8,9,5,6,7,8,9,10,11,12,13,14,10,11,12,13,14,15,16,17,18,19,15,16,17,18,19,20,21,22,23,24,20,21,22,23,24,25,26,27,28,29,25,26,27,28,29,30,31,32,33,34,30,31,32,33,34,35,36,37,38,39,35,36,37,38,39,40,41,42,43,44,40,41,42,43,44,45,46,... |
; COPYRIGHT (c) 1995,99,2002 XDS. All Rights Reserved.
; jump to X2C_EXPRR function named "pow".
cpu 386
bits 32
%ifdef SYMANTEC ; =========== Rename publics
%define pow _pow
%endif
%ifdef OS2
section .text use32 align=4 FLAT public 'CODE'
%else
section .tex... |
; Author: Ali Hassan Soomro
; Date : 12/24/2017
; ****** This code is written for EMU8086 *****
.model small
.stack 100h
.data
number db 169d ;variable 'number' stores the random value
;declarations used to add LineBreak to strings
CR equ 13d
LF eq... |
.file "hello13.cpp"
.intel_syntax noprefix
.text
.section .text$_Z6printfPKcz,"x"
.linkonce discard
.globl __Z6printfPKcz
.def __Z6printfPKcz; .scl 2; .type 32; .endef
__Z6printfPKcz:
push ebp
mov ebp, esp
push ebx
sub esp, 36
lea eax, [ebp+12]
mov DWORD PTR [ebp-16], eax
mov ebx, DWORD PTR [ebp-16]
mov ... |
; A290953: The number of permutations in S_n for which the number of reduced words is maximized with respect to the numbers of braid and commutation classes: |R(w)| = |B(w)| * |C(w)|.
; 1,2,6,16,45,136,434,1436,4869,16804,58795,208022,742911,2674452,9694858,35357684,129644805,477638716,1767263207,6564120438,24466267039... |
#include "../../common/resource/CResourceLock.h"
#include "../../network/send.h"
#include "../chars/CChar.h"
#include "../items/CItemMap.h"
#include "../components/CCSpawn.h"
#include "../CLog.h"
#include "../CWorldMap.h"
#include "../triggers.h"
#include "CClient.h"
bool CClient::Cmd_Use_Item( CItem *pItem, bool fTe... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r15
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x8d39, %rsi
lea addresses_A_ht+0xeab9, %rdi
and $33542, %r15
mov $28, %rcx
rep movsl
nop
nop
nop
sub $30181, %r14
lea addresses_A_ht+0xdb04, %r12
nop
nop
nop
nop
nop
inc %r14
... |
Book_Create:
push rbx
lea rbx, [book]
call Os_GetTime
xor rdx, rax
or rdx, 1
xor eax, eax
mov qword[rbx+Book.seed], rdx
mov qword[rbx+Book.entryCount], rax
mov qword[rbx+Book.buffer], rax
mov byte[rbx+Book.ownBook], al
mov dword[rbx+Book.bookDepth], 100
pop ... |
*= $0801
.byte $4c,$16,$08,$00,$97,$32
.byte $2c,$30,$3a,$9e,$32,$30
.byte $37,$30,$00,$00,$00,$a9
.byte $01,$85,$02
jsr print
.byte 13
.text "(up)ldxzy"
.byte 0
lda #%00011011
sta db
lda #%11000110
s... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x1685a, %rsi
lea addresses_WC_ht+0x1e14b, %rdi
nop
nop
nop
nop
and $32175, %rax
mov $72, %rcx
rep movsq
nop
nop
nop
add $148, %r9
lea addresses_A_ht+0xfbb, %rsi
lea addresses_... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x14062, %r9
nop
nop
nop
nop
and $30079, %r11
mov $0x6162636465666768, %rcx
movq %rcx, %xmm2
vmovups %ymm2, (%r9)
xor $16098, %rdi
lea addresses_normal_ht+0xe502, %rsi
lea addresses_UC_ht... |
// Copyright Benoit Blanchon 2014-2017
// MIT License
//
// Arduino JSON library
// https://bblanchon.github.io/ArduinoJson/
// If you like this project, please add a star!
#include <ArduinoJson.h>
#include <gtest/gtest.h>
class Issue34 : public testing::Test {
protected:
template <typename T>
void test_with_val... |
%include "../utils/printf32.asm"
section .data
N dd 9 ; compute the sum of the first N fibonacci numbers
print_format_1 db "Sum first %d", 10, 0
print_format_2 db "fibo is %d", 10, 0
section .text
extern printf
global main
main:
push ebp
mov ebp, esp
push dword [N]
push print_format_1... |
; *****************************************************************************
; *****************************************************************************
;
; Name: dim.asm
; Purpose: Array Dimension
; Created: 7th March 2020
; Reviewed: 17th March 2020
; Author: Paul Robson (paul@robsons.org.uk)
;
; *****... |
; A139483: Numbers n such that 24n+7 is prime.
; 0,1,3,4,5,6,8,9,11,15,18,19,20,25,26,30,31,34,38,40,41,43,44,45,51,53,54,55,58,59,60,61,64,65,69,73,74,76,78,81,83,89,93,95,96,99,104,106,110,111,113,115,116,120,128,136,138,139,141,144,146,148,149,150,151
mov $2,$0
add $2,1
pow $2,2
lpb $2
add $1,6
sub $2,1
mov $... |
lui $1,34787
ori $1,$1,64580
lui $2,49323
ori $2,$2,6952
lui $3,11030
ori $3,$3,29542
lui $4,20737
ori $4,$4,35321
lui $5,41416
ori $5,$5,19870
lui $6,33903
ori $6,$6,18849
mthi $1
mtlo $2
sec0:
nop
nop
nop
and $3,$6,$6
sec1:
nop
nop
or $6,$6,$3
and $0,$6,$6
sec2:
nop
nop
sltiu $6,$1,3762
and $4,$6,$6
sec3:... |
*= $0801
.byte $4c,$16,$08,$00,$97,$32
.byte $2c,$30,$3a,$9e,$32,$30
.byte $37,$30,$00,$00,$00,$a9
.byte $01,$85,$02
jsr print
.byte 13
.text "(up)lsra"
.byte 0
lda #%00011011
sta db
lda #%11000110
st... |
; unsigned char check_version_core(uint16_t cv)
SECTION code_arch
PUBLIC check_version_core
EXTERN asm_check_version_core
defc check_version_core = asm_check_version_core
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _check_version_core
defc _check_version_core = check_version_core
ENDIF
|
void test_HVHisto(){
/*connect with oracle server */
TSQLServer *db=TSQLServer::Connect("oracle://pccmsecdb:1521/ecalh4db","test01","oratest01");
gStyle->SetOptStat(0);
gStyle->SetOptFit();
gStyle->SetPalette(1,0);
c1 = new TCanvas("c1","The HV",200,10,600,400);
c1->SetGrid();
c1->Divide(2,3);
/* c2 = new TCanv... |
; A221955: a(n) = 6^(n-1) * n! * Catalan(n-1).
; 1,12,432,25920,2177280,235146240,31039303680,4842131374080,871583647334400,177803064056217600,40539098604817612800,10215852848414038425600,2819575386162274605465600,845872615848682381639680000,274062727534973091651256320000,95373829182170635894637199360000,35479064455767... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.