text stringlengths 1 1.05M |
|---|
; A109453: Cumulative sum of initial digits of n.
; Submitted by Jon Maiga
; 1,3,6,10,15,21,28,36,45,46,47,48,49,50,51,52,53,54,55,57,59,61,63,65,67,69,71,73,75,78,81,84,87,90,93,96,99,102,105,109,113,117,121,125,129,133,137,141,145,150,155,160,165,170,175,180,185,190,195,201,207,213
mov $3,$0
mov $4,$0
lpb $3
mov $... |
; int feof(FILE *stream)
INCLUDE "config_private.inc"
SECTION code_clib
SECTION code_stdio
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $02
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC _feof
EXTERN asm_feof
_feof:
pop af
pop ix
push hl
push af
jp asm_feof
;;;;;;;;;;;;;;;;;;;;... |
// Copyright (c) 2019 by Robert Bosch GmbH. 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... |
; FILE *fmemopen(void *buf, size_t size, const char *mode)
SECTION code_clib
SECTION code_stdio
PUBLIC fmemopen_callee
EXTERN asm_fmemopen
fmemopen_callee:
pop hl
pop de
pop bc
ex (sp),hl
jp asm_fmemopen
|
; A007958: Even numbers with at least one odd digit.
; 10,12,14,16,18,30,32,34,36,38,50,52,54,56,58,70,72,74,76,78,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148
mov $1,1
mov $2,6
mov $6,$0
lpb $1
add $2,6
add $6,1
lpb $1
sub $1,1
add $2... |
;
; System Call for REX6000
;
; $Id: DbReadField.asm,v 1.4 2017-01-03 00:11:31 aralbrec Exp $
;
; extern INT DbReadField(int, int, ... );
;
; Written by Damjan Marion <dmarion@open.hr>
PUBLIC DbReadField
PUBLIC _DbReadField
.DbReadField
._DbReadField
sub 2 ;except 1st 2 params
ld b,a
ld ix,2
add ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x359a, %rsi
lea addresses_A_ht+0xd0aa, %rdi
nop
nop
nop
xor %rax, %rax
mov $25, %rcx
rep movsl
nop
nop
nop
sub $42449, %r12
lea addresses_WC_ht+0x6f6a, %rsi
nop
nop
add %rax, %rax
mov (... |
; You may customize this and other start-up templates;
; The location of this template is c:\emu8086\inc\0_com_template.txt
org 100h
MOV AX, 1
MOV BX, 5
MOV CX, 5
ADD BX, CX
ADD AX ,BX
ret
|
BITS 64
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
; CMOVBE32rr
mov ecx, 0x44
mov edx, 0x88
;TEST_BEGIN_RECORDING
cmovbe ecx, edx
;TEST_END_RECORDING
|
; A058373: a(n) = (1/6)*(2*n - 3)*(n + 2)*(n + 1).
; 0,0,-1,-1,2,10,25,49,84,132,195,275,374,494,637,805,1000,1224,1479,1767,2090,2450,2849,3289,3772,4300,4875,5499,6174,6902,7685,8525,9424,10384,11407,12495,13650,14874,16169,17537,18980,20500,22099,23779,25542,27390,29325,31349,33464,35672,37975,40375,42874,45474,4817... |
#include "Core/VolumeBehavior/ScatterFunction/HenyeyGreenstein.h"
#include "Common/assertion.h"
#include "Core/Texture/TConstantTexture.h"
#include "Core/SurfaceHit.h"
#include "Core/Texture/TSampler.h"
#include "Math/TVector3.h"
#include "Math/constant.h"
#include <cmath>
namespace ph
{
HenyeyGreenstein::HenyeyGre... |
;;
;; BriefLZ - small fast Lempel-Ziv
;;
;; NASM small assembler packer
;;
;; Copyright (c) 2002-2004 by Joergen Ibsen / Jibz
;; All Rights Reserved
;;
;; http://www.ibsensoftware.com/
;;
;; This software is provided 'as-is', without any express
;; or implied warranty. In no event will the authors be
;; held liable ... |
;
; jdclrss2-64.asm - colorspace conversion (64-bit SSE2)
;
; Copyright 2009, 2012 Pierre Ossman <ossman@cendio.se> for Cendio AB
; Copyright 2009, 2012 D. R. Commander
;
; Based on
; x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYASAKA Masaru.
; For conditions of distribution and use, see copyri... |
; Test case:
xor a
IRP ?value, 1 , 2, 4, 8
or ?value
ENDM
ld (value),a
end:
jp end
value:
db 0
|
//===----------------------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------... |
// Copyright 2013 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 "ash/metrics/user_metrics_recorder.h"
#include <memory>
#include <vector>
#include "ash/login/ui/lock_screen.h"
#include "ash/metrics/demo_sess... |
; A130260: Minimal index k of an even Fibonacci number A001906 such that A001906(k) = Fib(2k) >= n (the 'upper' even Fibonacci Inverse).
; 0,1,2,2,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6... |
; A010737: a(n) = 2*a(n-2) + 1.
; 4,6,9,13,19,27,39,55,79,111,159,223,319,447,639,895,1279,1791,2559,3583,5119,7167,10239,14335,20479,28671,40959,57343,81919,114687,163839,229375,327679,458751,655359
add $0,1
mov $3,4
lpb $0,1
sub $0,1
trn $1,$2
add $1,$3
mov $4,$2
sub $2,$2
add $3,$1
add $2,$3
sub $2,... |
; A015536: Expansion of x/(1-5*x-3*x^2).
; 0,1,5,28,155,859,4760,26377,146165,809956,4488275,24871243,137821040,763718929,4232057765,23451445612,129953401355,720121343611,3990466922120,22112698641433,122534893973525,679012565791924,3762667510880195,20850375251776747,115539878791524320,640250519712951841,354787223493933... |
;;
;; Copyright (c) 2012-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... |
###############################################################################
# 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... |
/* Copyright 2021 Aristocratos (jakob@qvantnet.com)
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 ... |
db "FIRE HORSE@" ; species name
db "Training by"
next "jumping over grass"
next "that grows longer"
page "every day has made"
next "it a world-class"
next "jumper.@"
|
//===-- SparcTargetInfo.cpp - Sparc Target Implementation -----------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
#pragma once
namespace Big::UserInterface
{
enum class OptionAction
{
LeftPress,
RightPress,
EnterPress
};
enum class OptionFlag
{
Horizontal = (1 << 0),
Enterable = (1 << 1)
};
class AbstractOption
{
public:
virtual ~AbstractOption() noexcept = default;
virtual const char* GetLeftText() = 0... |
; A021136: Decimal expansion of 1/132.
; 0,0,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7
pow $0,3
lpb $0
gcd $0,2
mul $0,2
add $1,$0
add $1,3
lpe
mov $0,$1
|
.data
val: .word 0x12345678 0x456789ab
.text
main:
la x1, val
li x2, 0xDEADBABA
li x3, 0x8BADF00D
sw x2, 0(x1)
sw x3, 4(x1)
addi x1, x1, 8
sw x3, 0(x1)
addi x1, x1, -8
lw x4, 0(x1)
lw x5, 4(x1)
lw x6, 8(x1)
halt: beq x0, x0, halt
|
/*
* This file Copyright (C) Mnemosyne LLC
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation.
*
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*
* $Id: license.cc 1109... |
#include "../../pch.h"
using namespace std::string_literals;
using namespace Library;
#define TEST(name) TEST_CASE_METHOD(MemLeak, "Memory::" #name, "[Memory]")
namespace UnitTests
{
TEST(Malloc)
{
REQUIRE(!Memory::Malloc(0));
}
}
|
; A187340: Hankel transform of A014301(n+1).
; 1,2,5,5,-2,-11,-11,2,17,17,-2,-23,-23,2,29,29,-2,-35,-35,2,41,41,-2,-47,-47,2,53,53,-2,-59,-59,2,65,65,-2,-71,-71,2,77,77,-2,-83,-83,2,89,89,-2,-95,-95,2,101,101,-2,-107,-107,2,113,113,-2,-119,-119
lpb $0
sub $2,$0
sub $0,1
sub $1,$2
add $2,$1
add $1,$0
lpe
add ... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... |
;
; Copy a buffer of 8 graphics rows to the zx printer
;
; Stefano Bodrato, 2018
;
;
; $Id: zx_print_buf.asm $
;
SECTION code_clib
PUBLIC zx_print_buf
PUBLIC _zx_print_buf
PUBLIC zx_print_row
PUBLIC _zx_print_row
EXTERN zx_fast
EXTERN zx_slow
.zx_print_buf
._zx_print_buf
; FASTCALL... |
cm_ad_submenu_presets:
dw cm_ad_presets_goto_escape
dw cm_ad_presets_goto_eastern
dw cm_ad_presets_goto_pod
dw cm_ad_presets_goto_hera
dw cm_ad_presets_goto_thieves
dw cm_ad_presets_goto_skull
dw cm_ad_presets_goto_desert
dw cm_ad_presets_goto_mire
dw cm_ad_presets_goto_swamp
dw cm_ad_presets_goto_i... |
// Copyright 2013 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/file_manager/url_util.h"
#include <memory>
#include "ash/constants/ash_features.h"
#include "base/files/file_path.h"
#... |
#include "EventFilter/RPCRawToDigi/interface/RPCAMC13Record.h"
namespace rpcamc13 {
Header::Header(std::uint64_t const record) : record_(record) {}
Header::Header(unsigned int ufov, unsigned int n_amc, unsigned int orbit_counter) : record_(0x0) {
setFirmwareVersion(ufov);
setNAMC(n_amc);
setOrbitCoun... |
/*!
* サンプルコード 01(b)
*
* FizzBuzz 問題の結果を標準出力に出力するサンプルコード. @n
*
* 入力となるシーケンスコンテナとして,
* 可変長のシーケンスコンテナ @c std::vector を使用したもの. @n
*
* @file example-01b.c++
* @see fizz_buzzxx::fizz_buzz
*/
#include <fizz-buzz++.h++>
#include <iostream>
#include <iterator>
#include <vector>
/*!
* FizzBuzz 問題の結果を標準出力に出力する
*
... |
//===- ARMTargetTransformInfo.cpp - ARM specific TTI ----------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
mov ax, 0xb800
mov es, ax
and di, 0
; Century
mov al, 0x32
out 0x70, al
in al, 0x71
call read_CMOS_disp
; Year
mov al, 0x9
out 0x70, al
in al, 0x71
call read_CMOS_disp
call print_dash
; Month
mov al, 0x8
out 0x70, al
in al, 0x71
call read_CMOS_disp
call print_dash
; Day
mov al, 0x7
out 0x70, al
in al, 0x71
call ... |
org $02b5c4 ; -- moving right routine 135c4
jsl WarpRight
org $02b665 ; -- moving left routine
jsl WarpLeft
org $02b713 ; -- moving down routine
jsl WarpDown
org $02b7b4 ; -- moving up routine
jsl WarpUp
org $02bd80
jsl AdjustTransition
nop
;turn off linking doors -- see .notRoomLinkDoor label in Bank02.asm
org $02b5a... |
; void sms_tiles_clear_area(struct r_Rect8 *r, unsigned int background)
;
; Clear the rectangular area on screen
SECTION code_clib
SECTION code_arch
PUBLIC asm_sms_tiles_clear_area
EXTERN asm_sms_cls_wc
defc asm_sms_tiles_clear_area = asm_sms_cls_wc
; enter : hl = background character
; ix = rect *
... |
;;
;; Copyright (c) Microsoft Corporation. All rights reserved.
;;
;;;;;;;;;;;;;;;;;;;;
; Concerns
; 1 - there is no error checking on the int13 calls
; 2 - we assume that the block size is 2048 bytes
; 3 - this cannot handle large root directories (>64KB)
;;;;;;;;;;;;;;;;;;;;
; Constants
BootSecOrigin EQ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r15
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x1892d, %rsi
nop
nop
and %rbx, %rbx
mov (%rsi), %ecx
nop
nop
sub $27389, %r15
lea addresses_WT_ht+0x1492d, %rsi
nop
nop
nop
nop
nop
xor %r13, %r13
movb $0x61, (%rsi)
nop
nop
nop
nop
nop... |
;--------------------------------------------------------------
; ZX81 HRG library for the G007 expansion
; by Stefano Bodrato, Fall 2014
;--------------------------------------------------------------
;
; Set HRG mode and clear screen
;
; $Id: g007_clg_hr.asm,v 1.4 2015/01/19 01:32:52 pauloscustodio Exp $
;
PUBLIC... |
db KAKUNA ; 014
db 45, 25, 50, 35, 25, 25
; hp atk def spd sat sdf
db BUG, POISON ; type
db 120 ; catch rate
db 71 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F50 ; gender ratio
db 100 ; unknown 1
db 15 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/kakuna/front.dimensions"
... |
; A178460: Partial sums of floor(2^n/127).
; 0,0,0,0,0,0,1,3,7,15,31,63,127,256,514,1030,2062,4126,8254,16510,33023,66049,132101,264205,528413,1056829,2113661,4227326,8454656,16909316,33818636,67637276,135274556,270549116,541098237,1082196479,2164392963,4328785931,8657571867,17315143739,34630287483,69260574972,13852114... |
_SaffronHouse1Text1::
text "Thank you for"
line "writing. I hope"
cont "to see you soon!"
para "Hey! Don't look"
line "at my letter!"
done
_SaffronHouse1Text2::
text "PIDGEY: Kurukkoo!@@"
_SaffronHouse1Text3::
text "The COPYCAT is"
line "cute! I'm getting"
cont "her a # DOLL!"
done
_SaffronHouse1Text4::
... |
; A170146: Number of reduced words of length n in Coxeter group on 41 generators S_i with relations (S_i)^2 = (S_i S_j)^38 = I.
; 1,41,1640,65600,2624000,104960000,4198400000,167936000000,6717440000000,268697600000000,10747904000000000,429916160000000000,17196646400000000000,687865856000000000000,2751463424000000000000... |
; /************************ ZW_PATCHTABLE_FOOTER.A51 ************************
; * #######
; * ## ##
; * # ## #### ##### ##### ## ## #####
; * ## ## ## ## ## ## ## ## ##
; * ## # ###### ## ## #### ## ## ####
; * ... |
; Hello World Program (External file include)
; Compile with: nasm -f elf helloworld-inc.asm
; Link with (64 bit systems require elf_i386 option): ld -m elf_i386 helloworld-inc.o -o helloworld-inc
; Run with: ./helloworld-inc
%include 'functions.asm' ; include our external file
SE... |
addi x9, x0, 9
addi x10, x0, 10
add x20, x0, x0 # x20 = 0
add x11, x0, x0 # x11 = 0
addi x12, x0, 5 # x12 = 5
addi x13, x0, 24 # x13 = 24
addi x24, x0, 1 # x24 = 1
j function1
function1:
beq x11, x12, function2 #vai dar o branch para a label "function2" quando x11 == 5
addi x20, x20, 100
# o conteudo de x20 fic... |
; A158640: 52*n^2 - 1.
; 51,207,467,831,1299,1871,2547,3327,4211,5199,6291,7487,8787,10191,11699,13311,15027,16847,18771,20799,22931,25167,27507,29951,32499,35151,37907,40767,43731,46799,49971,53247,56627,60111,63699,67391,71187,75087,79091,83199,87411,91727,96147,100671,105299,110031,114867,119807,124851,129999,135251... |
// Copyright (c) 2014-2017 The Dash Core developers
// Copyright (c) 2017-2018 The BitcoinNode Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
//#define ENABLE_BTN_DEBUG
#include "activemasternode.h"
#includ... |
/*
* Copyright (c) 2015-2016, Graphics Lab, Georgia Tech Research Corporation
* Copyright (c) 2015-2016, Humanoid Lab, Georgia Tech Research Corporation
* Copyright (c) 2016, Personal Robotics Lab, Carnegie Mellon University
* All rights reserved.
*
* This file is provided under the following "BSD-style" License:... |
; A077880: Expansion of (1-x)^(-1)/(1-2*x^2+x^3).
; 1,1,3,2,6,2,11,-1,21,-12,44,-44,101,-131,247,-362,626,-970,1615,-2565,4201,-6744,10968,-17688,28681,-46343,75051,-121366,196446,-317782,514259,-832009,1346301,-2178276,3524612,-5702852,9227501,-14930315,24157855,-39088130,63246026,-102334114
mov $1,$0
cal $0,119282 ;... |
; A059924: Write the numbers from 1 to n^2 in a spiraling square; a(n) is the total of the sums of the two diagonals.
; 0,2,10,34,80,158,274,438,656,938,1290,1722,2240,2854,3570,4398,5344,6418,7626,8978,10480,12142,13970,15974,18160,20538,23114,25898,28896,32118,35570,39262,43200,47394,51850,56578,61584,66878,72466,783... |
#include <libng_engine/net/NetEngine.hpp>
namespace libng {
NetEngine::NetEngine() {
}
NetEngine::~NetEngine() {
}
} // namespace libng |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Parutil
; Multi-platform library of parallelized utility functions.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Authored by Samuel Grossman
; Department of Electrical Engineering, Stanford Universit... |
; A169211: Number of reduced words of length n in Coxeter group on 6 generators S_i with relations (S_i)^2 = (S_i S_j)^28 = I.
; 1,6,30,150,750,3750,18750,93750,468750,2343750,11718750,58593750,292968750,1464843750,7324218750,36621093750,183105468750,915527343750,4577636718750,22888183593750,114440917968750,57220458984... |
; A098117: a(n) = 5^(prime(n) - 1) + 5^prime(n) - 1.
; 29,149,3749,93749,58593749,1464843749,915527343749,22888183593749,14305114746093749,223517417907714843749,5587935447692871093749,87311491370201110839843749,54569682106375694274902343749,1364242052659392356872558593749
seq $0,6005 ; The odd prime numbers together w... |
_echo: 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 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/chime/model/CreateMediaCapturePipelineRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Chime::Model;
using namespace Aws::Utils::Json;... |
;-----------------------------------------------------------------------------;
; Author: Stephen Fewer (stephen_fewer[at]harmonysecurity[dot]com)
; Compatible: Windows 7, 2003
; Architecture: x64
;-----------------------------------------------------------------------------;
[BITS 64]
exitfunk:
mov ebx, 0... |
class Solution {
public:
bool canPlaceFlowers(vector<int>& flowerbed, int n) {
int i = 0, j = 0;
while (i < flowerbed.size()) {
while (i < flowerbed.size() && flowerbed[i] == 1) {
++i;
}
j = i;
while (j < flowerbed.size() && flowerbed[j... |
;
;
; Support char table (pseudo graph symbols) for the Mattel Aquarius
; Version for the 2x3 graphics symbols
; Sequence: blank, top-left, top-right, top-half, medium-left, top-left + medium-left, etc..
;
; $Id: textpixl6.asm,v 1.1 2006/12/28 18:08:36 stefano Exp $
;
;
XLIB textpixl
.textpixl
defb $C0, $C1, $C8... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r8
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x1dbbf, %r8
clflush (%r8)
cmp %r10, %r10
mov $0x6162636465666768, %r13
movq %r13, %xmm4
vmovups %ymm4, (%r8)
cmp $31324, %r9
lea addresses_normal_ht+0xf2f, %rsi
lea addresses_D_... |
; A109194: Number of returns to the x-axis (i.e., d or u steps hitting the x-axis) in all Grand Motzkin paths of length n. (A Grand Motzkin path of length n is a path in the half-plane x>=0, starting at (0,0), ending at (n,0) and consisting of steps u=(1,1), d=(1,-1) and h=(1,0).).
; Submitted by Simon Strandgaard
; 2,... |
[bits 32]
mov eax, [eax-0x10]
add eax, [esi+0x10]
add eax, [0x10]
add eax, [esi+edi*4+0x10]
add eax, [bx+si-0x4877]
|
; A001761: a(n) = (2*n)!/(n+1)!.
; 1,1,4,30,336,5040,95040,2162160,57657600,1764322560,60949324800,2346549004800,99638080819200,4626053752320000,233153109116928000,12677700308232960000,739781100339240960000,46113021921146019840000,3058021453718104473600000,214978908196382744494080000,15969861751731289590988800000,12500... |
; A007064: Numbers not of form "nearest integer to n*tau", tau=(1+sqrt(5))/2.
; 1,4,7,9,12,14,17,20,22,25,27,30,33,35,38,41,43,46,48,51,54,56,59,62,64,67,69,72,75,77,80,82,85,88,90,93,96,98,101,103,106,109,111,114,117,119,122,124,127,130,132,135,137,140,143,145,148,151,153,156,158,161,164,166,169,171,174,177,179,182,18... |
/*
* This file is a part of the open source stm32plus library.
* Copyright (c) 2011,2012 Andy Brown <www.andybrown.me.uk>
* Please see website for licensing terms.
*/
.global BulbPixels
.global BulbPixelsSize
.global AudioPixels
.global AudioPixelsSize
.global FlagPixels
.global FlagPixelsSize
.global D... |
; A283394: a(n) = 3*n*(3*n + 7)/2 + 4.
; 4,19,43,76,118,169,229,298,376,463,559,664,778,901,1033,1174,1324,1483,1651,1828,2014,2209,2413,2626,2848,3079,3319,3568,3826,4093,4369,4654,4948,5251,5563,5884,6214,6553,6901,7258,7624,7999,8383,8776,9178,9589,10009,10438,10876,11323,11779,12244,12718,13201,13693,14194,14704,15... |
; A008356: Crystal ball sequence for D_5 lattice.
; 1,41,411,2051,6981,18733,42783,86983,161993,281713,463715,729675,1105805,1623285,2318695,3234447,4419217,5928377,7824427,10177427,13065429,16574909,20801199,25848919,31832409,38876161,47115251,56695771,67775261,80523141,95121143,111763743,130658593,152026953,176104123... |
.include "header.inc"
.include "snesregs.inc"
.include "misc_macros.inc"
.include "zeropage.inc"
.include "gamepads.inc"
.16BIT
.ramsection "gamepad vars" bank 0 slot RAM_SLOT
; Buffer for reading bytes from controllers. Logic can
; look at those to know the current button status. gamepads.inc
; contains defines t... |
; A135136: a(n) = floor(S2(n)/2) mod 2, where S2(n) is the binary weight of n.
; 0,0,0,1,0,1,1,1,0,1,1,1,1,1,1,0,0,1,1,1,1,1,1,0,1,1,1,0,1,0,0,0,0,1,1,1,1,1,1,0,1,1,1,0,1,0,0,0,1,1,1,0,1,0,0,0,1,0,0,0,0,0,0,1,0,1,1,1,1,1,1,0,1,1,1,0,1,0,0,0,1,1,1,0,1,0,0,0,1,0,0,0,0,0,0,1,1,1,1,0,1,0,0,0,1,0,0,0,0,0,0,1,1,0,0,0,0,0,0,1... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x1664a, %rsi
lea addresses_UC_ht+0x1de0a, %rdi
nop
nop
nop
sub $42024, %r8
mov $48, %rcx
rep movsb
nop
nop
nop
nop
xor $19540, %r11
lea addresses_UC_ht+0xb14a, %r13
nop
nop
nop... |
// math.cpp
// math functions
// 08/20/05 (mv)
#include <windows.h>
#include "libct.h"
BEGIN_EXTERN_C
static int lastrand;
int _fltused = 0;
int abs(int n)
{
return (n>0)?n:-n;
}
void srand(unsigned int seed)
{
lastrand = seed;
}
int rand()
{
return (((lastrand = lastrand * 214013L ... |
; A000392: Stirling numbers of second kind S(n,3).
; 0,0,0,1,6,25,90,301,966,3025,9330,28501,86526,261625,788970,2375101,7141686,21457825,64439010,193448101,580606446,1742343625,5228079450,15686335501,47063200806,141197991025,423610750290,1270865805301,3812664524766,11438127792025,34314651811530,102944492305501,3088345... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x1c0e0, %rax
nop
nop
nop
and $14998, %rsi
mov $0x6162636465666768, %r10
movq %r10, %xmm6
and $0xffffffffffffffc0, %rax
vmovntdq %ymm6, (%rax)
nop
nop
nop
nop
nop
sub %rax, %rax
lea add... |
; A141023: a(n) = 2^n - (3-(-1)^n)/2.
; 0,0,3,6,15,30,63,126,255,510,1023,2046,4095,8190,16383,32766,65535,131070,262143,524286,1048575,2097150,4194303,8388606,16777215,33554430,67108863,134217726,268435455,536870910,1073741823,2147483646,4294967295,8589934590,17179869183,34359738366,68719476735,137438953470,2748779069... |
/** @file
A brief file description
@section license License
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 und... |
; This small assembly program is made to ensure that the jump
; behavior is similar between the rtl core and the simulator.
slp
slp
slp
debug
debug
label start
debug
debug
slp
quit
|
; A248619: a(n) = (n*(n+1))^4.
; 0,16,1296,20736,160000,810000,3111696,9834496,26873856,65610000,146410000,303595776,592240896,1097199376,1944810000,3317760000,5473632256,8767700496,13680577296,20851360000,31116960000,45558341136,65554433296,92844527616,129600000000,178506250000,242855782416,326653399296,434734510336,5... |
.plugin "nl.micheldebree.kickass.ViceWrite"
* = $0810
.modify ViceWrite() {
// notice the program counter inside the modifier
// aswell as outside. this is a must!
* = $0810
jsr $ff81
loop:
inc $d020
jmp loop
} |
.MODEL TINY
.CODE
ORG 100H
BEGIN:
MOV AX,10H
MOV BX,0H
DIV BX
MOV AH,4CH
INT 21H
END BEGIN |
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
std::vector<int> parse_input()
{
std::vector<int> vi;
for (std::string s; std::cin >> s; ) {
std::transform(std::begin(s), std::end(s), std::begin(s),
[](const auto& ch) {
return (ch == 'F' ... |
; A002424: Expansion of (1-4*x)^(9/2).
; Submitted by Jamie Morken(s4)
; 1,-18,126,-420,630,-252,-84,-72,-90,-140,-252,-504,-1092,-2520,-6120,-15504,-40698,-110124,-305900,-869400,-2521260,-7443720,-22331160,-67964400,-209556900,-653817528,-2062039896,-6567978928,-21111360840,-68429928240,-223537765584,-735511357728,-2... |
; A085431: a(n) = (2^(n-1) + prime(n+1)-prime(n))/2.
; 1,2,3,6,9,18,33,66,131,257,515,1026,2049,4098,8195,16387,32769,65539,131074,262145,524291,1048578,2097155,4194308,8388610,16777217,33554434,67108865,134217730,268435463,536870914,1073741827,2147483649,4294967301,8589934593,17179869187,34359738371,68719476738,137438... |
/*
* Copyright 2013 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "include/core/SkFont.h"
#include "include/core/SkFontMgr.h"
#include "include/core/SkPaint.h"
#include "include/core/SkStream.h"
#include "include/core/SkTypeface.h"
... |
SECTION code_clib
SECTION code_l
PUBLIC l_fast_btoul
EXTERN l_fast_btou
l_fast_btoul:
; ascii binary string to unsigned long
; whitespace is not skipped
; char consumption stops on overflow
;
; enter : de = char *buffer
;
; exit : bc = & next char to interpret in buffer
; dehl = un... |
STDIN equ 0
STDOUT equ 1
SYS_EXIT equ 1
SYS_READ equ 3
SYS_WRITE equ 4
section .bss
result resb 1
section .text
global main
main:
mov al, 5 ;getting 5 in the AL register
mov bl, 3 ;getting 3 in the BL register
or al, bl ;or al and bl registers, res... |
#include "SwiftRuntimeFailureRecognizer.h"
#include "lldb/Core/Module.h"
#include "lldb/Symbol/Function.h"
#include "lldb/Symbol/SymbolContext.h"
#include "lldb/Target/Process.h"
#include "lldb/Target/Target.h"
#include "lldb/Target/Thread.h"
#include "lldb/Utility/LLDBLog.h"
#include "lldb/Utility/Log.h"
using name... |
; A156855: 2025n^2 - n.
; 2024,8098,18222,32396,50620,72894,99218,129592,164016,202490,245014,291588,342212,396886,455610,518384,585208,656082,731006,809980,893004,980078,1071202,1166376,1265600,1368874,1476198,1587572,1702996,1822470,1945994,2073568,2205192,2340866,2480590,2624364,2772188,2924062,3079986,3239960,34039... |
GLOBAL _cli
GLOBAL _sti
GLOBAL pic_master_mask
GLOBAL pic_slave_mask
GLOBAL halt
GLOBAL _irq00Handler
GLOBAL _irq01Handler
GLOBAL _irq80Handler
GLOBAL _exception00Handler
GLOBAL _exception06Handler
GLOBAL _exception13Handler
GLOBAL _exception14Handler
EXTERN irqDispatcher
EXTERN handleSyscall
EXTERN exceptionDispa... |
# Test 3 - mult
pushd 2.6
pushd 3.86
mult
halt |
; int printf_unlocked(const char *format, ...)
SECTION code_clib
SECTION code_stdio
PUBLIC _printf_unlocked
EXTERN asm_printf_unlocked
defc _printf_unlocked = asm_printf_unlocked
|
; A312143: Coordination sequence Gal.5.55.2 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,4,8,13,18,23,28,33,38,42,46,50,54,59,64,69,74,79,84,88,92,96,100,105,110,115,120,125,130,134,138,142,146,151,156,161,166,171,176,180,184,18... |
OUTPUT "op_ED.bin"
in b,(c) ; #ED40
out (c),b ; #ED41
sbc hl,bc ; #ED42
ld (#100),bc ; #ED430001
neg ; #ED44
retn ; #ED45
im 0 ; #ED46
ld i,a ; #ED47
in c,(c) ; #ED48
... |
#include "DataFormats/Common/interface/View.h"
#include <typeinfo>
namespace edm
{
//------------------------------------------------------------------
// Implementation of ViewBase.
//------------------------------------------------------------------
ViewBase::~ViewBase() { }
std::unique_ptr<ViewBase>
... |
; Z88 Small C+ Run Time Library
; Long support functions
; "8080" mode
; Stefano - 30/4/2002
; $Id: l_long_ucmp.asm,v 1.2 2016-06-16 20:31:05 dom Exp $
;
SECTION code_crt0_sccz80
PUBLIC l_long_ucmp
; Unsigned compare of dehl (stack) and dehl (registers)
;
; Entry: prima... |
; Sets OVER flag in P_FLAG permanently
; Parameter: OVER flag in bit 0 of A register
#include once <copy_attr.asm>
#include once <const.asm>
OVER:
PROC
ld c, a ; saves it for later
and 2
ld hl, FLAGS2
res 1, (HL)
or (hl)
ld (hl), a
ld a, c ; Recovers previous value
and 1 ; # Convert to 0/1
add a, a; # Shif... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.