text stringlengths 1 1.05M |
|---|
.xlist
include xsum.x86
.list
|
; A162762: Minimal number of floors an elevator must move to transport n passengers initially waiting at floors i = 1, ..., n to their destinations, floor n+1-i (= n, ..., 1), if the elevator can transport at most C = 2 persons at a time and starts at floor 1, and no one may get off the elevator before reaching their d... |
/*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "PathOpsQuadIntersectionTestData.h"
#include "PathOpsTestCommon.h"
#include "SkIntersections.h"
#include "SkPathOpsRect.h"
#include "SkReduceOrder.h"
#include "Test.h"... |
; A140668: a(n) = n + A140664(n).
; Submitted by Christian Krause
; 2,0,0,4,0,7,0,8,9,11,0,12,0,15,16,16,0,18,0,20,22,23,0,24,25,27,27,28,0,29,0,32,34,35,36,36,0,39,40,40,0,41,0,44,45,47,0,48,49,50,52,52,0,54,56,56,58,59,0,60,0,63,63,64,66,65,0,68,70,69,0,72,0,75,75,76,78,77,0,80,81,83,0,84,86,87,88,88,0,90,92,92,94,95... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. Th... |
#ifndef INTERRUPTS_HPP
#define INTERRUPTS_HPP
#include <memory>
#include <vector>
#include <boost/program_options.hpp>
#include "global_stats_logger.hpp"
void init_interrupts_logger(boost::program_options::variables_map& vm,
std::vector<std::shared_ptr<global_stats_logger> >& loggers);
#endif
|
;; 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
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; RhpWaitForSuspend -- rare path for RhpPIn... |
21
50
C0
7E
23
86
32
52
C0
76
|
extern rand
extern font
public _scroll
public _scrollInit
public _scrollReset
section CODE_2
defc xPos=0x07 ; Start column of message
defc Y=0x01 ; Start character row of message
defc WIDTH=0x12 ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r15
push %r8
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0xb0f4, %r8
nop
nop
nop
nop
xor %rsi, %rsi
movb $0x61, (%r8)
sub %r9, %r9
lea addresses_normal_ht+0x150f4, %rax
nop
nop
nop
and $40724, %r11
mov (%rax), %r15
nop
and %... |
// 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 "content/renderer/media/rtc_video_decoder_factory.h"
#include <memory>
#include "content/renderer/media/rtc_video_decoder.h"
#include "media/re... |
include uXmx86asm.inc
option casemap:none
ifndef __X64__
.686P
.xmm
.model flat, c
else
.X64P
.xmm
option win64:11
option stackbase:rsp
endif
option frame:auto
.code
align 16
uXm_has_SSE3_AES proto VECCALL (byte)
align 16
uXm_has_SSE3_AES proc VECCALL (byte)
mov eax, ... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
; Module Name:
;
; WriteDr5.Asm
;
; Abstract:
;
; AsmWriteDr5 function
;
; Notes:
;
;------------... |
#include <StdAfx.h>
#include "ActorControllerComponent.h"
#include <CryCore/StaticInstanceList.h>
#include "CrySchematyc/Env/Elements/EnvComponent.h"
#include "CrySchematyc/Env/IEnvRegistrar.h"
#include "Components/Player/PlayerComponent.h"
namespace Chrysalis
{
// Definition of the state machine that controls actor... |
.text
.global _main
_main:
xorq %rax, %rax
movq $2, %rbx
outer:
movq $3, %rcx
inner:
incq %rax
decq %rcx
cmpq $0, %rcx
jne inner
decq %rbx
cmpq $0, %rbx
jne outer
movq $60, %rax
xorq %rdi, %rdi
syscall
.end
|
#pragma once
#include "../base_op.hpp"
#include <functional>
namespace lol {
template<typename T>
inline Result<json> DeleteLolLobbyTeamBuilderV1MatchmakingSearch(T& _client)
{
try {
return ToResult<json>(_client.https.request("delete", "/lol-lobby-team-builder/v1/matchmaking/search?" +
SimpleW... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2018 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... |
// Given numRows, generate the first numRows of Pascal's triangle.
//
//
// For example, given numRows = 5,
// Return
//
// [
// [1],
// [1,1],
// [1,2,1],
// [1,3,3,1],
// [1,4,6,4,1]
// ]
//
//
class Solution {
public:
vector<vector<int>> generate(int numRows) {
vector<vector<int>> result... |
/**
* b_plus_tree_test.cpp
*/
#include <algorithm>
#include <chrono>
#include <cstdio>
#include <functional>
#include <iostream>
#include <thread>
#include <random>
#include "buffer/buffer_pool_manager.h"
#include "common/logger.h"
#include "index/b_plus_tree.h"
#include "vtable/virtual_table.h"
#include "gtest/gte... |
;------------------------------------------------------------------------------ ;
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution.... |
; A094979: Duplicate of A065565.
; 1,1,1,1,2,3,3,4,5,7,9,11,14,18,22,28,35,44,55,69,86,108,135,169,211
mov $1,5
pow $1,$0
lpb $0
sub $0,1
div $1,4
lpe
|
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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... |
0D00 3E 0F
0D02 E6 63
0D04 F6 2C
0D06 EE 06
0D08 2F
0D09 DF 5B
|
; A086952: n^2*4^n/4.
; 0,1,16,144,1024,6400,36864,200704,1048576,5308416,26214400,126877696,603979776,2835349504,13153337344,60397977600,274877906944,1241245548544,5566277615616,24807731101696,109951162777600
mov $1,2
pow $1,$0
mul $1,$0
pow $1,2
div $1,4
|
aLine 0
gNew basePtr
gMoveNext basePtr, Root
gNewVPtr maxNext
gNewVPtr rootNext
gMoveNext rootNext, Root
aLine 1
gNew basePrev
gMove basePrev, Root
gNew maxPtr, 1085, 800
gNew maxPrev, 1085, 860
gNew currentPtr, 1085, 920
gNew currentPrev, 1085, 980
aLine 2
gBeq basePtr, Root, 45
aLine 4
gMove maxPtr, basePtr
aLine... |
;--------------------------------------------------------------
; ZX81 HRG library for the Memotech expansion
; by Stefano Bodrato, Feb. 2010
;--------------------------------------------------------------
;
; Set TEXT mode
;
; $Id: mt_hrg_off.asm,v 1.7 2016-06-27 20:26:33 dom Exp $
;
SECTION code_clib
PUBLIC mt_h... |
SetHPPal::
; Set palette for hp bar pixel length e at hl.
call GetHPPal
ld [hl], d
ret
GetHPPal::
; Get palette for hp bar pixel length e in d.
ld d, HP_GREEN
ld a, e
cp (HP_BAR_LENGTH_PX * 50 / 100) ; 24
ret nc
inc d ; HP_YELLOW
cp (HP_BAR_LENGTH_PX * 21 / 100) ; 10
ret nc
inc d ; HP_RED
ret
|
// Copyright 2020 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 "chromecast/media/cma/backend/proxy/cma_backend_proxy.h"
#include "base/bind.h"
#include "base/memory/ref_counted.h"
#include "chromecast/media/... |
// Copyright 2012 the V8 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.
#include "src/parsing/parser.h"
#include <algorithm>
#include <memory>
#include "src/ast/ast-function-literal-id-reindexer.h"
#include "src/ast/ast-tr... |
; A267883: Number of OFF (white) cells in the n-th iteration of the "Rule 233" elementary cellular automaton starting with a single ON (black) cell.
; 0,3,2,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0... |
db 0 ; 268 DEX NO
db 50, 35, 55, 15, 25, 25
; hp atk def spd sat sdf
db BUG, BUG ; type
db 120 ; catch rate
db 72 ; 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/hoenn/cascoon/front.dimens... |
//*****************************************************************************
// Copyright 2017-2020 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 (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "pch.h"
#include "TestCommon.h"
#include "TestSource.h"
#include <CompositeSource.h>
using namespace std::string_literals;
using namespace std::string_view_literals;
using namespace TestCommon;
using namespace AppInstaller;
... |
MVI D,01
MVI E,01
LDA 9050
JUMP: SUB D
JZ NEXT
INR D
INR D
INR E
JMP JUMP
NEXT: MOV A,E
STA 9051
HLT
|
;***************************************************************************
; DEFINE SECTION
;***************************************************************************
include "VECTREX.I"
; start of vectrex memory with cartridge name...
org 0
;*************************************... |
#include <iostream>
#include <functional>
using namespace std;
class A {
public:
A():n(1) {
cout << this << " : " << __PRETTY_FUNCTION__ << ", " << n << endl;
}
A(int a):n(a) {
cout << this << " : " << __PRETTY_FUNCTION__ << ", " << n << endl;
}
A(const A& a) {
this->n = a.n;
cout << this << " : " << __... |
#include <mbgl/renderer/layers/render_circle_layer.hpp>
#include <mbgl/renderer/buckets/circle_bucket.hpp>
#include <mbgl/renderer/render_tile.hpp>
#include <mbgl/renderer/paint_parameters.hpp>
#include <mbgl/programs/programs.hpp>
#include <mbgl/programs/circle_program.hpp>
#include <mbgl/tile/tile.hpp>
#include <mbgl... |
;
; jccolext.asm - colorspace conversion (64-bit SSE2)
;
; Copyright (C) 2009, D. R. Commander.
;
; Based on the x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYASAKA Masaru.
; For conditions of distribution and use, see copyright notice in jsimdext.inc
;
; This file should be assembled with NASM ... |
//===- ASTStructuralEquivalence.cpp ---------------------------------------===//
//
// 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
//
//===---------------------------... |
#include <string>
#include <boost/fusion/adapted/struct/adapt_struct.hpp>
#include <boost/optional/optional.hpp>
#include <boost/variant/variant.hpp>
namespace blackhole {
inline namespace v1 {
namespace formatter {
namespace string {
/// Represents parser grammar result.
/// Given: `{...:{{name}={value}:p}{, :s}>50... |
; creating /bin/sh
; IA32 assembly
global _start
section .text
_start:
; First we need to create socket. When we look at System Call numbers from linux header, number 102 is number for socketcall.
;socketcall handles socket, bind, listen, accept
;root@kali:~# cat /usr/include/linux/net.h tells
;SYS_SOCKET 1
;SYS_... |
// ref: 0x1000855D
int Modem_1000855D() { return 0; }
/* {
return dword_1002A124;
} */
// 1002A124: using guessed type int dword_1002A124;
// ref: 0x10008563
HWND __fastcall Modem_10008563(HWND hDlg, const char *a2, int a3) { return 0; }
/* {
HWND v3; // esi
const char *v4; // ebp
HWND result; // eax
... |
; https://the-linux-channel.the-toffee-project.org/index.php?page=5-tutorials-a-linux-system-call-in-c-without-a-standard-library
%include "sys-syscall.asm"
section .text
global _start, fprintf, printf, write, exit, mmap, munmap
extern main, fprintf_impl, printf_impl, check_alloc
_start:
xor rbp, rbp
pop rd... |
// Copyright (C) 2004, 2005 Arkadiy Vertleyb
// Copyright (C) 2005 Peder Holt
// 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)
#ifndef BOOST_TYPEOF_TYPEOF_IMPL_HPP_INCLUDED
#define BOOST_TYPEOF_TYPEOF_IMPL_HPP_INCLU... |
; ===============================================================
; Mar 2014
; ===============================================================
;
; int b_vector_empty(b_vector_t *v)
;
; Return non-zero if the vector is empty.
;
; ===============================================================
SECTION code_clib
SECTIO... |
// IRQ vector.
.db -1
// NMI vector.
.db -1
// Entry vector.
.db entry
entry:
MOV ST, 0xffff
MOV R0, 21
MOV R1, 11
MOV.JSR PC, mul
DEC PC
// Multiplies R0 by R1, result in R0.
mul:
XOR R2, R2
.loop:
CMP1 R0
MOV.ULT PC, .exit
SHR R0
MOV.CC PC, .skipadd
ADD R2, R1
.skipadd:
SHL R1
MOV PC, .l... |
; ST7920 LCD controller implementation for Z-Fighter
; by Tangent 2021
EXTERN PORTB_ACC
EXTERN CTRL_ACC
EXTERN LCD_E_LO
EXTERN LCD_WR
EXTERN LCD_RD
EXTERN LCD_INST
EXTERN LCD_DATA
EXTERN LCD_BL_OFF
SECTION code_user
PUBLIC _lcd ; Uses FASTCALL. HL = *bitmap
_lcd:
LCD:
LD (UPRBMP),HL ... |
; "Rorschach test"
; Not at all what it was supposed to be,
; but it turns out pretty cool and can
; create some interesting patterns.
lda #8
tax
dr:
sta $3cb,x
sta $40b,x
dex
bpl dr
sta $3f3
sta $3eb
lda #1
sta $3ec
ldx #255
mk:
lda $fe
sta $1200,x
lda $fe
sta $1300,x
lda $fe
sta $... |
#include <iostream>
#include <algorithm>
#include <vector>
#include <stack>
#define pii pair <int,int>
#define pll pair <long long,long long>
#define sc scanf
#define pf printf
#define Pi 2*acos(0.0)
#define ms(a,b) memset(a, b, sizeof(a))
#de... |
// Copyright (c) 2012-2017, The CryptoNote developers, The Bytecoin developers
// Copyright (c) 2018-2019, The DeployCoin Developers
//
// Please see the included LICENSE file for more information.
#include "InterruptedException.h"
namespace
{
#ifdef MSVC
char suppressMSVCWarningLNK4221;
#endif
} // namespace
|
/***********************************************************************
created: Jan 11 2006
author: Tomas Lindquist Olsen
purpose: Implements interface for the WindowRenderer base class
*************************************************************************/
/*********************************... |
#include <DataTypes/DataTypeString.h>
#include <DataTypes/DataTypeDate.h>
#include <DataTypes/DataTypeDateTime.h>
#include <DataTypes/DataTypeDateTime64.h>
#include <Columns/ColumnString.h>
#include <Functions/IFunctionImpl.h>
#include <Functions/FunctionHelpers.h>
#include <Functions/FunctionFactory.h>
#include <Func... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r9
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x16741, %rsi
lea addresses_A_ht+0x21fd, %rdi
and $48749, %r13
mov $119, %rcx
rep movsw
nop
cmp $19932, %rdx
lea addresses_WT_ht+0x3c55, %rsi
lea addresses_UC_ht+0x6e81, %rdi
n... |
.include "monitor.h"
.segment "BSS"
.segment "CODE0"
.org $0000
;jsr monitor
.segment "VECTORS"
.word $4000
.word $4000
.word $4000
|
eor ({z1}),y
beq !+
lda #1
!:
eor #1
|
page ,132
title strncpy - copy at most n characters of string
;***
;strncpy.asm - copy at most n characters of string
;
; Copyright (c) 1985-2001, Microsoft Corporation. All rights reserved.
;
;Purpose:
; defines strncpy() - copy at most n characters of string
;
;Revision Hist... |
; A284621: Positions of 0 in A284620.
; 1,5,11,15,21,27,31,37,41,47,53,57,63,69,73,79,83,89,95,99,105,109,115,121,125,131,137,141,147,151,157,163,167,173,179,183,189,193,199,205,209,215,219,225,231,235,241,247,251,257,261,267,273,277,283,287,293,299,303,309,315,319,325,329,335,341,345,351,357,361,367,371,377,383,387,39... |
#include "FirmwareControl.h"
namespace WPEFramework {
namespace Plugin {
SERVICE_REGISTRATION(FirmwareControl, 1, 0);
/* virtual */ const string FirmwareControl::Initialize(PluginHost::IShell* service)
{
ASSERT(service != nullptr);
Config config;
config.FromString(service->ConfigL... |
#!/usr/local/bin/zasm -o original/
; ================================================================
; Example source for target 'ace'
; Emulator snapshot format for Jupiter ACE
; Copyright (c) Günter Woigk 1994 - 2015
; mailto:kio@little-bat.de
; ================================================================
... |
; A199755: 5*11^n+1.
; 6,56,606,6656,73206,805256,8857806,97435856,1071794406,11789738456,129687123006,1426558353056,15692141883606,172613560719656,1898749167916206,20886240847078256,229748649317860806,2527235142496468856,27799586567461157406,305795452242072731456,3363749974662800046006,37001249721290800506056,40701374... |
\ ******************************************************************************
\
\ ELITE-A SHIP BLUEPRINTS FILE T
\
\ Elite-A is an extended version of BBC Micro Elite by Angus Duggan
\
\ The original Elite was written by Ian Bell and David Braben and is copyright
\ Acornsoft 1984, and the extra code in Elite-A is co... |
/**
* @file
*
* @brief This file specifies a lexer that scans a subset of YAML.
*
* The lexer uses the same idea as the scanner of `libyaml` (and various other
* YAML libs) to detect simple keys (keys with no `?` prefix).
*
* For a detailed explanation of the algorithm, I recommend to take a look at
* the scan... |
; $Id: vboxport.asm 69500 2017-10-28 15:14:05Z vboxsync $
;; @file
; asm specifics
;
;
; Copyright (C) 2013-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 redistribute it and/or modify it under ... |
_UndergroundPathEntRoute7Text1::
text "I heard a sleepy"
line "#MON appeared"
cont "near CELADON CITY."
done
|
; A098605: Positive integers n such that 2n - 17 is prime.
; Submitted by Jon Maiga
; 10,11,12,14,15,17,18,20,23,24,27,29,30,32,35,38,39,42,44,45,48,50,53,57,59,60,62,63,65,72,74,77,78,83,84,87,90,92,95,98,99,104,105,107,108,114,120,122,123,125,128,129,134,137,140,143,144,147,149,150,155,162,164,165,167,174,177,182,183... |
#include <Tempest/Application>
#include <Tempest/Pixmap>
#include <Tempest/File>
int main() {
Tempest::Pixmap p;
p.load("data/rocks.png");
p.setFormat( Tempest::Pixmap::Format_ETC1_RGB8 );
p.save("data/rocks.ktx");
p.setFormat( Tempest::Pixmap::Format_RGB );
p.save("data/rocks_test_uncompressed.png");
... |
SECTION code_fp_math16
PUBLIC cm16_sdcc___h2slong
EXTERN cm16_sdcc_read1
EXTERN asm_f24_f16
EXTERN asm_i32_f24
.cm16_sdcc___h2slong
call cm16_sdcc_read1
call asm_f24_f16
jp asm_i32_f24
|
; A100832: Amenable numbers: n such that there exists a multiset of integers (s(1), ..., s(n)) whose size, sum and product are all n.
; 1,5,8,9,12,13,16,17,20,21,24,25,28,29,32,33,36,37,40,41,44,45,48,49,52,53,56,57,60,61,64,65,68,69,72,73,76,77,80,81,84,85,88,89,92,93,96,97,100,101,104,105,108,109,112,113,116,117,120,... |
; A266591: Middle column of the "Rule 37" elementary cellular automaton starting with a single ON (black) cell.
; 1,1,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,... |
%macro imprimir 2 ; nro de params
mov eax, 4
mov ebx, 1
mov ecx, %1 ; primer param
mov edx, %2 ; segundo param
int 0x80
%endmacro
%macro leer 2
mov eax, 3 ; leer datos
mov ebx, 0 ; device a leer es el teclado
mov ecx, %1 ; guardar
mov edx, %2 ; numero de bytes
int 0x80
%endmacro... |
org 100h
include "emu8086.inc"
.model small
.stack 100h
.data
.code
main proc
call hello_world
print "i am main function "
mov ah,4ch
int 21h
main endp
DEFINE_SCAN_NUM
DEFINE_PRINT_NUM
DEFINE_PRINT_NUM_UNS
DEFINE_PR... |
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: SndPlay (Sample PC GEOS application)
FILE: sndplay.asm
REVISION HISTORY:
Name Date Description
---- ---- -----------
TS 6/10/93 Initial versi... |
; A082605: Using Euler's 6-term sequence A014556, we define the partial recurrence relation a(0)=2, a(1)=3, a(2)=5; a(k) = 2*a(k-1) - 1 + (-1)^(k-1)*2^(k-2), 3 <= k <= 5.
; 2,3,5,11,17,41,65,161,257,641,1025,2561,4097,10241,16385,40961,65537,163841,262145,655361,1048577,2621441,4194305,10485761,16777217,41943041,671088... |
; A055269: a(n) = 4*a(n-1) - a(n-2) + 3 with a(0)=1, a(1)=7.
; 1,7,30,116,437,1635,6106,22792,85065,317471,1184822,4421820,16502461,61588027,229849650,857810576,3201392657,11947760055,44589647566,166410830212,621053673285,2317803862931,8650161778442,32282843250840,120481211224921,449642001648847,1678086795370470,626270... |
;; xOS32
;; Copyright (C) 2016-2017 by Omar Mohammad.
use32
KERNEL_HEAP = VBE_BACK_BUFFER + VBE_BUFFER_SIZE + 0x1000000
USER_HEAP = KERNEL_HEAP + 0x8000000 ; 128 MB
KMALLOC_FLAGS = PAGE_PRESENT OR PAGE_WRITEABLE
MALLOC_FLAGS = PAGE_PRESENT OR PAGE_WRITEABLE OR PAGE_USER
; kmalloc:
; Allocates memory in the... |
//===- SelectionDAGISel.cpp - Implement the SelectionDAGISel class --------===//
//
// 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
//
//===---------------------------... |
; A120198: a(1)=5; a(n)=floor((44+sum(a(1) to a(n-1)))/8).
; 5,6,6,7,8,9,10,11,13,14,16,18,20,23,26,29,33,37,41,47,52,59,66,75,84,94,106,119,134,151,170,191,215,242,272,306,344,387,436,490
mov $2,2
mov $7,$0
lpb $2,1
mov $0,$7
sub $2,1
add $0,$2
mov $5,0
lpb $0,1
sub $0,1
mov $4,$5
add $5,4
d... |
; A210379: Number of 2 X 2 matrices with all terms in {0,1,...,n} and odd trace.
; 0,8,36,128,300,648,1176,2048,3240,5000,7260,10368,14196,19208,25200,32768,41616,52488,64980,80000,97020,117128,139656,165888,195000,228488,265356,307328,353220,405000,461280,524288,592416,668168,749700,839808,936396,1042568,1155960,12800... |
//===- MemoryBuiltins.cpp - Identify calls to memory builtins -------------===//
//
// 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
//
//===---------------------------... |
/*
MIT License
Copyright (c) 2020 Jonathan Mendez
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, publis... |
#include "widget.h"
#include <QApplication>
int main(int argc, char* argv[])
{
QApplication a(argc, argv);
Widget w;
w.show();
return a.exec();
}
|
; Arquivo: Factorial.nasm
; Curso: Elementos de Sistemas
; Criado por: Luciano Soares
; Data: 27/03/2017
; Calcula o fatorial do número em R0 e armazena o valor em R1.
leaw $R0, %A
movw (%A), %D
movw (%A), %S
decw %D
decw %D
leaw $R1, %A
movw %D, (%A)
leaw $R0, %A
addw (%A), %S, %S
leaw $R2, %A
movw %S, (%A) ... |
; A115504: Number of monic irreducible polynomials of degree 1 in GF(2^n)[x1,x2,x3,x4,x5].
; Submitted by Jon Maiga
; 62,1364,37448,1118480,34636832,1090785344,34630287488,1103823438080,35253226045952,1127000493261824,36046397799139328,1153203048319815680,36897992296869404672,1180663682709764194304,37780084819647214419... |
/*
* 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... |
page ,132
TITLE C library emulation, not relying on MS-DOS.
;*****************************************************************************;
; ;
; FILE NAME: anlrem.asm ;
; ;
; DESCRIPTION: C compiler long math library ;
; ;
; NOTES: ... |
; A301809: Group the natural numbers such that the first group is (1) then (2),(3),(4,5),(6,7,8),... with the n-th group containing F(n) sequential terms where F(n) is the n-th Fibonacci number (A000045(n)). Sequence gives the sum of terms in the n-th group.
; 1,2,3,9,21,55,140,364,945,2465,6435,16821,43992,115102,3012... |
; A050982: 5-idempotent numbers.
; 1,30,525,7000,78750,787500,7218750,61875000,502734375,3910156250,29326171875,213281250000,1510742187500,10458984375000,70971679687500,473144531250000,3105010986328125,20091247558593750,128360748291015625,810699462890625000,5066871643066406250,31366348266601562500,192475318908691406250... |
#include <Processors/Formats/RowInputFormatWithNamesAndTypes.h>
#include <Processors/Formats/ISchemaReader.h>
#include <DataTypes/DataTypeNothing.h>
#include <DataTypes/DataTypeFactory.h>
#include <IO/ReadHelpers.h>
#include <IO/Operators.h>
namespace DB
{
namespace ErrorCodes
{
extern const int INCORRECT_DATA;
}... |
; Maths module
.module Maths
Code:
.module Trig
Cos
add a,64
Sin
add a,a
ld l,a
ld a,0
adc a,Table >> 8
ld h,a
ld c,(hl)
inc hl
ld b,(hl)
ret
PackedTable
PreviousValue = 0
Delta = 0
.for angle = 0 to 127
NewValue = round(256 * sin(angle / 256 * 2 * pi()))
Delta <<=... |
; A220029: Number of n X 5 arrays of the minimum value of corresponding elements and their horizontal or diagonal neighbors in a random, but sorted with lexicographically nondecreasing rows and nonincreasing columns, 0..1 n X 5 array.
; 5,12,30,61,111,187,297,450,656,926,1272,1707,2245,2901,3691,4632,5742,7040,8546,102... |
; A126883: a(n) = (2^0)*(2^1)*(2^2)*(2^3)...(2^n)-1 = 2^T(n) - 1 where T(n) = A000217(n) is the n-th triangular number.
; 0,1,7,63,1023,32767,2097151,268435455,68719476735,35184372088831,36028797018963967,73786976294838206463,302231454903657293676543,2475880078570760549798248447,40564819207303340847894502572031
add $0... |
#include "TNamed.h"
#include "TRandom.h"
#include "AliPHOSTriggerUtils.h"
#include "AliVEvent.h"
#include "AliAODEvent.h"
#include "AliESDEvent.h"
#include "AliVCluster.h"
#include "AliVCaloCells.h"
#include "AliOADBContainer.h"
#include "AliPHOSGeoUtils.h"
#include "AliLog.h"
ClassImp(AliPHOSTriggerUtils)
//--------... |
; A022984: 28-n.
; 28,27,26,25,24,23,22,21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,-1,-2,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-23,-24,-25,-26,-27,-28,-29,-30,-31,-32
mov $1,28
sub $1,$0
|
# JMH version: 1.19
# VM version: JDK 1.8.0_131, VM 25.131-b11
# VM invoker: /usr/lib/jvm/java-8-oracle/jre/bin/java
# VM options: <none>
# Warmup: 20 iterations, 1 s each
# Measurement: 20 iterations, 1 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput... |
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
; kernel.asm
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
; Forrest Yu, 2005
; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: VROSC.FileWriter
#include "VROSC/Fi... |
;
; The code given to you here implements the histogram calculation that
; we developed in class. In programming lab, we will add code that
; prints a number in hexadecimal to the monitor.
;
; Your assignment for this program is to combine these two pieces of
; code to print the histogram to the monitor.
;
; If you ... |
DEVICE ZXSPECTRUMNEXT
ORG $0000
; **************************************************************
; * API
; - 0: set bank id
; - 1: set effect
; **************************************************************
api_entry:
jr ayfx_api
nop
; At $0003 is the entry point for the interrupt handler. This will only be... |
;*
;* Gameboy Hardware definitions
;*
;* Based on Jones' hardware.inc
;* And based on Carsten Sorensen's ideas.
;*
;* Rev 1.1 - 15-Jul-97 : Added define check
;* Rev 1.2 - 18-Jul-97 : Added revision check macro
;* Rev 1.3 - 19-Jul-97 : Modified for RGBASM V1.05
;* Rev 1.4 - 27-Jul-97 : Modified for new subrout... |
; A037544: Base-3 digits are, in order, the first n terms of the periodic sequence with initial period 1,2,2.
; 1,5,17,52,158,476,1429,4289,12869,38608,115826,347480,1042441,3127325,9381977,28145932,84437798,253313396,759940189,2279820569,6839461709,20518385128,61555155386,184665466160,553996398481
add $0,1
mov $2,6
l... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.