text stringlengths 1 1.05M |
|---|
; A337336: a(n) = A048673(n^2).
; 1,5,13,41,25,113,61,365,313,221,85,1013,145,545,613,3281,181,2813,265,1985,1513,761,421,9113,1201,1301,7813,4901,481,5513,685,29525,2113,1625,2965,25313,841,2381,3613,17861,925,13613,1105,6845,15313,3785,1405,82013,7321,10805,4513,11705,1741,70313,4141,44105,6613,4325,1861,49613,2245,6... |
; A180170: a(0) = 1, a(n) = n*a(n-1)*A014963(n).
; Submitted by Jon Maiga
; 1,1,4,36,288,7200,43200,2116800,33868800,914457600,9144576000,1106493696000,13277924352000,2243969215488000,31415569016832000,471233535252480000,15079473128079360000,4357967734014935040000,78443419212268830720000
mov $2,$0
seq $0,3418 ; Least ... |
// $Id$
#ifndef ACE_IOSTREAM_T_CPP
#define ACE_IOSTREAM_T_CPP
#include "ace/IOStream_T.h"
#include "ace/OS_Memory.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if !defined (ACE_LACKS_ACE_IOSTREAM)
#if !defined (__ACE_INLINE__)
#include "ace/IOStream_T.inl"
#endif /* !__A... |
// Copyright (c) 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 "ui/gfx/win/window_impl.h"
#include <list>
#include "base/debug/alias.h"
#include "base/memory/singleton.h"
#include "base/strings/string_n... |
beq, R0, R0, 1
sd, R10, 1(R0)
sd, R10, 4(R0) |
; A283507: Decimal representation of the x-axis, from the origin to the right edge, of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 641", based on the 5-celled von Neumann neighborhood.
; 1,0,5,3,23,15,95,63,383,255,1535,1023,6143,4095,24575,16383,98303,65535,393215,262143,1572863... |
printname:
push rbp
mov rbp,rsp
mov rax,0x01
mov rdi,0x01
mov rsi,QWORD [rbp+16]
mov rdx,QWORD [rbp+24]
syscall
leave
ret
exit:
push rbp
mov rbp,rsp
mov rax,0x03c
mov rdi,0x00
syscall
leave
ret |
/*!
@file
@author Albert Semenov
@date 08/2010
*/
#include "Precompiled.h"
#include "StateControl.h"
namespace tools
{
StatesControl::StatesControl(MyGUI::Widget* _parent) :
wraps::BaseLayout("StateControl.layout", _parent),
mStatesListControl(nullptr),
mStatePropertyControl(nullptr),
mStateTextureContr... |
; A181388: a(n) = Sum_{k=1..n} 2^T(k-1), where T = A000217 are the triangular numbers 0, 1, 3, 6, 10, ... . For n=0 we have the empty sum equal to 0.
; 0,1,3,11,75,1099,33867,2131019,270566475,68990043211,35253362132043,36064050381096011,73823040345219302475,302305277944002512979019,2476182383848704552311227467,4056729... |
; SPDX-License-Identifier: MIT
;
; MIT License
;
; Copyright (c) 2018-2020 Eldred Habert
;
; 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 t... |
; int bv_priority_queue_pop(bv_priority_queue_t *q)
SECTION code_clib
SECTION code_adt_bv_priority_queue
PUBLIC bv_priority_queue_pop
EXTERN asm_bv_priority_queue_pop
defc bv_priority_queue_pop = asm_bv_priority_queue_pop
|
#include "textedit.h"
#include "textedit.h"
#include <QCompleter>
#include <QKeyEvent>
#include <QAbstractItemView>
#include <QtDebug>
#include <QApplication>
#include <QModelIndex>
#include <QAbstractItemModel>
#include <QScrollBar>
#include <QStringListModel>
#include <nodes/NodeDataModel>
TextEdit::TextEdit(QWidge... |
; --------------------------------------------------------------------------
; Copyright (c) 2019, Christopher D. Farrar
; --------------------------------------------------------------------------
; I here grant permission to any and all to copy and use this software for
; any purpose as long as my copyright message i... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: trLargeNextPrev.asm
AUTHOR: John Wedgwood, Feb 12, 1992
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Dat... |
; CALLER linkage for function pointers
; 06.2008 aralbrec
PUBLIC fdopen
EXTERN fdopen_callee
EXTERN ASMDISP_FDOPEN_CALLEE
.fdopen
pop af
pop de
pop hl
push hl
push de
push af
jp fdopen_callee + ASMDISP_FDOPEN_CALLEE
|
; A190050: Expansion of ((1-x)*(3*x^2-3*x+1))/(1-2*x)^3
; 1,2,6,17,46,120,304,752,1824,4352,10240,23808,54784,124928,282624,634880,1417216,3145728,6946816,15269888,33423360,72876032,158334976,342884352,740294656,1593835520,3422552064,7331643392,15669919744,33420214272,71135395840,151129161728,320511934464,678604832768,... |
; A325191: Number of integer partitions of n such that the difference between the length of the minimal triangular partition containing and the maximal triangular partition contained in the Young diagram is 1.
; 0,0,2,0,3,3,0,4,6,4,0,5,10,10,5,0,6,15,20,15,6,0,7,21,35,35,21,7,0,8,28,56,70,56,28,8,0,9,36,84,126,126,84,3... |
; A001580: a(n) = 2^n + n^2.
; 1,3,8,17,32,57,100,177,320,593,1124,2169,4240,8361,16580,32993,65792,131361,262468,524649,1048976,2097593,4194788,8389137,16777792,33555057,67109540,134218457,268436240,536871753,1073742724,2147484609,4294968320,8589935681,17179870340,34359739593,68719478032,137438954841,274877908388,5497... |
;------------------------------------------------------------------------------
;
; 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. Th... |
; --------------------------------------------------------------------------------------------------
; Note Lookups Alternate - 128 bytes each, map MIDI Note# to a VIC register value
; From http://sleepingelephant.com/ipw-web/bulletin/bb/viewtopic.php?t=3643
voice1lookup_alt:
byte 0
byte 0
byte 0 ... |
jmp $fcc3 |
//************************************ bs::framework - Copyright 2018 Marko Pintera **************************************//
//*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********//
#include "BsD3D11GpuBufferView.h"
#include "BsD3D11GpuBuffer.h"
#inclu... |
; A123344: Expansion of (1+3*x)/(1+2*x).
; 1,1,-2,4,-8,16,-32,64,-128,256,-512,1024,-2048,4096,-8192,16384,-32768,65536,-131072,262144,-524288,1048576,-2097152,4194304,-8388608,16777216,-33554432,67108864,-134217728,268435456,-536870912,1073741824,-2147483648,4294967296,-8589934592,17179869184,-34359738368,68719476736,... |
; A024022: a(n) = 2^n - n^12.
; 1,1,-4092,-531433,-16777200,-244140593,-2176782272,-13841287073,-68719476480,-282429535969,-999999998976,-3138428374673,-8916100444160,-23298085114289,-56693912358912,-129746337857857,-281474976645120,-582622237098689,-1156831381164032,-2213314918541873,-4095999998951424,-735582750928948... |
; A113778: Invert blocks of four in the sequence of natural numbers.
; 4,3,2,1,8,7,6,5,12,11,10,9,16,15,14,13,20,19,18,17,24,23,22,21,28,27,26,25,32,31,30,29,36,35,34,33,40,39,38,37,44,43,42,41,48,47,46,45,52,51,50,49,56,55,54,53,60,59,58,57,64,63,62,61,68,67,66
mov $1,$0
mod $1,4
sub $0,$1
sub $0,$1
add $0,4
|
[bits 32]
newline equ 0x0A
endstring equ 0x0
;clearScreenG :
;pusha
;mov dx, 0x0
;mov ebx, [Dolphin.SCREEN_BUFFER]
;mov edx, ebx
;add edx, [Graphics.SCREEN_SIZE]
;csgloop :
;mov [ebx], dx
;add ebx, 0x2
;cmp ebx, edx
;jl csgloop
;mov ecx, [TextHandler.charpos]
;mov ecx, [Dolphin.SCREEN_BUFFER]
;mov [TextHandler.charpo... |
*= $0801
.byte $4c,$14,$08,$00,$97
turboass = 780
.text "780"
.byte $2c,$30,$3a,$9e,$32,$30
.byte $37,$33,$00,$00,$00
lda #1
sta turboass
jmp main
print
.block
pla
sta print0+1
pla
... |
//
// basic_descriptor.cpp
// ~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2020 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Disable autolinking for ... |
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "strfmt.h"
#include "json_format.h"
#include "inserter.h"
#include "slime.h"
#include <vespa/vespalib/data/memory_input.h>
#include <vespa/vespalib/locale/c.h>
#include <cmath>
#include <sstr... |
; A166629: Totally multiplicative sequence with a(p) = 8p for prime p.
; 1,16,24,256,40,384,56,4096,576,640,88,6144,104,896,960,65536,136,9216,152,10240,1344,1408,184,98304,1600,1664,13824,14336,232,15360,248,1048576,2112,2176,2240,147456,296,2432,2496,163840,328,21504,344,22528,23040,2944,376,1572864,3136,25600,3264,2... |
; A288835: a(n) = (1/2!)*3^n*(n+3)*(n).
; 6,45,243,1134,4860,19683,76545,288684,1062882,3838185,13640319,47829690,165809592,569173311,1937102445,6543101592,21953827710,73222472421,242912646603,801960412230,2636009007156,8629791392475,28148810469273,91507169819844
mov $2,$0
add $0,4
mov $1,1
add $2,1
mov $3,3
lpb $0
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r8
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x847f, %rdx
nop
dec %r8
mov (%rdx), %rdi
sub %rsi, %rsi
lea addresses_WC_ht+0x5a27, %rsi
lea addresses_UC_ht+0xce8f, %rdi
nop
nop
nop
xor %rax, %rax
mov $16, %rcx
rep movs... |
// seed 2
lbi r0, 92 // icount 0
slbi r0, 75 // icount 1
lbi r1, 227 // icount 2
slbi r1, 239 // icount 3
lbi r2, 35 // icount 4
slbi r2, 83 // icount 5
lbi r3, 80 // icount 6
slbi r3, 91 // icount 7
lbi r4, 89 // icount 8
slbi r4, 194 // icount 9
lbi r5, 211 // icount 10
slbi r5, 82 // icount 11
lbi r6, 211 // icount ... |
; AtieDOS 2.10 Clear Command
; Copyright (c) 2020 AtieSoftware.
; See LICENSE in root folder
command_clear:
call os_clear_screen
jmp get_input |
// Copyright 2019 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 "base/fuchsia/startup_context.h"
#include <fuchsia/io/cpp/fidl.h>
#include "base/fuchsia/file_utils.h"
namespace base {
namespace fuchsia {
S... |
; A175254: a(n) = Sum_{k<=n} A000203(k)*(n-k+1), where A000203(m) is the sum of divisors of m.
; 1,5,13,28,49,82,123,179,248,335,434,561,702,867,1056,1276,1514,1791,2088,2427,2798,3205,3636,4127,4649,5213,5817,6477,7167,7929,8723,9580,10485,11444,12451,13549,14685,15881,17133,18475,19859,21339,22863,24471,26157,27915,2... |
title "Global SpinLock declerations"
;++
;
;Copyright (c) 1991 Microsoft Corporation
;
;Module Name:
;
; splocks.asm
;
;Abstract:
;
; All global spinlocks in the kernel image are declared in this
; module. This is done so that each spinlock can be spaced out
; sufficiently to guaarantee t... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x453d, %rsi
lea addresses_D_ht+0x7325, %rdi
sub %r11, %r11
mov $12, %rcx
rep movsq
nop
nop
nop
cmp $29910, %r8
lea addresses_A_ht+0x142a5, %rsi
lea addresses_normal_ht+0x1e475,... |
@ This file was created from a .asm file
@ using the ads2gas.pl script.
.equ DO1STROUNDING, 0
.equ ARCH_ARM , 1
.equ ARCH_MIPS , 0
.equ ARCH_X86 , 0
.equ ARCH_X86_64 , 0
.equ HAVE_EDSP , 0
.equ HAVE_MEDIA , 1
.equ HAVE_NEON , 0
.equ HAVE_NEON_ASM , 0
.equ HAVE_MIPS32 , 0
.equ HAVE_DSPR2 , 0
.equ HAVE_MSA , ... |
#include "Platform.inc"
#include "TestDoubles.inc"
radix decimal
udata
global calledSetLcdBacklightFlag
global calledClearLcdBacklightFlag
calledSetLcdBacklightFlag res 1
calledClearLcdBacklightFlag res 1
BacklightMocks code
global initialiseLcdBacklightMocks
global setLcdBacklightFlag
global clearLcdBackl... |
; 1 2 3 4 5 6 7
;234567890123456789012345678901234567890123456789012345678901234567890
;=====================================================================
;
; *** TEST ***
;
;-------------------------------------------------------------... |
###############################################################################
# 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... |
; A158121: Given n points in the complex plane, let M(n) the number of distinct Moebius transformations that take 3 distinct points to 3 distinct points. Note that the triples may have some or all of the points in common.
; 6,93,591,2381,7316,18761,42253,86281,163186,290181,490491,794613,1241696,1881041,2773721,3994321... |
; A244634: 27*n^2.
; 0,27,108,243,432,675,972,1323,1728,2187,2700,3267,3888,4563,5292,6075,6912,7803,8748,9747,10800,11907,13068,14283,15552,16875,18252,19683,21168,22707,24300,25947,27648,29403,31212,33075,34992,36963,38988,41067,43200,45387,47628,49923,52272,54675,57132,59643,62208,64827,67500,70227,73008,75843,78732... |
; A301879: Number of nX3 0..1 arrays with every element equal to 0, 1 or 3 horizontally or antidiagonally adjacent elements, with upper left element zero.
; Submitted by Jon Maiga
; 3,10,29,95,289,917,2841,8921,27801,87009,271657,849313,2653273,8292465,25910729,80972065,253021369,790675217,2470747561,7720841601,2412667... |
; A052626: (2^n+2)*n!.
; 3,4,12,60,432,4080,47520,655200,10402560,186520320,3723148800,81829440000,1962948556800,51024208435200,1428503479603200,42852489039360000,1371237803679744000,46621373950255104000
mov $1,2
pow $1,$0
seq $0,142 ; Factorial numbers: n! = 1*2*3*4*...*n (order of symmetric group S_n, number of perm... |
; A065357: a(n) = (-1)^pi(n) where pi(n) is the number of primes <= n.
; 1,1,-1,1,1,-1,-1,1,1,1,1,-1,-1,1,1,1,1,-1,-1,1,1,1,1,-1,-1,-1,-1,-1,-1,1,1,-1,-1,-1,-1,-1,-1,1,1,1,1,-1,-1,1,1,1,1,-1,-1,-1,-1,-1,-1,1,1,1,1,1,1,-1,-1,1,1,1,1,1,1,-1,-1,-1,-1,1,1,-1,-1,-1,-1,-1,-1,1,1,1,1,-1,-1,-1,-1,-1,-1,1,1,1,1,1,1,1,1,-1,-1,-1... |
//
// Stream.hpp
// File file is part of the "Async" project and released under the MIT License.
//
// Created by Samuel Williams on 11/7/2017.
// Copyright, 2017, by Samuel Williams. All rights reserved.
//
#pragma once
#include "Result.hpp"
#include "Generic.hpp"
#include <string>
namespace Async
{
namespace... |
/****************************************************************************
** Resource object code
**
** Created by: The Resource Compiler for Qt version 5.6.3
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
static const unsig... |
SECTION .text
GLOBAL square_p434
square_p434:
sub rsp, 0x668 ; last 0x30 (6) for Caller - save regs
mov [ rsp + 0x638 ], rbx; saving to stack
mov [ rsp + 0x640 ], rbp; saving to stack
mov [ rsp + 0x648 ], r12; saving to stack
mov [ rsp + 0x650 ], r13; saving to stack
mov [ rsp + 0x658 ], r14; saving to stack
mov [ rs... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r8
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x162e0, %rbx
add %r8, %r8
mov (%rbx), %r13w
nop
nop
nop
nop
nop
cmp %rax, %rax
lea addresses_D_ht+0x3769, %rsi
lea addresses_WC_ht+0x11ee9, %rdi
nop
nop
nop
nop
nop
cmp %r13, ... |
; A022917: Multinomial coefficient n!/ ([n/4]!, [(n+1)/4]!, [(n+2)/4]!, [(n+3)/4]!).
; Submitted by Jamie Morken(s4.)
; 1,1,2,6,24,60,180,630,2520,7560,25200,92400,369600,1201200,4204200,15765750,63063000,214414200,771891120,2933186256,11732745024,41064607584,150570227808,577185873264,2308743493056,8245512475200,306261... |
; Copyright (C) 2020, Vi Grey
; All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions
; are met:
;
; 1. Redistributions of source code must retain the above copyright
; notice, this list of conditions and the f... |
ORG #5B17
ZZUU LD A,7
OUT (#FE),A
LD A,0
OUT (#FE),A
JR ZZUU
ORG #8000
INCBIN "savage0#"
ORG #6003
LD DE,#4000
LD C,#20
PUSH HL,DE,BC
LOOP PUSH BC
PUSH DE
LOOP1 LD A,(HL)
LD (DE),A
INC HL
I... |
; A127960: a(n) = n^2*3^n.
; 0,3,36,243,1296,6075,26244,107163,419904,1594323,5904900,21434787,76527504,269440587,937461924,3228504075,11019960576,37321507107,125524238436,419576389587,1394713760400,4613015762523,15188432850756,49801741599483,162679413013056,529555380901875,1718301299950404,5559060566555523
mov $1,3
p... |
echo " "
echo " Loader and Depacker"
echo " "
BlockSize set 2048
NewDirOffset set 203
NEWHEAD set 1
;;AUDIN_SWITCH set 1 ;; not needed as I only load from frist bank
MENUX_FILE set 1
;;USE_EXPLODER set 1 ; Size ~ $1F8 + 44 ZP
USE_PUCRUNCH set 1 ; Size ~ $1F8 + 44 ZP
* Macros
* include "ha... |
dnl Intel Pentium-4 mpn_divexact_1 -- mpn by limb exact division.
dnl Rearranged from mpn/x86/pentium4/sse2/dive_1.asm by Marco Bodrato.
dnl Copyright 2001, 2002, 2007, 2011 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistrib... |
#include "NavControl.h"
#include "../Cache.h"
#include "../Constants/Strings.h"
#include "../Constants/UiConstants.h"
#include "../Map/TileMap.h"
#include "../Map/MapView.h"
#include <NAS2D/Utility.h>
#include <NAS2D/Renderer/Renderer.h>
#include <NAS2D/Renderer/Color.h>
#include <NAS2D/Math/Point.h>
#include <NAS2D/... |
/*
* Copyright 2015-2017, 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 ... |
; A040357: Continued fraction for sqrt(377).
; Submitted by Jon Maiga
; 19,2,2,2,38,2,2,2,38,2,2,2,38,2,2,2,38,2,2,2,38,2,2,2,38,2,2,2,38,2,2,2,38,2,2,2,38,2,2,2,38,2,2,2,38,2,2,2,38,2,2,2,38,2,2,2,38,2,2,2,38,2,2,2,38,2,2,2,38,2,2,2,38,2,2,2,38,2,2,2,38,2,2,2
gcd $0,262156
mul $0,42
mod $0,13
mov $1,$0
sub $1,2
div $... |
%include "macros.inc"
global _wav_write
global _wav_parse
segment .rodata align=16
xmmDat1 dq 2147483648
align 16
xmmDat2 dq 4503599627370496
align 16
xmmDat3 dq 4841369599423283200
segment .text align=16
_wav_write:
multipush ebx, edi, esi
mov edi, [esp + 20]
mov esi, [edi + 32]
cmp esi, 1
j... |
COMMENT @-----------------------------------------------------------------------
Copyright (c) GeoWorks 1989 -- All Rights Reserved
PROJECT: PC/GEOS
MODULE:
FILE:
AUTHOR: Cheng, 11/89
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ---- --... |
; A146501: Period 6: 4,8,7,5,1,2.
; 4,8,7,5,1,2,4,8,7,5,1,2,4,8,7,5,1,2,4,8,7,5,1,2,4,8,7,5,1,2,4,8,7,5,1,2,4,8,7,5,1,2,4,8,7,5,1,2,4,8,7,5,1,2,4,8,7,5,1,2,4,8,7,5,1,2,4,8,7,5,1,2,4,8,7,5,1,2,4,8,7,5,1,2,4,8,7,5,1,2,4,8,7,5,1,2,4,8,7,5,1,2
mov $1,4
mov $2,$0
lpb $2,1
mul $1,2
mod $1,9
sub $2,1
lpe
|
use16
org 7c00h
CODE_SEG equ gdt_code - gdt
DATA_SEG equ gdt_data - gdt
CODE64_SEG equ gdt64_code - gdt64
DATA64_SEG equ gdt64_data - gdt64
start:
mov ax, 0x2401
int 15h
mov ax, 0x3
int 10h
cli
xor ax, ax
mov ds, ax
lgdt [gdt_desc]
mov eax, cr0
or eax, 0x1
mov cr0, eax
jmp CODE_SEG:clear_pipe
... |
; A077862: Expansion of (1-x)^(-1)/(1-2*x+2*x^2+2*x^3).
; Submitted by Christian Krause
; 1,3,5,3,-9,-33,-53,-21,131,411,603,123,-1781,-5013,-6709,171,23787,60651,73387,-22101,-312277,-727125,-785493,507819,4040875,8637099,8176811,-9002325,-51632469,-101613909,-81958229,142576299,652296875,1183357611,776968875,-2117371... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
+---------... |
/**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* 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... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r15
push %r8
push %r9
push %rax
push %rbx
push %rdi
lea addresses_A_ht+0x1086b, %rdi
nop
nop
sub %r9, %r9
movw $0x6162, (%rdi)
nop
nop
nop
nop
nop
lfence
lea addresses_A_ht+0x9753, %r8
clflush (%r8)
nop
sub $6841, %rax
movl $0x61626364, (%r8)
nop
nop
cmp %r8,... |
_text segment para public 'CODE' use32
sub_test proc near
push ebp
cmp ecx, 0
je loc1
push ebx
xor eax, eax
jmp end
loc1:
push ebx
mov eax, 1
e... |
; The 8259 Programmable Interrupt Controller (PIC)
; https://wiki.osdev.org/8259_PIC
; PIC has command regsiter and data register
; each chip has its own register
pic_init:
; Initialization Command Word 1
; 0=1 1=0 2=0 3=0 4=1 5=0 6=0 7=0
; bit 4 means that this is the initialization command word
... |
; A008750: Expansion of (1+x^7)/((1-x)*(1-x^2)*(1-x^3)).
; 1,1,2,3,4,5,7,9,11,14,17,20,24,28,32,37,42,47,53,59,65,72,79,86,94,102,110,119,128,137,147,157,167,178,189,200,212,224,236,249,262,275,289,303,317,332,347,362,378,394,410,427,444,461,479,497,515,534,553,572,592,612,632,653,674,695,717,739,761,784,807,830,854,87... |
SECTION code_clib
SECTION code_fp_math32
EXTERN m32_float8, _m32_exp10f, m32_fsmul_callee
PUBLIC m32__dtoa_base10
m32__dtoa_base10:
; convert float from standard form "a * 2^n"
; to a form multiplied by power of 10 "b * 10^e"
; where 1 <= b < 10 with b in double format
;
; rewritten from math48... |
/*
*********************************************************************************************************
* uC/LIB
* Custom Library Modules
*
* Copyright 2004-2021 Silicon Laboratories Inc. www.silabs.com
*
* ... |
SECTION code_lib
SECTION code_compress_zx1
PUBLIC asm_dzx1_standard_back
asm_dzx1_standard_back:
INCLUDE "dzx1_standard_back.asm"
|
; A139532: Numbers n such that numbers 24n+19 are primes.
; Submitted by Jon Maiga
; 0,1,2,5,6,8,11,12,13,15,20,21,22,23,25,26,28,30,32,33,35,36,37,43,46,48,53,60,61,63,65,67,70,71,72,77,82,83,86,88,90,91,93,97,98,102,105,110,111,112,113,116,118,123,125,127,131,132,135,137,138,145,147,148,151,153,155,162,163,166,167,16... |
cut equ offset len-300h
virsize equ offset len-100h
memsize equ (virsize+20h)/16+1
xor di,di
mov ds,di
mov ss,di
mov sp,7BF0h
mov si,7C00h
push si
mov ax,3000h
... |
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using std::cout;
using std::endl;
using std::ifstream;
using std::istringstream;
using std::string;
using std::vector;
enum class State { kEmpty, kObstacle, kClosed };
string CellString(State cell) {
return (cell == State... |
; A082902: a(n) = gcd(2^n, sigma(2,n)) = gcd(A000079(n), A001157(n)).
; 1,1,2,1,2,2,2,1,1,2,2,2,2,2,4,1,2,1,2,2,4,2,2,2,1,2,4,2,2,4,2,1,4,2,4,1,2,2,4,2,2,4,2,2,2,2,2,2,1,1,4,2,2,4,4,2,4,2,2,4,2,2,2,1,4,4,2,2,4,4,2,1,2,2,2,2,4,4,2,2,1,2,2,4,4,2,4,2,2,2,4,2,4,2,4,2,2,1,2,1,2,4,2,2,8,2,2,4,2,4,4,2,2,4,4,2,2,2,4,4,1,2,4,2... |
; Rectangle, Intervals and Points
; 05.2006 aralbrec
PUBLIC RIsPtInIval8
; Determine if 8-bit point lies in an 8-bit interval.
; Interval bounds wrap across 0-255 boundaries.
;
; enter : a = coordinate of point
; d = interval start coordinate
; e = width of interval
; exit : carry flag set = in i... |
;---------------------------Module-Header------------------------------;
; Module Name: math.asm
;
; Fast math routines.
;
; Created: 11/1/1996
; Author: Otto Berkes [ottob]
;
; Copyright (c) 1996 Microsoft Corporation
;----------------------------------------------------------------------;
.386
... |
# Copyright (C) 2001 Free Software Foundation, Inc.
# Written By Nick Clifton
#
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2, or (at your option) any
# later version.
#
# ... |
INCLUDE "clib_cfg.asm"
SECTION code_stdio
PUBLIC __stdio_verify_valid_lock
EXTERN __p_forward_list_locate_item, __stdio_lock_acquire
EXTERN error_ebadf_mc, error_enolck_mc
EXTERN __stdio_open_file_list
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $04
EXTERN __stdio_lock_file_list, __stdio_unlock_f... |
CinnabarGym_h:
db FACILITY ; tileset
db CINNABAR_GYM_HEIGHT, CINNABAR_GYM_WIDTH ; dimensions (y, x)
dw CinnabarGym_Blocks ; blocks
dw CinnabarGym_TextPointers ; texts
dw CinnabarGym_Script ; scripts
db 0 ; connections
dw CinnabarGym_Object ; objects
|
; A035488: 3rd column of Stolarsky array.
; 3,10,18,24,31,37,45,52,58,65,71,79,86,92,99,107,113,120,126,134,141,147,154,162,168,175,181,188,196,202,209,215,223,230
mov $2,$0
add $2,$0
cal $2,134860 ; Wythoff AAB numbers; also, Fib101 numbers: those n for which the Zeckendorf expansion A014417(n) ends with 1,0,1.
add $... |
; A159217: 1/8 the number of n X n arrays of squares of integers with every 2X2 subblock summing to 17
; 3,8,17,35,69,137,269,533,1053,2093,4157,8285,16509,32957,65789,131453,262653,525053,1049597,2098685,4196349,8391677,16781309,33560573,67117053,134230013,268451837
mov $1,4
mov $2,$0
lpb $0
sub $0,1
mul $1,2
a... |
//==============================================================================================================
//KeyBindingSystem.cpp
//by Albert Chen Mar-22-2016.
//==============================================================================================================
#include "KeyBindingSystem.hpp"
//=====... |
; A152887: Number of descents beginning with an even number and ending with an odd number in all permutations of {1,2,...,n}.
; Submitted by Jamie Morken(s2)
; 0,1,2,18,72,720,4320,50400,403200,5443200,54432000,838252800,10059033600,174356582400,2440992153600,47076277248000,753220435968000,16005934264320000,28810681675... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r8
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x10d25, %rbx
nop
nop
nop
xor $5239, %r8
mov (%rbx), %r9
nop
nop
nop
nop
lfence
lea addresses_A_ht+0x1922e, %rsi
lea addresses_WT_ht+0x1ad55, %rdi
nop
nop
nop
nop
nop
and $7481,... |
SafariZoneNorthRestHouse_Script:
call EnableAutoTextBoxDrawing
ret
SafariZoneNorthRestHouse_TextPointers:
dw SafariZoneRestHouse4Text1
dw SafariZoneRestHouse4Text2
dw SafariZoneRestHouse4Text3
SafariZoneRestHouse4Text1:
TX_FAR _SafariZoneRestHouse4Text1
db "@"
SafariZoneRestHouse4Text2:
TX_FAR _SafariZoneRes... |
; ---------------------------------------------------------------------
; /x86-64/random.asm
;
; An x86-64 assembly for reading hardware-generated random values.
; ---------------------------------------------------------------------
; [1] "The RDRAND and RDSEED instructions return with CF set to
; indicate that v... |
; A010008: a(0) = 1, a(n) = 18*n^2 + 2 for n>0.
; 1,20,74,164,290,452,650,884,1154,1460,1802,2180,2594,3044,3530,4052,4610,5204,5834,6500,7202,7940,8714,9524,10370,11252,12170,13124,14114,15140,16202,17300,18434,19604,20810,22052,23330,24644,25994,27380,28802,30260,31754,33284,34850,36452,38090,39764,41474,43220,45002,... |
// Note: All macro names are not case-sensitive
.macro .f_CalSaveChecksum, ramAddr, numBytes, upper16
li a0, ramAddr
li a1, numBytes
jal 0x8027939C
li.l a2, upper16
.endmacro
.macro .f_CheckCurrObjBehavior, behAddr
li.u a0, behAddr
jal 0x802A14FC
li.l a0, behAddr
.endmacro
.macro .f_CheckObjBehavior, objPtr, ... |
;--------------------------------------------------------
; File Created by SDCC : FreeWare ANSI-C Compiler
; Version 2.3.1 Wed Sep 04 21:56:24 2019
;--------------------------------------------------------
.module gprint
;--------------------------------------------------------
; Public variables in this module
;-... |
%ifdef CONFIG
{
"RegData": {
"MM0": "0x0",
"MM1": "0x0",
"MM2": "0x1010101010101010"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
mov rdx, 0xe0000000
mov rax, 0xFFFFFFFFFFFFFFFF
mov [rdx + 8 * 0], rax
mov rax, 0x0
mov [rdx + 8 * 1], rax
mov rax, 0x1010101010101010
mov [rdx + 8 * 2],... |
; A085689: a(1) = 4; a(n) = if n == 2 mod 3 then a(n-1)/2, if n == 0 mod 3 then a(n-1)*2, if n == 1 mod 3 then a(n-1)*3.
; 4,2,4,12,6,12,36,18,36,108,54,108,324,162,324,972,486,972,2916,1458,2916,8748,4374,8748,26244,13122,26244,78732,39366,78732,236196,118098,236196,708588,354294,708588,2125764,1062882,2125764,6377292... |
[bits 32]
[extern _start]
call _start
jmp $ |
#ifndef LANG_HPP
#define LANG_HPP
typedef enum
{
WRITE_DATA,
READ_DATA,
GENERATE_PASSWORD,
CHANGE_CYPHER_KEY,
WIPE_DATA,
ABOUT_PROGRAM,
CYPHER_KEY,
NEW_ENTRY,
ENTRY_NAME,
OPT,
ENTRY_DATA,
ENTER_DATA,
CANCEL,
FIND_BY_NAME,
DATA,
PASSWORD_NAME,
PASSWORD... |
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2018 Intel Corporation
#include "../test_precomp.hpp"
#include "../common/gapi_imgproc_tests.hpp"
#inclu... |
;GAS INTERPRETER FUNCTION'S
getWord:
pop dx ;ignore for calling purposes
mov si, word savePoint[0] ;load the last save
UNTILSPACE:
mov ax, buffer[si] ;get a bit from buffer
cmp al, ' ' ;check lower byte
je ENDSPACE ;if found space
cmp ah, ' ' ;check higher byte
je ENDSPACE ;if found space
... |
//=================================================================================================
/*!
// \file src/mathtest/dmatdmatmax/DDbUDb.cpp
// \brief Source file for the DDbUDb dense matrix/dense matrix maximum math test
//
// Copyright (C) 2012-2019 Klaus Iglberger - All Rights Reserved
//
// This file is... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.