text
stringlengths
1
1.05M
#pragma once #ifdef POLYSOLVE_WITH_HYPRE //////////////////////////////////////////////////////////////////////////////// #include <polysolve/LinearSolver.hpp> #include <Eigen/Core> #include <Eigen/Sparse> #include <vector> #include <HYPRE_utilities.h> #include <HYPRE.h> #include <HYPRE_parcsr_ls.h> #include <HYPRE_...
; A076767: Triangular numbers with square pyramidal indices. ; 0,1,15,105,465,1540,4186,9870,20910,40755,74305,128271,211575,335790,515620,769420,1119756,1594005,2224995,3051685,4119885,5483016,7202910,9350650,12007450,15265575,19229301,24015915,29756755,36598290 mov $1,$0 mov $2,1 sub $2,$0 sub $1,$2 add $1,2 mov $0,...
_wc: file format elf32-i386 Disassembly of section .text: 00000000 <wc>: char buf[512]; void wc(int fd, char *name) { 0: f3 0f 1e fb endbr32 4: 55 push %ebp 5: 89 e5 mov %esp,%ebp 7: 83 ec 28 sub $0x28,%esp int i, n; int l, w, ...
frame 1, 07 setrepeat 2 frame 2, 07 frame 3, 07 dorepeat 2 frame 2, 26 setrepeat 2 frame 0, 05 frame 4, 05 dorepeat 7 endanim
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Geoworks 1995 -- All Rights Reserved PROJECT: PC GEOS MODULE: Kernel FILE: geodesPatchResource.asm AUTHOR: Paul Canavese, Jan 27, 1995 ROUTINES: Name Description ---- ----------- (See geodesPatch.a...
; A124297: a(n) = 5*F(n)^2 + 5*F(n) + 1, where F(n) = Fibonacci(n). ; 1,11,11,31,61,151,361,911,2311,5951,15401,40051,104401,272611,712531,1863551,4875781,12760031,33398201,87424711,228859951,599129311,1568486161,4106261531,10750188961,28144128251,73681909211,192901135711,505020747661,1322159893351,3461456968201,906220...
; A029929: a(n) = n*(n + ceiling(2^n/12)). ; 0,2,6,12,24,40,72,126,240,468,960,2002,4248,9048,19320,41190,87648,185980,393552,830490,1748040,3670464,7690056,16078702,33555024,69905700,145403232,301990626,626350200,1297438888,2684355480,5547667062,11453247168,23622321228,48676297200,100215904810,206158431528,42377010792...
;/* ; * Microsoft Confidential ; * Copyright (C) Microsoft Corporation 1991 ; * All Rights Reserved. ; */ CODE SEGMENT BYTE PUBLIC 'CODE' ASSUME CS:CODE,DS:CODE IF1 ; %OUT EGA.CPI creation file ; %OUT . ; %OUT CP SR...
section .text global _start _start: mov edx,len mov ecx,msg mov ebx,1 mov eax,4 int 0x80 mov eax,1 mov ebx,0 int 0x80 section .data msg db 'Hi Everyone~!', 0xa len equ $ - msg
#include "MercuryWindow.h" //#include "MercuryMessageManager.h" #include <HgInput.h> MercuryWindow::MercuryWindow(const MString& title, MercuryWindow::Dimensions d, int bits, int depthBits, bool fullscreen) :m_title(title), m_requestedDimenstions(d), m_bits(bits), m_depthBits(depthBits), m_fullscreen(fullscreen), m...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r8 push %rax push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0x7613, %rsi lea addresses_A_ht+0x9613, %rdi nop dec %rax mov $42, %rcx rep movsl add %r8, %r8 lea addresses_D_ht+0x12593, %rbp nop nop nop nop nop add $9311, %r12 movl $0x61626...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r14 push %r9 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x1c418, %rsi nop nop nop sub %rax, %rax movw $0x6162, (%rsi) add $2836, %r9 lea addresses_WC_ht+0x12c7d, %rcx add $36250, %r9 mov (%rcx), %r14 nop nop nop nop nop cmp $56479, ...
main: nor $s0, $0, $0 add $s1, $s0, $0 add $s2, $s0, $s0 sll $t1, $s2, 2 sra $t2, $s1, 4 srl $t3, $t2, 2 slt $t0, $t1, $s0
; /***************************************************************************** ; * ugBASIC - an isomorphic BASIC language compiler for retrocomputers * ; ***************************************************************************** ; * Copyright 2021 Marco Spedaletti (asimov@mclink.it) ; * ; * Licensed un...
/**************************************************************************** * * Copyright (c) 2012-2015 PX4 Development Team. 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. Red...
; A264238: Number of (n+1) X (2+1) arrays of permutations of 0..n*3+2 with each element having directed index change 0,0 1,1 0,-1 -1,1 or 0,-2. ; Submitted by Simon Strandgaard ; 8,21,89,296,1105,3897,14128,50533,181937,652944,2346977,8429681,30288280,108807669,390915337,1404388408,5045461169,18126337449,65121053504,23...
; A024020: a(n) = 2^n - n^10. ; 1,1,-1020,-59041,-1048560,-9765593,-60466112,-282475121,-1073741568,-3486783889,-9999998976,-25937422553,-61917360128,-137858483657,-289254638592,-576650357857,-1099511562240,-2015993769377,-3570466964480,-6131065733513,-10239998951424,-16679878881049,-26559918597120,-41426502825041,-634...
#include "cinn/hlir/pe/broadcast.h" #include <iostream> #include "cinn/hlir/framework/node.h" #include "cinn/hlir/framework/op.h" #include "cinn/hlir/framework/op_strategy.h" #include "cinn/ir/ir_operators.h" namespace cinn { namespace hlir { namespace op { using common::_CINNValuePack_; using common::CINNValue; usi...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE23_Relative_Path_Traversal__wchar_t_file_w32CreateFile_51a.cpp Label Definition File: CWE23_Relative_Path_Traversal.label.xml Template File: sources-sink-51a.tmpl.cpp */ /* * @description * CWE: 23 Relative Path Traversal * BadSource: file Read input from a fi...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "extern/beatsaber-hook/shared/utils/byref.hpp" // Completed includes // Begin forward declares // Forward declaring namespace: GlobalNam...
; A110962: Fractalization of Kimberling's sequence beginning with 0. ; 0,0,0,0,1,0,0,0,2,1,1,0,3,0,0,0,4,2,2,1,5,1,1,0,6,3,3,0,7,0,0,0,8,4,4,2,9,2,2,1,10,5,5,1,11,1,1,0,12,6,6,3,13,3 mul $0,2 mov $4,9 lpb $4,14 add $4,$0 div $0,2 mov $6,$4 add $4,45 gcd $4,2 lpe mov $1,$6 div $1,4
; A061066: a(n) = (prime(n)^2 - 1)/8. ; Submitted by Jon Maiga ; 1,3,6,15,21,36,45,66,105,120,171,210,231,276,351,435,465,561,630,666,780,861,990,1176,1275,1326,1431,1485,1596,2016,2145,2346,2415,2775,2850,3081,3321,3486,3741,4005,4095,4560,4656,4851,4950,5565,6216,6441,6555,6786,7140,7260,7875,8256,8646,9045,9180,9591...
// This file is part of www.nand2tetris.org // and the book "The Elements of Computing Systems" // by Nisan and Schocken, MIT Press. // File name: projects/04/Mult.asm // Multiplies R0 and R1 and stores the result in R2. // (R0, R1, R2 refer to RAM[0], RAM[1], and RAM[2], respectively.) @R0 D=M @FIRST M=D @R...
//----------------------------------------------------------------------------- // Copyright (c) 2013 GarageGames, LLC // // 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 restrictio...
copyright zengfr site:http://github.com/zengfr/romhack 00042A move.l D1, (A0)+ 00042C dbra D0, $42a 01482C move.w (A1)+, D6 01482E subq.w #1, D6 [base+6000, base+6080, base+6100, base+6180, base+6200, base+6280, base+6300, base+6380, base+6400, base+6480, base+6500, base+6580] 07EA7C move.w #$6, (A1)+ [...
; void *w_array_pop_back(w_array_t *a) SECTION code_clib SECTION code_adt_w_array PUBLIC w_array_pop_back EXTERN asm_w_array_pop_back defc w_array_pop_back = asm_w_array_pop_back ; SDCC bridge for Classic IF __CLASSIC PUBLIC _w_array_pop_back defc _w_array_pop_back = w_array_pop_back ENDIF
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r14 push %r15 push %rbp push %rcx push %rdi push %rsi lea addresses_UC_ht+0xf2f6, %rsi lea addresses_A_ht+0x1c44a, %rdi nop nop nop add $59997, %r12 mov $28, %rcx rep movsb nop nop nop nop dec %r14 lea addresses_normal_ht+0x1e5ca, %rsi nop nop nop n...
; uchar tshr_saddr2cy(void *saddr) SECTION code_clib SECTION code_arch PUBLIC _tshr_saddr2cy_fastcall EXTERN _zx_saddr2cy_fastcall defc _tshr_saddr2cy_fastcall = _zx_saddr2cy_fastcall
%include "include/u7bg-all-includes.asm" %include "../u7-common/patch-eop-determineItemBulk.asm"
; A145813: 1/2 the number of islands of ones fitting in an n X n array symmetric about main diagonal with all ones connected only either three adjacent vertically or three adjacent horizontally. ; 0,0,0,1,2,2,3,4,6,7,8,10,12,14,16,19,21,24,27,30 mov $2,$0 pow $0,2 add $0,1 mul $0,2 sub $0,1 add $2,13 add $0,$2 add $0,...
// // Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2021 // // 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 "td/telegram/SponsoredMessageManager.h" #include "t...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r13 push %r14 push %r9 push %rcx push %rdi push %rsi lea addresses_normal_ht+0x424f, %r9 nop nop cmp $22087, %rdi mov (%r9), %r14d nop nop add %rsi, %rsi lea addresses_D_ht+0x750f, %r10 nop nop nop sub %r13, %r13 movups (%r10), %xmm2 vpextrq $1, %xm...
; A064429: a(n) = floor(n / 3) * 3 + sign(n mod 3) * (3 - n mod 3). ; 0,2,1,3,5,4,6,8,7,9,11,10,12,14,13,15,17,16,18,20,19,21,23,22,24,26,25,27,29,28,30,32,31,33,35,34,36,38,37,39,41,40,42,44,43,45,47,46,48,50,49,51,53,52,54,56,55,57,59,58,60,62,61,63,65,64,66,68,67,69,71,70,72,74,73,75,77,76,78,80,79,81,83,82,84,86,85...
; long __lmod_callee (long left, long right) SECTION code_clib SECTION code_fp_am9511 PUBLIC cam32_sccz80_lmod_callee EXTERN asm_am9511_lmod_callee ; modulus of sccz80 long by sccz80 long ; ; enter : stack = sccz80_long left, ret ; DEHL = sccz80_long right ; ; exit : DEHL = sccz8...
;------------------------------------------------------------------------------ ; ; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR> ; SPDX-License-Identifier: BSD-2-Clause-Patent ; ; Module Name: ; ; FxSave.Asm ; ; Abstract: ; ; AsmFxSave function ; ; Notes: ; ;--------------------------------------...
; A005971: Sum of cubes of Lucas numbers. ; 1,28,92,435,1766,7598,31987,135810,574786,2435653,10316252,43702500,185123261,784200368,3321916912,14071880655,59609419066,252509590018,1069647725567,4531100578950,19194049901126,81307300410353,344423251175392,1459000305705960,6180424473038041 mov $16,$0 mov $18,$0 add $18,1...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Geoworks 1994 -- All Rights Reserved PROJECT: Clavin MODULE: UI FILE: uiC.asm AUTHOR: Chung Liu, Nov 23, 1994 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Descriptio...
// // Copyright (c) 2008 Advanced Micro Devices, Inc. All rights reserved. // #include "cl_common.hpp" #include "platform/context.hpp" #include "device/device.hpp" #include "platform/runtime.hpp" #include "platform/agent.hpp" #ifdef _WIN32 #include <d3d10_1.h> #include "CL/cl_d3d10.h" #include "CL/cl_d3d11.h" #includ...
editTable: .IF SRAM_MAP=32 lda #SRAM_TABLE_BANK jsr setMMC1r1 .ENDIF ldx tableCursorY lda tableRowsIndex,x ldx editorCurrentTable clc adc editTableAddressLo,x sta tableVector lda editTableAddressHi,x adc #$00 sta tableVector+1 lda writeScreen ;need to write screen? beq @a jsr writeTa...
; A181973: Prime-generating polynomial: 16*n^2 - 300*n + 1447. ; 1447,1163,911,691,503,347,223,131,71,43,47,83,151,251,383,547,743,971,1231,1523,1847,2203,2591,3011,3463,3947,4463,5011,5591,6203,6847,7523,8231,8971,9743,10547,11383,12251,13151,14083,15047,16043,17071,18131,19223,20347,21503,22691,23911,25163,26447,2776...
; void exit_success() PUBLIC exit_success EXTERN libspectranet include "spectranet.asm" .exit_success pop hl ; unwind return address from the stack jp EXIT_SUCCESS_ROM
/* * StreamEncoderRAW.cpp * -------------------- * Purpose: Exporting streamed music files. * Notes : none * Authors: Joern Heusipp * OpenMPT Devs * The OpenMPT source code is released under the BSD license. Read LICENSE for more details. */ #include "stdafx.h" #include "StreamEncoder.h" #include "S...
; ; Amstrad CPC library ; ; ****************************************************** ; ** Librería de rutinas para Amstrad CPC ** ; ** Raúl Simarro, Artaburu 2009 ** ; ****************************************************** ; ; void __LIB__ cpc_AssignKey(unsigned char key, int val...
; A005995: Alkane (or paraffin) numbers l(8,n). ; 1,3,12,28,66,126,236,396,651,1001,1512,2184,3108,4284,5832,7752,10197,13167,16852,21252,26598,32890,40404,49140,59423,71253,85008,100688,118728,139128,162384,188496,218025,250971,287964,329004,374794,425334,481404,543004,610995,685377,767096,856152,953580,1059380,117468...
PIC_WIDTH = 320 PIC_HEIGHT equ 256 DEBUG_LEVEL set 10 DOUBLE_BUFFER_1 = 1 AUTO_COMPLETE_2 = 1 dood2 = 1 entry: bsr init bsr main bsr exit rts init move.w #PIC_HEIGHT,d1 .looph move.w #PIC_WIDTH,d0 .loopw clr.b (a0)+ subq.w #1,d0 bne.s .loopw...
#include "GuiInstanceLoader_WorkflowCodegen.h" #include "../../Resources/GuiParserManager.h" namespace vl { namespace presentation { using namespace stream; using namespace reflection::description; using namespace workflow; using namespace workflow::analyzer; /***********************************************...
; L0311.asm ; Generated 10.20.2000 by mlevel ; Modified 10.20.2000 by Abe Pralle INCLUDE "Source/Defs.inc" INCLUDE "Source/Levels.inc" FIRST_HOLE EQU 25 ;--------------------------------------------------------------------- SECTION "Level0311Section",ROMX ;-----------------------------------------------------------...
db DEX_BEEDRILL ; pokedex id db 65 ; base hp db 80 ; base attack db 40 ; base defense db 75 ; base speed db 45 ; base special db BUG ; species type 1 db POISON ; species type 2 db 46 ; catch rate db 159 ; base exp yield INCBIN "pic/ymon/beedrill.pic",0,1 ; 77, sprite dimensions dw BeedrillPicFront dw BeedrillPicBack ; ...
/** * Copyright (C) 2021-present MongoDB, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the Server Side Public License, version 1, * as published by MongoDB, Inc. * * This program is distributed in the hope that it will be useful, * but W...
; ; ; Z88 Maths Routines ; ; C Interface for Small C+ Compiler ; ; 7/12/98 djm ;Convert from integer to FP.. ;We could enter in here with a long in dehl, so, mod to compiler I think! INCLUDE "fpp.def" PUBLIC ufloat EXTERN fa .ufloat ...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r14 push %r15 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0xbf, %rsi nop nop nop cmp $37237, %r14 movw $0x6162, (%rsi) nop nop nop nop nop xor $19030, %rsi lea addresses_D_ht+0x1447f, %rcx add $6512, %rbp mov $0x6162636465666768,...
; A260644: Four steps forward, three steps back. ; 0,1,2,3,4,3,2,1,2,3,4,5,4,3,2,3,4,5,6,5,4,3,4,5,6,7,6,5,4,5,6,7,8,7,6,5,6,7,8,9,8,7,6,7,8,9,10,9,8,7,8,9,10,11,10,9,8,9,10,11,12,11,10,9,10,11,12,13,12,11,10,11,12,13,14,13,12,11,12,13,14,15,14,13,12,13,14,15,16,15,14,13,14,15,16,17,16,15,14,15,16,17,18,17,16,15,16,17,...
Name: zel_edt0.asm Type: file Size: 1894 Last-Modified: '2016-05-13T04:36:32Z' SHA-1: D8362C7DA722E78E3B99B384BFDE955F22542946 Description: null
db "BIG HORN@" ; species name dw 407, 1570 ; height, weight db "The round balls" next "found on the" next "fallen antlers can" page "be ground into a" next "powder that aids" next "in sleeping.@"
<% from pwnlib.shellcraft.amd64.linux import syscall %> <%page args="fd, buf, n, offset"/> <%docstring> Invokes the syscall pwrite. See 'man 2 pwrite' for more information. Arguments: fd(int): fd buf(void): buf n(size_t): n offset(off_t): offset </%docstring> ${syscall('SYS_pwrite', fd, buf,...
; A322054: Number of decimal strings of length n that do not contain a specific string xx (where x is a single digit). ; Submitted by Jamie Morken(s2) ; 10,99,981,9720,96309,954261,9455130,93684519,928256841,9197472240,91131561729,902961305721,8946835807050,88648174014939,878355088397901,8703029361715560,86232460051021...
//===- CompilerInvocation.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 // //===---------------------------...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1990 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: driveLow.asm AUTHOR: Adam de Boor, Apr 22, 1990 ROUTINES: Name Description ---- ----------- INT DrivePointAtEntry Point at the ...
; A147965: a(n) is the difference between n and the n-th gap between primes. ; 1,1,2,1,4,3,6,5,4,9,6,9,12,11,10,11,16,13,16,19,16,19,18,17,22,25,24,27,26,17,28,27,32,25,34,31,32,35,34,35,40,33,42,41,44,35,36,45,48,47,46,51,44,49,50,51,56,53,56,59 mov $1,$0 add $1,1 seq $1,40 ; The prime numbers. div $1,2 mul $1,2 sub ...
#include "sha3_256.hpp" #include <cassert> // This example attempts to show how to use 2-to-1 SHA3-256 hash function ! int main(int argc, char** argv) { // $ python3 // >>> a = [0xff] * 32 // // first input digest constexpr sycl::uchar digest_0[32] = { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 25...
; A077975: Expansion of 1/(1+x+x^2-2*x^3). ; Submitted by Jamie Morken(s4) ; 1,-1,0,3,-5,2,9,-21,16,23,-81,90,37,-289,432,-69,-941,1874,-1071,-2685,7504,-6961,-5913,27882,-35891,-3817,95472,-163437,60331,294050,-681255,507867,761488,-2631865,2886111,1268730,-9418571,13922063,-1966032,-30793173,60603331,-33742222,-88447...
; long lrint(float x) SECTION code_fp_math48 PUBLIC cm48_sdcciy_lrint EXTERN cm48_sdcciy_lrint_fastcall cm48_sdcciy_lrint: pop af pop hl pop de push de push hl push af jp cm48_sdcciy_lrint_fastcall
; A220033: Number of 3 X n 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 3 X n array. ; 4,6,10,19,30,42,55,69,84,100,117,135,154,174,195,217,240,264,289,315,342,370,399,42...
#include <gtest/gtest.h> #include "lib/lib.h" TEST(add, add) { int a = 2; int b = 3; EXPECT_EQ(lib::add(a, b), 5); }
Name: ys_mram.asm Type: file Size: 75216 Last-Modified: '2016-05-13T04:51:46Z' SHA-1: 186125CCE51366D7DB5A8155BFF9A556A6EBCD4B Description: null
/******************************************************************************* * Copyright 2020 FUJITSU LIMITED * * 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.apa...
#include <srt-sync/Decode.hpp> #include <cmath> #include <cstdlib> #include <iostream> namespace srt_sync { Decode::DecodeSink::DecodeSink(Decode &decoder) : decoder(decoder) { auto buffer = static_cast<unsigned char*>(av_malloc(MAX_FRAME_SIZE)); if (!buffer) return; io_context = avio_alloc_context(buffer, MAX...
.headersize (G_BOOT_ENTRYPOINT - G_BOOT_ADDR) .org G_BOOT_ENTRYPOINT BOOT: addiu sp, sp, -0x20 sw s0, 0x18(sp) sw s1, 0x1C(sp) // copy boot code into it's own address space la s0, G_SWAP_ENTRYPOINT la a0, G_BOOT_ENTRYPOINT addu a1, s0, r0 li s1, G0_DMADATA...
#ifndef GAMESPELL_OS_UNICODE_HH #define GAMESPELL_OS_UNICODE_HH #include <string> #include <string_view> namespace gs { namespace os { extern std::wstring mbToWc(std::string_view s); extern std::string wcToMb(std::wstring_view ws); } // namespace os } // namespace gs #endif // GAMESPELL_OS_UNICODE_HH
; A274682: Numbers n such that 8*n-1 is a triangular number. ; Submitted by Simon Strandgaard ; 2,7,29,44,88,113,179,214,302,347,457,512,644,709,863,938,1114,1199,1397,1492,1712,1817,2059,2174,2438,2563,2849,2984,3292,3437,3767,3922,4274,4439,4813,4988,5384,5569,5987,6182,6622,6827,7289,7504,7988,8213,8719,8954,9482,97...
; A321295: a(n) = n * sigma_n(n). ; 1,10,84,1092,15630,284700,5764808,134744072,3486961557,100097666500,3138428376732,107019534520152,3937376385699302,155577590681061500,6568408813691796120,295152408847700721680,14063084452067724991026,708238048886859220660710,37589973457545958193355620,2097154000001929338886339560,122...
; uint in_LookupKey(uchar c) SECTION code_clib PUBLIC in_LookupKey PUBLIC _in_LookupKey EXTERN in_keytranstbl ; Given the ascii code of a character, returns the scan row and mask ; corresponding to the key that needs to be pressed to generate the ; character. ; ; The scan row returned will have bit 7 set and bit 6 ...
; A219020: Sum of the cubes of the first n even-indexed Fibonacci numbers divided by the sum of the first n terms. ; 1,7,45,297,2002,13630,93177,638001,4371235,29956465,205313076,1407206412,9645056785,66107994667,453110391657,3105663400665,21286529888422,145900036590826,1000013702089545,6854195814790005,469793568358603...
#pragma once #include <Register/Utility.hpp> namespace Kvasir { //General-purpose I/Os namespace GpiodModer{ ///<GPIO port mode register using Addr = Register::Address<0x48000c00,0x00000000,0x00000000,std::uint32_t>; ///Port x configuration bits (y = 0..15) constexpr Registe...
;; $Header: /cvsroot/uuu/dimension/cell/memory/noblame/noblame.asm,v 1.2 2002/01/23 01:53:50 jmony Exp $ ;; ;; Little simplified memory manager. It doesn't accept memory deallocations, ;; and uses a simple unique pointer for memory allocations. Now if things ;; fails while using this memory manager, it is because som...
; A122625: n_{n^2}. ; Submitted by Jamie Morken(s2) ; 1,2,3,4,5,6,7,8,9,100,122,146,172,200,230,262,296,332,370,800,883,970,1061,1156,1255,1358,1465,1576,1691,2700,2884,3074,3270,3472,3680,3894,4114,4340,4572,6400,6725,7058,7399,7748,8105,8470,8843,9224,9613,12500 add $0,1 mov $2,$0 div $2,10 mul $2,$0 mul $2,$0 mod $...
#include <map> #include <set> #include <vector> #include <string> #include <iostream> #include <fstream> #include <sstream> #include <algorithm> #include <gflags/gflags.h> #include <glog/logging.h> #include <boost/algorithm/string.hpp> #include "sales_data.h" /*** * 输出流文件结束标志 Ctrl + D */ using n...
; int feof_fastcall(FILE *stream) INCLUDE "config_private.inc" SECTION code_clib SECTION code_stdio ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; IF __CLIB_OPT_MULTITHREAD & $02 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PUBLIC _feof_fastcall EXTERN asm_feof _feof_fastcall: push hl ex (sp),ix call asm_feof pop ix...
format binary as 'gba' include 'flash.inc' include '../lib/constants.inc' include '../lib/macros.inc' macro m_exit test { mov r12, test b eval } header: include '../lib/header.asm' main: m_test_init ; Reset test register mov r12, 0 mov r11,...
section .data maxlen: equ 1024 prompt: db "Enter your name (max 1024 characters): ", 0 result: db "Nice to meet you, ", 0 section .bss buffer: resb maxlen section .text global _start _start: mov rax, prompt call print mov rax, 0 mov rdi, 0 mov rsi, buffer mov rdx, maxlen syscall mov rax, result call print ...
; A257175: The smallest m such that the m-th triangular number is greater than or equal to half the n-th triangular number. ; 0,1,2,2,3,4,5,5,6,7,7,8,9,10,10,11,12,12,13,14,14,15,16,17,17,18,19,19,20,21,22,22,23,24,24,25,26,27,27,28,29,29,30,31,31,32,33,34,34,35,36,36,37,38,39,39,40,41,41,42,43,43,44,45,46,46,47,48,48,...
; A029001: Expansion of 1/((1-x)(1-x^2)(1-x^3)(1-x^7)). ; 1,1,2,3,4,5,7,9,11,14,17,20,24,28,33,38,44,50,57,64,72,81,90,100,111,122,134,147,161,175,191,207,224,242,261,281,302,324,347,371,396,422,450,478,508,539,571,604,639 mov $1,17 lpb $0,1 mov $2,$0 sub $0,1 cal $2,25768 ; Expansion of 1/((1-x)*(1-x^3)*(1-x^7)...
; A040250: Continued fraction for sqrt(267). ; Submitted by Christian Krause ; 16,2,1,15,1,2,32,2,1,15,1,2,32,2,1,15,1,2,32,2,1,15,1,2,32,2,1,15,1,2,32,2,1,15,1,2,32,2,1,15,1,2,32,2,1,15,1,2,32,2,1,15,1,2,32,2,1,15,1,2,32,2,1,15,1,2,32,2,1,15,1,2,32,2,1,15,1,2,32,2,1 seq $0,10222 ; Continued fraction for sqrt(178). se...
; A098296: Member r=11 of the family of Chebyshev sequences S_r(n) defined in A092184. ; Submitted by Christian Krause ; 0,1,11,100,891,7921,70400,625681,5560731,49420900,439227371,3903625441,34693401600,308336988961,2740339499051,24354718502500,216452127023451,1923714424708561,17096977695353600,151949084833473841,1350...
; A113636: In the sequence of positive integers add 1 to each nonprime number. ; 2,2,3,5,5,7,7,9,10,11,11,13,13,15,16,17,17,19,19,21,22,23,23,25,26,27,28,29,29,31,31,33,34,35,36,37,37,39,40,41,41,43,43,45,46,47,47,49,50,51,52,53,53,55,56,57,58,59,59,61,61,63,64,65,66,67,67,69,70,71,71,73 mov $1,$0 cal $0,105661 ; a(n)...
; A274830: Numbers n such that 7*n+1 is a triangular number (A000217). ; 0,2,5,11,17,27,36,50,62,80,95,117,135,161,182,212,236,270,297,335,365,407,440,486,522,572,611,665,707,765,810,872,920,986,1037,1107,1161,1235,1292,1370,1430,1512,1575,1661,1727,1817,1886,1980,2052,2150,2225,2327,2405,2511,2592,2702,2786,2900,2987,...
; Add ALTTP items to SM ; ; Extra message box code lifted from MessageBoxV4 by Kejardon, JAM !IBranchItem = #$887C !ISetItem = #$8899 !ILoadSpecialGraphics = #$8764 !ISetGoto = #$8A24 !ISetPreInstructionCode = #$86C1 !IDrawCustom1 = #$E04F !IDrawCustom2 = #$E067 !IGoto = #$8724 !IKill = #$86BC !IPlayTrackNow = #$8BDD ...
<% from pwnlib.shellcraft.aarch64.linux import syscall %> <%page args="epfd, op, fd, event"/> <%docstring> Invokes the syscall epoll_ctl. See 'man 2 epoll_ctl' for more information. Arguments: epfd(int): epfd op(int): op fd(int): fd event(epoll_event): event </%docstring> ${syscall('SYS_epol...
; A105852: sigma(n) mod 9. ; 1,3,4,7,6,3,8,6,4,0,3,1,5,6,6,4,0,3,2,6,5,0,6,6,4,6,4,2,3,0,5,0,3,0,3,1,2,6,2,0,6,6,8,3,6,0,3,7,3,3,0,8,0,3,0,3,8,0,6,6,8,6,5,1,3,0,5,0,6,0,0,6,2,6,7,5,6,6,8,6,4,0,3,8,0,6,3,0,0,0,4,6,2,0,3,0,8,0,3,1,3,0,5,3,3,0,0,1,2,0,8,5,6,6,0,3,2,0,0,0,7,6,6,8,3,6,2,3,5,0,6,3,7,6,6,0,3,0,5,3,3,0,6,7,0,6...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE789_Uncontrolled_Mem_Alloc__malloc_wchar_t_connect_socket_82_goodG2B.cpp Label Definition File: CWE789_Uncontrolled_Mem_Alloc__malloc.label.xml Template File: sources-sinks-82_goodG2B.tmpl.cpp */ /* * @description * CWE: 789 Uncontrolled Memory Allocation * BadSource:...
#include <thor-internal/arch/gic.hpp> #include <thor-internal/arch/timer.hpp> #include <thor-internal/dtb/dtb.hpp> #include <thor-internal/main.hpp> #include <thor-internal/initgraph.hpp> #include <thor-internal/cpu-data.hpp> #include <thor-internal/physical.hpp> #include <thor-internal/arch/cpu.hpp> #include <thor-int...
; ------------------------------------------------------------------------------ ; BITMAP MODE (MODE #2) ; ------------------------------------------------------------------------------ PLOTVBASELO: .byte <($A000+(0*320)),<($A000+(1*320)),<($A000+(2*320)),<($A000+(3*320)) .byte <($A000+(4*320)),<($A000+(5*320)...
# 本文档存储器以字节编址 # 本文档存储器以字节编址 # 本文档存储器以字节编址 # 初始PC = 0x00000000 .data .word 0,6,0,16,0x80000000,0x80000100,0x100,5,0 #编译成机器码时,编译器会在前面多加个0,所以后面lw指令地址会多加4 _start: addi $t0,$0,3 #t0=3 0 addi $t1,$t0,2 #t1=5 4 addi $t2,$0,1 #t2=1 8 addi $t3,$0,0 #t3=0 12 add $s0,$t1,$...
; A248429: Number of length n+2 0..4 arrays with every three consecutive terms having the sum of some two elements equal to twice the third. ; 29,45,69,101,165,261,389,645,1029,1541,2565,4101,6149,10245,16389,24581,40965,65541,98309,163845,262149,393221,655365,1048581,1572869,2621445,4194309,6291461,10485765,16777221,2...
#pragma once #include "LDAModel.hpp" #include "../Utils/LBFGS.h" #include "../Utils/text.hpp" #include "DMR.h" /* Implementation of DMR using Gibbs sampling by bab2min * Mimno, D., & McCallum, A. (2012). Topic models conditioned on arbitrary features with dirichlet-multinomial regression. arXiv preprint arXiv:1206.3278...
; A097070: Consider all compositions (ordered partitions) of n into n parts, allowing zeros. E.g., for n = 3 we get 300, 030, 003, 210, 120, 201, 102, 021, 012, 111. Then a(n) is the total number of 1's. ; 1,2,9,40,175,756,3234,13728,57915,243100,1016158,4232592,17577014,72804200,300874500,1240940160,5109183315,2100245...
; void *heap_alloc_unlocked(void *heap, size_t size) SECTION code_clib SECTION code_alloc_malloc PUBLIC heap_alloc_unlocked_callee EXTERN asm_heap_alloc_unlocked heap_alloc_unlocked_callee: pop af pop hl pop de push af jp asm_heap_alloc_unlocked
; A328263: a(n) = number of letters in a(n-1) (in Polish), with a(1) = 1. ; 1,5,4,6,5,4,6,5,4,6,5,4,6,5,4,6,5,4,6,5,4,6,5,4,6,5,4,6,5,4,6,5,4,6,5,4,6,5,4,6,5,4,6,5,4,6,5,4,6,5,4,6,5,4,6,5,4,6,5,4,6,5,4,6,5,4,6,5,4,6,5,4,6,5,4,6,5,4,6,5,4,6,5,4,6 lpb $0 mod $0,3 sub $0,5 sub $1,$0 trn $0,1 lpe add $1,1
;***************************************************************************** ;* MMX/SSE2/AVX-optimized 10-bit H.264 intra prediction code ;***************************************************************************** ;* Copyright (C) 2005-2011 x264 project ;* ;* Authors: Daniel Kang <daniel.d.kang@gmail.com> ;* ;* Th...
SECTION .DATA happ: dq 0 num: dq 123 num2: dq 456 num3: dq 10 SECTION .TEXT GLOBAL _basic_encrypt GLOBAL _basic_decrypt GLOBAL _basic_encrypt_char GLOBAL _basic_decrypt_char GLOBAL _mid_encrypt GLOBAL _mid_decrypt GLOBAL hard_enc GLOBAL hard_dec _basic_encrypt: mov rax,r...