text stringlengths 1 1.05M |
|---|
; Assuming user will only enter ' ' 0-9 *+/-
; Result can be either negative or positive
; your main program should be just a few calls to subroutines, e.g.,
; the main subroutine is simply three calls to subroutines, which respecrtively save the inputs,
; calculate the final answer and print it to the screen.... |
; A011686: A binary m-sequence: expansion of reciprocal of x^7 + x^6 + 1.
; Submitted by Jamie Morken(s4)
; 0,0,0,0,0,0,1,0,0,0,0,0,1,1,0,0,0,0,1,0,1,0,0,0,1,1,1,1,0,0,1,0,0,0,1,0,1,1,0,0,1,1,1,0,1,0,1,0,0,1,1,1,1,1,0,1,0,0,0,0,1,1,1,0,0,0,1,0,0,1,0,0,1,1,0,1,1,0,1,0,1,1,0,1,1,1,1,0,1,1,0,0,0,1,1,0,1,0,0,1
mov $3,$0
l... |
//===--- TransEmptyStatements.cpp - Transformations to ARC mode -----------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/*
* 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... |
#include "../../flame32.asm"
; Tests DIV
lod 6
ldl B, 3
div A, B
|
.include "vc4.qinc"
# Uniforms
.set srcPtr, ra0
.set tgtPtr, ra1
.set srcStride, rb0
.set tgtStride, rb1
.set lineIter, ra2 # Iterator over blocks (16 lines)
mov srcPtr, unif;
mov tgtPtr, unif;
mov srcStride, unif;
mov tgtStride, unif;
read unif; # line width not needed
mov lineIter, unif; # line count
# Vari... |
db "SHELLSQUID@"; species name
db "Sometimes it can"
next "accidentally lose"
next "its shell while"
page "fleeing. These"
next "shells are prized"
next "by collectors.@"
|
; A021036: Decimal expansion of 1/32.
; 0,3,1,2,5,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,0,0,0,0,0,0,0,0,0,0,0,0,0
add $$0,4
add $0,1
mov $1,$0
add $4,2
mov $3,$4
add $$4,3
sub $3,1
mov $$3,$$0
|
TITLE GRPDEF - Copyright (c) 1994 by SLR Systems
INCLUDE MACROS
INCLUDE SEGMENTS
INCLUDE GROUPS
INCLUDE CDDATA
PUBLIC GRPDEF
.DATA
EXTERNDEF END_OF_RECORD:DWORD,BUFFER_OFFSET:DWORD,GROUP_NAME_LINDEX:DWORD,FLAT_GINDEX:DWORD
EXTERNDEF GROUP_LARRAY:LARRAY_STRUCT,SEGMOD_LARRAY:LARRAY_STRUCT
.COD... |
segment .data
segment .rodata
msg db '> '
segment .bss
segment .text
global _start
extern getc, putc, exit
_start:
mov eax , msg
call putc
call getc
call putc
mov eax , 0
call exit
|
/* Copyright 2017 The TensorFlow Authors. 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 by applicable law or a... |
//===--- CSRanking.cpp - Constraint System Ranking ------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: UnityEngine.Mo... |
; A052768: A simple grammar.
; 0,0,0,0,0,120,360,840,1680,3024,5040,7920,11880,17160,24024,32760,43680,57120,73440,93024,116280,143640,175560,212520,255024,303600,358800,421200,491400,570024,657720,755160,863040,982080,1113024
bin $0,4
lpb $0
bin $0,2
lpe
mul $0,24
|
/*=========================================================================
Program: Visualization Toolkit
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRAN... |
SECTION code_driver
SECTION code_driver_terminal_output
PUBLIC console_01_output_fzx_proc_putchar_scroll
EXTERN OTERM_MSG_PSCROLL, l_jpix, error_znc
console_01_output_fzx_proc_putchar_scroll:
; enter : ix = FDSTRUCT.JP *
; hl = scroll amount in pixels
;
; exit : de = actual number of pixels sc... |
; A170236: Number of reduced words of length n in Coxeter group on 35 generators S_i with relations (S_i)^2 = (S_i S_j)^40 = I.
; 1,35,1190,40460,1375640,46771760,1590239840,54068154560,1838317255040,62502786671360,2125094746826240,72253221392092160,2456609527331133440,83524723929258536960,2839840613594790256640,965545... |
//------------------------------------------------------------------------------
// exampleapp.cc
// (C) 2015-2018 Individual contributors, see AUTHORS file
//------------------------------------------------------------------------------
#include "config.h"
#include "exampleapp.h"
#include <cstring>
#include "MeshResou... |
; A037314: Numbers n such that (sum of base-3 digits of n) = (sum of base-9 digits of n).
; 0,1,2,9,10,11,18,19,20,81,82,83,90,91,92,99,100,101,162,163,164,171,172,173,180,181,182,729,730,731,738,739,740,747,748,749,810,811,812,819,820,821,828,829,830,891,892,893,900,901,902,909,910,911
mov $20,$0
add $20,1
lpb $20
... |
SECTION .text
GLOBAL test
test:
psubd xmm0, xmm0
psubd xmm0, xmm1
psubd xmm0, xmm2
psubd xmm0, xmm3
psubd xmm0, xmm4
psubd xmm0, xmm5
psubd xmm0, xmm6
psubd xmm0, xmm7
psubd xmm0, xmm8
psubd xmm0, xmm9
psubd xmm0, xmm10
psubd xmm0, xmm11
psubd xmm0, xmm12
psubd xmm0, xmm13
psubd xmm0, xmm14
psubd xmm0, xmm15
psubd xmm... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1993 -- All Rights Reserved
PROJECT: PC/GEOS/J
FILE: keyboard.asm
AUTHOR: Gene Anderson, Jul 8, 1991
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tera 11/11/93 Initial revision... |
; Assembly for testprint-bytecode.bas
; compiled with mcbasic
; Equates for MC-10 MICROCOLOR BASIC 1.0
;
; Direct page equates
DP_LNUM .equ $E2 ; current line in BASIC
DP_TABW .equ $E4 ; current tab width on console
DP_LPOS .equ $E6 ; current line position on console
DP_LWID .equ $E7 ; current line width of console
;... |
; A098245: Chebyshev polynomials S(n,227).
; Submitted by Jon Maiga
; 1,227,51528,11696629,2655083255,602692202256,136808474828857,31054921093948283,7049330279851431384,1600166918605180975885,363230841193096230094511,82451800783914239050478112,18716195547107339168228436913,4248493937392582076948804701139,96438940759256... |
LoreleisRoom_Object:
db $3 ; border block
def_warps
warp 4, 11, 2, INDIGO_PLATEAU_LOBBY
warp 5, 11, 2, INDIGO_PLATEAU_LOBBY
warp 4, 0, 0, BRUNOS_ROOM
warp 5, 0, 1, BRUNOS_ROOM
def_signs
def_objects
object SPRITE_LORELEI, 5, 2, STAY, DOWN, 1, OPP_LORELEI, 1
def_warps_to LORELEIS_ROOM
|
; A071270: a(n) = n^2*(2*n^2+1)/3.
; 0,1,12,57,176,425,876,1617,2752,4401,6700,9801,13872,19097,25676,33825,43776,55777,70092,87001,106800,129801,156332,186737,221376,260625,304876,354537,410032,471801,540300,616001,699392,790977,891276,1000825,1120176,1249897,1390572,1542801,1707200,1884401,2075052,2279817,2499376,273... |
; ===============================================================
; Sep 2014
; ===============================================================
;
; void *p_forward_list_alt_next(void *item)
;
; Return next item in list.
;
; ===============================================================
SECTION code_clib
SECTION code... |
; AC - Auxialliary Carry is for 4 bits
; C - Carry is the total carry
; Z - Zero is set to 1 since the result is 0
; If there is even no. of 1 bits in the accumulator then it is set to 1
; If there is odd no. of 1 bits then it is set to 0
MVI A, 23H
MOV B,A
MVI A, 0FFH
ADD B
HLT |
; -------------------------------------------------------------
; 32 bit logical NOT
; -------------------------------------------------------------
__NOT32: ; A = ¬A
ld a, d
or e
or h
or l
sub 1 ; Gives CARRY only if 0
sbc a, a; Gives 0 if not carry, FF otherwise
ret
|
;========================================================
COMMENT #
GET_BOOT.ASM
Copyright (c) 1991 - Microsoft Corp.
All rights reserved.
Microsoft Confidential
=================================================
Reads the boot record on the first sector of the
specified drive into the specified buffer
int G... |
; A018892: Number of ways to write 1/n as a sum of exactly 2 unit fractions.
; Submitted by Christian Krause
; 1,2,2,3,2,5,2,4,3,5,2,8,2,5,5,5,2,8,2,8,5,5,2,11,3,5,4,8,2,14,2,6,5,5,5,13,2,5,5,11,2,14,2,8,8,5,2,14,3,8,5,8,2,11,5,11,5,5,2,23,2,5,8,7,5,14,2,8,5,14,2,18,2,5,8,8,5,14,2,14,5,5,2,23,5,5,5,11,2,23,5,8,5,5,5,17... |
.global s_prepare_buffers
s_prepare_buffers:
push %r15
push %r8
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x1306b, %rsi
lea addresses_WT_ht+0x887b, %rdi
clflush (%rdi)
nop
add $8039, %r8
mov $97, %rcx
rep movsw
nop
nop
nop
add %rax, %rax
lea addresses_normal_ht+0x16d35, %r15
nop
nop
nop
nop
... |
//
// Created by xuhuahai on 2017/4/24.
//
#include <ws/membuf.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include <memory.h>
#include <assert.h>
/**
* 缓冲区初始化
* @param buf 指向缓冲区的指针
* @param initial_buffer_size 缓冲区的尺寸
* @see membuf_uninit()
* @note 其销毁方法是membuf_uninit()
*/
void membuf_init... |
; A240400: Numbers n having a partition into distinct parts of form 3^k-2^k.
; 0,1,5,6,19,20,24,25,65,66,70,71,84,85,89,90,211,212,216,217,230,231,235,236,276,277,281,282,295,296,300,301,665,666,670,671,684,685,689,690,730,731,735,736,749,750,754,755,876,877,881,882,895,896,900,901,941,942,946,947,960,961,965,966,2059,... |
#include <boost/config.hpp>
// lsp_convertible_test.cpp
//
// Copyright 2012, 2017 Peter Dimov
//
// 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
#include <boost/smart_ptr/local_shared_ptr.hpp>
#i... |
.byte $01 ; Unknown purpose
.byte OBJ_PIRANHASIDEWAYSRIGHT, $0B, $0D
.byte OBJ_PIRANHASIDEWAYSLEFT, $05, $0F
.byte OBJ_GREENPIRANHA, $04, $42
.byte OBJ_REDTROOPA, $05, $52
.byte OBJ_PIRANHASIDEWAYSLEFT, $0B, $5B
.byte OBJ_GREENPIRANHA, $04, $61
.byte OBJ_GREENTROOPA, $0D, $67
.byte OBJ_GREENTROOPA, $0F, $67
... |
/*=============================================================================
Copyright (c) 2010-2016 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprig
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) 2014 The WebM project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license
; that can be found in the LICENSE file in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing proje... |
; A154990: Triangle read by rows. Main diagonal is positive. The rest of the terms are negative.
; 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,2
lpb... |
; A238468: Period 7: repeat [0, 0, -1, 1, -1, 1, 0].
; 0,0,-1,1,-1,1,0,0,0,-1,1,-1,1,0,0,0,-1,1,-1,1,0,0,0,-1,1,-1,1,0,0,0,-1,1,-1,1,0,0,0,-1,1,-1,1,0,0,0,-1,1,-1,1,0,0,0,-1,1,-1,1,0,0,0,-1,1,-1,1,0,0,0,-1,1,-1,1,0,0,0,-1,1,-1,1,0,0,0,-1,1,-1,1,0,0,0,-1,1,-1,1,0
lpb $0
sub $0,7
lpe
mov $2,$0
sub $0,1
lpb $0
div $0... |
// Copyright (c) 2021 Chanjung Kim. All rights reserved.
// Licensed under the MIT License.
#ifndef MNIST_FPAG_FILE_HH
#define MNIST_FPAG_FILE_HH
#include <mf/Exception.hh>
#include <cstdint>
#include <filesystem>
#include <vector>
namespace mf
{
/**
* `NoSuchFileException` is thrown when any error occurred durin... |
COMMENT @-----------------------------------------------------------------------
Copyright (c) GeoWorks 1988 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: UserInterface/Gen
FILE: genListEntryClass.asm
ROUTINES:
Name Description
---- -----------
GLB GenListEntryClass ListEntry object
REVI... |
; A087810: First differences of A029931.
; 1,1,1,0,1,1,1,-2,1,1,1,0,1,1,1,-5,1,1,1,0,1,1,1,-2,1,1,1,0,1,1,1,-9,1,1,1,0,1,1,1,-2,1,1,1,0,1,1,1,-5,1,1,1,0,1,1,1,-2,1,1,1,0,1,1,1,-14,1,1,1,0,1,1,1,-2,1,1,1,0,1,1,1,-5,1,1,1,0,1,1,1,-2,1,1,1,0,1,1,1,-9,1,1,1,0,1,1,1,-2,1,1,1,0,1,1,1,-5,1,1,1,0,1,1,1,-2,1,1,1,0,1,1,1,-20,1,1... |
; $Id: llrintl.asm $
;; @file
; IPRT - No-CRT llrintl - AMD64 & X86.
;
;
; 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 t... |
#include "MotionDenoiser.h"
MotionDenoiser::MotionDenoiser(char* name){
m_frames = GetFrames(name, m_fps);
m_size = m_frames[0].size();
m_height = m_size.height;
m_width = m_size.width;
m_frameNum = m_frames.size();
dst.resize(m_frameNum);
for (int i = 0; i < dst.size(); i++) dst[i].create(m_size, CV_8UC3);
... |
; A218008: Sum of successive absolute differences of the binomial coefficients = 2*A014495(n)
; 0,0,2,4,10,18,38,68,138,250,502,922,1846,3430,6862,12868,25738,48618,97238,184754,369510,705430,1410862,2704154,5408310,10400598,20801198,40116598,80233198,155117518,310235038
mov $1,$0
div $1,2
bin $0,$1
sub $0,1
mul $0,2
|
Route15Gate1F_Script:
jp EnableAutoTextBoxDrawing
Route15Gate1F_TextPointers:
dw Route15GateText1
Route15GateText1:
TX_FAR _Route15GateText1
db "@"
|
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++
| | |__ | | | | | | version 3.4.0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
SPDX-License-Identifier: MIT
Copyright (c) 2013-2018 Niels Lohmann <http:/... |
;------------------------------------------------------------------------------
;
; 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... |
#include "DQM/L1TMonitorClient/interface/L1TGMTClient.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "DQMServices/Core/interface/DQMStore.h"
#include "DQMServices/Core/interface/MonitorE... |
; L0407.asm
; Generated 10.30.2000 by mlevel
; Modified 10.30.2000 by Abe Pralle
INCLUDE "Source/Defs.inc"
INCLUDE "Source/Levels.inc"
;---------------------------------------------------------------------
SECTION "Level0407Section",ROMX
;---------------------------------------------------------------------
L0407_C... |
; MultiplicationDivision.nasm
; Author: Ravehorn
global _start
section .text
_start:
; register based multiplication
mov eax, 0x0
mov ax, 0x2
mov bx, 0x3
mul bx
mov [var1], ax
add byte [var1], '0'
; print actual result
mov eax, 0x4
mov ebx, 0x1
lea ecx, [var1]
... |
dnl AMD64 mpn_mul_2 -- Multiply an n-limb vector with a 2-limb vector and
dnl store the result in a third limb vector.
dnl Copyright 2008 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the t... |
; A140201: Partial sums of A140081.
; 0,1,2,4,4,5,6,8,8,9,10,12,12,13,14,16,16,17,18,20,20,21,22,24,24,25,26,28,28,29,30,32,32,33,34,36,36,37,38,40,40,41,42,44,44,45,46,48,48,49,50,52,52,53,54,56,56,57,58,60,60,61,62,64,64,65,66,68,68,69,70,72,72,73,74,76,76,77,78,80,80,81,82,84,84,85,86,88,88,89,90,92,92,93,94,96,96,9... |
; A194142: Sum{floor(j*(3-sqrt(3)) : 1<=j<=n}; n-th partial sum of Beatty sequence for 3-sqrt(3).
; 1,3,6,11,17,24,32,42,53,65,78,93,109,126,145,165,186,208,232,257,283,310,339,369,400,432,466,501,537,575,614,654,695,738,782,827,873,921,970,1020,1071,1124,1178,1233,1290,1348,1407,1467,1529,1592,1656
mov $16,$0
mov $18... |
; A179006: Partial sums of floor(Fibonacci(n)/4).
; 0,0,0,0,0,1,3,6,11,19,32,54,90,148,242,394,640,1039,1685,2730,4421,7157,11584,18748,30340,49096,79444,128548,208000,336557,544567,881134,1425711,2306855,3732576,6039442,9772030,15811484,25583526,41395022,66978560,108373595,175352169,283725778,459077961,742803753,12018... |
; A021340: Decimal expansion of 1/336.
; 0,0,2,9,7,6,1,9,0,4,7,6,1,9,0,4,7,6,1,9,0,4,7,6,1,9,0,4,7,6,1,9,0,4,7,6,1,9,0,4,7,6,1,9,0,4,7,6,1,9,0,4,7,6,1,9,0,4,7,6,1,9,0,4,7,6,1,9,0,4,7,6,1,9,0,4,7,6,1,9,0,4,7,6,1,9,0,4,7,6,1,9,0,4,7,6,1,9,0
add $0,1
mov $1,10
pow $1,$0
mul $1,5
div $1,1680
mod $1,10
mov $0,$1
|
; A308604: Number of (not necessarily maximal) cliques in the n X n fiveleaper graph.
; 2,5,10,17,34,73,126,193,274,369,478,601,738,889,1054,1233,1426,1633,1854,2089,2338,2601,2878,3169,3474,3793,4126,4473,4834,5209,5598,6001,6418,6849,7294,7753,8226,8713,9214,9729,10258,10801,11358,11929,12514,13113,13726,14353,14994,... |
; A049744: a(n)=T(n,1), array T as in A049735.
; Submitted by Jon Maiga
; 5,9,21,37,57,89,121,161,213,261,325,385,457,545,621,717,805,917,1033,1137,1265,1389,1533,1669,1801,1969,2129,2305,2469,2637,2837,3017,3233,3425,3641,3861,4061,4309,4537,4785,5033,5273
pow $0,2
add $0,1
seq $0,57655 ; The circle problem: number o... |
; A052657: E.g.f. x^2/((1-x)^2*(1+x)).
; 0,0,2,6,48,240,2160,15120,161280,1451520,18144000,199584000,2874009600,37362124800,610248038400,9153720576000,167382319104000,2845499424768000
mov $1,$0
div $0,2
cal $1,142
mul $1,$0
|
/*
author: Nathan Turner
date:3/27/16
ussage: ./waf --run scratch/udpchain.cc
*/
#include "ns3/core-module.h"
#include "ns3/network-module.h"
#include "ns3/csma-module.h"
#include "ns3/internet-module.h"
#include "ns3/point-to-point-module.h"
#include "ns3/applications-module.h"
#include "ns3/ipv4-global-routing-helpe... |
#include <iostream>
using namespace std;
int main()
{
// Informacios szovegeket a cerr << -rel lehet kiirni
cerr << "Idojaras" << endl;
// Statikus felveves
//const int maxmeret = 1000;
//int n;
//int napimin[maxmeret], napimax[maxmeret];
//
int n;
cerr << "Hany ad... |
; A146086: Number of n-digit numbers with each digit odd where the digits 1 and 3 occur an even number of times.
; 3,11,45,197,903,4271,20625,100937,498123,2470931,12295605,61300877,305972943,1528270391,7636568985,38168496017,190799433363,953868026651,4768952712765,23843601302357,119214519727383,596062138283711,2980279... |
; A135513: Number of Pierce-Engel hybrid expansions of 4/b, b>=4.
; 1,4,2,4,1,2,2,4,1,4,2,2,1,4,2,4,1,2,2,4,1,4,2,2,1,4,2,4,1,2,2,4,1,4,2,2,1,4,2,4,1,2,2,4,1,4,2,2,1,4,2,4,1,2,2,4,1,4,2,2,1,4,2,4,1,2,2,4,1,4,2,2,1,4,2,4,1,2,2,4,1,4,2,2,1,4,2,4,1,2,2,4,1,4,2,2,1,4,2,4
mov $2,$0
bin $0,2
sub $0,63
mod $2,2
add $2,2
gcd ... |
; A332436: The number of even numbers <= n of the smallest nonnegative reduced residue system modulo 2*n + 1, for n >= 0.
; Submitted by Jamie Morken(s3)
; 1,0,1,1,2,2,3,2,4,4,4,5,5,4,7,7,6,6,9,6,10,10,6,11,11,8,13,10,10,14,15,8,12,16,12,17,18,10,16,19,14,20,16,14,22,18,16,18,24,14,25,25,12,26,27,18,28,22,18,24,28,20,2... |
; A016899: a(n) = (5n + 4)^3.
; 64,729,2744,6859,13824,24389,39304,59319,85184,117649,157464,205379,262144,328509,405224,493039,592704,704969,830584,970299,1124864,1295029,1481544,1685159,1906624,2146689,2406104,2685619,2985984,3307949,3652264,4019679,4410944,4826809,5268024,5735339,6229504,6751269,7301384,7880599,8489... |
//#include "TextObjects.h"
//#include "BaseObject.h"
//#include "SDL_ttf.h"
//#include "VideoManager.h"
//
//PlainText::PlainText(int x, int y, TTF_Font* aFont, char* aText, SDL_Color fg)
// :Thing (x, y, SDL_CreateTextureFromSurface(VideoManager::mRenderer, TTF_RenderText_Solid(aFont, aText, fg)))
//{
// this;... |
; A033814: Convolution of natural numbers n >= 1 with Lucas numbers L(k)(A000032) for k >= 4.
; 7,25,61,126,238,426,737,1247,2079,3432,5628,9188,14955,24293,39409,63874,103466,167534,271205,438955,710387,1149580,1860216,3010056,4870543,7880881,12751717,20632902,33384934,54018162,87403433,141421943,228825735,370248048,5... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 16.00.30319.01
TITLE C:\JitenderN\REBook\for\for\for.cpp
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
CONST SEGMENT
$SG4681 DB '%d', 0aH, 00H
CONST ENDS
PUBLIC _main
EXTRN _printf:PROC
; Functio... |
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1988 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: UserInterface/Gen
FILE: genSystemClass.asm
ROUTINES:
Name Description
---- -----------
GLB GenSystemClass Class that implements the syste... |
// Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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 re... |
// Copyright (c) 2016, Baidu.com, Inc. All Rights Reserved
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "dict_file.h"
namespace baidu {
namespace galaxy {
namespace file {
DictFile::DictFile(const std::string& path) :
path_(path),
db_(NULL),... |
#include "RTSGameplayTagsProvider.h"
void IRTSGameplayTagsProvider::AddGameplayTags(FGameplayTagContainer& InOutTagContainer)
{
}
|
###############################################################################
# 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... |
CinnabarLabFossilRoom_h:
db LAB ; tileset
db CINNABAR_LAB_FOSSIL_ROOM_HEIGHT, CINNABAR_LAB_FOSSIL_ROOM_WIDTH ; dimensions (y, x)
dw CinnabarLabFossilRoom_Blocks ; blocks
dw CinnabarLabFossilRoom_TextPointers ; texts
dw CinnabarLabFossilRoom_Script ; scripts
db 0 ; connections
dw CinnabarLabFossilRoom_Object ; ob... |
.data
msg1: .asciiz "\nEnter integer values followed by return (-1 terminates input): \n"
msg2: .asciiz ","
msg3: .asciiz "Bubble Sort"
msg4: .asciiz "#########pass#########"
msg5: .asciiz "\n"
msg6: .asciiz "\nNumber list has been sorted\n"
.text
.globl main
main:
move $s0,$gp #get the intial point to save ... |
// -------------------------------------------------------------------------------------------------
// Copyright 2016 - NumScale SAS
//
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE.txt or copy at
// ... |
; A310530: Coordination sequence Gal.5.134.1 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.
; Submitted by Jon Maiga
; 1,4,10,16,22,28,34,40,44,48,54,60,66,72,78,84,88,92,98,104,110,116,122,128,132,136,142,148,154,160,166,172,176,180,... |
; A097337: Integer part of the edge of a cube that has space-diagonal n.
; 0,1,1,2,2,3,4,4,5,5,6,6,7,8,8,9,9,10,10,11,12,12,13,13,14,15,15,16,16,17,17,18,19,19,20,20,21,21,22,23,23,24,24,25,25,26,27,27,28,28,29,30,30,31,31,32,32,33,34,34,35,35,36,36,37,38,38,39,39,40,40,41,42,42,43,43,44,45,45,46,46,47,47,48,49,49,50,5... |
//
//
//
#include "MqttTopicHelper.h"
#include "KMPCommon.h"
#include <stdarg.h>
const char* _baseTopic;
const char* _deviceTopic;
char _mainTopic[MAIN_TOPIC_MAXLEN];
size_t _mainTopicLen;
char _isReadyTopic[MAIN_TOPIC_MAXLEN];
size_t _setTopicLen;
Print* _debugPort;
void MqttTopicHelperClass::init(const char* ba... |
* Sprite left
*
* Mode 4
* +|---------------+
* | a |
* | aa aa|
* | aaaa aa |
* -aaaaaaaaaaaa -
* | aaaa aa |
* | aa aa|
* | a |
* +|---------------+
*
section sprite
xdef mes_l... |
#include<bits/stdc++.h>
using namespace std;
int main()
{
#ifndef ONLINE_JUDGE
// For getting input from input.txt file
// For getting input from input.txt file
freopen("input.exe", "r", stdin);
// Printing the Output to output.txt file
freopen("output.exe", "w", stdout);
#endif
int... |
#ifndef _YNE_H
#define _YNE_H
namespace YNE {
void begin();
void update();
int alpha();
int beta();
int heart();
int muscle();
int p300();
}; // namespace YNE
#endif
|
SECTION code_clib
SECTION code_math
PUBLIC cm32_sdcc_fsreadr, cm32_sdcc_fsreadl
EXTERN cm32_sdcc_fsload
.cm32_sdcc_fsreadr
; sdcc float primitive
; Read right sdcc float from the stack
;
; Convert from sdcc_float calling to d32_float.
;
; enter : stack = sdcc_float right, sdcc_float left, r... |
#include <Lethe/Core/Io/Stream.h>
#include <Lethe/Core/String/Name.h>
#include "AstNode.h"
#include "AstText.h"
#include "AstSymbol.h"
#include <Lethe/Script/Ast/Types/AstTypeStruct.h>
#include "Constants/AstConstInt.h"
#include "Constants/AstConstUInt.h"
#include "Constants/AstConstLong.h"
#include "Constants/AstCons... |
// This file is licensed under the Elastic License 2.0. Copyright 2021-present, StarRocks Limited.
#include "env/env_memory.h"
#include <butil/files/file_path.h>
#include <gtest/gtest.h>
#include "gutil/strings/join.h"
#include "testutil/assert.h"
namespace starrocks {
class EnvMemoryTest : public ::testing::Test ... |
; A044786: Numbers n such that string 7,3 occurs in the base 10 representation of n but not of n+1.
; Submitted by Christian Krause
; 73,173,273,373,473,573,673,739,773,873,973,1073,1173,1273,1373,1473,1573,1673,1739,1773,1873,1973,2073,2173,2273,2373,2473,2573,2673,2739,2773,2873,2973,3073,3173,3273,3373,3473,3573
ad... |
/*
; Project: Open Vehicle Monitor System
; Date: 3rd September 2020
;
; Changes:
; 1.0 Initial release
;
; (C) 2011 Michael Stegen / Stegen Electronics
; (C) 2011-2017 Mark Webb-Johnson
; (C) 2011 Sonny Chen @ EPRO/DX
; (C) 2020 Chris Staite
;
; Permission is ... |
/* gcd.asm
* Compute GCD of two non-sob INTEGERS
* Returns a non-sob INTEGER to R0
*
* Programmer: Guy Hecht, 2017
*/
GCD:
PUSH(FP);
MOV(FP , SP);
INFO;
SHOW("IN GCD " , FPARG(1));
SHOW("IN GCD " , FPARG(2));
SHOW("IN GCD " , FPARG(3));
PUSH(R1);
PUSH(R2);
PUSH(R3);
PUSH(R4);
MOV(R1, FPARG... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.24.28117.0
include listing.inc
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
CONST SEGMENT
$SG5097 DB 'Hello World!', 0aH, 00H
ORG $+2
$SG5098 DB '%f', 0aH, 00H
$SG5099 DB '%f', 0aH, 00H
CONST ENDS
PUBLIC __local_stdio_printf_options
PUBLIC _vfprintf_l
PU... |
; A205219: Number of (n+1)X2 0..1 arrays with the number of equal 2X2 subblock diagonal pairs and equal antidiagonal pairs differing from each horizontal or vertical neighbor, and new values 0..1 introduced in row major order
; 8,20,52,132,340,868,2228,5700,14612,37412,95860,245508,628948,1610980,4126772,10570692,27077... |
_RockTunnel2BattleText2::
text "Hikers leave twigs"
line "as trail markers."
done
_RockTunnel2EndBattleText2::
text "Ohhh!"
line "I did my best!"
prompt
_RockTunnel2AfterBattleText2::
text "I want to go "
line "home!"
done
_RockTunnel2BattleText3::
text "Hahaha! Can you"
line "beat my power?"
done
_Rock... |
BITS 32
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
;TEST_BEGIN_RECORDING
lea ecx, [esp-0x10]
mov dword [ecx+0x00], 0x0
mov dword [ecx+0x04], 0x0
mov dword [ecx+0x08], 0x0
mov dword [ecx+0x0C], 0x10
;set up ecx to be 8
movdqu xmm1, [ecx]
mov dword [ecx+0x00], 0x00FFF000
mov dword [e... |
#include <catch2/catch.hpp>
extern "C" {
#include <hocdec.h>
#include <ocfunc.h>
#include <code.h>
}
TEST_CASE("Test hoc interpreter", "[Neuron][hoc_interpreter]") {
hoc_init_space();
hoc_pushx(4.0);
hoc_pushx(5.0);
hoc_add();
REQUIRE( hoc_xpop() == 9.0 );
}
|
; A188589: Expansion of (1-3*x+6*x^2-3*x^3)/((1-x)^2*(1-2*x)).
; 1,1,5,14,33,72,151,310,629,1268,2547,5106,10225,20464,40943,81902,163821,327660,655339,1310698,2621417,5242856,10485735,20971494,41943013,83886052,167772131,335544290,671088609,1342177248,2684354527
mov $2,1
mov $3,1
lpb $0,1
sub $0,$3
trn $0,1
add... |
colwash ldx #$27 ; load x-register with #$27 to work through 0-39 iterations
lda color+$27 ; init accumulator with the last color from first color table
cycle1 ldy color-1,x ; remember the current color in color table in this iteration
sta color-1,x ; overwrite that location with ... |
% Code generated by PREV compiler
SP GREG Stack_Segment
FP GREG #6100000000000000
HP GREG Data_Segment
LOC Data_Segment
_i BYTE 0
ReadSize IS 255
ReadArgs BYTE 0,ReadSize
% Code Segment
LOC #500
Main PUSHJ $8,_main
% STOPPING PROGRAM
TRAP 0,Halt,0
% Code for function: _main
% --- Prolog ---
_main SET $0,16
% ... |
<%
from pwnlib.shellcraft.amd64.linux import syscall
%>
<%page args="pid, pgid"/>
<%docstring>
Invokes the syscall setpgid. See 'man 2 setpgid' for more information.
Arguments:
pid(pid_t): pid
pgid(pid_t): pgid
</%docstring>
${syscall('SYS_setpgid', pid, pgid)}
|
;********************************************************************************************************
; uC/OS-III
; The Real-Time Kernel
;
; Copyright 2009-2020 Silicon Laboratories Inc. www.silabs.com
;
; ... |
; Dummy function to keep rest of libs happy
;
; $Id: writebyte.asm,v 1.5 2016-03-06 21:39:54 dom Exp $
;
SECTION code_clib
INCLUDE "target/test/def/test_cmds.def"
PUBLIC writebyte
PUBLIC _writebyte
.writebyte
._writebyte
pop de
pop hl
pop bc
push bc
push hl
push de
ld b,c
ld a,CMD_WRITE... |
; A191110: Increasing sequence generated by these rules: a(1)=1, and if x is in a then 3x and 3x+2 are in a.
; 1,3,5,9,11,15,17,27,29,33,35,45,47,51,53,81,83,87,89,99,101,105,107,135,137,141,143,153,155,159,161,243,245,249,251,261,263,267,269,297,299,303,305,315,317,321,323,405,407,411,413,423,425,429,431,459,461,465,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.