text stringlengths 1 1.05M |
|---|
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "interpreter.h"
#include "primitives/transaction.h"
#include "crypto/ri... |
; A142376: Primes congruent to 25 mod 47.
; Submitted by Jon Maiga
; 307,401,683,1153,1811,1999,2281,2657,2939,3221,3691,4349,5101,5477,6229,6323,6793,7451,7639,8297,8861,9049,9613,10177,10271,10459,11117,11399,11587,11681,12433,12527,12809,14407,14783,15629,15817,16193,16381,17321,17509,17791,18637,18731,18919,19013,1... |
; A121929: a(n) = ceiling(n*(e^Pi + Pi^e)).
; 0,46,92,137,183,228,274,320,365,411,456,502,548,593,639,684,730,776,821,867,912,958,1004,1049,1095,1140,1186,1232,1277,1323,1368,1414,1460,1505,1551,1596,1642,1688,1733,1779,1824,1870,1916,1961,2007,2052,2098,2144,2189,2235,2280,2326,2372,2417,2463,2508,2554,2600,2645,2691,... |
/*
* Copyright 2013 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkBitmap.h"
#include "SkColorPriv.h"
#include "SkBlurImage_opts.h"
#include "SkRect.h"
#include <arm_neon.h>
namespace {
enum BlurDirection {... |
CALL LABEL3 ; LABEL3 - yes
LD A,(LABEL1) ; LABEL1 - yes
jr 1B ;; error
jr 1F
jr 4F
1
jr 1B
jr 1F ;; error
IFUSED LABEL1
LABEL1:
DB '1'
ENDIF
jr 2F
jr 4F
2
jr 1B
jr 2B
IFUSED LABEL2
LABEL2:
DB '2'
ENDIF
jr 3F
jr 4F
3
... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2011-2015 Intel Corporation All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions
; are met:
; * Redistributions of so... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Number Guessing Game ;;;
;;; -------------------- ;;;
;;; ;;;
;;; Members: ;;;
;;; - Jonathan Trousdale ;;;
;;; - Tyler Wr... |
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
c0
.text@150
lbegin:
ld a, 00
ldff(ff), a
ld a, 30
ldff(00), a
ld a, 01
ldff(4d), a
stop, 00
ld a, ff
ldff(45), a
ld b, 91
call lwaitly_b
ld hl, fe00
ld d, 10
ld a, d
ld(hl++), a
ld a, 08
ld(hl++), a
inc l
inc l
ld a, d
ld(hl++), ... |
dnl AMD64 mpn_hamdist -- hamming distance.
dnl Copyright 2008, 2010-2012, 2017 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of either:
dnl
dnl * the GNU Lesser General Publi... |
; A157759: a(n) = 15780962*n^2 - 25943924*n + 10662963.
; 500001,21898963,74859849,159382659,275467393,423114051,602322633,813093139,1055425569,1329319923,1634776201,1971794403,2340374529,2740516579,3172220553,3635486451,4130314273,4656704019,5214655689,5804169283,6425244801,7077882243,7762081609,8477842899,9225166113,... |
; A008123: Coordination sequence T1 for Zeolite Code KFI.
; 1,4,9,17,29,45,64,86,112,141,173,209,249,292,338,388,441,497,557,621,688,758,832,909,989,1073,1161,1252,1346,1444,1545,1649,1757,1869,1984,2102,2224,2349,2477,2609,2745,2884,3026,3172,3321,3473,3629,3789,3952,4118,4288,4461,4637,4817,5001,5188,5378,5572,5769,5... |
; A263511: Total number of ON (black) cells after n iterations of the "Rule 155" elementary cellular automaton starting with a single ON (black) cell.
; 1,3,6,12,19,29,40,54,69,87,106,128,151,177,204,234,265,299,334,372,411,453,496,542,589,639,690,744,799,857,916,978,1041,1107,1174,1244,1315,1389,1464,1542,1621,1703,17... |
#include "ShoppingCart.h"
void addItemQuantity(const Product& product, double quantity);
std::vector<ProductQuantity> ShoppingCart::getItems() const {
return items;
}
std::map<Product, double> ShoppingCart::getProductQuantities() const {
return productQuantities;
}
void ShoppingCart::addItem(const Product& ... |
; A004449: Nimsum n + 8.
; 8,9,10,11,12,13,14,15,0,1,2,3,4,5,6,7,24,25,26,27,28,29,30,31,16,17,18,19,20,21,22,23,40,41,42,43,44,45,46,47,32,33,34,35,36,37,38,39,56,57,58,59,60,61,62,63,48,49,50,51,52,53,54,55,72,73,74,75,76,77,78,79,64,65,66,67,68,69,70,71,88,89,90,91,92,93,94,95,80,81,82,83,84,85,86,87,104,105,106,107... |
dnl ARM mpn_invert_limb -- Invert a normalized limb.
dnl Copyright 2001, 2009, 2011, 2012 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of either:
dnl
dnl * the GNU Lesser Ge... |
/* Copyright 2003-2013 Joaquin M Lopez Munoz.
* 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/multi_index for library home page.
*/
#pragma once
#include <brigand/... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r15
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x96f4, %rsi
lea addresses_WC_ht+0xdef4, %rdi
nop
nop
dec %r12
mov $6, %rcx
rep movsb
nop
nop
nop
sub %r8, %r8
lea addresses_normal_ht+0x1e100, %r15
nop
nop
dec %rbp
mov $0x616... |
; A092364: a(n) = n^2*binomial(n,2).
; 0,4,27,96,250,540,1029,1792,2916,4500,6655,9504,13182,17836,23625,30720,39304,49572,61731,76000,92610,111804,133837,158976,187500,219700,255879,296352,341446,391500,446865,507904,574992,648516,728875,816480
mov $1,$0
add $0,1
pow $0,3
mul $1,$0
div $1,2
|
; A335648: Partial sums of A006010.
; 0,1,6,26,78,195,420,820,1476,2501,4026,6222,9282,13447,18984,26216,35496,47241,61902,80002,102102,128843,160908,199068,244140,297037,358722,430262,512778,607503,715728,838864,978384,1135889,1313046,1511658,1733598,1980883,2255604
mov $12,$0
mov $14,$0
lpb $14,1
clr $0,12
mov $... |
; void wherex()
; 09.2017 stefano
SECTION code_clib
PUBLIC wherex
PUBLIC _wherex
EXTERN __console_x
.wherex
._wherex
ld a,(__console_x)
ld l,a
ld h,0
IF __CPU_GBZ80__
ld d,h
ld e,l
ENDIF
ret
|
// This file is part of DM-HEOM (https://github.com/noma/dm-heom)
//
// Copyright (c) 2015-2019 Matthias Noack, Zuse Institute Berlin
//
// Licensed under the 3-clause BSD License, see accompanying LICENSE,
// CONTRIBUTORS.md, and README.md for further information.
#include "heom/static_fluorescence_config.hpp"
names... |
#ifndef _MTOOL_ASM_
#define _MTOOL_ASM_
;.INCLUDE "RESOURCE\RESOURCE.INC"
.MACRO CBRS
SEZ
SBRS @0,@1
CLZ
.ENDMACRO
;STACK = X
//-------------------------------------------STACK ERROR COMPATE LATER-----------------------
/*LDI R27,0
LDI R26,0
.MACRO MPUSH
MOV ARG1,@0
CALL MYPUSH
.ENDMACRO
.MACRO... |
; Static display list which is modified every scanline to render graphics.
; This takes seven seconds to assemble, and including rdp.inc would paralyze
; compilation of the rest of the program, so this is in a file of its own.
thecolors equne $80009520
org 0x430
#include macros.inc
#include rdp.inc
#include defs.inc... |
#include "noise.hpp"
#include "third_party/src/simplexnoise/simplexnoise1234.hpp"
#include "vcl/base/base.hpp"
namespace vcl
{
float noise_perlin(float x, int octave, float persistency, float frequency_gain)
{
float value = 0.0f;
float a = 1.0f; // current magnitude
float ... |
/* Programa que lee una matriz simétrica y construye una matriz
suavizada, cuya diagonal principal son iguales a la original, es
simétrica y en cada posición (i,j) incluye el valor medio de los
valores que ocupan las posiciones de las columnas j,j+1,...,n-1 en
la fila i de la original. */
#include<iostream... |
; void p_stack_push(p_stack_t *s, void *item)
SECTION code_clib
SECTION code_adt_p_stack
PUBLIC p_stack_push
EXTERN p_forward_list_insert_after
defc p_stack_push = p_forward_list_insert_after
|
li $v0,1
add $a0,$t0,$0
syscall |
#include "blockexplorer.h"
#include "bitcoinunits.h"
#include "chainparams.h"
#include "clientmodel.h"
#include "core_io.h"
#include "guiutil.h"
#include "main.h"
#include "net.h"
#include "txdb.h"
#include "ui_blockexplorer.h"
#include "ui_interface.h"
#include "util.h"
#include "utilstrencodings.h"
#include <QDateTim... |
#include "serialization.h"
#include "table.h"
#include "rapidjson/document.h"
#include "rapidjson/writer.h"
#include "rapidjson/stringbuffer.h"
#include "rapidjson/prettywriter.h"
#include "base64.h"
#include "zlib/zlib.h"
struct __table_json
{
rapidjson::Value root;
};
#define _TABLE_ROOT_NAME "root"
#define _FLOAT... |
; A033999: a(n) = (-1)^n.
; 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,-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,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
mov $1,-1
bin $1,$0
mov $0,$1
|
; A097064: Expansion of (1-4x+6x^2)/(1-2x)^2.
; 1,0,2,8,24,64,160,384,896,2048,4608,10240,22528,49152,106496,229376,491520,1048576,2228224,4718592,9961472,20971520,44040192,92274688,192937984,402653184,838860800,1744830464,3623878656,7516192768
sub $0,1
mov $2,$0
lpb $0
sub $0,1
mul $2,2
mov $1,$2
lpe
add $1,1
s... |
; FILE *fdopen(int fd, const char *mode)
SECTION code_stdio
PUBLIC fdopen
EXTERN asm_fdopen
fdopen:
pop af
pop de
pop hl
push hl
push de
push af
jp asm_fdopen
|
; *****************************************************************************
; *****************************************************************************
;
; Name : files.asm
; Purpose : RPL-C Includes
; Author : Paul Robson (paul@robsons.org.uk)
; Date : 17th January 2020
;
; *****************************... |
#include <iostream>
#include <cstdlib>
#include <string>
#include <unordered_set>
#include <vector>
#include <algorithm>
#include <climits>
#include <stack>
using namespace std;
class Solution {
public:
int n;
int target;
vector<int> searchRange(vector<int>& nums, int _target) {
n = nums.size();
ta... |
; A010969: a(n) = binomial(n,16).
; 1,17,153,969,4845,20349,74613,245157,735471,2042975,5311735,13037895,30421755,67863915,145422675,300540195,601080390,1166803110,2203961430,4059928950,7307872110,12875774670,22239974430,37711260990,62852101650,103077446706,166509721602,265182149218,416714805914,646626422970,9914938485... |
; A025993: Expansion of 1/((1-2x)(1-5x)(1-7x)(1-9x)).
; Submitted by Jon Maiga
; 1,23,344,4258,47487,496725,4981918,48547136,463544213,4361492707,40596873252,374857310334,3440520848779,31434357529169,286207079508746,2598999610410652,23553202070626785,213115529239825311
mov $1,1
mov $2,$0
mov $3,$0
lpb $2
mov $0,$3
... |
#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
int main(int argc, char **argv) {
std::string line;
std::string direction;
int value;
int forward = 0;
int depth = 0;
int aim = 0;
std::ifstream inputFile("input.txt");
while (getline(inputFile, line)) {
std::string temp;
std::is... |
//
// Copyright 2019 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 ... |
; A062956: a(n) = h(n^2) - h(n), where h(n) is the half-totient function (A023022).
; 2,3,8,5,18,14,24,18,50,22,72,39,56,60,128,51,162,76,120,105,242,92,240,150,234,162,392,116,450,248,320,264,408,210,648,333,456,312,800,246,882,430,528,495,1058,376,1008,490,800,612,1352,477,1080,660,1008
add $0,2
mov $1,$0
seq $0,10 ... |
/** --------------------------------------------------------------------------------------------------------------------
* <copyright company="Aspose" file="DeleteFormFieldRequest.cpp">
* Copyright (c) 2020 Aspose.Words for Cloud
* </copyright>
* <summary>
* Permission is hereby granted, free of charge, to any pers... |
; A184334: Period 6 sequence [0, 2, 2, 0, -2, -2, ...] except a(0) = 1.
; 1,2,2,0,-2,-2,0,2,2,0,-2,-2,0,2,2,0,-2,-2,0,2,2,0,-2,-2,0,2,2,0,-2,-2,0,2,2,0,-2,-2,0,2,2,0,-2,-2,0,2,2,0,-2,-2,0,2,2,0,-2,-2,0,2,2,0,-2,-2,0,2,2,0,-2,-2,0,2,2,0,-2,-2,0,2,2,0,-2,-2,0,2,2,0,-2,-2,0,2,2,0,-2,-2,0,2,2,0,-2,-2,0,2,2,0,-2,-2,0,2,2,0,... |
; ***************************************************************************************************************************************
; ***************************************************************************************************************************************
;
; BERZERK - For the RCA Studio 2... |
; A165749: a(n) = (9/5)*(1+4*(-9)^(n-1)).
; Submitted by Jamie Morken(s4)
; 1,9,-63,585,-5247,47241,-425151,3826377,-34437375,309936393,-2789427519,25104847689,-225943629183,2033492662665,-18301433963967,164712905675721,-1482416151081471,13341745359733257,-120075708237599295,1080681374138393673,-9726132367245543039,875... |
;
; 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.5 2015/01/19 01:32:51 pauloscustodio Exp $
;
INCLUDE "graphics/text/textgfx.inc"
PUBLIC respixel
EXTERN textpixl
EXTERN co... |
; A249827: Row 3 of A246278: replace in 2n each prime factor p(k) with prime p(k+2).
; 5,25,35,125,55,175,65,625,245,275,85,875,95,325,385,3125,115,1225,145,1375,455,425,155,4375,605,475,1715,1625,185,1925,205,15625,595,575,715,6125,215,725,665,6875,235,2275,265,2125,2695,775,295,21875,845,3025,805,2375,305,8575,935,81... |
SFX_Snare6_4_Ch7:
unknownnoise0x20 0, 129, 16
endchannel
|
; A166660: Totally multiplicative sequence with a(p) = 2p+1 for prime p.
; Submitted by Jamie Morken(s4)
; 1,5,7,25,11,35,15,125,49,55,23,175,27,75,77,625,35,245,39,275,105,115,47,875,121,135,343,375,59,385,63,3125,161,175,165,1225,75,195,189,1375,83,525,87,575,539,235,95,4375,225,605,245,675,107,1715,253,1875,273,295,... |
#include <link/i_link_manager.hpp>
|
; $Id: 32BitTo32Bit.asm 69221 2017-10-24 15:07:46Z vboxsync $
;; @file
; VMM - World Switchers, 32-Bit to 32-Bit.
;
;
; 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 redistri... |
/*
* Copyright © 2010 Intel Corporation
*
* 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 Software without restriction, including without limitation
* the rights to use, copy, modify, merge, pub... |
; A023950: Expansion of 1/((1-x)(1-6x)(1-7x)(1-9x)).
; Submitted by Jon Maiga
; 1,23,348,4378,49679,528381,5380306,53132816,513181317,4875626899,45752166824,425305531014,3925114125115,36023250380777,329183853207102,2998041099306172,27233460168740273,246879085434889215,2234479248275592340,20199016821699469490,1824164638... |
Name: zel_rmdt09.asm
Type: file
Size: 172147
Last-Modified: '2016-05-13T04:22:15Z'
SHA-1: 8D4C35677AC1F9EAABEEDDCE8B9DF9C00AF150E9
Description: null
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r14
push %r15
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0xc833, %rdi
nop
nop
cmp %r15, %r15
mov $0x6162636465666768, %r10
movq %r10, %xmm7
vmovups %ymm7, (%rdi)
cmp %r12, %r12
lea addresses_A_ht+0x2ae3, %r14
nop
nop
nop
nop
add %rcx... |
//==================================================================================================
/*!
@file
@copyright 2016 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
//===========================... |
; A211441: Number of ordered triples (w,x,y) with all terms in {-n,...,0,...,n} and w + x + y = 2.
; 0,3,15,33,57,87,123,165,213,267,327,393,465,543,627,717,813,915,1023,1137,1257,1383,1515,1653,1797,1947,2103,2265,2433,2607,2787,2973,3165,3363,3567,3777,3993,4215,4443,4677,4917,5163,5415,5673,5937,6207,6483,6765,7053,... |
//
// Created by LongXiaJun on 2018/12/29 0029.
//
#include "day23_binary_search_and_equal_range.h"
#include <vector>
#include <iostream>
#include <algorithm>
namespace demo_binary_search_and_equal_range {
namespace definition {
// Possible definition
template<typename ForwardIt, typename T>
... |
//
// Bundle.cpp
//
// Library: OSP
// Package: Bundle
// Module: Bundle
//
// Copyright (c) 2007-2014, Applied Informatics Software Engineering GmbH.
// All rights reserved.
//
// SPDX-License-Identifier: Apache-2.0
//
#include "Poco/OSP/Bundle.h"
#include "Poco/OSP/BundleLoader.h"
#include "Poco/OSP/OSPException.h... |
; A027266: a(n) = Sum_{k=0..2n} (k+1) * A026519(n, k).
; 1,6,18,72,180,648,1512,5184,11664,38880,85536,279936,606528,1959552,4199040,13436928,28553472,90699264,191476224,604661760,1269789696,3990767616,8344332288,26121388032,54419558400,169789022208
mov $2,5
mov $3,$0
add $0,2
mov $1,$3
mov $3,$0
add $3,5
mov $0,$3
ad... |
include io.h
cr equ 10
lf equ 13
.model small
.Stack 200h
.Data
newline db cr, lf, 0
number_prompt1 db cr, lf, 'Enter number z: ', 0
number_one db 10 dup(?)
sum1 dw 0
sum2 dw 0
sum3 dw 0
total dw 0
sum_prompt db 'F = ', 0
.Code
main proc
mov ax, @Data
mov ds, ax
;---------------------------------------------------... |
je label1
times 4 nop
je label1
align 8
times 118 nop
je label2
label1:
times 128 nop
label2:
|
; A137951: Redundant binary representation (A089591) of n interpreted as ternary number.
; 0,1,3,4,6,10,12,13,15,19,21,31,33,37,39,40,42,46,48,58,60,64,66,94,96,100,102,112,114,118,120,121,123,127,129,139,141,145,147,175,177,181,183,193,195,199,201,283,285,289,291,301,303,307,309,337,339,343,345,355,357,361,363,364,366... |
; A054966: Numbers that are congruent to {0, 1, 8} mod 9.
; 0,1,8,9,10,17,18,19,26,27,28,35,36,37,44,45,46,53,54,55,62,63,64,71,72,73,80,81,82,89,90,91,98,99,100,107,108,109,116,117,118,125,126,127,134,135,136,143,144,145,152,153,154,161,162,163,170,171,172,179,180,181,188,189,190,197,198,199,206,207,208,215,216,217,22... |
/*
Copyright (c) 2012, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the f... |
.text
.align 2
.global main
main:
;Bitfield instructions
MOV R6, #0A12Fh; R6 = 0xA12F
BFC R6, #8, #12; R6 = 0x2F
SBFX R7, R6, #4, #8; R7 = 0x2
;Packing and unpacking instructions
MOV R8, #0AABBh; R8 = 0xAABB
MOV R9, #0CCDh; R9 = 0xCCDD
PKHBT R10, R8, R9, LSL #16; R9 = 0xCCDDAABB
SXTH R11, R10, ROR #16; ... |
#include "coinunits.h"
#include <QStringList>
CoinUnits::CoinUnits(QObject *parent):
QAbstractListModel(parent),
unitlist(availableUnits())
{
}
QList<CoinUnits::Unit> CoinUnits::availableUnits()
{
QList<CoinUnits::Unit> unitlist;
unitlist.append(BASEUNIT);
unitlist.append(mBASEUNIT);
... |
; A172475: a(n) = floor(n*sqrt(3)/2).
; 0,0,1,2,3,4,5,6,6,7,8,9,10,11,12,12,13,14,15,16,17,18,19,19,20,21,22,23,24,25,25,26,27,28,29,30,31,32,32,33,34,35,36,37,38,38,39,40,41,42,43,44,45,45,46,47,48,49,50,51,51,52,53,54,55,56,57,58,58,59,60,61,62,63,64,64,65,66,67,68,69,70,71,71,72,73,74,75,76,77,77,78,79,80,81,82,83,8... |
; A191012: a(n) = n^5 - n^4 + n^3 - n^2 + n.
; 0,1,22,183,820,2605,6666,14707,29128,53145,90910,147631,229692,344773,501970,711915,986896,1340977,1790118,2352295,3047620,3898461,4929562,6168163,7644120,9390025,11441326,13836447,16616908,19827445,23516130,27734491,32537632,37984353,44137270,51062935,58831956,67519117,77... |
SECTION code_fp_math48
PUBLIC _tanh_fastcall
EXTERN cm48_sdccix_tanh_fastcall
defc _tanh_fastcall = cm48_sdccix_tanh_fastcall
|
// This file is made available under Elastic License 2.0.
// This file is based on code available under the Apache license here:
// https://github.com/apache/incubator-doris/blob/master/be/test/olap/delete_handler_test.cpp
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license a... |
; A275015: Number of neighbors of each new term in an isosceles triangle read by rows.
; 0,1,2,1,3,2,1,3,3,2,1,3,3,3,2,1,3,3,3,3,2,1,3,3,3,3,3,2,1,3,3,3,3,3,3,2,1,3,3,3,3,3,3,3,2,1,3,3,3,3,3,3,3,3,2,1,3,3,3,3,3,3,3,3,3,2,1,3,3,3,3,3,3,3,3,3,3,2,1,3,3,3,3,3,3,3,3,3,3,3,2,1,3,3,3,3,3,3,3,3
lpb $0
add $0,4
mov $1,3
... |
; stars.asm
AnimateStars proc
ld a, (ColourFlip)
xor 3
ld (ColourFlip), a
ld hl, StarField.Table ; Starting point of ROM "psuedo-random" table (2 bytes per star). Try $03F3!
l... |
; simple2
include "subdir/insubdir2.asm"
|
#include <iostream>
#include <string>
#include <cstdint>
#include <cassert>
const int8_t HexDigitTable[256] = { -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, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, 0, 1, 2... |
; A055142: E.g.f.: exp(x)*sqrt(1-2x).
; 1,0,-2,-8,-36,-224,-1880,-19872,-251888,-3712256,-62286624,-1171487360,-24402416192,-557542291968,-13861636770176,-372514645389824,-10759590258589440,-332386419622387712,-10935312198369141248,-381705328034883127296,-14089260601787531469824,-548302210950105933701120,-2243694391462... |
;** Standard device IO for MSDOS (first 12 function calls)
;
TITLE IBMCPMIO - device IO for MSDOS
NAME IBMCPMIO
;** CPMIO.ASM - Standard device IO for MSDOS (first 12 function calls)
;
;
; Old style CP/M 1-12 system calls to talk to reserved devices
;
; $Std_Con_Input_No_Echo
; $Std_Con_String_Output
;... |
; A096978: Sum of the areas of the first n Jacobsthal rectangles.
; 0,1,4,19,74,305,1208,4863,19398,77709,310612,1242907,4970722,19884713,79535216,318148151,1272578046,5090341317,20361307020,81445344595,325781145370,1303125047521,5212499258024,20849998896239,83399991856694,333599974883325,1334399884620228,5337599568307... |
; A226737: 11^n + n.
; 1,12,123,1334,14645,161056,1771567,19487178,214358889,2357947700,25937424611,285311670622,3138428376733,34522712143944,379749833583255,4177248169415666,45949729863572177,505447028499293788,5559917313492231499,61159090448414546310,672749994932560009221,7400249944258160101232,8140274938683976111334... |
; b = 0
MOV 0, A
SWP A, B
; a = 1
MOV 1, A
; RET = A == B
EQL A, B, RET
; Show RET
MOV RET, A
SHW A
; Halt the machine.
HLT
|
.byte 0x02,0x00,0x09,0x00
.word 0x08095838
.byte 0x09,0x00,0x0F,0x00
.byte 0x02,0x00,0x00,0x00
.byte 0x00,0x01,0x00,0x00
.byte 0x00,0x1E,0x00,0x03
.byte 0x09,0x00,0x00,0x00
.byte 0x02,0x00,0x00,0x00
.byte 0x7C,0xDA,0x09,0x00
.byte 0x9E,0x33,0x00,0x00
.byte 0x09,0x00,0x01,0x00
.byte 0x02,0x00,0x00,0x00
.byte 0x1C,0x0E,0... |
; A048693: Generalized Pellian with 2nd term equal to 6.
; 1,6,13,32,77,186,449,1084,2617,6318,15253,36824,88901,214626,518153,1250932,3020017,7290966,17601949,42494864,102591677,247678218,597948113,1443574444,3485097001,8413768446
mov $1,1
mov $3,4
lpb $0,1
sub $0,1
mov $2,$3
add $2,$1
mov $3,$1
add $1,$2
l... |
/*
;********************************************************************************************************
; uC/CPU
; CPU CONFIGURATION & PORT LAYER
;
; Copyright 2004-2020 Silicon Laboratories Inc. www.silabs.com
;
; ... |
;;
;; Copyright (c) Microsoft. All rights reserved.
;; Licensed under the MIT license. See LICENSE file in the project root for full license information.
;;
#include "AsmMacros.h"
TEXTAREA
SETALIAS GetLoopIndirCells, ?GetLoopIndirCells@ModuleHeader@@QAAPAEXZ
SETALIAS g_fGcStressStarted, ?g_GCS... |
; A112460: Absolute value of coefficient of term [x^(n-4)] in characteristic polynomial of maximum matrix A of size n X n, where n >= 4. Maximum matrix A(i,j) is MAX(i,j), where indices i and j run from 1 to n.
; 4,39,207,795,2475,6633,15873,34749,70785,135850,247962,433602,730626,1191870,1889550,2920566,4412826,653271... |
; $Id: ASMXSave.asm $
;; @file
; IPRT - ASMXSave().
;
;
; Copyright (C) 2006-2015 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 terms of the GNU
; General ... |
arch snes.cpu
lorom
org $83ADA0
db $FD, $92, $00, $05, $3E, $26, $03, $02, $00, $80, $A2, $B9 //door to parlor
db $2B, $B6, $40, $04, $01, $06, $00, $00, $00, $80, $00, $00 //door to metal pirates
db $79, $98, $40, $05, $2E, $06, $02, $00, $00, $80, $00, $00 //to pre-bt
org $8F98DC
db $06, $F0 //setu... |
;
; $Id: led_mt2.asm,v 1.0 2016/10/30 13:00:00 srajesh Exp $
;
; This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
;
; Copyright 2007-2020 Broadcom Inc. All rights reserved.
;
;
; This is to be used on the BCM56960 SDKs with MOntreal2.
;... |
map_header UndergroundPathRoute5, UNDERGROUND_PATH_ROUTE_5, GATE, 0
end_map_header
|
; A092460: Numbers that are not Bell numbers (A000110).
; 0,3,4,6,7,8,9,10,11,12,13,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79
mov $1,2
mov $2,$0
mov $3,$0
mov $4,2
lpb $... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r8
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0xe306, %rsi
lea addresses_D_ht+0x1d406, %rdi
nop
nop
sub $62734, %r14
mov $43, %rcx
rep movsq
nop
and %rax, %rax
lea addresses_normal_ht+0x1df3f, %r8
nop
add %r14, %r14
mo... |
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
// archive_serializer_map.ipp:
// (C) Copyright 2002 Robert Ramey - http://www.rrsd.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... |
; A278818: a(n) is the least k > n such that k + n is square.
; 1,3,7,6,5,11,10,9,17,16,15,14,13,23,22,21,20,19,31,30,29,28,27,26,25,39,38,37,36,35,34,33,49,48,47,46,45,44,43,42,41,59,58,57,56,55,54,53,52,51,71,70,69,68,67,66,65,64,63,62,61,83,82,81,80,79,78,77,76,75,74,73,97,96,95,94,93,92,91,90,89,88,87,86,85,111,110... |
#include <math.h>
#include "mex.h"
#include "graph.h"
#include <vector>
void
mexFunction(int nout, mxArray *out[],
int nin, const mxArray *in[])
{
if (nin != 3)
mexErrMsgTxt("Three arguments are required (nNodes,TerminalWeights,EdgeWeights)") ;
if (nout > 2)
mexErrMsgTxt("Too m... |
#include <jni.h>
#include <string>
#include <sys/select.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <cstring>
#include <ifaddrs.h>
#include <netdb.h>
#include <netinet/in.h>
#include "ifaddrs.h"
#include "android/log.h"
extern "C"
JNIEXPORT jstring JNICALL
Java_com_yx_netprobe_ShowIPActivity_cpp_1get_1i... |
; 32-bit print function
;
; Parameters:
; EBX - address of string to be printed
;
; Print is performed using direct video memory addressing
[bits 32]
VIDEO_MEM equ 0xB8000
print_no_bios:
pusha
mov edx, VIDEO_MEM
print_no_bios_loop:
mov al, [ebx] ; AL holds the character value (pointed t... |
; A155966: a(n) = 2*n^2 + 8.
; 8,10,16,26,40,58,80,106,136,170,208,250,296,346,400,458,520,586,656,730,808,890,976,1066,1160,1258,1360,1466,1576,1690,1808,1930,2056,2186,2320,2458,2600,2746,2896,3050,3208,3370,3536,3706,3880,4058,4240,4426,4616,4810,5008,5210,5416,5626,5840,6058,6280,6506,6736,6970,7208,7450,7696,7946,... |
_grep: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
}
}
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 push %ebp
b:... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "test_utils/cpu_test_utils.hpp"
#include "ngraph_functions/builders.hpp"
#include "ngraph_functions/utils/ngraph_helpers.hpp"
using namespace InferenceEngine;
using namespace CPUTestUtils;
namespace CPULayerTestsDefiniti... |
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r15
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x17726, %rbp
cmp $27556, %r9
mov (%rbp), %r15w
nop
nop
nop
nop
cmp $39142, %r14
lea addresses_WC_ht+0xc9be, %rsi
lea addresses_WT_ht+0x16826, %rdi
nop
nop
nop
cmp $59017, %rax
... |
; size_t getdelim_unlocked(char **lineptr, size_t *n, int delimiter, FILE *stream)
SECTION code_clib
SECTION code_stdio
PUBLIC getdelim_unlocked_callee
EXTERN asm_getdelim_unlocked
getdelim_unlocked_callee:
pop hl
pop ix
pop bc
pop de
ex (sp),hl
jp asm_getdelim_unlocked
|
// This file is part of BOINC.
// http://boinc.berkeley.edu
// Copyright (C) 2010 University of California
//
// BOINC is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation,
// either version 3 of the Licens... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.