text stringlengths 1 1.05M |
|---|
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
using nam... |
; A220563: Number of ways to reciprocally link elements of an 2 X n array either to themselves or to exactly one horizontal or antidiagonal neighbor.
; Submitted by Jon Maiga
; 1,5,14,47,149,481,1544,4965,15957,51293,164870,529947,1703417,5475329,17599456,56570281,181834969,584475733,1878691886,6038716423,19410365421,6... |
;;
;; Copyright (c) 2021-2022, 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... |
#include <iostream>
#include <unordered_set>
#include <string>
#include <ctime>
char get() {
switch (rand() % 3) {
case 0: {
return '0' + rand() % 10;
break;
}
case 1: {
return 'a' + rand() % 26;
break;
}
case 2: {
... |
; A098149: a(0)=-1, a(1)=-1, a(n)=-3*a(n-1)-a(n-2) for n>1.
; -1,-1,4,-11,29,-76,199,-521,1364,-3571,9349,-24476,64079,-167761,439204,-1149851,3010349,-7881196,20633239,-54018521,141422324,-370248451,969323029,-2537720636,6643838879,-17393796001,45537549124,-119218851371,312119004989,-817138163596,2139295485799,-560074... |
;
; Sharp OZ family functions
;
; ported from the OZ-7xx SDK by by Alexander R. Pruss
; by Stefano Bodrato - Oct. 2003
;
;
; interrupt routines
;
;
; ------
; $Id: ozsetisr.asm,v 1.5 2016-06-27 21:25:36 dom Exp $
;
SECTION code_clib
PUBLIC ozsetisr
PUBLIC _ozsetisr
EXTERN ozinstisr
ozsetisr:
_ozsetisr:
;;... |
DEVICE NONE
BPLIST "dir_setbp_noFile.exp" zesarux ; not in DEVICE mode
DEVICE ZXSPECTRUM48
BPLIST "" invalid_type ; empty filename, invalid type
SETBREAKPOINT $ ; bpfile-ok ; warning suppressed
SETBREAKPOINT $ ; warning about no file
|
; ---------------------------------------------------------------------------
; Subroutine to return Sonic's angle to 0 as he jumps
; ---------------------------------------------------------------------------
; ||||||||||||||| S U B R O U T I N E |||||||||||||||||||||||||||||||||||||||
Sonic_JumpAngle:
move.b obA... |
; A282820: Number of inequivalent ways to color the edges of a tetrahedron using at most n colors so that no color appears more than twice.
; 0,0,0,9,132,720,2580,7245,17304,36792,71640,130185,223740,367224,579852,885885,1315440,1905360,2700144,3752937,5126580,6894720,9142980,11970189,15489672,19830600,25139400,3158122... |
// --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... |
; A040252: Continued fraction for sqrt(269).
; 16,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2
mul $0,4
mov $2,$0
cmp $2,0
add $0,$2
sub $0,3
gcd $0,6
add $0,6
bin $0,2
sub $0,20... |
#pragma once
#include <iostream>
#include <cstdlib>
#define MIN 0.0000000001
class Matrix {
private:
double value[SIZE][SIZE]; // Wartosci macierzy
public:
Matrix(double [SIZE][SIZE]); // Konstruktor klasy
Matrix(); // Konstruktor klasy
Matri... |
; A000449: Rencontres numbers: number of permutations of [n] with exactly 3 fixed points.
; Submitted by Jamie Morken(s4.)
; 1,0,10,40,315,2464,22260,222480,2447445,29369120,381798846,5345183480,80177752655,1282844041920,21808348713320,392550276838944,7458455259940905,149169105198816960,3132551209175157490,689161266018... |
org 0
mayor db 0
menor db 0
LOADIM R1, #01
LOADIM R2,#042
LOADIM R3,#0A
LOADIM R4,#0F
GRT R2,R3
JCONDADDR R2mayor
ADD R5,R0,R3
JMPADDR R3mayor
R2mayor:
ADD R5,R0,R2
R3mayor:
GRTEQ R4,R5
JCONDADDR R4mayor
JMPADDR fin
R4mayor:
ADD R5,R0,R4
fin:
STORE mayor, R5
... |
; MODIFYLE DEMO 1/2012
; Andreas G. Szabo
; info@torakosmos.de
; Search in aminet for "modifyle" if you are
; missing something. Assembles with phxass.
include exec/types.i
include exec/funcdef.i
include exec/exec_lib.i
include easy.i
include utility/tagitem.i
include modifyle.i
include li... |
; A010723: Period 2: repeat (6,7).
; 6,7,6,7,6,7,6,7,6,7,6,7,6,7,6,7,6,7,6,7,6,7,6,7,6,7,6,7,6,7,6,7,6,7,6,7,6,7,6,7,6,7,6,7,6,7,6,7,6,7,6,7,6,7,6,7,6,7,6,7,6,7,6,7,6,7,6,7,6,7,6,7,6,7,6,7,6,7,6,7,6
mov $1,$0
mod $1,2
add $1,6
|
main PROC
mov eax, 5 ; move 5 to the eax register
add eax, 6 ; add 6 to the eax register
INVOKE ExitProcess, 0 ; end the program
main ENDP |
; A165676: Fourth right hand column of triangle A165674
; 50,154,342,638,1066,1650,2414,3382,4578,6026,7750,9774,12122,14818,17886,21350,25234,29562,34358,39646,45450,51794,58702,66198,74306,83050,92454,102542,113338,124866,137150,150214,164082,178778
mov $2,$0
mov $3,5
add $3,$0
add $0,$3
mov $4,$0
lpb $0
sub $0,1
... |
; A269642: Number of length-5 0..n arrays with no repeated value differing from the previous repeated value by other than plus two or minus 1.
; 12,159,796,2637,6876,15307,30444,55641,95212,154551,240252,360229,523836,741987,1027276,1394097,1858764,2439631,3157212,4034301,5096092,6370299,7887276,9680137,11784876,142404... |
/*
This file is a part of libcds - Concurrent Data Structures library
(C) Copyright Maxim Khizhinsky (libcds.dev@gmail.com) 2006-2016
Source code repo: http://github.com/khizmax/libcds/
Download: http://sourceforge.net/projects/libcds/files/
Redistribution and use in source and binary forms, with... |
/*
*
* Copyright (c) 2020 Project CHIP Authors
* Copyright (c) 2020 Google LLC.
* 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
*
* h... |
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2015 Pivotal Software, Inc.
//
// @filename:
// CEnfdProp.cpp
//
// @doc:
// Implementation of enforced property
//---------------------------------------------------------------------------
#include ... |
// Copyright 2018 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 "components/exo/wayland/zcr_keyboard_configuration.h"
#include <keyboard-configuration-unstable-v1-server-protocol.h>
#include <wayland-server-c... |
SECTION code_clib
PUBLIC fputc_cons_native
EXTERN l_tms9918_disable_interrupts
EXTERN l_tms9918_enable_interrupts_jp
INCLUDE "target/sms/sms.hdr"
EXTERN CONSOLE_YOFFSET
EXTERN CONSOLE_XOFFSET
PUBLIC fputc_vdp_offs
.fputc_cons_native
call l_tms9918_disable_interrupts
ld a, (fputc_vdp_off... |
// "Copyright [2021] <kaistshadow>"
#include <utility>
#include <iomanip>
#include <algorithm>
#include <string.h>
#include "UInt256.h"
#include "Assert.h"
using namespace libBLEEP;
uint8_t libBLEEP::UINT128_t::bits() const {
uint8_t out = 0;
if (UPPER) {
out = 64;
uint64_t up = UPPER;
... |
// Keyglove controller source code - Implementations for Bluetooth using Bluegiga's WT12 module and iWRAP
// 2015-07-03 by Jeff Rowberg <jeff@rowberg.net>
/* ============================================
Controller code is placed under the MIT license
Copyright (c) 2015 Jeff Rowberg
Permission is hereby granted, free ... |
// Copyright 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "cc/layers/tiled_layer_impl.h"
#include "cc/layers/append_quads_data.h"
#include "cc/quads/tile_draw_quad.h"
#include "cc/resources/layer_tiling... |
; Get window size for a string 1989 Jochen Merz V0.01
section utility
xdef ut_gwszs
;+++
; This routine calculates the number of lines and characters per line needed to
; put in a string into a window. The string may contain the \ characters which
; are replaced by <LF>. The pointer to t... |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2013-2018 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
* ndn-cxx library is free software: you can redistribute it and/or modify it under the
... |
#include "UI/SharedPoolWidget.h"
#include <QValidator>
SharedPoolWidget::SharedPoolWidget(QWidget* parent)
: QWidget(parent)
, ui(new Ui::SharedPoolWidget)
{
ui->setupUi(this);
connect(ui->enabledCheckBox, SIGNAL(stateChanged(int)), this, SLOT(OnChecked(int)));
}
SharedPoolWidget::SharedPoolWidget(co... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
+---------... |
; Verified:
; 2021-10-21 fail: CPU CGB E - CPU-CGB-06
; 2021-10-21 pass: CPU CGB B - CPU-CGB-02
; 2021-10-21 pass: DMG-CPU C (blob) - DMG-CPU-08
;
INCLUDE "hardware.inc"
DEF CART_COMPATIBILITY EQU CART_COMPATIBLE_DMG_GBC
INCLUDE "ly/ly.inc"
|
; A070826: One half of product of first n primes A000040.
; Submitted by Jon Maiga
; 1,3,15,105,1155,15015,255255,4849845,111546435,3234846615,100280245065,3710369067405,152125131763605,6541380665835015,307444891294245705,16294579238595022365,961380175077106319535,58644190679703485491635,3929160775540133527939545,27897... |
PAGE 90,132 ;AN000;A2
TITLE DCOPYSM.SAL - DISKCOPY SYSTEM MESSAGES
;/*
; * Microsoft Confidential
; * Copyright (C) Microsoft Corporation 1991
; * All Rights Reserved.
; */
;****************** START OF SPECIFICATIONS *****************************
; ... |
; A027953: a(0)=1, a(n) = Fibonacci(2n+4) - (2n+3).
; 1,3,14,46,133,364,972,2567,6746,17690,46345,121368,317784,832011,2178278,5702854,14930317,39088132,102334116,267914255,701408690,1836311858,4807526929,12586268976,32951280048,86267571219,225851433662,591286729822,1548008755861,4052739537820,10610209857660,2777789003... |
// ======================================================================
// \title SerialTextConverterImpl.hpp
// \author Gorang Gandhi
// \brief hpp file for SerialTextConverter component implementation class
//
// \copyright
// Copyright 2009-2015, by the California Institute of Technology.
// ALL RIGHTS RESERVED.... |
#include "ModuleNetworkingServer.h"
//////////////////////////////////////////////////////////////////////
// ModuleNetworkingServer public methods
//////////////////////////////////////////////////////////////////////
bool ModuleNetworkingServer::start(int port)
{
// TODO(jesus): TCP listen socket stuff
// - C... |
prompt_rematch:
mov rdi, rematch_prompt
mov rsi, rematch_prompt_len
call print
jmp get_user_input_rematch
handle_rematch:
cmp rax, 89
je start_game
cmp rax, 121
je start_game
cmp rax, 78
je exit
cmp rax, 110
je exit
jmp print_gameboard
|
; see: http://inform-fiction.org/zmachine/standards/z1point1/sect12.html
; globals
; SFTODODATA 3 ? DON'T KNOW IF THESE NEED TO BE INITIALISED. NOT THAT BIG.
num_default_properties !byte 0
objects_start_ptr !byte 0, 0
; object table opcodes
z_ins_get_sibling
; get_sibling object -> (result) ?(label)
!ifndef ... |
; A332243: Starhex honeycomb numbers: a(n) = 13 + 60*n + 60*n^2.
; 13,133,373,733,1213,1813,2533,3373,4333,5413,6613,7933,9373,10933,12613,14413,16333,18373,20533,22813,25213,27733,30373,33133,36013,39013,42133,45373,48733,52213,55813,59533,63373,67333,71413,75613,79933,84373
sub $1,$0
bin $1,2
mul $1,120
add $1,13
|
.global s_prepare_buffers
s_prepare_buffers:
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x10717, %rsi
nop
nop
nop
nop
and %rax, %rax
mov $0x6162636465666768, %r9
movq %r9, %xmm0
vmovups %ymm0, (%rsi)
nop
sub $47247, %rdi
lea addresses_UC_ht+0x1a717, %rsi
lea addresses_A_ht+0x5b17, %r... |
/*
* Copyright (c) 2017, 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, publi... |
TITLE Assignment 3 (Project03.asm)
; Name: Brandon Lee
; Email: leebran@onid.oregonstate.edu
; Class: CS271 Section 400
; Assignment: #3
; Due Date: 4/26/15
; Description: The third homework assignment - data validation, accumulator, I/O procedures, control structures
INCLUDE Irvine32.inc
LOWER = -... |
; A089279: a(n) = 2 + sum(k=1 to n) [(-1)^k A001511(k)].
; Submitted by Christian Krause
; 1,3,2,5,4,6,5,9,8,10,9,12,11,13,12,17,16,18,17,20,19,21,20,24,23,25,24,27,26,28,27,33,32,34,33,36,35,37,36,40,39,41,40,43,42,44,43,48,47,49,48,51,50,52,51,55,54,56,55,58,57,59,58,65,64,66,65,68,67,69,68,72
mov $1,$0
mod $0,2
add... |
; A126832: Ramanujan numbers (A000594) read mod 5.
; 1,1,2,3,0,2,1,0,2,0,2,1,2,1,0,1,1,2,0,0,2,2,2,0,0,2,0,3,0,0,2,1,4,1,0,1,1,0,4,0,2,2,2,1,0,2,1,2,3,0,2,1,2,0,0,0,0,0,0,0,2,2,2,3,0,4,1,3,4,0,2,0,2,1,0,0,2,4,0,0,1,2,2,1,0,2,0,0,0,0,2,1,4,1,0,2,1,3,4,0,2,2,2,0,0,2,1,0,0,0,2,1,2,0,0,0,4,0,1,0,3,2,4,1,0,2,1,0,4,0,2,2,0,1... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r8
push %r9
push %rax
push %rbp
push %rbx
lea addresses_D_ht+0x10dca, %rax
nop
inc %r9
mov (%rax), %r13
nop
nop
sub $35822, %r9
lea addresses_WT_ht+0x8042, %rax
nop
nop
nop
xor $52583, %r12
movw $0x6162, (%rax)
nop
nop
nop
sub $7940, %rbx
lea addres... |
extern m7_ippsGFpECESGetSize_SM2:function
extern n8_ippsGFpECESGetSize_SM2:function
extern y8_ippsGFpECESGetSize_SM2:function
extern e9_ippsGFpECESGetSize_SM2:function
extern l9_ippsGFpECESGetSize_SM2:function
extern n0_ippsGFpECESGetSize_SM2:function
extern k0_ippsGFpECESGetSize_SM2:function
extern ippcpJumpIndexForMe... |
.size 8000
.text@48
ei
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 c, 44
ld b, 90
lbegin_waitly90:
ldff a, (c)
cmp a, b
jrnz lbegin_waitly90
ld a, 11
ldff(40), a
ld hl, 8010
ld a, ff
ld(hl++), a
ld(hl... |
; Original address was $BF10
; World 6 Hammer Bro battle A
.word $0000 ; Alternate level layout
.word $0000 ; Alternate object layout
.byte LEVEL1_SIZE_01 | LEVEL1_YSTART_180
.byte LEVEL2_BGPAL_00 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18
.byte LEVEL3_TILESET_00 | LEVEL3_VSCROLL_LOCKED
.byte LEVEL4_BGBANK_INDEX(12) |... |
/*
* 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)
*
* Copyright (c) 2011 Helge Bahmann
* Copyright (c) 2013 Tim Blechmann
* Copyright (c) 2014 Andrey Semashev
*/
/*!
* \file atomic/detail/caps_gcc_sync.h... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r14
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x1b9f3, %r11
nop
nop
nop
nop
nop
xor %r14, %r14
mov (%r11), %rdi
xor $36139, %r13
lea addresses_D_ht+0x7261, %rsi
lea addresses_WC_ht+0x5f61, %rdi
nop
nop
mfence
mov $107, %rc... |
#include <headers/AccountManager.h> |
; A317614: a(n) = (1/2)*(n^3 + n*(n mod 2)).
; 1,4,15,32,65,108,175,256,369,500,671,864,1105,1372,1695,2048,2465,2916,3439,4000,4641,5324,6095,6912,7825,8788,9855,10976,12209,13500,14911,16384,17985,19652,21455,23328,25345,27436,29679,32000,34481,37044,39775,42592,45585,48668,51935,55296,58849,62500,66351,70304,74465,7... |
//
// CoopScene.hpp
// PehlaSchool
//
// Created by YongSoo Hong on 8/16/18
//
//
#pragma once
#include "cocos2d.h"
#include "ui/UIButton.h"
USING_NS_CC;
class Bird;
class LevelCurriculum;
class CoinTab;
namespace CoopSceneSpace {
class Room;
};
class CoopScene: public Layer {
public:
enum CoopType {
... |
; A099393: a(n) = 4^n + 2^n - 1.
; 1,5,19,71,271,1055,4159,16511,65791,262655,1049599,4196351,16781311,67117055,268451839,1073774591,4295032831,17180000255,68719738879,274878431231,1099512676351,4398048608255,17592190238719,70368752566271,281474993487871,1125899940397055,4503599694479359,18014398643699711,7205759430636... |
; A013822: a(n) = 2^(5*n + 1).
; 2,64,2048,65536,2097152,67108864,2147483648,68719476736,2199023255552,70368744177664,2251799813685248,72057594037927936,2305843009213693952,73786976294838206464,2361183241434822606848,75557863725914323419136,2417851639229258349412352,77371252455336267181195264,24758800785707605497982484... |
; A342914: Number of grid points covered by a truncated triangle drawn on the hexagonal lattice with the short sides having length n and the long sides length 2*n.
; 1,12,36,73,123,186,262,351,453,568,696,837,991,1158,1338,1531,1737,1956,2188,2433,2691,2962,3246,3543,3853,4176,4512,4861,5223,5598,5986,6387,6801,7228,76... |
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
video.loadMovie("../../../Content/handsTrees.mov"); //Load the video file
video.play(); //Start the video to play
}
//--------------------------------------------------------------
void ofApp::upda... |
// Copyright Kevlin Henney, 2000-2005.
// Copyright Alexander Nasonov, 2006-2010.
// Copyright Antony Polukhin, 2011-2020.
//
// 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)
//
// what: lexical_cast custom keywo... |
/*
* This is the source code of tgnet library v. 1.0
* It is licensed under GNU GPL v. 2 or later.
* You should have received a copy of the license in this archive (see LICENSE).
*
* Copyright Nikolai Kudashov, 2015.
*/
#include <stdlib.h>
#include <algorithm>
#include <openssl/rand.h>
#include <openssl/sha.h>
#... |
#include "hoSPIRIT2DTDataFidelityOperator.h"
namespace Gadgetron
{
template <typename T>
hoSPIRIT2DTDataFidelityOperator<T>::hoSPIRIT2DTDataFidelityOperator(std::vector<size_t>* dims) : BaseClass(dims)
{
this->use_non_centered_fft_ = false;
this->no_null_space_ = true;
}
template <typename T>
hoSPIRIT2DTDat... |
_grep: file format elf32-i386
Disassembly of section .text:
00001000 <main>:
}
}
int
main(int argc, char *argv[])
{
1000: f3 0f 1e fb endbr32
1004: 8d 4c 24 04 lea 0x4(%esp),%ecx
1008: 83 e4 f0 and $0xfffffff0,%esp
100b: ff 71 fc pushl -0x... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r8
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x1921b, %rbx
nop
nop
nop
inc %rdi
movl $0x61626364, (%rbx)
nop
nop
nop
sub $18396, %r10
lea addresses_UC_ht+0x4f1b, %r8
sub $49530, %rbx
movl $0x61626364, (%r8)
nop
nop
nop
nop... |
;
; ZX Spectrum specific routines
; by Stefano Bodrato, 14/09/2006
; Improved by Antonio Schifano, Dec 2008
;
; int zx_break();
;
; Check if the CAPS-SPACE (BREAK) key is being pressed
; ( 1 = pressed; 0 = not pressed )
;
; Caps-shift + space version A.Schifano 29/12/2008
;
; $Id: zx_break.asm,v 1.2 2008/12/31 13... |
0D00 06 01
0D02 78
0D03 DF 68
0D05 DF 69
0D07 78
0D08 CD 00 0E
0D0B DF 68
0D0D DF 6A
0D0F 04
0D10 78
0D11 FE 0E
0D13 C2 03 0D
0D16 DF 5B
0E00 57
0E01 CB 27
0E03 CB 27
0E05 82
0E06 C9
|
//
// Copyright (c) 2013-2022 The SRS Authors
//
// SPDX-License-Identifier: MIT or MulanPSL-2.0
//
#ifndef SRS_KERNEL_RTC_RTCP_HPP
#define SRS_KERNEL_RTC_RTCP_HPP
#include <srs_core.hpp>
#include <vector>
#include <set>
#include <map>
#include <srs_kernel_buffer.hpp>
#include <srs_kernel_rtc_rtp.hpp>
const int kR... |
/*
* Copyright (c) 2016-2019 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
* 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
* ri... |
; 2018 July feilipu
SECTION code_clib
SECTION code_math
PUBLIC l_z80_zxn_mulu_24_16x8
l_z80_zxn_mulu_24_16x8:
; multiplication of 16-bit number and 8-bit number into a 24-bit product
;
; enter : hl = 16-bit multiplier = x
; e = 8-bit multiplicand = y
;
; exit : ahl = 24-bit prod... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r8
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x1e1cd, %rsi
lea addresses_D_ht+0x7acd, %rdi
nop
nop
add %r11, %r11
mov $59, %rcx
rep movsq
nop
nop
nop
nop
nop
sub $13689, %r8
lea addresses_WT_ht+0x109cd, %r12
nop
nop
nop
n... |
; A168842: Number of reduced words of length n in Coxeter group on 21 generators S_i with relations (S_i)^2 = (S_i S_j)^20 = I.
; 1,21,420,8400,168000,3360000,67200000,1344000000,26880000000,537600000000,10752000000000,215040000000000,4300800000000000,86016000000000000,1720320000000000000,34406400000000000000
add $0,1... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <cmath>
#include "itt.hpp"
#include <ngraph/validation_util.hpp>
#include "ngraph/builder/make_constant.hpp"
#include "ngraph/op/add.hpp"
#include "ngraph/op/divide.hpp"
#include "ngraph/op/erf.hpp"
#include "ngraph/op/exp... |
SECTION bss_clib
PUBLIC __graphics_retaddr
__graphics_retaddr:
defw 0
|
; ********************************************************************************************
; ********************************************************************************************
;
; Name : dec.asm
; Purpose : ..
; Created : 15th Nov 1991
; Updated : 4th Jan 2021
; Authors : Fred Bowen
;
; *****... |
#pragma once
#ifdef _DEBUG
#include <iostream>
#define LOG(m) std::cout << "Blib: " << m << std::endl
#else // _DEBUG
#define LOG(m)
#endif // !_DEBUG
#define GM_EXPORT extern "C" __declspec (dllexport)
#define GM_TRUE 1.0
#define GM_FALSE 0.0
#define ID_NONE -1.0
typedef double gmreal_t;
t... |
; A054406: Beatty sequence for (3+sqrt 3)/2; complement of A022838.
; 2,4,7,9,11,14,16,18,21,23,26,28,30,33,35,37,40,42,44,47,49,52,54,56,59,61,63,66,68,70,73,75,78,80,82,85,87,89,92,94,97,99,101,104,106,108,111,113,115,118,120,123,125,127,130,132,134,137,139,141,144,146,149,151,153,156,158,160,163,165,167,170,172,175,... |
;/*
; * FreeRTOS Kernel V10.3.0
; * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
; *
; * 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,... |
; A159515: Numerator of Hermite(n, 4/15).
; Submitted by Jon Maiga
; 1,8,-386,-10288,438796,22028768,-811060856,-65966160448,2027112412816,253695076915328,-6180244656582176,-1191069803371633408,21063652623108703936,6600286159191690034688,-70420078571652397748096,-42145163431480866400519168,138174222906806753595494656,3... |
#include <fc/interprocess/mmap_struct.hpp>
#include <fc/filesyCC.hpp>
#include <fc/io/fstream.hpp>
#include <string.h>
#include <algorithm>
namespace fc
{
namespace detail
{
size_t mmap_struct_base::size()const { return _mapped_region->get_size(); }
void mmap_struct_base::flush()
{
... |
// Copyright (c) 2018 The PIVX developers
// Copyright (c) 2018 The DividendCash developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/test/unit_test.hpp>
#include <tinyformat.h>
#include <utilmoneystr.h... |
; Preset locations
preset_lownmg_esc_bed:
db $02 ; Dungeon
dw $0104 ; Room Index
dw $2110 ; BG1 Vertical Scroll
dw $2110 ; BG2 Vertical Scroll
dw $0900 ; BG1 Horizontal Scroll
dw $0900 ; BG2 Horizontal Scroll
dw $0940 ; Link X
dw $215A ; Link Y
dw $017F ; Camera X
dw $017F ; Camera Y
dw $0816 ; Door Settings
dw $2100 ... |
; A117802: Numbers with an "a" in Dutch.
; 8,12,28,38,48,58,68,78,88,98,108,118,128,138,148,158,168,178,188,198,208,218,228,238,248,258,268
mul $0,5
lpb $0,1
sub $0,3
mul $0,2
lpe
mov $1,$0
mul $1,2
add $1,8
|
; A332442: Triangle read by rows, T(n,k) is the number of regular triangles of length k (in some length unit), for k from {1, 2, ... , n}, in a matchstick arrangement with enclosing triangle of length n, but only triangles with orientation opposite to the enclosing triangle are counted.
; 0,1,0,3,0,0,6,1,0,0,10,3,0,0,0... |
.386
STACK SEGMENT USE16 STACK
DB 200 DUP(0)
STACK ENDS
DATA SEGMENT USE16
BUF DB 0
DATA ENDS
CODE SEGMENT USE16
ASSUME CS:CODE,DS:DATA,SS:STACK
START:
MOV AX,DATA
MOV DS,AX
IO MACRO A,B
MOV DL,A
MOV AH,B
INT 21H
ENDM
LP1: IO 0,1
CMP AL,'Q'
JE OVER
CMP AL,'q'
JE OVER
SUB AL,30H
OUT 70H... |
#include "MockJenkinsManager.h"
#include <QStringList>
#include <QFile>
MockJenkinsManager::MockJenkinsManager(QObject *parent)
: BaseJenkinsManager(parent)
{
}
MockJenkinsManager::~MockJenkinsManager()
{
}
bool MockJenkinsManager::getStatus(const QString &fileName)
{
m_error.clear();
// clear job list
qDel... |
; A208375: Number of n X 4 0..1 arrays avoiding 0 0 0 and 1 1 1 horizontally and 0 0 1 and 1 0 1 vertically.
; 10,100,240,420,640,900,1200,1540,1920,2340,2800,3300,3840,4420,5040,5700,6400,7140,7920,8740,9600,10500,11440,12420,13440,14500,15600,16740,17920,19140,20400,21700,23040,24420,25840,27300,28800,30340,31920,335... |
; A033547: Otto Haxel's guess for magic numbers of nuclear shells.
; 0,2,6,14,28,50,82,126,184,258,350,462,596,754,938,1150,1392,1666,1974,2318,2700,3122,3586,4094,4648,5250,5902,6606,7364,8178,9050,9982,10976,12034,13158,14350,15612,16946,18354,19838,21400,23042,24766,26574,28468
mov $1,$0
mul $1,$0
add $1,5
mul $1,$... |
section .multiboot_header
header_start:
dd 0xe85250d6 ; magic number
dd 0 ; architecture (0 for protected mode i386, 4 for MIPS)
dd header_end - header_start ; header length
; checksum
dd 0x100000000 - (0xe85250d6 + 0 + (header_end - header_start))
; The a... |
; A168834: Number of reduced words of length n in Coxeter group on 13 generators S_i with relations (S_i)^2 = (S_i S_j)^20 = I.
; 1,13,156,1872,22464,269568,3234816,38817792,465813504,5589762048,67077144576,804925734912,9659108818944,115909305827328,1390911669927936,16690940039135232,200291280469622784
add $0,1
mov $3... |
; A060548: a(n) is the number of D3-symmetric patterns that may be formed with a top-down equilateral triangular arrangement of closely packed black and white cells satisfying the local matching rule of Pascal's triangle modulo 2, where n is the number of cells in each edge of the arrangement. The matching rule is such... |
SECTION code_clib
SECTION code_fp_math48
PUBLIC islessgreater
EXTERN cm48_sccz80_islessgreater
defc islessgreater = cm48_sccz80_islessgreater
|
/**
* This file is part of dvo.
*
* Copyright 2012 Christian Kerl <christian.kerl@in.tum.de> (Technical University of Munich)
* For more information see <http://vision.in.tum.de/data/software/dvo>.
*
* dvo is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public... |
// Copyright (c) 2011-2019 The Hiphopcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <bench/bench.h>
#include <policy/policy.h>
#include <test/util/setup_common.h>
#include <txmempool.h>
static vo... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
/* This file is part of the HiGHS linear optimization suite */
/* */
/* Written an... |
//
// Endian.hpp
// This file is part of the "Buffers" project and released under the MIT License.
//
// Created by Samuel Williams on 29/9/2006.
// Copyright, 2016, by Samuel Williams. All rights reserved.
//
#pragma once
#include <cstddef>
namespace Buffers
{
enum class Endian {
BIG,
LITTLE
};
#if __BYT... |
.module Nostromo
Code.Main:
.echoln "Nostromo"
.echoln "====================================="
#include "Options.inc"
#define neg_hl() ld a,h \ cpl \ ld h,a \ ld a,l \ cpl \ ld l,a \ inc hl
#define neg_de() ld a,d \ cpl \ ld d,a \ ld a,e \ cpl \ ld e,a \ inc de
#define neg_bc() ld a,b \ cpl \ ld b,a \ ld a,c... |
; A142064: Primes congruent to 26 mod 33.
; Submitted by Jon Maiga
; 59,191,257,389,521,587,653,719,983,1049,1181,1511,1709,1907,1973,2039,2237,2633,2699,2897,2963,3359,3491,3557,3623,3821,4019,4217,4283,4349,4481,4547,4679,4877,4943,5009,5273,5471,5669,5801,5867,6131,6197,6263,6329,6659,6791,6857,7121,7187,7253,7451,7... |
ItemNames::
db "MASTER BALL@"
db "ULTRA BALL@"
db "BRIGHTPOWDER@"
db "GREAT BALL@"
db "# BALL@"
db "TERU-SAMA@"
db "BICYCLE@"
db "MOON STONE@"
db "ANTIDOTE@"
db "BURN HEAL@"
db "ICE HEAL@"
db "AWAKENING@"
db "PARLYZ HEAL@"
db "FULL RESTORE@"
db "MAX POTION@"
db "HYPER POTION@"
db "SUPER POTION@"
db "P... |
; SMSQmulator Interrupt server V1.00 (c) W. Lenerz 2012
section qd
xdef qd_int2
include 'dev8_keys_sys'
include 'dev8_keys_psf'
include 'dev8_keys_qlhw'
include 'dev8_keys_iod'
include 'dev8_smsq_smsq_base_keys'
;+++
; SMSQmulator Interrupt Server - there is only one interrupt FTTB - 50 Hz frame
;---
qd_in... |
#include "xwidgets/xtextarea.hpp"
namespace xw
{
template class XWIDGETS_API xmaterialize<xtextarea>;
template xmaterialize<xtextarea>::xmaterialize();
template class XWIDGETS_API xtransport<xmaterialize<xtextarea>>;
}
|
; A283419: a(n) is the multiplicative inverse of 3 modulo the n-th prime (n > 3).
; 2,5,4,9,6,13,8,10,21,25,14,29,16,18,20,41,45,24,49,53,28,30,65,34,69,36,73,38,85,44,46,93,50,101,105,109,56,58,60,121,64,129,66,133,141,149,76,153,78,80,161,84,86,88,90,181,185,94,189,98,205,104,209,106,221,225
add $0,1
seq $0,296058 ;... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.