text stringlengths 1 1.05M |
|---|
dnl Alpha mpn_add_n -- Add two limb vectors of the same length > 0 and
dnl store sum in a third limb vector.
dnl Copyright (C) 1995, 2000 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the t... |
.data
newline:.asciiz "\n"
.text
main:
li $t0,0
li $t1,0
li $t3,0
loop:
li $v0,1
addi $a0,$t0,0
syscall
li $v0,4
la $a0,newline
syscall
addi $t0,$t0,1
bgt $t0,14,exit
j loop
exit:
li $v0,0
|
map_header UndergroundPathWestEast, UNDERGROUND_PATH_WEST_EAST, UNDERGROUND, 0
end_map_header
|
GRAPHICS=1
ADAMS=0
EXITCOL=0
OBJCOL=0
MESSCOL=0
SYSCOL=0
TEXTCOL=39
INPUTCOL=0
include "engine.asm"
include "samessages.asm"
.objsep
equb ". ",0
.end
save "ENGINE",start,end
; add game files - disk1
putfile "MAdisc1\G.TGB","G.TGB",datastart
putfile "MAdisc1\G.TIME","G.TIME",datastart
putfile "MAdisc1\G.AOD1","G.AOD... |
j L0
add $v0, $a0, $t0
L0:
beqz $v0, L1
add $v0, $a0, $t0
L1:
add $v0, $a0, $t0
|
; Licensed to the .NET Foundation under one or more agreements.
; The .NET Foundation licenses this file to you under the MIT license.
; See the LICENSE file in the project root for more information.
;
#include "ksarm.h"
TEXTAREA
EXTERN start_runtime_and_get_target_address
;; Common code called from a b... |
; A317303: Numbers k with the property that both Dyck paths of the symmetric representation of sigma(k) have a central peak.
; 2,7,8,9,16,17,18,19,20,29,30,31,32,33,34,35,46,47,48,49,50,51,52,53,54,67,68,69,70,71,72,73,74,75,76,77,92,93,94,95,96,97,98,99,100,101,102,103,104,121,122,123,124,125,126,127,128,129,130,131,1... |
object_const_def ; object_event constants
const RADIOTOWER2F_SUPER_NERD
const RADIOTOWER2F_TEACHER
const RADIOTOWER2F_ROCKET1
const RADIOTOWER2F_ROCKET2
const RADIOTOWER2F_ROCKET3
const RADIOTOWER2F_ROCKET_GIRL
const RADIOTOWER2F_BLACK_BELT1
const RADIOTOWER2F_BLACK_BELT2
const RADIOTOWER2F_JIGGLYPUFF
const ... |
; A242891: Beginning with a centrally symmetric 'Sun' configuration of 8 rhombi with rotational symmetry, number of tiles that can be added to the free edges of the tiling.
; 8,8,8,16,24,24,40,32,48,48,40
sub $3,$0
seq $0,47384 ; Numbers that are congruent to {0, 1, 5} mod 7.
dif $0,6
add $3,1
mov $2,$3
cmp $2,0
add $... |
.data
theArray:
.word 0 33 123 -66 332 -1 -223 453 9 45 -78
sp_sanity_check_prompt_1:
.asciiz "\nSP ENTER VALUE: "
sp_sanity_check_prompt_2:
.asciiz "\nSP EXIT VALUE: "
print_s_register_prompt:
.asciiz "\nS REGISTERS: "
convention:
.asciiz "\nMy Convention Check\n"
space:
.asciiz " ... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "txdb.h"
#include "walletdb.h"
#include "rpcserver.h"
#include "net.h"
#i... |
#include "procedural_object_system.h"
#include "common/assertions.h"
#include "common/logger.h"
#include "common/profiler.h"
#include "procedural_component_system.h"
#include "procedural_object.h"
namespace pagoda
{
ProceduralObjectSystem::ProceduralObjectSystem() { LOG_TRACE(Core, "Creating ProceduralObjectSystem")... |
;/*
; * Microsoft Confidential
; * Copyright (C) Microsoft Corporation 1991
; * All Rights Reserved.
; */
; The following are all of the segments used in the load order
;
;SR; We switch the order of the CODE and DATA segments since we will have to
;move the... |
format PE console
entry start
include 'win32a.inc'
section '.idata' import data readable writeable
library kernel32, 'kernel32.dll', \
msvcrt, 'MSVCRT.DLL'
import kernel32, \
ExitProcess, 'ExitProcess'
import msvcrt, \
printf, 'printf'
section '.data' data readable
szHelloWor... |
db 0 ; species ID placeholder
db 100, 90, 130, 55, 45, 65
; hp atk def spd sat sdf
db WATER, ROCK ; type
db 25 ; catch rate
db 198 ; base exp
db NO_ITEM, DEEPSEASCALE ; items
db GENDER_F12_5 ; gender ratio
db 40 ; step cycles to hatch
INCBIN "gfx/pokemon/relicanth/front.dimensions"
db GROWTH_SLO... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Epson 9-pin print drivers
FILE: printcomEpsonMXGraphics.asm
AUTHOR: Dave Durran 1 March 1990
ROUTINES:
Name Description
---- --... |
###############################################################################
# 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... |
class Solution {
public:
int strStr(string haystack, string needle) {
return haystack.find(needle);
}
}; |
; void *memalign_unlocked(size_t alignment, size_t size)
PUBLIC memalign_unlocked_callee
EXTERN aligned_alloc_unlocked_callee
defc memalign_unlocked_callee = aligned_alloc_unlocked_callee
INCLUDE "alloc/malloc/z80/asm_memalign_unlocked.asm"
|
#include <iostream>
using namespace std;
int MaxSubseqsum(int *a,int k)
{
int This_Sum = 0;
int Max_Sum = 0 ;
for ( int i = 0 ; i < k ; i++ )
{
This_Sum += a[i];
if ( This_Sum > Max_Sum )
Max_Sum = This_Sum;
else if ( This_Sum < 0 )
This_Sum = 0;
}
return Max_Sum;
}
int main()
{
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r8
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x1a4d1, %rsi
lea addresses_WC_ht+0xcc2d, %rdi
nop
nop
nop
sub $56150, %r8
mov $49, %rcx
rep movsl
mfence
lea addresses_WT_ht+0x1db39, %r10
nop
nop
xor %rax, %rax
mov (%r10), %ecx
no... |
#include "dialogMakeRevol.h"
#include "ui_dialogMakeExtrusion.h"
#include "ui_dialogMakeRevol.h"
#include "mainWindow/mainWindow.h"
#include "moduleBase/ModuleType.h"
#include "MainWidgets/preWindow.h"
#include "settings/busAPI.h"
#include "settings/GraphOption.h"
#include "GeometryCommand/GeoCommandCreateChamf... |
; A158413: 961n^2 + 2n.
; 963,3848,8655,15384,24035,34608,47103,61520,77859,96120,116303,138408,162435,188384,216255,246048,277763,311400,346959,384440,423843,465168,508415,553584,600675,649688,700623,753480,808259,864960,923583,984128,1046595,1110984,1177295,1245528,1315683,1387760,1461759,1537680,1615523,1695288,1776... |
; A180031: Number of n-move paths on a 3 X 3 chessboard of a queen starting or ending in the central square.
; Submitted by Jamie Morken(s4)
; 1,8,48,304,1904,11952,74992,470576,2952816,18528688,116265968,729559344,4577924464,28726097072,180253881072,1131078181936,7097421958256,44535735246768,279458051899888,1753576141... |
; A315468: Coordination sequence Gal.5.300.5 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; 1,6,11,16,21,26,31,36,41,46,52,58,63,68,73,78,83,88,93,98,104,110,115,120,125,130,135,140,145,150,156,162,167,172,177,182,187,192,197,202,20... |
;;; generated by ../../BootSetup/BootSetup.rb (2018-02-18 11:55:47 +0100)
.include "ports.atmega8.inc"
;;; ========================================================================
;;; Interrupt Table
;;; ========================================================================
.org 0
rjmp R... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>pkey_free(vararg_0, vararg_1, vararg_2, vararg_3, vararg_4) -> str
Invokes the syscall pkey_free.
See 'man 2 pkey_free' for more information.
Arguments:
vararg(int): vararg
Returns:
long
</%docs... |
; A157080: 32805000n^2 - 16200n + 1.
; 32788801,131187601,295196401,524815201,820044001,1180882801,1607331601,2099390401,2657059201,3280338001,3969226801,4723725601,5543834401,6429553201,7380882001,8397820801,9480369601,10628528401,11842297201,13121676001,14466664801,15877263601,17353472401,18895291201,20502720001,2217... |
; A141571: Decimal expansion of 11999/99900.
; 1,2,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0
add $0,1
lpb $0
mod $0,3
pow $0,2
lpe
mov $1,$0
|
; A016845: (4n+3)^9.
; 19683,40353607,2357947691,38443359375,322687697779,1801152661463,7625597484987,26439622160671,78815638671875,208728361158759,502592611936843,1119130473102767,2334165173090451,4605366583984375
mul $0,4
add $0,3
pow $0,9
|
.data
array: .space 128 #maximum member is 32
str_space: .asciiz " "
head: .asciiz "The sorted array is:\n"
.text
la $s0, array
li $v0, 5
syscall
move $s1, $v0
beqz $v0, end
li $t0, 0
get: bge $t0, $s1, calc
sll $t1, $t0, 2
add $t1, $t1, $s0
li $v0, 5
syscall
sw $v0, 0($t1)
addi $t0, $t0, 1
j get
calc: ... |
// Copyright 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://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed... |
// $OpenLDAP$
/*
* Copyright 2000-2019 The OpenLDAP Foundation, All Rights Reserved.
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
*/
#include "config.h"
#include "debug.h"
#include "LDAPMessageQueue.h"
#include "LDAPRequest.h"
#include "LDAPResult.h"
#include "LDAPSearchReference.h"
#include "LDAPSearchRequest... |
/* Copyright 2016 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... |
#include "html.h"
#include "el_font.h"
using namespace litehtml;
el_font::el_font(const std::shared_ptr<document> &doc) : html_tag(doc) { }
el_font::~el_font() { }
void el_font::parse_attributes()
{
const tchar_t *str = get_attr(_t("color"));
if (str)
_style.add_property(_t("color"), str, 0, false);
... |
# xSpim Demo Program
#
# CPE 315
# fall 2001
#
# By: Dan Stearns
# Date:
# Modifications:
# 4/10/03 knico Tabbed code
# 4/10/03 knico Modified to use s registers instead of t registers
#
#
# declare global so programmer can see actual addresses.
.globl welcome
.globl prompt
.globl sumText
.globl myAr... |
extern m7_ippsTDESEncryptCFB:function
extern n8_ippsTDESEncryptCFB:function
extern y8_ippsTDESEncryptCFB:function
extern e9_ippsTDESEncryptCFB:function
extern l9_ippsTDESEncryptCFB:function
extern n0_ippsTDESEncryptCFB:function
extern k0_ippsTDESEncryptCFB:function
extern ippcpJumpIndexForMergedLibs
extern ippcpSafeIni... |
//
// setjmp.asm
//
#include "setjmp_offsets.h"
.text
//
// Standard setjmp(). Save the current execution context for a subsequent
// longjmp(). Signal state/mask is not saved; floating-point context is
// not saved.
//
// Standard C prototype --
// int
// setjmp(jmp_buf env);
//
// Returns zero on initial inv... |
/*
Given an integer array (of length n), find and print all the subsets of input array.
Subsets are of length varying from 0 to n, that contain elements of the array. But the order of elements should remain same as in the input array.
Note : The order of subsets are not important. Just print the subsets in different li... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2017 The Bitcoin Core developers
// Copyright (c) 2020 The Pesium Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <script/sign.h>
#inclu... |
;
; Grundy Newbrain Specific libraries
;
; Stefano Bodrato - 05/04/2007
;
;
; warm reset: foolishly jump to BASIC entry
;
;
;
; $Id: warm_reset.asm,v 1.4 2016-06-19 20:33:40 dom Exp $
;
SECTION code_clib
PUBLIC warm_reset
PUBLIC _warm_reset
.warm_reset
._warm_reset
jp 49373
|
; A341250: a(n) = 5*a(n-1) - 4*a(n-3) for n >= 4, where a(1) = 1, a(2) = 3, a(3) = 13.
; Submitted by Jamie Morken(w4)
; 1,3,13,61,293,1413,6821,32933,159013,767781,3707173,17899813,86427941,417311013,2014955813,9729067301,46976092453,226820639013,1095186925861,5288030259493,25532868741413,123283596003621,5952658589801... |
// Generated by genprov 2.0.1
#include "CIMPLE_Exception_Provider.h"
CIMPLE_NAMESPACE_BEGIN
CIMPLE_Exception_Provider::CIMPLE_Exception_Provider()
{
}
CIMPLE_Exception_Provider::~CIMPLE_Exception_Provider()
{
}
Load_Status CIMPLE_Exception_Provider::load()
{
_exception = 0;
return LOAD_OK;
}
Unload_Status ... |
db 0 ; species ID placeholder
db 80, 105, 105, 80, 105, 105
; hp atk def spd sat sdf
db PSYCHIC, PSYCHIC ; type
db 3 ; catch rate
db 255 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_UNKNOWN ; gender ratio
db 100 ; unknown 1
db 80 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/mes... |
; A216831: a(n) = Sum_{k=0..n} binomial(n,k)^3 * k!.
; Submitted by Christian Krause
; 1,2,11,88,905,11246,162607,2668436,48830273,983353690,21570885011,511212091952,13001401709881,352856328962918,10170853073795975,310093415465876716,9964607161173899777,336439048405066012466,11902368222382731461083,44012252033341705776... |
; A014437: Odd Fibonacci numbers.
; 1,1,3,5,13,21,55,89,233,377,987,1597,4181,6765,17711,28657,75025,121393,317811,514229,1346269,2178309,5702887,9227465,24157817,39088169,102334155,165580141,433494437,701408733,1836311903,2971215073,7778742049,12586269025,32951280099,53316291173,139583862445,225851433717,591286729879,... |
; A249101: p(n,1), where p(n,x) is defined in Comments; sum of numbers in row n of the array at A249100.
; Submitted by Jamie Morken(s3)
; 1,4,9,37,118,525,2059,9934,44937,233683,1177360,6552069,35986069,212891932,1256487933,7856137825,49320239614,324285063489,2149133929207,14796251405278,102910742502765,73914955292971... |
SECTION code_clib
PUBLIC pointxy
EXTERN pointxy_MODE0
EXTERN pointxy_MODE1
EXTERN __sv8000_mode
INCLUDE "target/sv8000/def/sv8000.def"
pointxy:
ld a,(__sv8000_mode)
cp MODE_1
jp z,pointxy_MODE1
and a
ret nz
jp pointxy_MODE0
|
<%
from pwnlib.shellcraft.powerpc.linux import syscall
%>
<%page args="rgid, egid, sgid"/>
<%docstring>
Invokes the syscall setresgid. See 'man 2 setresgid' for more information.
Arguments:
rgid(gid_t): rgid
egid(gid_t): egid
sgid(gid_t): sgid
</%docstring>
${syscall('SYS_setresgid', rgid, egid, ... |
#include <iostream>
#include <vector>
#include <string>
#include <queue>
#include <stack>
/**
Algorithms from the book Introduction to the Designs and Analysis of Algorithms by Anany Levitin
**/
struct Point2D;
struct Node;
void PrintArray(const std::vector<int>& array);
void SelectionSort(std::vector<int> &array);... |
SECTION code_clib
SECTION code_l
PUBLIC l_fast_ultoo
EXTERN l_fast_utoo, l_setmem_de
EXTERN l1_fast_utoo_lz, l1_fast_utoo_nlz
EXTERN l2_fast_utoo_lz, l2_fast_utoo_nlz
EXTERN l3_fast_utoo_lz, l3_fast_utoo_nlz
l_fast_ultoo:
; write unsigned octal long to ascii buffer
;
; enter : dehl = unsigned long
; ... |
// TwinkleFOX by Mark Kriegsman: https://gist.github.com/kriegsman/756ea6dcae8e30845b5a
//
// TwinkleFOX: Twinkling 'holiday' lights that fade in and out.
// Colors are chosen from a palette; a few palettes are provided.
//
// This December 2015 implementation improves on the December 2014 version
// in several wa... |
// Copyright 2021 Master Kenth
#include "MainController.h"
#include "Components/InputComponent.h"
#include "MainCharacter.h"
void AMainController::OnPossess(APawn* aPawn)
{
Super::OnPossess(aPawn);
AMainCharacter* pawnAsMainCharacter = Cast<AMainCharacter>(aPawn);
if (pawnAsMainCharacter)
{
MainCharacter = pa... |
org #0000
;; texture "i" will be in address "textures+i*256"
walltexture1:
db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
db #C0,#C0,#C0,#C0, 0, 0,#20,#20,#C0,#C0,#C0,#C0, 0, 0,#20,#90
db #C0,#C0,#C0,... |
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===---------------------------------... |
// Boost noncopyable.hpp header file --------------------------------------//
// (C) Copyright Beman Dawes 1999-2003. 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)
// See http://www.boost.org/libs/utility ... |
//: ----------------------------------------------------------------------------
//: Copyright Verizon.
//:
//: \file: host_info.cc
//: \details: TODO
//:
//: Licensed under the terms of the Apache 2.0 open source license.
//: Please refer to the LICENSE file in the project root for the terms.
//: ------------------... |
; A095998: n! * (fractional part of n-th harmonic number).
; Submitted by Jon Maiga
; 0,1,5,2,34,324,2988,28944,300816,3371040,793440,49438080,1121696640,21930773760,416139897600,7965912729600,156343306291200,3169866941337600,66629845591142400,1454242012231680000
mov $1,1
mov $2,1
lpb $0
sub $0,1
add $2,1
mul $3... |
INCLUDE "clib_cfg.asm"
SECTION code_driver
SECTION code_driver_terminal_input
PUBLIC console_01_input_proc_echo, console_01_input_proc_oterm
EXTERN ITERM_MSG_PUTC, l_jpix
console_01_input_proc_echo:
; a = char to output to oterm
bit 7,(ix+6)
ret z ; if echo off
ld c,a
... |
/* Copyright (c) 2016 PaddlePaddle 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... |
_ln: 檔案格式 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)
#inclu... |
; This program shows how an unconditional jump works.
global asm_func
section .text
asm_func: ; this is our entry point
mov rax, 1024 ; set RAX to 1024
jmp a_place_to_jump ; Jump to label a_place_to_jump.
; try to comment this jmp line and see what happens.
this_is_not_... |
; Initialize the stack pointer and the base pointer
MOV XL, 0xFF
MOV XH, 0xFF
MOV SP, X
MOV XL, 0
MOV XH, 0
MOV BP, X
; Initialize an address register
MOV XL, 0x00
MOV XH, 0xFF
MOV Y, X
; SHL the 1st byte
MOV D, [Y]
SHL D
PUSHF
MOV F, D
; Write register F to the Output Port
OUTB F
; RCL the 2nd byte
MOV E, [Y + 1]
... |
;------------------------------------------------------------------------------ ;
; Copyright (c) 2015 - 2021, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
; Module Name:
;
; MpFuncs.nasm
;
; Abstract:
;
; This is the assembly code for MP support
;
;------------------... |
Icons: ; used only for BANK(Icons)
NullIcon:
PoliwagIcon: INCBIN "gfx/icons/poliwag.2bpp"
JigglypuffIcon: INCBIN "gfx/icons/jigglypuff.2bpp"
DiglettIcon: INCBIN "gfx/icons/diglett.2bpp"
PikachuIcon: INCBIN "gfx/icons/pikachu.2bpp"
StaryuIcon: INCBIN "gfx/icons/staryu.2bpp"
FishIcon: INCB... |
.text
.def demo1_entry;
.scl 2;
.type 32;
.endef
.globl demo1_entry
.align 16, 0x90
demo1_entry: # @demo1_entry
# BB#0: # %driverBlockRaw
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rsi
pushq %rdi
pushq %rbp
pushq %rbx
subq $168, %rsp
m... |
; A195585: sigma(2*n^2) - sigma(n^2).
; 2,8,26,32,62,104,114,128,242,248,266,416,366,456,806,512,614,968,762,992,1482,1064,1106,1664,1562,1464,2186,1824,1742,3224,1986,2048,3458,2456,3534,3872,2814,3048,4758,3968,3446,5928,3786,4256,7502,4424,4514,6656,5602,6248,7982,5856,5726,8744,8246,7296,9906,6968,7082,12896,7566,7... |
; A160292: Numerator of Hermite(n, 7/30).
; Submitted by Stefano Spezia
; 1,7,-401,-9107,477601,19735807,-936451601,-59841840107,2530929662401,233147132022007,-8618235208570001,-1109489740559021507,34893836098508354401,6235501451708274618607,-160480431014315950915601,-40407022162862341753633307,800393754206596276404873... |
;
; Sharp OZ family functions
;
; ported from the OZ-7xx SDK by by Alexander R. Pruss
; by Stefano Bodrato - Oct. 2003
;
;
; void ozinitsound(void)
;
; ------
; $Id: ozinitsound.asm,v 1.1 2003/10/27 17:03:40 stefano Exp $
;
XLIB ozinitsound
ozinitsound:
ld a,1
out (19h),a ;... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r15
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x2104, %r13
nop
dec %rcx
vmovups (%r13), %ymm3
vextracti128 $0, %ymm3, %xmm3
vpextrq $1, %xmm3, %rsi
nop
nop
nop
xor $21623, %r11
lea addresses_D_ht+0x1a8d2, %r15
nop
nop
sub %... |
; A021676: Decimal expansion of 1/672.
; 0,0,1,4,8,8,0,9,5,2,3,8,0,9,5,2,3,8,0,9,5,2,3,8,0,9,5,2,3,8,0,9,5,2,3,8,0,9,5,2,3,8,0,9,5,2,3,8,0,9,5,2,3,8,0,9,5,2,3,8,0,9,5,2,3,8,0,9,5,2,3,8,0,9,5,2,3,8,0,9,5,2,3,8,0,9,5,2,3,8,0,9,5,2,3,8,0,9,5
add $0,1
mov $1,10
pow $1,$0
mul $1,2
div $1,1344
mod $1,10
mov $0,$1
|
#include<iostream.h>
#include<conio.h>
main()
{
//clrscr();//
float cap, cap_gin, cap_tra, cap_ped;
cout<<"el presupuesto es de: ";
cin>>cap;
cap_gin=cap*0.40;
cap_tra=cap*0.30;
cap_ped=cap*0.30;
cout<<"el presupuesto de ginecologia es: "<<cap_gin;
cout<<endl;
cout<<"el presupuesto de traumatologia es: "<<cap_tra;
co... |
;
; ZX Spectrum specific routines
; by Stefano Bodrato, Fall 2013
;
; int set_psg(int reg, int val);
;
; Play a sound by PSG
;
;
; $Id: set_psg.asm,v 1.3 2016-06-10 21:13:58 dom Exp $
;
SECTION code_clib
PUBLIC set_psg
PUBLIC _set_psg
EXTERN set_psg_callee
EXTERN ASMDISP_SET_PSG_CALLEE
set_psg:
_set_psg:
p... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r14
push %r15
push %r8
push %rbp
// Faulty Load
lea addresses_WC+0x8dc7, %r14
nop
nop
inc %r11
mov (%r14), %r15w
lea oracles, %r11
and $0xff, %r15
shlq $12, %r15
mov (%r11,%r15,1), %r15
pop %rbp
pop %r8
pop %r15
... |
include mylib.inc
CallDos equ <int 21h>
MyData segment
;-------------键盘输入相关的格式 输入字符串
g_dbSize db 30h ;第一个字节为缓冲区的大小(缓冲区的最大长度) 如果超出范围,DOS不让输入,并发出声音
g_dbLength db 0 ;第二个字节为实际的长度 (键盘输入后,自动填写)
g_strBuffer db 30h dup (0) ;从第三个字节开始,为Buffer
;回车 换行
g_s... |
#include "JavascriptComboButtonContext.h"
#include "Components/Widget.h"
TSharedRef<SWidget> UJavascriptComboButtonContext::Public_OnGetWidget()
{
if (OnGetWidget.IsBound())
{
UWidget* Widget = OnGetWidget.Execute();
if (Widget)
{
return Widget->TakeWidget();
}
}
return SNullWidget::NullWidget;
}
FSla... |
; A168843: Number of reduced words of length n in Coxeter group on 22 generators S_i with relations (S_i)^2 = (S_i S_j)^20 = I.
; 1,22,462,9702,203742,4278582,89850222,1886854662,39623947902,832102905942,17474161024782,366957381520422,7706105011928862,161828205250506102,3398392310260628142,71366238515473190982
add $0,... |
// Copyright (c) 2017-2018 The Popchain Core Developers
#include "walletmodel.h"
#include "addresstablemodel.h"
#include "guiconstants.h"
#include "guiutil.h"
#include "paymentserver.h"
#include "recentrequeststablemodel.h"
#include "transactiontablemodel.h"
#include "base58.h"
#include "keystore.h"
#include "main.h... |
#define CATCH_CONFIG_MAIN
#include "../third-party/catch2/single_include/catch2/catch.hpp"
#include "test-utilties.h"
using Catch::Matchers::Contains;
class UniqueTestsFixture {
protected:
std::string getOutputSbsPath() { return std::to_string(++uniqueId) + "_output.sbs"; }
std::string getOutputNlpPath() { ret... |
<?hh // strict
namespace Waffle\Http\Message;
use namespace HH\Lib\Str;
use type Waffle\Contract\Http\Message\StreamInterface;
use type Waffle\Contract\Http\Message\UploadedFileInterface;
use type Waffle\Contract\Http\Message\UploadedFileError;
use function fopen;
class UploadedFile implements UploadedFileInterface
... |
/* Copyright (C) 2013-2016 David 'Mokon' Bond, All Rights Reserved */
#include <visum/events/repeats/Weekly.hpp>
CEREAL_REGISTER_TYPE(visum::Weekly)
|
SECTION code_fp_math48
PUBLIC cm48_sccz80p_ifix
EXTERN am48_dfix32
; sccz80 float primitive
; Convert math48 float to signed long
;
; enter : AC'(BCDEHL') = double x
;
; exit : DEHL = (long)(x) truncates (round toward zero)
;
; uses : AF, BC, DE, HL, AF', BC', DE', HL'
defc cm48_sccz80p_i... |
; A136252: a(n) = a(n-1) + 2*a(n-2) - 2*a(n-3).
; 1,3,5,9,13,21,29,45,61,93,125,189,253,381,509,765,1021,1533,2045,3069,4093,6141,8189,12285,16381,24573,32765,49149,65533,98301,131069,196605,262141,393213,524285,786429,1048573,1572861,2097149,3145725,4194301,6291453,8388605,12582909,16777213,25165821,33554429,50331645,... |
; A001596: a(n) = 7^n + n^7.
; 1,8,177,2530,18785,94932,397585,1647086,7861953,45136576,292475249,1996813914,13877119009,96951758924,678328486353,4747732369318,33233199005057,232630924325880,1628414210130481,11398896079244882,79792267577612001,558545865884372548,3909821051077345937,27368747343485741790,1915812313851528... |
; A178487: a(n) = floor(n^(1/5)): integer part of fifth root of n.
; 0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2
add $0,1
mul $0,16
add $0,2
mov $1,-1
lpb $0
div... |
/**
* @author : xiaozhuai
* @date : 17/1/5
*/
#include <iostream>
#include <sstream>
#include <cxxurl/cxxurl_all.h>
using namespace std;
using namespace CXXUrl;
int main(int argc, char** argv){
ostringstream contentOutput;
Request request;
request.setUrl("http://localhost:3000/get");
request.se... |
; A168095: a(n) = number of natural numbers m such that n - 5 <= m <= n + 5.
; 5,6,7,8,9,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11
mov $1,$0
trn $0,6
sub $1,$0
add $1,5
|
default rel ; This allows compilation without /largeaddressaware:no
segment .data
a dq 3
b dq 4
c dq 5
segment .text
global main ; tell linker about main
main:
mov rax, [a]
mul rax ; a^2
mov rbx, [b]
imul rbx, rbx ... |
;; Licensed to the .NET Foundation under one or more agreements.
;; The .NET Foundation licenses this file to you under the MIT license.
;; See the LICENSE file in the project root for more information.
#include "ksarm64.h"
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; DATA SECTIONS ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;... |
/*++
Copyright (c) 2006 Microsoft Corporation
Module Name:
smt_context_pp.cpp
Abstract:
SMT logical context: pretty printing
Author:
Leonardo de Moura (leonardo) 2008-02-21.
Revision History:
--*/
#include "smt/smt_context.h"
#include "ast/ast_ll_pp.h"
#include "ast/ast_pp.h"
#include "ast/ast_pp_ut... |
; A083085: (2+(-5)^n)/3.
; 1,-1,9,-41,209,-1041,5209,-26041,130209,-651041,3255209,-16276041,81380209,-406901041,2034505209,-10172526041,50862630209,-254313151041,1271565755209,-6357828776041,31789143880209,-158945719401041,794728597005209,-3973642985026041
mov $1,-5
pow $1,$0
add $1,2
div $1,3
|
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1988 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: CommonDesktop/CUtil
FILE: cutilManager.asm
REVISION HISTORY:
Name Date Description
---- ---- -----------
brianc 8/89 Initial version
brianc... |
; A217330: The number of integer solutions to the equation x1 + x2 + x3 + x4 = n, with xi >= 0, and with x2 + x3 divisible by 3.
; 1,2,3,8,13,18,30,42,54,76,98,120,155,190,225,276,327,378,448,518,588,680,772,864,981,1098,1215,1360,1505,1650,1826,2002,2178,2388,2598,2808,3055,3302,3549,3836,4123,4410,4740,5070,5400,5776... |
; A270868: a(n) = n^4 + 3*n^3 + 8*n^2 + 9*n + 2.
; 2,23,92,263,614,1247,2288,3887,6218,9479,13892,19703,27182,36623,48344,62687,80018,100727,125228,153959,187382,225983,270272,320783,378074,442727,515348,596567,687038,787439,898472,1020863,1155362,1302743,1463804,1639367,1830278,2037407,2261648,2503919,2765162,3046343,... |
; A041274: Numerators of continued fraction convergents to sqrt(150).
; Submitted by Jon Maiga
; 12,49,1188,4801,116412,470449,11407188,46099201,1117788012,4517251249,109531817988,442644523201,10733000374812,43374646022449,1051724504913588,4250272665676801,103058268481156812,416483346590304049,10098658586648453988,4081... |
; ===============================================================
; Jun 2007
; ===============================================================
;
; uint zx_saddr2cx(void *saddr)
;
; Character x coordinate corresponding to screen address.
;
; ===============================================================
SECTION code_... |
10001200: 83 7c 24 04 00 cmp DWORD PTR [esp+0x4],0x0
10001205: b8 10 10 01 10 mov eax,0x10011010
1000120a: 74 05 je 0x10001211
1000120c: b8 10 32 01 10 mov eax,0x10013210
10001211: c2 04 00 ret 0x4
10001214: cc int3
10001215: cc ... |
FuchsiaPokecenterScript:
call Serial_TryEstablishingExternallyClockedConnection
jp EnableAutoTextBoxDrawing
FuchsiaPokecenterTextPointers:
dw FuchsiaHealNurseText
dw FuchsiaPokecenterText2
dw FuchsiaPokecenterText3
dw FuchsiaTradeNurseText
FuchsiaHealNurseText:
TX_POKECENTER_NURSE
FuchsiaPokecenterText2:
TX_... |
; A100088: Expansion of (1-x^2)/((1-2x)(1+x^2)).
; 1,2,2,4,10,20,38,76,154,308,614,1228,2458,4916,9830,19660,39322,78644,157286,314572,629146,1258292,2516582,5033164,10066330,20132660,40265318,80530636,161061274,322122548,644245094,1288490188,2576980378
mov $1,1
mov $2,1
mov $5,1
lpb $0
sub $0,1
mov $1,$2
sub $3... |
//
// Created by suncx on 2020/8/18.
//
#include "ServerSocket.h"
#include "Ext.h"
#include "InetAddress.h"
#include "ConsoleStream.h"
#include <unistd.h>
#include <netinet/tcp.h>
#include <cstring>
using reactor::net::ServerSocket;
ServerSocket::ServerSocket() : listen_fd(create_socket()) {}
ServerSocket::~ServerS... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.