text stringlengths 1 1.05M |
|---|
; A129791: a(n) = ceiling(7^n/n).
; 7,25,115,601,3362,19609,117649,720601,4483735,28247525,179756977,1153440601,7453000801,48444505204,316504100663,2077058160601,13684147881601,90467422106137,599941851861745,3989613314880601
mov $1,7
mov $2,1
add $2,$0
mov $0,1
pow $1,$2
sub $1,1
mov $3,1
mul $3,$1
div $3,$2
add $3,9
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0xf25, %rdx
nop
nop
cmp $4126, %r11
mov $0x6162636465666768, %rbx
movq %rbx, %xmm5
movups %xmm5, (%rdx)
nop
and $36187, %r13
lea addresses_A_ht+0xdc45, %rsi
lea addresses_D_ht+... |
ORG 100 /OUT = IN1 MOD IN2
LDA IN2
CMA
INC
STA IN2
LDA IN1
LOOP, ADD IN2
SNA
BUN LOOP
STA IN1
LDA IN2
CMA
INC
STA IN2
LDA IN1
ADD IN2
STA OUTMOD
IN1, DEC 20
IN2, DEC 5
OUTMOD, DEC 0
END
|
0x0000 (0x000000) 0x2118- f:00020 d: 280 | A = OR[280]
0x0001 (0x000002) 0xB434- f:00132 d: 52 | R = OR[52], A = 0
0x0002 (0x000004) 0x0000- f:00000 d: 0 | PASS
0x0003 (0x000006) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
... |
; double __FASTCALL__ atanh(double x)
SECTION code_clib
SECTION code_fp_math48
PUBLIC cm48_sccz80_atanh
EXTERN am48_atanh
defc cm48_sccz80_atanh = am48_atanh
|
;;; 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 of
;;; conditions and the following disclaimer.
;;; 2. Redistributions in b... |
; check wether given string is palindrome or not
.model small
.stack
.data
str db 40 dup('$')
rev db 40 dup('$')
msg db 10,13,"Enter the string : $"
msgr db 10,13,"Reverse of the ginen string is:$"
pal db 10,13,"the string is palindrome $"
npal db 10,13,"the string is not palindrome $"
.code
m... |
#include <algorithm>
#include <cfloat>
#include <vector>
#include <iostream>
#include "caffe/layer.hpp"
#include "caffe/layer_factory.hpp"
#include "caffe/util/math_functions.hpp"
#include "caffe/vision_layers.hpp"
namespace caffe {
template <typename Dtype>
void SoftmaxWithLossLayer<Dtype>::LayerSetUp(
const ve... |
/* This is an assembly language implementation of mulsi3, divsi3, and modsi3
for the sparc processor.
These routines are derived from the SPARC Architecture Manual, version 8,
slightly edited to match the desired calling convention, and also to
optimize them for our purposes. */
#ifdef L_mulsi3
.text
.a... |
/******************************************************************
*
* Round for C++
*
* Copyright (C) Satoshi Konno 2015
*
* This is licensed under BSD-style license, see file COPYING.
*
******************************************************************/
#include <boost/lexical_cast.hpp>
#include <stdlib.h>
#include... |
#include "extensions/tracers/xray/config.h"
#include <string>
#include "envoy/config/core/v3/address.pb.h"
#include "envoy/config/trace/v3/xray.pb.h"
#include "envoy/config/trace/v3/xray.pb.validate.h"
#include "envoy/registry/registry.h"
#include "common/common/utility.h"
#include "common/config/datasource.h"
#incl... |
; char *pathnice(char *path)
SECTION code_string
PUBLIC _pathnice
EXTERN asm_pathnice
_pathnice:
pop af
pop hl
push hl
push af
jp asm_pathnice
|
lw $t0, 1000
lw $t1, 1004
sw $t0, 1100
lw $t0, 1104
lw $t0, 1008
|
object_const_def ; object_event constants
const TEAMROCKETBASEB3F_LANCE
const TEAMROCKETBASEB3F_ROCKET1
const TEAMROCKETBASEB3F_MOLTRES
const TEAMROCKETBASEB3F_ROCKET_GIRL
const TEAMROCKETBASEB3F_ROCKET2
const TEAMROCKETBASEB3F_SCIENTIST1
const TEAMROCKETBASEB3F_SCIENTIST2
const TEAMROCKETBASEB3F_ROCKET3
cons... |
; Licensed to the .NET Foundation under one or more agreements.
; The .NET Foundation licenses this file to you under the MIT license.
include <AsmMacros.inc>
include <AsmConstants.inc>
extern CallDescrWorkerUnwindFrameChainHandler:proc
;;
;; EXTERN_C void FastCallFinalizeWorker(Object *obj, PCODE funcPtr);
;;
... |
/*
;********************************************************************************************************
; uC/OS-III
; The Real-Time Kernel
;
; Copyright 2009-2021 Silicon Laboratories Inc. www.silabs.com
;
; ... |
%ifndef EXE_LENGTH
%include "../UltimaPatcher.asm"
%include "include/uw1.asm"
%include "include/uw1-eop.asm"
%endif
[bits 16]
startPatch EXE_LENGTH, \
expanded overlay procedure: flipToPanel
startBlockAt addr_eop_flipToPanel
push bp
mov bp, sp
; bp-based stack frame:
%assign arg_panelNumber ... |
; FV-1 Testing
;
; Program: Read reg 0x1c
;
; POT0: Test Value
;
; Check read register 0x1c
;
skp RUN,main
wlds SIN0,0x03f,0x7fff ; SIN0
wlds SIN1,0x07f,0x7fff ; SIN1
wldr RMP0,0x2000,4096 ; RMP0
wldr RMP0,0x4000,4096 ; RMP1
main: clr
rdax 0x1c,1.0 ; load reg 0x1c
wrax DACL,0.0 ; write to DACL
cho sof,SIN0,... |
; A304725: a(n) = n^4 + 8*n^3 + 20*n^2 + 16*n + 2.
; 2,47,194,527,1154,2207,3842,6239,9602,14159,20162,27887,37634,49727,64514,82367,103682,128879,158402,192719,232322,277727,329474,388127,454274,528527,611522,703919,806402,919679,1044482,1181567,1331714,1495727,1674434,1868687
add $0,2
pow $0,2
sub $0,2
pow $0,2
sub ... |
%ifdef CONFIG
{
"RegData": {
"RAX": "0x80000000",
"RDX": "0xFFFFFFFF",
"RBX": "0x0000000080000000",
"RCX": "0x00000000ffffffff",
"R13": "0xffffffff80000000",
"R14": "0x0"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
mov r15, 0xe0000000
mov rax, 0xFFFFFFFF80000000
mov [r15... |
/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <ParallaxMappingExampleComponent.h>
#include <Atom/Component/DebugCamera/ArcBallControll... |
/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
* 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 noti... |
SFX_Intro_Whoosh_Ch8:
noise_note 4, 2, -4, 32
noise_note 3, 10, 0, 32
noise_note 3, 11, 0, 33
noise_note 3, 12, 0, 34
noise_note 15, 13, 2, 36
sound_ret
|
;
; This file is automatically generated
;
; Do not edit!!!
;
; djm 12/2/2000
;
; ZSock Lib function: getdomainname
PUBLIC getdomainname
EXTERN no_zsock
INCLUDE "packages.def"
INCLUDE "zsock.def"
.getdomainname
ld a,r_getdomainname
call_pkg(tcp_all)
ret nc
; We failed..are we installed?
cp rc_pnf
scf ;si... |
; *******************************************************************************************
; *******************************************************************************************
;
; Name : core.asm
; Purpose : Basic Main Core
; Date : 19th August 2019
; Review : 1st September 2019
; Author : Paul Ro... |
/*
* Copyright (C) 2005-2013 Team XBMC
* http://xbmc.org
*
* This Program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* ... |
object_const_def ; object_event constants
const OREBURGHGYM_ROARK
const OREBURGHGYM_YOUNGSTER1
const OREBURGHGYM_YOUNGSTER2
const OREBURGHGYM_GYM_GUY
OreburghGym_MapScripts:
db 2 ; scene scripts
scene_script .Dummy ; SCENE_DEFAULT
scene_script .Dummy ; SCENE_FINISHED
db 0 ; callbacks
.Dummy:
end
OreburghG... |
; A017190: a(n) = (9*n + 2)^6.
; 64,1771561,64000000,594823321,3010936384,10779215329,30840979456,75418890625,164206490176,326940373369,606355001344,1061520150601,1771561000000,2839760855281,4398046511104,6611856250609,9685390482496,13867245015625,19456426971136,26808753332089,36343632130624,48551226272641,640000000000... |
; this file should NOT be assembled by the CI script, it should be on the ignore list
some-invalid-instruction a,123
|
; Scroll Spectrum/TS2068 up
;
; Relies on ROM routines to perform the scroll
;
; Toggle on __zx_screenmode to determine whether to scroll
; the second display
;
MODULE generic_console_scrollup
SECTION code_clib
PUBLIC generic_console_scrollup
EXTERN call_rom3
EXTERN __zx_screenmode
EXTERN __zx_console_attr
... |
// 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/Fill.asm
// Runs an infinite loop that listens to the keyboard input.
// When a key is pressed (any key), the program blackens the screen,
// i.e. writes "black... |
; A171510: Generalized Lucas numbers: a(n) = 10*a(n-1) + a(n-2), with a(1)=2 and a(2)=1.
; Submitted by Christian Krause
; 2,1,12,121,1222,12341,124632,1258661,12711242,128371081,1296422052,13092591601,132222338062,1335315972221,13485382060272,136189136574941,1375376747809682,13889956614671761,140274942894527292,141663... |
BluesHouse_h:
db HOUSE ; tileset
db BLUES_HOUSE_HEIGHT, BLUES_HOUSE_WIDTH ; dimensions
dw BluesHouseBlocks, BluesHouseTextPointers, BluesHouseScript
db 0
dw BluesHouseObject
|
%include "boot.inc"
section loader vstart=LOADER_BASE_ADDR
LOADER_STACK_TOP equ LOADER_BASE_ADDR
; 这里其实就是GDT的起始地址,第一个描述符为空
GDT_BASE: dd 0x00000000
dd 0x00000000
; 代码段描述符,一个dd为4字节,段描述符为8字节,上面为低4字节
CODE_DESC: dd 0x0000FFFF
dd DESC_CODE_HIGH4
; 栈段描述符,和数据段共用
DATA_STACK_DESC: dd 0x0000FFFF
... |
;================================================================================
;
; "Sixty/5o2"
; _________
;
; v1.0
;
; Sixty/5o2 - minimal bootloader and monitor (r/o) w/ serial connection support
;
; Writt... |
; A172285: a(n) = (5*2^n - 5*(-1)^n - 3*n*(-1)^n) / 9.
; 0,2,1,6,7,20,33,74,139,288,565,1142,2271,4556,9097,18210,36403,72824,145629,291278,582535,1165092,2330161,4660346,9320667,18641360,37282693,74565414,149130799,298261628,596523225,1193046482,2386092931,4772185896,9544371757,19088743550,38177487063,76354974164,1527... |
###############################################################################
# Copyright 2018 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... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x11f68, %rsi
lea addresses_WT_ht+0xf354, %rdi
inc %r13
mov $127, %rcx
rep movsb
sub $43323, %rdx
lea addresses_D_ht+0x92ac, %rsi
lea addresses_A_ht+0x3d5c, %rdi
nop
nop
nop
and... |
; π = (4/1) - (4/3) + (4/5) - (4/7) + (4/9) - (4/11) + (4/13) - (4/15) ...
; Take 4 and subtract 4 divided by 3.
; Then add 4 divided by 5.
; Then subtract 4 divided by 7.
; Continue alternating between adding and subtracting fractions with a numerator of 4
; and a denominator of each subsequent odd number. The mor... |
; double __FASTCALL__ tan(double x)
SECTION code_clib
SECTION code_fp_math48
PUBLIC cm48_sccz80_tan
EXTERN am48_tan
defc cm48_sccz80_tan = am48_tan
|
start_up_stage_2: ; 7e1f
mov ecx, STAGE_2_WELCOME
call print_string
;enable A20 line
in al,0x92
or al,2
out 0x92,al
;1) call memory detection and map the memory, and insert to booting info
call memory_map
mov dword [booting_info.memory_map_addr], ebx
mov dword [booting_info.mem... |
SECTION code_clib
PUBLIC txtgetcursor
PUBLIC _txtgetcursor
.txtgetcursor
._txtgetcursor
jp 0xB82D
|
; A020538: a(n) = 4th Chebyshev polynomial (first kind) evaluated at 2^n.
; 1,97,1921,32257,522241,8380417,134184961,2147352577,34359214081,549753716737,8796084633601,140737454800897,2251799679467521,36028796482093057,576460750155939841,9223372028264841217,147573952555316674561,2361183241297383653377,377789318624074058... |
/////////////////////////////////////////////////////////////////////
//
// CopyRight ( c ) 1999 Microsoft Corporation
//
// Module Name: DnsServerDomainContainment.cpp
//
// Description:
// Implementation of CDnsServerDomainContainment class
//
// Author:
// Henry Wang ( henrywa ) March 8,... |
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r8
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x1acd8, %r14
nop
nop
add %rdx, %rdx
mov (%r14), %r8d
nop
nop
nop
nop
nop
xor $36994, %rdi
lea addresses_normal_ht+0xe62c, %rax
nop
nop
cmp %rcx, %rcx
mov (%rax), %ebp
nop
add ... |
// Implementing d = a + b - c in the hack machine language
// Equivalent C Program:
// d = a + b - c
@a
D = M // D <-- a
@b
D = D + M // D <-- D + b = a + b
@c
D = D - M // D <-- D - c = a + b - c
@d
M = D // d <-- D = a + b - c
|
adc (ix) ; Error
adc (ix+127) ; Error
adc (ix-128) ; Error
adc (iy) ; Error
adc (iy+127) ; Error
adc (iy-128) ; Error
adc a, (ix) ; Error
adc a, (ix+127) ; Error
... |
; A228290: a(n) = n^6 + n^5 + n^4 + n^3 + n^2 + n.
; 0,6,126,1092,5460,19530,55986,137256,299592,597870,1111110,1948716,3257436,5229042,8108730,12204240,17895696,25646166,36012942,49659540,67368420,90054426,118778946,154764792,199411800,254313150,321272406,402321276,499738092,616067010,754137930,917087136,1108378656,13... |
;/*****************************************************************************
; * Copyright (c) Texas Instruments Inc 2002, 2003, 2004, 2005
; *
; * Use of this software is controlled by the terms and conditions found in the
; * license agreement under which this software has been supplied.
... |
;
; Copyright (c) 2010 The WebM project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license
; that can be found in the LICENSE file in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing proje... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/medialive/model/DeviceUpdateStatus.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::... |
; A274089: Numbers repeated except that powers of 2 only appear once.
; 1,2,3,3,4,5,5,6,6,7,7,8,9,9,10,10,11,11,12,12,13,13,14,14,15,15,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,30,30,31,31,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40
mov $2,$0
add $0,1
mov $1,$2
lpb $0,1
... |
// Emulation of the Z80 CPU with hooks into the other parts of z81.
// Copyright (C) 1994 Ian Collier.
// z81 changes (C) 1995-2001 Russell Marks.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Found... |
_grep: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
}
}
int
main(int argc, char *argv[])
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 57 push %edi
4: 56 push %esi
5: 53 ... |
CeladonMart1Object:
db $f ; border block
db $6 ; warps
db $7, $2, $0, $ff
db $7, $3, $0, $ff
db $7, $10, $1, $ff
db $7, $11, $1, $ff
db $1, $c, $0, CELADON_MART_2
db $1, $1, $0, CELADON_MART_ELEVATOR
db $2 ; signs
db $4, $b, $2 ; CeladonMart1Text2
db $1, $e, $3 ; CeladonMart1Text3
db $1 ; objects
object... |
// Copyright (c) 2009-2017 The Bitcoin Core developers
// Copyright (c) 2017 The Zcash developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <key.h>
#include <arith_uint256.h>
#include <crypto/common.h>
#include <... |
; A086028: a(n) = Sum_{i=1..n} C(i+5,6)^3.
; Submitted by Jon Maiga
; 1,344,22296,615000,9876000,108487128,897376152,5950405848,33031486875,158406862000,671944398512,2567519091888,8965083682032,28938181326000,87168786702000,246953567853744,662331582918141,1691011474896264,4129363811437000,9684000822437000,2188753833560... |
// Copyright 2018 The Beam Team
//
// 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 agre... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r14
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x70ec, %rsi
nop
nop
nop
xor $63536, %rdx
mov (%rsi), %r9d
nop
nop
nop
nop
sub $41355, %r10
lea addresses_WC_ht+0x1cf1e, %r12
nop
xor %r14, %r14
movb (%r12), %r10b
nop
and ... |
/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "UiCanvasEditor_precompiled.h"
#include "EditorCommon.h"
#include "ViewportMoveGuideInte... |
//
// _IND_PASS_TEST9_CPP_
//
// Copyright (C) 2017-2020 Tactical Computing Laboratories, LLC
// All Rights Reserved
// contact@tactcomplabs.com
//
// See LICENSE in the top level directory for licensing details
//
//
#include <iostream>
#include "CoreGen/CoreGenBackend/CoreGenBackend.h"
std::string PROJNAME = "TEST... |
;BASICS OF GNU 8085
LDA 2000;
MOV B, A;
MOV C, B;
ADD B;
hlt |
// Copyright (c) 2019 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
// ---------------------------------------------------------------------------
//
// This file was generated by the CEF translato... |
//============================================================================
// Name : dnaiobms.hpp
// Author : Roger Fraser
// Contributors :
// Version : 1.00
// Copyright : Copyright 2017 Geoscience Australia
//
// Licensed under the Apache License, Version 2.0 (the "License");... |
;Toggling PP5 to sound the buzzer using PWM (pulse width modulation) on Dragon12 Plus Trainer Board
;The J26 jumper selection allows to SPK_SEL (speaker selection) to be PT5, PP5 (PWM chan 5) or DACB output
;When the Dragon12 board is shipped the J26 jumper is set for PT5 of PORTT speaker/buzzer selection (Default set... |
/*
* Copyright 2016, Samuel Brand
*/
#include "Card.hpp"
#include <fmt/format.h>
#include <map>
#include <string>
namespace {
// clang-format off
const std::map<Card::Rank, std::string> RankStrings{{Card::Rank::eAce, "Ace"},
{Card::Rank::eKing, "King"},
... |
/**
* pugixml parser - version 1.11
* --------------------------------------------------------
* Copyright (C) 2006-2020, by Arseny Kapoulkine (arseny.kapoulkine@gmail.com)
* Report bugs and download new versions at https://pugixml.org/
*
* This library is distributed under the MIT License. See notice at the end
... |
object_const_def ; object_event constants
PokemonCommunicationCenter_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
PokemonCommunicationCenter_MapEvents:
db 0, 0 ; filler
db 2 ; warp events
warp_event 6, 15, JUBILIFE_CITY, 9
warp_event 7, 15, JUBILIFE_CITY, 9
db 0 ; coord events
db 0 ; bg events
... |
// Copyright (c) 2012-2013 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "utilstrencodings.h"
#include "test/test_Zenon.h"
#include <boost/test/unit_test.hpp>
BOOST_FIXTURE_TEST_SUITE... |
; 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"
#include "asmconstants.h"
#include "asmmacros.h"
#ifdef FEATURE_PREJIT... |
//*****************************************************************************
// Copyright 2017-2018 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://w... |
// Copyright 2020 Google LLC
//
// 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 ... |
; A319534: Number of integers x such that 1 <= x <= n and gcd(x,n) = gcd(x+2,n) = gcd(x+6,n) = 1.
; Submitted by Jon Maiga
; 1,1,1,2,2,1,4,4,3,2,8,2,10,4,2,8,14,3,16,4,4,8,20,4,10,10,9,8,26,2,28,16,8,14,8,6,34,16,10,8,38,4,40,16,6,20,44,8,28,10,14,20,50,9,16,16,16,26,56,4,58,28,12,32,20,8,64,28,20,8,68,12,70,34,10,32,3... |
; Copyright (c) 2015 Jeremy Dilatush
; 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 of conditions and... |
; A057682: a(n) = Sum_{j=0..floor(n/3)} (-1)^j*binomial(n,3*j+1).
; 0,1,2,3,3,0,-9,-27,-54,-81,-81,0,243,729,1458,2187,2187,0,-6561,-19683,-39366,-59049,-59049,0,177147,531441,1062882,1594323,1594323,0,-4782969,-14348907,-28697814,-43046721,-43046721,0,129140163,387420489,774840978,1162261467,1162261467,0,-3486784401,-... |
; char *_memupr__callee(void *p, size_t n)
SECTION code_clib
SECTION code_string
PUBLIC __memupr__callee
EXTERN asm__memupr
__memupr__callee:
pop af
pop hl
pop bc
push af
jp asm__memupr
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: DOS Primary IFS Drivers
MODULE: Disk Copying
FILE: driDiskCopy.asm
AUTHOR: Adam de Boor, Oct 31, 1991
ROUTINES:
Name Description
---- -----------
REV... |
#pragma once
#include "StatusEffectCalculator.hpp"
#include "Creature.hpp"
// Class used to determine whether a creature is blinded (typically by
// the smoke from a flaming attack), and if so, for how long.
class BlindedCalculator : public StatusEffectCalculator
{
public:
int calculate_pct_chance_effect(Creatur... |
;
; Copyright (c) 2010 The WebM project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license
; that can be found in the LICENSE file in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing proje... |
; A010122: Continued fraction for sqrt(13).
; 3,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1
seq $0,10152 ; Continued fraction for sqrt(74).
div $0,3
add $0,1
|
; ----------------------------------------------------------------------
; INNER INTERPRETER
IPUSH: DEW SP ; -(SP) = R1H
LDA R1.3
STR SP
DEW SP
LDA R1.2
STR SP
PUSH: DEW SP ; -(SP) = R1L
LDA R1.1
STR ... |
#include "Server.h"
#include "Client.h"
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <errno.h>
#include <string>
#include <string.h>
#include <stdexcept>
/**
* @author Seungun-Park
* Create a server socket.
* Start listen
* */
Server::Server()
{
port = atoi(reinterpret_cast<const char*>(ge... |
;
; Copyright (c) 2013 The WebM project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license
; that can be found in the LICENSE file in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing proje... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x15b4f, %rbp
nop
xor $27537, %r10
movb (%rbp), %al
nop
nop
nop
nop
nop
sub $60904, %rbp
lea addresses_normal_ht+0x1380f, %rbx
nop
nop
nop
cmp %rbp, %rbp
mov (%rbx), %r14
nop
n... |
; Copyright 2016 Philipp Oppermann. See the README.md
; file at the top-level directory of this distribution.
;
; Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
; http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
; <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
; option. Th... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r15
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0xf33c, %r15
nop
nop
nop
nop
sub %r11, %r11
movups (%r15), %xmm5
vpextrq $1, %xmm5, %rbp
nop
cmp $60187, %rbp
lea addresses_UC_ht+0x956c, %rax
and $13289, %rcx
mov $0x6162... |
#ifndef BOOST_IS_PLACEHOLDER_HPP_INCLUDED
#define BOOST_IS_PLACEHOLDER_HPP_INCLUDED
// MS compatible compilers support #pragma once
#if defined( _MSC_VER ) && ( _MSC_VER >= 1020 )
# pragma once
#endif
// is_placeholder.hpp - TR1 is_placeholder metafunction
//
// Copyright (c) 2006 Peter Dimov
//
// ... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
(c) Copyright GeoWorks 1995. All Rights Reserved.
GEOWORKS CONFIDENTIAL
PROJECT: GEOS
MODULE: CommonUI/CGadget
FILE: copenTextBuild.asm
ROUTINES:
Name Description
---- -----------
MTD MSG_META_INITIALIZE Ini... |
; A127648: Triangle read by rows: row n consists of n zeros followed by n+1.
; 1,0,2,0,0,3,0,0,0,4,0,0,0,0,5,0,0,0,0,0,6,0,0,0,0,0,0,7,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,10,0,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,0,13,0,0,0,0,0,0,0,0,0
mov $1,1
lpb $0
add $1,1
sub $0,... |
# APPLE LOCAL file 4099000
#ifndef __x86_64__
#define THUNK(REG) \
.private_extern ___i686.get_pc_thunk.REG ;\
___i686.get_pc_thunk.REG: ;\
movl (%esp,1),%REG ;\
ret ;
#ifdef L_get_pc_thunk_ax
THUNK(eax)
#endif
#ifdef L_get_pc_thunk_dx
THUNK(edx)
#endif
#ifdef L_get_pc_thunk_cx
THUNK(ecx)
#endif
#ifdef... |
/*
* GridTools
*
* Copyright (c) 2014-2021, ETH Zurich
* All rights reserved.
*
* Please, refer to the LICENSE file in the root directory.
* SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
#include <cassert>
#include <type_traits>
#include <utility>
#include "../common/defs.hpp"
#include "../common/fun... |
; ===============================================================
; Mar 2014
; ===============================================================
;
; size_t w_array_append(w_array_t *a, void *item)
;
; Append word to end of array, return index of appended word.
;
; =======================================================... |
; A059338: a(n) = Sum_{k=1..n} k^5 * binomial(n,k).
; Submitted by Jamie Morken(w4)
; 1,34,342,2192,11000,47232,181888,646144,2156544,6848000,20877824,61526016,176171008,492126208,1345536000,3610247168,9526771712,24769069056,63546720256,161087488000,403925630976,1002841309184,2467290939392,6019866427392,14575206400000,... |
10 ORG 100H
20 JP MAIN
30PUTSTR EQU 0BFF1H
40INKEY EQU 0BE53H
50PUTCHR EQU 0BE62H
60WAITK EQU 0BFCDH
70RPTCHR EQU 0BFEEH
80ENCRYP EQU 1
90DECRYP EQU 0
100N1: DB 0,0,0,0
110N2: DB 0,0,0,0
120TMP1: DB 0,0,0,0
130TMP2: DB 0,0,0,0
140ROUND: DB 0
150BLOCK: DEFS 8
160OPE: DB 0
170MAIN: LD A,23
180 CALL MOD8
190 LD (N1),A
... |
;-----------------------------------------------------------------------------
; FICHERO: Conversiones.asm
;
; DESCRIPCION: Implementa rutinas de conversiones varias y utilidades.
;
; RUTINAS:
; --------
;
; - BYTE2ASCII_R18: Coge un numero de 8 bits con signo
; de r18 y lo guarda en DECIMAL en memoria,... |
#include <algorithm>
#include "Boundary.h"
Boundary::Boundary() {}
Boundary::Boundary(const Vector2& upleft, const Vector2& upright, const Vector2& lowleft, const Vector2& lowright) :
upper_left(upleft), upper_right(upright), lower_left(lowleft), lower_right(lowright) {
// Calculate parameters for equations fo... |
; A287580: Positions of 3 in A287576.
; 2,7,12,13,17,22,27,32,36,37,42,47,51,56,57,62,67,72,73,78,82,87,92,93,97,102,107,112,116,117,122,127,132,133,138,143,147,152,153,158,162,167,172,173,177,182,187,192,193,198,203,208,212,213,218,223,227,232,233,238,242,247,252,253,257,262,267,272,276,277,282,287,291,296,297,302,306... |
<% from pwnlib.shellcraft import amd64 %>
<%page args="string, sock = 'rbp'"/>
<%docstring>Writes a string to a file descriptor</%docstring>
${amd64.pushstr(string, append_null = False)}
${amd64.linux.syscall('SYS_write', sock, 'rsp', len(string))}
|
; A294645: a(n) = Sum_{d|n} d^(n+1).
; 1,9,82,1057,15626,282252,5764802,134480385,3486843451,100048830174,3138428376722,107006334784468,3937376385699290,155572843119354936,6568408508343827972,295150156996346511361,14063084452067724991010,708236696816416252145973,37589973457545958193355602,2097153000000481235206811382,1... |
;/*!
; @file
;
; @brief BvsGetMode DOS wrapper
;
; (c) osFree Project 2008-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 Prokushev (yuri.prokushev... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.