text stringlengths 1 1.05M |
|---|
; void bit_fx(void *effect)
SECTION code_clib
SECTION code_sound_bit
PUBLIC _bit_fx
EXTERN _bit_fx_fastcall
_bit_fx:
pop af
pop hl
push hl
push af
jp _bit_fx_fastcall
|
/////////////////////////////////////////////////////////////////////////////
// Name: src/msw/mdi.cpp
// Purpose: MDI classes for wxMSW
// Author: Julian Smart
// Modified by: Vadim Zeitlin on 2008-11-04 to use the base classes
// Created: 04/01/98
// RCS-ID: $Id$
// Copyright: (c) 19... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x76a1, %rbx
nop
xor $17409, %rsi
mov (%rbx), %r9
sub %rdx, %rdx
lea addresses_A_ht+0x10bdf, %r9
nop
nop
nop
sub $58288, %r13
mov (%r9), %r11d
nop
nop
xor $37747, %r11
lea ... |
#include <eepp/ui/cuiwindow.hpp>
#include <eepp/ui/cuimanager.hpp>
#include <eepp/graphics/cprimitives.hpp>
namespace EE { namespace UI {
cUIWindow::cUIWindow( const cUIWindow::CreateParams& Params ) :
cUIComplexControl( Params ),
mWinFlags( Params.WinFlags ),
mWindowDecoration( NULL ),
mButtonClose( NULL ),
mBu... |
; A053808: Partial sums of A001891.
; 1,5,15,36,76,148,273,485,839,1424,2384,3952,6505,10653,17383,28292,45964,74580,120905,195885,317231,513600,831360,1345536,2177521,3523733,5701983,9226500,14929324,24156724,39087009,63244757,102332855,165578768,267912848,433492912,701407129,1134901485,1836310135,2971213220,480752503... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Busy soft ;; 26.11.2018 ;; Tape generating library usage example ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
org #8000
start ld hl,#0000
ld de,#4000
ld bc,#1B00
ldir
ret
length = $-start
include Ta... |
; A270810: Expansion of (x - x^2 + 2*x^3 + 2*x^4)/(1 - 3*x + 2*x^2).
; 0,1,2,6,16,36,76,156,316,636,1276,2556,5116,10236,20476,40956,81916,163836,327676,655356,1310716,2621436,5242876,10485756,20971516,41943036,83886076,167772156,335544316,671088636,1342177276,2684354556,5368709116,10737418236,21474836476,42949672956,8... |
; A030191: Scaled Chebyshev U-polynomial evaluated at sqrt(5)/2.
; 1,5,20,75,275,1000,3625,13125,47500,171875,621875,2250000,8140625,29453125,106562500,385546875,1394921875,5046875000,18259765625,66064453125,239023437500,864794921875,3128857421875,11320312500000,40957275390625,148184814453125,536137695312500,1939764404... |
; Copyright (c) 2021. kms1212(Minsu Kwon)
; This file is part of OpenFSL.
;
; OpenFSL and its source code is published over BSD 3-Clause License.
; See the BSD-3-Clause for more details.
; <https://raw.githubusercontent.com/kms1212/OpenFSL/main/LICENSE>
[BITS 16]
[ORG 0x0]
; Code
[SECTION .text]
global _start
_star... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r8
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x16a31, %r12
nop
nop
cmp %r8, %r8
mov $0x6162636465666768, %rcx
movq %rcx, (%r12)
nop
nop
nop
cmp $49798, %rcx
lea addresses_A_ht+0xae39, %rsi
lea addresses_WT_ht+0x11cf1, %rdi
nop
nop
... |
.data
prompt: .asciiz "Enter the number: "
msg: .asciiz "The sum of all natural numbers till the given number is: "
.text
main:
la $a0, prompt
li $v0, 4
syscall
li $v0, 5
syscall
move $t0, $v0
move $t1, $zero
move $t4, $zero
loopchk:
slt $t2, $t1, $t0
beq $t2, $zero, loopexit
add $t4, $t4, $t1
addi $t1, 1
j loopchk... |
; A188862: Number of n X 5 binary arrays without the pattern 0 1 diagonally, vertically or antidiagonally.
; 32,99,178,259,340,421,502,583,664,745,826,907,988,1069,1150,1231,1312,1393,1474,1555,1636,1717,1798,1879,1960,2041,2122,2203,2284,2365,2446,2527,2608,2689,2770,2851,2932,3013,3094,3175,3256,3337,3418,3499,3580,3... |
/*
* All Video Processing kernels
* 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 ri... |
SECTION UNION "a", WRAM0
a1: ; This is here to check that the two `a1` don't conflict
ds 42
a2::
SECTION UNION "b", WRAMX[$DAB0]
ds 2
b2::
SECTION UNION "c", HRAM[$FFC0]
b1: ; Same but in different sections now
ds 5
c2::
SECTION "output 2", ROM0
dw a1,a2
dw b1,b2
dw c1,c2
|
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r14
push %r15
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x13480, %rdi
nop
nop
nop
nop
nop
cmp %r15, %r15
mov $0x6162636465666768, %r9
movq %r9, %xmm6
movups %xmm6, (%rdi)
nop
nop
nop
nop
xor $40540, %r14
lea addresses_normal_ht+0x107... |
XSEG AT 0
result: DS 2
CSEG AT 0
jmp START
input: DB 0x83,0xE7
START:
mov P0, #0
//unsigned short handl = P1;
// unsigned char val2 = P2;
// unsigned short result = 0;
// int i = 0;
// for (i = 0; i< 8; i++){
// if (0x01&val2){
// result += handl;
// }
// handl<<=1;
// val2>>=1;
// }
// P3 = *((ch... |
/*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... |
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
START_ATF_NAMESPACE
typedef unsigned int (WINAPIV *PFNRECONCILEPROFILEW)(const wchar_t *, const wchar_t *, unsigned int);
END_ATF_NAMESPACE
|
; A292277: a(n) = 2^n*F(n)*F(n+1), where F = A000045.
; 0,2,8,48,240,1280,6656,34944,182784,957440,5012480,26247168,137428992,719593472,3767828480,19728629760,103300399104,540888006656,2832126181376,14829205585920,77646727741440,406563546202112,2128794362052608,11146511995895808,58363894510387200,305597319112294400,160... |
/**
* Copyright 2017 BitTorrent Inc.
*
* 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 in wr... |
// Copyright (c) the JPEG XL 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 "lib/jxl/optimize.h"
#include <algorithm>
#include "lib/jxl/base/status.h"
namespace jxl {
namespace optimize {
namespace {
// sim... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r13
push %r14
push %rax
push %rdx
push %rsi
// Load
mov $0x404532000000097c, %r14
nop
nop
dec %r13
vmovups (%r14), %ymm3
vextracti128 $0, %ymm3, %xmm3
vpextrq $1, %xmm3, %rax
nop
nop
and $7507, %r14
//... |
; A242853: 256*n^8 - 448*n^6 + 240*n^4 - 40*n^2 + 1.
; 1,9,40545,1372105,15003009,93149001,409389409,1423656585,4178507265,10783446409,25154396001,54085723209,108742564225,206671502025,374437978209,651009141001,1092011153409,1775000307465,2805897612385,4326746846409,6524966384001,9644275432009,13997485630305,1998135929... |
; A016255: Expansion of 1/((1-x)(1-7x)(1-12x)).
; 1,20,297,3964,50369,624036,7625689,92469068,1116354417,13443332212,161649541001,1942101373212,23321364646945,279969412942148,3360424215557433,40330629408450796,484006324653740753
lpb $0
mov $2,$0
sub $0,1
seq $2,16184 ; Expansion of 1/((1-7x)(1-12x)).
add $1,$2... |
;=======================================================================
; Copyright Baptiste Wicht 2013-2016.
; Distributed under the terms of the MIT License.
; (See accompanying file LICENSE or copy at
; http://www.opensource.org/licenses/MIT_1_0.txt)
;===============================================================... |
/**
Notices:
Copyright 2016 United States Government as represented by the
Administrator of the National Aeronautics and Space Administration. No
copyright is claimed in the United States under Title 17,
U.S. Code. All Other Rights Reserved.
Disclaimers
No Warranty: THE SUBJECT SOFTWARE IS PROV... |
_stressfs: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "fs.h"
#include "fcntl.h"
int
main(int argc, char *argv[])
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
int fd, i;
char path[] = "stressfs0";
7: b8 30 00 0... |
section .data
str: db '', 0
section .text
%include "lib.inc"
global _start
_start:
mov rdi, -1
mov rsi, -1
mov rax, -1
mov rcx, -1
mov rdx, -1
mov r8, -1
mov r9, -1
mov r10, -1
mov r11, -1
push rbx
push rbp
push r12
push r13
push r14
push r15
mov rdi, str
... |
/*------------------------------------------------------------------------
|
FILE : start.asm |
DATE : Wed, Aug 25, 2010 |
DESCRIPTION : Reset P... |
; A133582: a(n) is found from a(n-1) by dividing by D-1 and multiplying by D, where D is the smallest number that is not a divisor of a(n-1).
; Submitted by Christian Krause
; 1,2,3,6,8,12,15,30,40,60,70,105,210,280,420,480,560,840,945,1890,2520,2772,3465,6930,9240,10395,20790,27720,30030,40040,60060,68640,80080,120120... |
#include "../ActionTableWidget.h"
#include <Editor/TriggerCreator/TriggerCreator.h>
#include <Engine/Core/Trigger/Action/Actions.h>
void ActionTableWidget::GET_AMOUNT_OF_FRAMES_GetEditorTypeForCell(const QModelIndex& _index, const QString& _actionType, int& _editor)
{
if(_actionType == "GET_AMOUNT_OF_FRAMES")
{
... |
;;
;; Copyright (c) 2012-2021, 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... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r14
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0xa310, %r10
and %rax, %rax
mov (%r10), %r9d
nop
nop
nop
nop
and $34629, %rbx
lea addresses_A_ht+0xffb0, %r11
clflush (%r11)
nop
nop
nop
xor $14946, %r14
mo... |
; A081654: a(n) = 2*4^n - 0^n.
; 1,8,32,128,512,2048,8192,32768,131072,524288,2097152,8388608,33554432,134217728,536870912,2147483648,8589934592,34359738368,137438953472,549755813888,2199023255552,8796093022208,35184372088832,140737488355328,562949953421312,2251799813685248,9007199254740992
mov $1,4
pow $1,$0
lpb $0,1... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r15
push %r8
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x8b82, %r8
nop
nop
and $28350, %r11
mov (%r8), %edx
nop
add $36952, %r8
lea addresses_WC_ht+0x1c3e2, %r8
nop
nop
nop
nop
nop
cmp %rbx, %rbx
mov $0x6162636465666768, %r15
movq ... |
; A153008: Catalan number A000108(n) minus Motzkin number A001006(n).
; Submitted by Christian Krause
; 0,0,0,1,5,21,81,302,1107,4027,14608,52988,192501,701065,2560806,9384273,34504203,127288011,471102318,1749063906,6513268401,24323719461,91081800417,341929853235,1286711419527,4852902998951,18341683253676
mov $2,$0
se... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x13eac, %rsi
lea addresses_WT_ht+0x14844, %rdi
nop
sub $44738, %r11
mov $69, %rcx
rep movsw
and $40151, %rdx
lea addresses_D_ht+0x10104, %rsi
lea addresses_normal_ht+0x10f44, %rdi
nop
ad... |
dew {z1}
|
// Copyright 2019 Google LLC & Bastiaan Konings
// 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 o... |
;
; Author: Ege Balcı <ege.balci@protonmail.com>
; Version: 1.0
;
[BITS 32]
[ORG 0]
BuildImportTable:
mov eax,[esi+0x3C] ; Offset to IMAGE_NT_HEADER ("PE")
mov eax,[eax+esi+0x80] ; Import table RVA
add eax,esi ; Import table memory address (first image import descriptor)
push eax ; Save import descriptor to ... |
; A081071: a(n) = Lucas(4*n+2)-2, or Lucas(2*n+1)^2.
; 1,16,121,841,5776,39601,271441,1860496,12752041,87403801,599074576,4106118241,28143753121,192900153616,1322157322201,9062201101801,62113250390416,425730551631121,2918000611027441,20000273725560976,137083915467899401,939587134549734841,6440026026380244496,4414059505... |
; A191901: Number of compositions of odd natural numbers into 6 parts <= n.
; 0,32,364,2048,7812,23328,58824,131072,265720,500000,885780,1492992,2413404,3764768,5695312,8388608,12068784,17006112,23522940,32000000,42883060,56689952,74017944,95551488,122070312,154457888,193710244,240945152,297411660,364500000,443751840,5... |
; A220465: Reverse reluctant sequence of reverse reluctant sequence A004736.
; 1,2,1,1,2,1,3,1,2,1,2,3,1,2,1,1,2,3,1,2,1,4,1,2,3,1,2,1,3,4,1,2,3,1,2,1,2,3,4,1,2,3,1,2,1,1,2,3,4,1,2,3,1,2,1,5,1,2,3,4,1,2,3,1,2,1,4,5,1,2,3,4,1,2,3,1,2,1,3,4,5,1,2,3,4,1,2,3,1,2,1,2,3,4,5,1,2,3,4,1,2,3,1,2,1,1,2,3,4,5,1,2,3,4,1,2,3,1,2,1,6... |
; A178395: Triangle T(n,m) read by rows: the numerator of the coefficient [x^m] of the inverse Euler polynomial E^{-1}(n,x), 0 <= m <= n.
; 1,1,1,1,1,1,1,3,3,1,1,2,3,2,1,1,5,5,5,5,1,1,3,15,10,15,3,1,1,7,21,35,35,21,7,1,1,4,14,28,35,28,14,4,1,1,9,18,42,63,63,42,18,9,1,1,5,45,60,105,126,105,60,45,5,1,1,11,55,165,165,231,... |
#include "stdafx.h"
#include <iostream>
int integerPower(int base, int exponent) {
int t = base;
for (exponent; exponent > 1; exponent--) {
base *= t;
}
return base;
}
int _tmain(int argc, _TCHAR* argv[]) {
int base;
int exponent;
std::cout << "base: ";
s... |
dseg segment
counter dw 0
arr dw 80,-20,-50,5,21,22
N equ 6
dseg ends
sseg segment stack
dw 100h dup(?)
sseg ends
cseg segment
assume ds:dseg,cs:cseg,ss:sseg
start: mov ax,dseg
mov ds,ax
mov cx, N ; cx = array size
mov si, 0 ; si is the index for arr
myloop:
... |
//====- convert_onnx_to_krnl.cpp - ONNX dialects to Krnl lowering ---------===//
//
// Copyright 2019 The IBM Research Authors.
//
// =============================================================================
//
// This file implements the lowering of frontend operations to a combination of
// Krnl IR and standard o... |
; A201553: Number of arrays of 6 integers in -n..n with sum zero.
; 1,141,1751,9331,32661,88913,204763,418503,782153,1363573,2248575,3543035,5375005,7896825,11287235,15753487,21533457,28897757,38151847,49638147,63738149,80874529,101513259,126165719,155390809,189797061,230044751,276848011,330976941,393259721,464584723,5... |
; A076508: Expansion of 2*x*(1+4*x+8*x^2)/(1-24*x^3).
; 2,8,16,48,192,384,1152,4608,9216,27648,110592,221184,663552,2654208,5308416,15925248,63700992,127401984,382205952,1528823808,3057647616,9172942848,36691771392,73383542784,220150628352,880602513408
add $0,6
mov $1,3
lpb $0
sub $0,1
add $2,1
mul $1,$2
dif $... |
spawn: MACRO
; map, x, y
map_id \1
db \2, \3
ENDM
SpawnPoints:
; entries correspond to SPAWN_* constants
spawn OAKS_LAB, 4, 3
spawn VIRIDIAN_POKECENTER_1F, 5, 3
spawn PALLET_TOWN, 5, 6
spawn VIRIDIAN_CITY, 23, 26
spawn PEWTER_CITY, 13, 26
; spawn C... |
growth_rate: MACRO
; [1]/[2]*n**3 + [3]*n**2 + [4]*n - [5]
dn \1, \2
if \3 & $80 ; signed
db -\3 | $80
else
db \3
endc
db \4, \5
ENDM
GrowthRates:
; entries correspond to GROWTH_* (see constants/pokemon_data_constants.asm)
growth_rate 1, 1, 0, 0, 0 ; Medium Fast
growth_rate 3, 4, 10, 0, 30 ; Sligh... |
; A052549: a(n) = 5*2^(n-1) - 1, n>0, with a(0)=1.
; 1,4,9,19,39,79,159,319,639,1279,2559,5119,10239,20479,40959,81919,163839,327679,655359,1310719,2621439,5242879,10485759,20971519,41943039,83886079,167772159,335544319,671088639,1342177279,2684354559
mov $1,2
pow $1,$0
mul $1,5
sub $1,2
div $1,2
|
%include "pm.inc"
org 8000h
VRAM_ADDRESS equ 0x000a0000
jmp LABEL_BEGIN
[SECTION .gdt]
; 段基址 段界限 属性
LABEL_GDT: Descriptor 0, 0, 0
LABEL_DESC_CODE32: Descriptor 0, 0fffffh, DA_C | DA_32 ... |
; A001453: Catalan numbers - 1.
; 1,4,13,41,131,428,1429,4861,16795,58785,208011,742899,2674439,9694844,35357669,129644789,477638699,1767263189,6564120419,24466267019,91482563639,343059613649,1289904147323,4861946401451,18367353072151,69533550916003,263747951750359,1002242216651367,3814986502092303
add $0,2
mov $1,$0
... |
; A307989: a(n) = n - pi(2*n) + pi(n-1), where pi is the prime counting function.
; 0,0,1,2,3,4,4,6,6,6,7,8,9,11,11,11,12,14,14,16,16,16,17,18,19,20,20,21,22,23,23,25,26,26,27,27,27,29,30,30,31,32,33,35,35,36,37,39,39,40,40,40,41,42,42,43,43,44,45,47,48,50,51,51,52,52,53,55
mov $1,$0
cal $0,35250 ; Number of primes be... |
#include "inst.h"
/****************************************************************************
* CLASS 4B
****************************************************************************/
#undef INST
#define INST INST_CLASS_4B
C33_OP(srl_rd_imm4)
{
Rd.w = c33_srl(Rd.w, inst.imm4_rs);
PC.w += 2;
CLK += 1;
}
C... |
;
; Turtle graphics library
; Stefano - 11/2017
;
; $Id: pen_down.asm $
;
SECTION code_graphics
PUBLIC pen_down
PUBLIC _pen_down
.pen_down
._pen_down
ld hl,__pen
ld a,128
or (hl)
ld (hl),a
ret
SECTION bss_graphics
PUBLIC __pen
__pen: defb 0 ; ... |
#include "../1_LSQi/lsq_Layers.h"
#include "File.h"
#include "Disk.h"
#include "Timer.h"
#include <dirent.h>
/* --------------------------------------------------------------- */
/* Constants ----------------------------------------------------- */
/* ---------------------------------------------------------------... |
; A097325: Period 6: repeat [0, 1, 1, 1, 1, 1].
; 0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,... |
; double __FASTCALL__ lround(double x)
SECTION code_clib
SECTION code_fp_math48
PUBLIC cm48_sccz80_lround
EXTERN am48_lround
defc cm48_sccz80_lround = am48_lround
|
;================================================================================
; Four Digit Rupees
;--------------------------------------------------------------------------------
Draw4DigitRupees:
LDA $1B : AND.w #$00FF : BEQ .outdoors ; skip if outdoors
.indoors
LDA $A0 : BNE .normal ; skip except for ganon's... |
#include <QString>
QString getRandomString() {
const QString possibleCharacters("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefgjijklmnopqstruvwzyz0123456789");;
const int randomStringLength = 12;
QString randomString;
for(int i = 0; i < randomStringLength; ++i){
int index = qrand() % possibleCharacters.len... |
#include "twiddle.h"
#include <limits>
TwiddleOptimizer::TwiddleOptimizer(
const double tau_proportional,
const double tau_integral,
const double tau_differential) :
m_tau_proportional(tau_proportional),
m_tau_integral(tau_integral),
m_tau_differential(tau_differential),
m_tau_proportional_delta(tau_propor... |
#ifndef PYTHONIC_NUMPY_ASARRAY_HPP
#define PYTHONIC_NUMPY_ASARRAY_HPP
#include "pythonic/utils/proxy.hpp"
#include "pythonic/types/ndarray.hpp"
#include "pythonic/numpy/array.hpp"
namespace pythonic {
namespace numpy {
template<class E>
struct _asarray {
template<class... Type... |
// RUN: %clang_cc1 -verify -fopenmp=libiomp5 %s
void foo() {
}
bool foobool(int argc) {
return argc;
}
struct S1; // expected-note 2 {{declared here}} expected-note 2 {{forward declaration of 'S1'}}
extern S1 a;
class S2 {
mutable int a;
public:
S2() : a(0) {}
S2(S2 &s2) : a(s2.a) {}
static float S2s;
s... |
; A260446: Infinite palindromic word (a(1),a(2),a(3),...) with initial word w(1) = (0,1,0) and midword sequence (a(n)); see Comments.
; 0,1,0,0,0,1,0,1,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,1,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,1,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,1,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,1,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,1,0,1,0,0,... |
; A136393: a(n) = C(3^n,n).
; 1,3,36,2925,1663740,6774333588,204208594169580,47025847059877940202,84798009611754271531960140,1219731290030242386267605060168700,141916030352038369973126553950792759280336,135014764146790536172086401309543146222691187620907,1059423933424851544942069175250302606821411724442947804242020,690... |
; A169497: Number of reduced words of length n in Coxeter group on 4 generators S_i with relations (S_i)^2 = (S_i S_j)^34 = I.
; 1,4,12,36,108,324,972,2916,8748,26244,78732,236196,708588,2125764,6377292,19131876,57395628,172186884,516560652,1549681956,4649045868,13947137604,41841412812,125524238436,376572715308,1129718... |
; A003971: Inverse Möbius transform of A003960.
; Submitted by Christian Krause
; 1,2,3,3,4,6,5,4,7,8,7,9,8,10,12,5,10,14,11,12,15,14,13,12,13,16,15,15,16,24,17,6,21,20,20,21,20,22,24,16,22,30,23,21,28,26,25,15,21,26,30,24,28,30,28,20,33,32,31,36,32,34,35,7,32,42,35,30,39,40,37,28,38,40
add $0,1
mov $1,1
lpb $0
mov ... |
; A099054: Arshon's sequence: start from 1 and replace the letters in odd positions using 1 -> 123, 2 -> 231, 3 -> 312 and the letters in even positions using 1 -> 321, 2-> 132, 3 -> 213.
; 1,2,3,1,3,2,3,1,2,3,2,1,3,1,2,1,3,2,3,1,2,3,2,1,2,3,1,2,1,3,2,3,1,3,2,1,3,1,2,3,2,1,2,3,1,3,2,1,3,1,2,1,3,2,3,1,2,3,2,1,2,3,1,2,1,... |
; A067491: Powers of 5 with initial digit 1.
; Submitted by Jon Maiga
; 1,125,15625,1953125,1220703125,152587890625,19073486328125,11920928955078125,1490116119384765625,186264514923095703125,116415321826934814453125,14551915228366851806640625,1818989403545856475830078125,1136868377216160297393798828125,1421085471520200... |
SECTION code_clib
SECTION code_fp_math48
PUBLIC _islessequal
EXTERN cm48_sdccix_islessequal
defc _islessequal = cm48_sdccix_islessequal
|
#ifndef TestFluidNetworkWrapper_EXISTS
#define TestFluidNetworkWrapper_EXISTS
/**
@file
@brief TestFluidNetworkWrapper declarations.
@defgroup ISS_ORCH_FLUID_TESTFLUIDNETWORK TestFluidNetworkWrapper GUNNS Network
@ingroup ISS_ORCH_FLUID
@copyright Copyright 2019 United States Government as represented by the Admi... |
; nasm -f macho signal-mac.asm && ld -macosx_version_min 10.7.0 -o signal-mac signal-mac.o
global start
section .text
start:
jmp $+2
jmp $-2 |
#include "../../../strange__core.h"
namespace strange
{
// bidirectional_pair_extractor_t
// bidirectional_extractor_o
template <typename iterator_d, typename key_d, typename value_d>
bidirectional_extractor_o<typename bidirectional_pair_extractor_t<iterator_d, key_d, value_d>::element_d> const* bidirectional_pair... |
// Copyright 2017 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 "third_party/blink/renderer/core/paint/ng/ng_highlight_painter.h"
#include "third_party/blink/renderer/core/dom/node.h"
#include "third_party/bli... |
; void *wa_stack_pop_fastcall(wa_stack_t *s)
SECTION code_adt_wa_stack
PUBLIC _wa_stack_pop_fastcall
defc _wa_stack_pop_fastcall = asm_wa_stack_pop
INCLUDE "adt/wa_stack/z80/asm_wa_stack_pop.asm"
|
; A249038: Number of odd terms in first n terms of A249036.
; 1,1,1,2,2,2,3,4,4,5,5,5,6,7,7,7,8,9,9,10,10,11,11,11,12,13,13,13,14,15,15,15,16,17,17,17,18,19,19,20,20,21,21,22,22,23,23,23,24,25,25,25,26,27,27,27,28,29,29,29,30,31,31,31,32,33,33,33,34,35,35,35,36,37,37,37,38,39
mov $5,$0
mov $7,$0
add $7,1
lpb $7,1
cl... |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
const int ms = 1e5 + 5;
ll dp[10][100][2];
int a, b;
ll solve(int cur, int sum, int lim, string digit){
if(cur == -1) return sum;
if(dp[cur][sum][lim] != -1 && !lim) return dp[cur][sum][lim];
ll ret = 0;
... |
; A036563: a(n) = 2^n - 3.
; -2,-1,1,5,13,29,61,125,253,509,1021,2045,4093,8189,16381,32765,65533,131069,262141,524285,1048573,2097149,4194301,8388605,16777213,33554429,67108861,134217725,268435453,536870909,1073741821,2147483645,4294967293,8589934589,17179869181,34359738365,68719476733,137438953469,274877906941,549755... |
#Name: __STRIPPED__
#Username: __STRIPPED__
#Description: This program performs a Caesar Cipher of specified shifting on capital letters of words.
#email: __STRIPPED__
#DateCreated: 10-04-16
#DateLastRevised: 10-08-16
##########################################
#Begin
##########################################
##### Va... |
;------------------------------------------------------------------------------
; @file
; Emits Page Tables for 1:1 mapping of the addresses 0 - 0x100000000 (4GB)
;
; Copyright (c) 2008 - 2014, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
;--------------------------------... |
; A250766: Number of (n+1) X (5+1) 0..1 arrays with nondecreasing x(i,j)-x(i,j-1) in the i direction and nondecreasing absolute value of x(i,j)-x(i-1,j) in the j direction.
; 133,214,344,572,996,1812,3412,6580,12884,25460,50580,100788,201172,401908,803348,1606196,3211860,6423156,12845716,25690804,51380948,102761204,205... |
/*
* Copyright 2009-2017 Alibaba Cloud 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... |
; A175461: Semiprimes of form 8n+5.
; Submitted by Christian Krause
; 21,69,77,85,93,133,141,205,213,221,237,253,301,309,341,365,381,413,437,445,453,469,485,493,501,517,533,565,573,581,589,597,629,669,685,717,749,781,789,813,869,893,901,917,933,949,965,973,989,1037,1077,1101,1133,1141,1149,1157,1165,1189,1205,1253,1261... |
// RUN: %check_clang_tidy -std=c++11,c++14 %s google-readability-casting %t
// FIXME: Fix the checker to work in C++17 mode.
bool g() { return false; }
enum Enum { Enum1 };
struct X {};
struct Y : public X {};
void f(int a, double b, const char *cpc, const void *cpv, X *pX) {
const char *cpc2 = (const char*)cpc;
... |
.file "e:\lcc\include\stddef.h"
_$M0:
.file "e:\projects\progs\petrosjan\bjwj\worm\kkqvx.c"
.text
.file "e:\lcc\include\stdlib.h"
_$M1:
.text
.file "e:\lcc\include\safelib.h"
_$M2:
.file "e:\lcc\include\stdlib.h"
_$M3:
.file "e:\lcc\include\string.h"
_$M4:
.file "e:\lcc\include\stdarg.h"
_$M5:
... |
; A010227: Continued fraction for sqrt(185).
; 13,1,1,1,1,26,1,1,1,1,26,1,1,1,1,26,1,1,1,1,26,1,1,1,1,26,1,1,1,1,26,1,1,1,1,26,1,1,1,1,26,1,1,1,1,26,1,1,1,1,26,1,1,1,1,26,1,1,1,1,26,1,1,1,1,26,1,1,1,1,26,1,1,1,1
mov $4,$0
mov $6,2
lpb $6
mov $0,$4
sub $6,1
add $0,$6
sub $0,1
div $0,5
mov $2,25
mul $2,$0
... |
//
// Copyright (c) 2008-2019 the Urho3D project.
//
// 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, mod... |
/* Copyright 2021 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... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x18391, %rax
nop
nop
nop
nop
nop
and $2534, %r11
movups (%rax), %xmm5
vpextrq $0, %xmm5, %rsi
nop
nop
nop
nop
cmp %rsi, %rsi
lea addresses_normal_ht+0x122b1, %rsi
lea addresses_WT_ht+0x... |
; Compile with: NASM -fbin cpuid_1.asm
BITS 64 ; Avoids nasm putting the OPCODE prefix (66h)
mov eax, 1
cpuid |
bits 64
default rel
section .text
global pal_execute_read_mem64
pal_execute_read_mem64 :
mov rax, QWORD [rdi]
ret
|
define TIFS_SECTOR_FLAG $F0
define TIFS_SECTOR_BASE $0C0000
define TIFS_SECTOR_COUNT $34
; valid 0FCh
; valid 0FFh
; valid 0F0h
define TIFS_FILE_VALID $FC
define TIFS_FILE_DELETED $F0
define TIFS_FILE_CORRUPTED $FE
define TIFS_FILE_FLAG 0
define TIFS_FILE_SIZE 1 ; doesnt take in count the small offset, so ... |
; A010718: Periodic sequence: repeat [5, 7].
; Submitted by Christian Krause
; 5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5
mod $0,2
mul $0,2
add $0,5
|
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <gmock/gmock.h>
#include <PatriciaTreeSetAbstractDomain.h>
#include <Show.h>
#include <mariana-trench/AbstractTreeDomain... |
; A017652: (12n+10)^12.
; 1000000000000,12855002631049216,2386420683693101056,89762301673555234816,1449225352009601191936,13841287201000000000000,92420056270299898187776,475920314814253376475136,2012196471835550329409536,7287592625109126008344576
mul $0,12
add $0,10
pow $0,12
|
; A032532: Integer part of decimal 'base-2 looking' numbers divided by their actual base-2 values (denominator of a(n) is n, numerator is n written in binary but read in decimal).
; 1,5,3,25,20,18,15,125,111,101,91,91,84,79,74,625,588,556,526,505,481,459,439,458,440,423,407,396,382,370,358,3125,3030,2941,2857,2780,2705... |
#include <bits/stdc++.h>
using namespace std;
int main()
{
int r1 , c1 ;
cin>>r1>>c1;
int r2 , c2 ;
cin>>r2>>c2;
int m1[r1][c1];
for(int i=0; i<r1; i++){
for(int j=0; j<c1; j++){
cin>>m1[i][j];
}
}
int m2[r2][c2] ;
for(int i=0; i<r2; i++){
... |
//Seventh refinement of Adaptive Exterior Light and Speed Control System
//Setting and modifying desired speed -
//Cruise control - Speed limit - Traffic sign detection
//from SCS-1 to SCS-17
//from SCS-29 to SCS-35
//from SCS-36 to SCS-39
//from SCS-18 to SCS-26
asm CarSystem007main
import ../../StandardLibrary
impo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.