text
stringlengths
1
1.05M
class Solution { public: vector<vector<int>> permuteUnique(vector<int>& nums) { vector<vector<int>> ret; sort(nums.begin(), nums.end()); do { vector<int> vec; for (const auto i : nums) vec.push_back(i); ret.push_back(vec); } while (next_permutation(nums.begin(), nums.end())); return ret; } };...
<%docstring>A single-byte RET instruction.</%docstring> ret
; set of CEmu software debug command ; macro dbg command,func,data if CONFIG_DEBUG match =cmd?, command push af push hl scf sbc hl, hl ld (hl), a pop hl pop af else match =thread?, command push iy ld iy, DEBUG_THREAD call kthread.create pop iy else match =open?, command push af push hl s...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; The MIT License ; ; Copyright (c) 2014 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...
; if a hidden object was found, stores $00 in [hDidntFindAnyHiddenObject], else stores $ff CheckForHiddenObject: ld hl, hItemAlreadyFound xor a ld [hli], a ld [hli], a ld [hli], a ld [hl], a ld hl, HiddenObjectMaps ld de, 3 ld a, [wCurMap] call IsInArray jr nc, .noMatch inc hl ld a, [hli] ld h, [hl] ld l...
; A194522: First coordinate of (4,5)-Lagrange pair for n. ; Submitted by Jon Maiga ; -1,-2,2,1,0,-1,3,2,1,0,-1,3,2,1,0,4,3,2,1,0,4,3,2,1,5,4,3,2,1,5,4,3,2,6,5,4,3,2,6,5,4,3,7,6,5,4,3,7,6,5,4,8,7,6,5,4,8,7,6,5,9,8,7,6,5,9,8,7,6,10,9,8,7,6,10,9,8,7,11,10,9,8,7,11,10,9,8,12,11,10,9,8,12,11,10,9 add $0,16 mul $0,2 add $0,...
INCLUDE "graphics/grafix.inc" MODULE smc777_getmaxx SECTION code_clib PUBLIC getmaxx PUBLIC _getmaxx EXTERN __smc777_mode EXTERN __console_w .getmaxx ._getmaxx ld a,(__smc777_mode) and @00001100 cp @00001000 ; 640 ld hl,639 ret z cp @00000100 ; 320 ld hl,319 re...
; A053439: Expansion of (1+x+2*x^3)/((1-x)*(1-x^2)^2). ; 1,2,4,8,11,18,22,32,37,50,56,72,79,98,106,128,137,162,172,200,211,242,254,288,301,338,352,392,407,450,466,512,529,578,596,648,667,722,742,800,821,882,904,968,991,1058,1082,1152,1177,1250,1276,1352,1379,1458,1486,1568,1597,1682,1712,1800,1831,1922,1954,2048,2081,2...
segment .data output: dq "%c%i", 0 new_line db 0x0a, 0 fuck: dq "fuuuuck", 0 extern printf segment .text global encode encode: ;An assembly function to ; 1. Accepts a string of length 15 ; 2. Encodes the String using Run Length Encoding; ; 3. Outputs the encoded String to the terminal; ...
%ifdef CONFIG { "RegData": { "R15": "0x41424344454600FF", "R14": "0x00000000000000FF", "R13": "0x00000000000000FF", "R12": "0x41424344454600FF", "R11": "0x00000000000000FF", "R10": "0x00000000000000FF" }, "MemoryRegions": { "0x100000000": "4096" } } %endif mov rdx, 0xe0000000 mov r...
; nasm -f elf32 ex9.asm -o ex9.o ; gcc -m32 ex9.o -o ex9.out ; ./ex9.out ; echo $? global main section .text main: mov ebp, esp; for correct debugging push 21 ; save 21 on the stack (int = 4 bytes = 32 bits) call times2 ; jump to times2 mov ebx, eax ; ebx (exit status) = eax =...
# A demonstration of some simple MIPS instructions # used to test QtSPIM # Declare main as a global function .globl main # All program code is placed after the # .text assembler directive .text # The label 'main' represents the starting point main: li $t2, 25 # Load immediate value (25) lw $t3, value # ...
db 0 ; species ID placeholder db 80, 100, 70, 45, 50, 60 ; hp atk def spd sat sdf db FIGHTING, FIGHTING ; type db 90 ; catch rate db 146 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F0 ; gender ratio db 100 ; unknown 1 db 20 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/macho...
/* * 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...
; A143956: Triangle read by rows, A000012 * A136521 * A000012; 1<=k<=n. ; 1,3,2,5,4,2,7,6,4,2,9,8,6,4,2,11,10,8,6,4,2,13,12,10,8,6,4,2,15,14,12,10,8,6,4,2,17,16,14,12,10,8,6,4,2,19,18,16,14,12,10,8,6,4,2,21,20,18,16,14,12,10,8,6,4,2 lpb $0,1 mov $1,$0 add $0,1 sub $1,2 add $2,1 mov $3,$0 sub $0,$2 trn $0...
############################################################################### # Copyright 2018 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...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "util.h" #include "chainparams.h" #include "sync.h" #include "ui_interfa...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Geoworks 1994 -- All Rights Reserved PROJECT: PC GEOS MODULE: Spell Library FILE: spellC.asm AUTHOR: Joon Song, Sep 23, 1994 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name D...
;; last edit date: 2016/10/25 ;; author: Forec ;; LICENSE ;; Copyright (c) 2015-2017, Forec <forec@bupt.edu.cn> ;; Permission to use, copy, modify, and/or distribute this code for any ;; purpose with or without fee is hereby granted, provided that the above ;; copyright notice and this permission notice appear in all ...
#pragma comment(linker, "/STACK:102400000,102400000") #pragma GCC optimize ("O3") #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef pair<int,int> pii; typedef vector<int> vi; const int maxn = 1e6+5; const int mod = 1e9+7; const ll INF = 2e15; const do...
GLOBAL get_x_resolution GLOBAL get_y_resolution section .text get_x_resolution: mov ax, [5084h] ret get_y_resolution: mov ax, [5086h] ret
/* $Id: RTUtf16PrintHexBytes.cpp 69111 2017-10-17 14:26:02Z vboxsync $ */ /** @file * IPRT - RTUtf16PrintHexBytes. */ /* * Copyright (C) 2009-2017 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; * you ca...
/* * Automatically Generated from Mathematica. * Fri 5 Nov 2021 16:19:56 GMT-04:00 */ #ifdef MATLAB_MEX_FILE #include <stdexcept> #include <cmath> #include<math.h> /** * Copied from Wolfram Mathematica C Definitions file mdefs.hpp * Changed marcos to inline functions (Eric Cousineau) */ inline double Power(doubl...
; A304685: a(n) = A000699(n) (mod 3). ; Submitted by Jamie Morken(s2) ; 1,1,1,0,2,1,0,0,1,0,0,0,0,1,2,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,2,1,0,0,2,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 mov $1,52122 sub $1,$0 mul $1,2 bin $1,$0 mod $...
.global s_prepare_buffers s_prepare_buffers: push %r14 push %r15 push %r9 push %rax push %rcx push %rdi push %rsi lea addresses_WC_ht+0x9741, %rsi lea addresses_normal_ht+0x11f41, %rdi and %rax, %rax mov $24, %rcx rep movsw xor $60928, %r9 lea addresses_A_ht+0xc9c1, %r9 clflush (%r9) nop nop xor %rcx, %rcx movl $0x6162...
// $Id: POSIX_Proactor.cpp 86102 2009-07-18 04:15:48Z wotte $ #include "ace/POSIX_Proactor.h" #if defined (ACE_HAS_AIO_CALLS) #if !defined (__ACE_INLINE__) #include "ace/POSIX_Proactor.inl" #endif /* __ACE_INLINE__ */ # if defined (ACE_HAS_SYS_SYSTEMINFO_H) # include /**/ <sys/systeminfo.h> # endif /*...
/* Copyright © 2019 Apple Inc. All rights reserved. * * Use of this source code is governed by a BSD-3-clause license that can * be found in the LICENSE.txt file or at * https://opensource.org/licenses/BSD-3-Clause */ #ifndef TEST_UNITY_TOOLKITS_NEURAL_NET_NEURAL_NET_MOCKS_HPP_ #define TEST_UNITY_TOOLKITS_NEURAL_...
# x mapeado em $s1 .text .globl teste teste: addi $16, $zero, 1 # x=1 addi $8, $zero, 0x1001 sll $8, $8, 16 # valor do adress para acessar a memória armazenado em $t0 lw $17, 0($t0) # load de x1 para $s1 lw $18, 4($t0) # load de x1 para $s2 lw $19, 8($t0) # load de x1 para $s3 lw $20, 12($t0) # load de x1 para $s4 ...
/* Copyright 2020 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...
setrepeat 3 frame 0, 06 frame 4, 06 dorepeat 1 endanim
%include "TiberianSun.inc" %include "macros/patch.inc" %include "macros/datatypes.inc" ;;; TechnoClass::Draw_Pips @SET 0x00637CE3, { mov ebx, 0xfffffff4 } ;@SET 0x00637CE3, { lea ebx, [GroupYAdjustment] } ;@SET 0x00637D11, { lea eax, [ebx-24] } ;@SET 0x00637D27, { sub ecx, 10 }
#include "ili9328.h" SPISettings setting(8000000, MSBFIRST, SPI_MODE3); ili9328SPI::ili9328SPI(uint8_t cs, uint8_t reset) : Adafruit_GFX(TFT_WIDTH, TFT_HEIGHT) { CSpin = cs; RSTpin = reset; } void ili9328SPI::begin(void) { CSPinSet = digitalPinToBitMask(CSpin); CSPort = portOutputRegister(digitalPinToPort(CS...
/* * Copyright (C) 2017 Jolla Ltd. * Contact: Chris Adams <chris.adams@jollamobile.com> * All rights reserved. * BSD 3-Clause License, see LICENSE. */ #include "plugin.h" #include <QtCore/QMetaObject> Q_PLUGIN_METADATA(IID Sailfish_Secrets_AuthenticationPlugin_IID) Q_LOGGING_CATEGORY(lcSailfishSecretsPluginIna...
; --------------------------------------------------------------------------- ; Copyright (c) 1998-2013, Brian Gladman, Worcester, UK. All rights reserved. ; ; The redistribution and use of this software (with or without changes) ; is allowed without the payment of fees or royalties provided that: ; ; source code di...
#pragma once #include <cstdlib> #include <iostream> #include <map> namespace flg { using namespace std; enum class Symbol { min_term, boxed_bool, boxed_i32, boxed_i64, boxed_fp32, boxed_fp64, boxed_string, /* INSERT 0 */ max_term }; ostream& operator<<(ostream& out, const Symbol& sym) { switch (sy...
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "cldnn_program.h" #include "cldnn_common_utils.h" #include "ngraph/op/proposal.hpp" #include "cldnn/primitives/proposal.hpp" #include "cldnn/primitives/mutable_data.hpp" #include "cldnn/runtime/debug_configuration.hpp" n...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2017 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <chain.h> #include <chainparams.h> #include <core_io.h> #include <index/...
#if !defined(BOOST_PROTO_DONT_USE_PREPROCESSED_FILES) #include <boost/proto/transform/detail/preprocessed/when.hpp> #elif !defined(BOOST_PP_IS_ITERATING) #if defined(__WAVE__) && defined(BOOST_PROTO_CREATE_PREPROCESSED_FILES) #pragma wave option(preserve: 2, line: 0, output: "preprocessed/when...
/* * Copyright (C) 2020-2021 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "shared/source/debugger/debugger.h" #include "shared/source/device/device.h" #include "shared/source/helpers/api_specific_config.h" #include "shared/source/helpers/basic_math.h" #include "shared/source/helpers/hw_helper....
; A152205: Triangle read by rows, A000012 * A152204. ; Submitted by Jon Maiga ; 1,4,9,1,16,4,25,9,1,36,16,4,49,25,9,1,64,36,16,4,81,49,25,9,1,100,64,36,16,4,121,81,49,25,9,1,144,100,64,36,16,4,169,121,81,49,25,9,1 seq $0,122196 ; Fractal sequence: count down by 2's from successive integers. pow $0,2
section .text global get_max get_max: push ebp mov ebp, esp ; [ebp+8] is array pointer ; [ebp+12] is array length mov ebx, [ebp+8] mov ecx, [ebp+12] xor eax, eax compare: cmp eax, [ebx+ecx*4-4] jge check_end mov eax, [ebx+ecx*4-4] check_end: loopnz compare leave ret
// Copyright (c) 2011-2021 The Khronos Group, Inc. // SPDX-License-Identifier: Apache-2.0 const size_t nElems = 10u; // Create a vector and fill it with values 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 std::vector<int> v { nElems }; std::iota(std::begin(v), std::end(v), 0); // Create a buffer with no associated user storage sycl...
org $0000 ; Object types OBJECT_NONE EQU 0 OBJECT_SWITCH EQU 1 OBJECT_DOOR EQU 2 OBJECT_DOOR_DESTROY EQU 3 OBJECT_FLOOR_DESTROY EQU 4 OBJECT_WALL_DESTROY EQU 5 OBJECT_BOX_LEFT EQU 6 OBJECT_BOX_RIGHT EQU 7 OBJECT_JAR EQU 8 OBJECT_TELEPORTER EQU 9 ; Pickable object types OBJECT_KEY_GREEN EQU 11 OBJECT_KEY_BLUE EQU...
; A029714: a(n) = Sum_{k divides 3^n} S(k), where S is the Kempner function A002034. ; 1,4,10,19,28,40,55,73,91,112,136,163,190,217,247,280,316,352,391,433,478,523,571,622,676,730,784,841,901,964,1027,1093,1162,1234,1306,1381,1459,1540,1621,1702,1783,1867,1954,2044,2134,2227,2323,2422,2521,2623 mov $34,$0 mov $36,$0 a...
############################################################################### # 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...
INCLUDE "hardware.inc" ;============================================================== ; rst handlers as routines ;============================================================== CALL_HL EQU $30 RST_38 EQU $38 ;============================================================== ; structs ;====================...
; A113726: A Jacobsthal convolution. ; Submitted by Christian Krause ; 1,0,1,4,5,8,25,44,77,176,353,660,1365,2776,5417,10876,21981,43648,87153,175076,349669,698280,1398585,2797260,5590381,11184720,22373761,44735284,89474165,178969208,357910345,715807004,1431683837,2863325216 add $0,2 mov $2,2 lpb $0 sub $0,1 mov $...
.ORIG x3000 LD R0, Nx8A9C LD R3, Nxn8000 AND R4, R4, #0 AND R0, R0, #-2 ADD R0, R0, #1 BRzp START ADD R4, R4, #-1 BRnzp START P ADD R4, R4, R4 ADD R0, R0, R0 CHECK_P BRp P ADD R1, R0, R3 BRp N BRnzp OK N ADD R4, R4, R4 ADD R4, R4, #1 START ADD R0, R0, R0 CHECK_N BRp ...
.size 8000 .text@48 jp lstatint .text@100 jp lbegin .data@143 c0 .text@150 lbegin: ld a, 00 ldff(ff), a ld b, 97 call lwaitly_b ld a, b1 ldff(40), a ld a, 00 ldff(4b), a ld c, 41 ld a, ff ldff(4a), a ld a, 01 ldff(45), a ld a, 40 ldff(c), a xor a, a ldff(0f), a ld a, 02 ldff(ff), a ei .text@...
// Copyright 2014 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 "media/midi/usb_midi_device_factory_android.h" #include <jni.h> #include <vector> #include "base/android/scoped_java_ref.h" #include "base/bind...
// license:BSD-3-Clause // copyright-holders:Fabio Priuli /*********************************************************************************************************** Interton Electronic VC 4000 cart emulation ********************************************************************************************************...
/* * 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...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r8 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x2dee, %rsi lea addresses_WC_ht+0x6e8e, %rdi nop nop inc %rbx mov $52, %rcx rep movsl and %rax, %rax lea addresses_A_ht+0x8b3e, %r10 nop nop nop nop nop and %r8, %r8 movb (%r10...
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...
; A269641: Number of length-4 0..n arrays with no repeated value differing from the previous repeated value by other than plus two or minus 1. ; 9,63,221,567,1209,2279,3933,6351,9737,14319,20349,28103,37881,50007,64829,82719,104073,129311,158877,193239,232889,278343,330141,388847,455049,529359,612413,704871,807417,9207...
; A076338: a(n) = 512*n + 1. ; 1,513,1025,1537,2049,2561,3073,3585,4097,4609,5121,5633,6145,6657,7169,7681,8193,8705,9217,9729,10241,10753,11265,11777,12289,12801,13313,13825,14337,14849,15361,15873,16385,16897,17409,17921,18433,18945,19457,19969,20481,20993,21505,22017,22529,23041,23553,24065,24577,25089,25601,26113,2...
/* * All Video Processing kernels * Copyright © <2010>, Intel Corporation. * * This program is licensed under the terms and conditions of the * Eclipse Public License (EPL), version 1.0. The full text of the EPL is at * http://www.opensource.org/licenses/eclipse-1.0.php. * * Authors: * Halley Zhao <halley...
test_device(): sub rsp, 24 call rand mov rdx, QWORD PTR [rsp] mov ecx, eax shr rdx, 12 and edx, 63 sal edx, cl and edx, 63 mov eax, edx mov edx, DWORD PTR [rsp] sal eax, 12 and ...
;; ;; Copyright (c) 2018-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...
; ----------------------------------------------------------------------------- ; ZX7 Backwards by Einar Saukas, Antonio Villena ; "Standard" version (156/177/184 bytes only) for R800 ; ----------------------------------------------------------------------------- ; Parameters: ; HL: source address (compressed data) ;...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Copyright(c) 2011-2016 Intel Corporation All rights reserved. ; ; Redistribution and use in source and binary forms, with or without ; modification, are permitted provided that the following conditions ; are met: ; * Redistributions of so...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r14 push %r9 push %rbp push %rcx push %rdi push %rsi lea addresses_WT_ht+0xe9b7, %rsi lea addresses_A_ht+0x15777, %rdi nop nop nop sub %r9, %r9 mov $28, %rcx rep movsl nop nop and %rsi, %rsi lea addresses_WC_ht+0xd6f7, %rdi nop nop nop nop nop and %r14, %r14 ...
///////////////////////////////////////////////////////////////////////////// // Name: src/common/docmdi.cpp // Purpose: Frame classes for MDI document/view applications // Author: Julian Smart, Vadim Zeitlin // Created: 01/02/97 // Copyright: (c) 1997 Julian Smart // (c) 2010 Vadim Z...
; ; ZX 81 specific routines ; by Stefano Bodrato, Oct 2007 ; ; convert char to ASCII ; ; char zx_ascii(char character); ; ; ; $Id: zx_ascii.asm,v 1.5 2016-06-26 20:32:08 dom Exp $ ; SECTION code_clib PUBLIC zx_ascii PUBLIC _zx_ascii EXTERN zx81toasc zx_ascii: _zx_ascii: ld hl,zx81toasc+1 ld a,(hl) push af push h...
.size 8000 .text@50 jp ltimaint .text@100 jp lbegin .data@143 c0 .text@150 lbegin: xor a, a ldff(0f), a ldff(ff), a ld a, fe ldff(05), a ldff(06), a ld a, 04 ldff(ff), a ld a, 04 ldff(07), a ei nop halt .text@1000 ltimaint: ld a, 00 ldff(07), a .text@10f0 ld a, 04 ldff(07), a .text@14f1 ldff...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r13 push %r15 push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0x16cfe, %r13 nop add %rbx, %rbx mov $0x6162636465666768, %r15 movq %r15, %xmm3 vmovups %ymm3, (%r13) nop nop nop nop and $62170, %r10 lea addresses_D_ht+0xa04a, %rsi lea addr...
; A157517: a(n) = 7 + 12*n - 6*n^2. ; 7,13,7,-11,-41,-83,-137,-203,-281,-371,-473,-587,-713,-851,-1001,-1163,-1337,-1523,-1721,-1931,-2153,-2387,-2633,-2891,-3161,-3443,-3737,-4043,-4361,-4691,-5033,-5387,-5753,-6131,-6521,-6923,-7337,-7763,-8201,-8651,-9113,-9587,-10073,-10571,-11081,-11603,-12137,-12683,-13241,-13811...
; A128059: a(n) = numerator((2*n-1)^2/(2*(2*n)!)). ; 1,1,3,5,7,1,11,13,1,17,19,1,23,1,1,29,31,1,1,37,1,41,43,1,47,1,1,53,1,1,59,61,1,1,67,1,71,73,1,1,79,1,83,1,1,89,1,1,1,97,1,101,103,1,107,109,1,113,1,1,1,1,1,1,127,1,131,1,1,137,139,1,1,1,1,149,151,1,1,157,1,1,163,1,167,1,1,173,1,1,179,181,1,1,1,1,191,193,1,197,199,1,...
; A164304: a(n) = 4*a(n-1) - 2*a(n-2) for n > 1; a(0) = 3, a(1) = 14. ; 3,14,50,172,588,2008,6856,23408,79920,272864,931616,3180736,10859712,37077376,126590080,432205568,1475642112,5038157312,17201345024,58729065472,200513571840,684596156416,2337357481984,7980237615104,27246235496448,93024466755584,317605396029440,1084...
; A044535: Numbers n such that string 2,2 occurs in the base 7 representation of n but not of n+1. ; 16,65,118,163,212,261,310,359,408,461,506,555,604,653,702,751,832,849,898,947,996,1045,1094,1147,1192,1241,1290,1339,1388,1437,1490,1535,1584,1633,1682,1731,1780,1833,1878,1927,1976 mov $5,$0 mul $0,2 mov $4,$0 mul $0,...
; A017469: a(n) = (11*n + 6)^9. ; 10077696,118587876497,10578455953408,208728361158759,1953125000000000,11694146092834141,51998697814228992,186940255267540403,572994802228616704,1551328215978515625,3802961274698203136,8594754748609397887,18151468971815029248,36197319879620191349,68719476736000000000,1250158256678243939...
; A053164: 4th root of largest 4th power dividing n. ; 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1 seq $0,57918 ; Number of pairs of numbers (a,b) each less than n...
; A293810 o=1: The truncated kernel function of n: the product of distinct primes dividing n, but excluding the largest prime divisor of n. ; Coded manually 2021-02-25 by Antti Karttunen, https://github.com/karttu ; Essentially implementing A007947 without taking its largest prime divisor into the product ; Note that ...
; A142168: Primes congruent to 16 mod 39. ; Submitted by Christian Krause ; 211,367,523,601,757,991,1069,1303,1381,1459,1693,2083,2161,2239,2473,2551,2707,3019,3253,3331,3643,3877,4111,4423,4657,4813,4969,5281,5437,5749,5827,6217,6373,6451,6529,6607,6763,6841,6997,7309,7621,7699,7933,8011,8089,8167,8713,9103,9181,9337,...
/* Copyright (c) 2017-2020, Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Sustainable Energy, LLC. See the top-level NOTICE for additional details. All rights reserved. SPDX-License-Identifier: BSD-3-Clause */ #include "InprocCore.h" #include "../NetworkCore_impl.hpp" #include "...
; A261120: The number of distinct triple points in the set of function values FLSN(m/6/7^n), m in 0, 1, 2... 6*7^n, where FLSN:[0,1] is the "flowsnake" plane filling curve. ; Submitted by Jamie Morken(s1) ; 2,17,134,989,7082,50057,351854,2467349,17284562,121031297,847337174,5931714509,41523064442,290664639737,203466204...
; Substitute for z80 cpir instruction ; aralbrec 02.2008 ; flag-perfect emulation of cpir SECTION code_crt0_sccz80 PUBLIC __z80asm__cpir .__z80asm__cpir jr nc, enterloop call enterloop ; scf clears N and H - must set carry the hard way push af ex (sp),hl set 0,l ; set carry jr retflags ....
%ifdef CONFIG { "RegData": { "RBX": "0x0003", "RCX": "0x0002", "RDX": "0x0001", "RSI": "0x0000", "R8": "0x0", "R9": "0x0", "R10": "0x1", "R11": "0x1" } } %endif mov rbx, 0x0001 mov rcx, 0x0001 mov rdx, 0x8000 mov rsi, 0x8000 stc rcl bx, 1 lahf mov r8w, ax shr r8, 8 and r8, 1 ; We...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r14 push %r8 push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x294b, %r14 nop and %rdx, %rdx mov $0x6162636465666768, %rdi movq %rdi, %xmm2 and $0xffffffffffffffc0, %r14 movaps %xmm2, (%r14) nop nop inc %r10 lea addresses_WC_ht+0x3ec1, %r...
// // detail/kqueue_reactor.hpp // ~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2021 Christopher M. Kohlhoff (chris at kohlhoff dot com) // Copyright (c) 2005 Stefan Arentz (stefan at soze dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy a...
; fat12.asm ; FAT12 filesystem read only function %ifndef __FAT12_ASM_INCLUDED__ %define __FAT12_ASM_INCLUDED__ [BITS 16] %include "boot/bpb.asm" %include "boot/common.asm" ;/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ ; ; Variables ; ;/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ KernelImageCluster DW 0x0000 datasector ...
#include "CaesarCrypt.h" #include <string.h> #include <malloc.h> const char* UCASE_LETTERS = "ABCDEFGHIJKLMNOPQRSTUVXYZ"; const char* LCASE_LETTERS = "abcdefghijklmnopqrstuvxyz"; int numShifts = 0; int getIndex(const char* letters, const char ch) { for (int i = 0; i < strlen(letters); i++) { if (letters[i] == c...
lc r4, 0x00008000 lc r5, 0x0000006d gtu r6, r4, r5 halt #@expected values #r4 = 0x00008000 #r5 = 0x0000006d #r6 = 0x00000001 #pc = -2147483628 #e0 = 0 #e1 = 0 #e2 = 0 #e3 = 0
SECTION "ROM Bank 05", ROMX[$4000], BANK[$05] db $FF, $02, $00, $00, $00, $AE, $42, $05 db $00, $00, $00, $AE, $42, $05, $FF, $02 db $00, $00, $00, $4E, $43, $05, $00, $00 db $00, $4E, $43, $05, $FF, $02, $9B, $4D db $03, $33, $4E, $03, $00, $00, $00, $2A db $4F, $03, $FF, $02, $00,...
;PARTSWAP.ASM ;1581 PARTITION LIST AND SWAP ;AKX 2021 ;--------------------------------------- ;SET UP BASIC SYS *= $0801 ;END $080C ;LINE $000A ;SYS (TOKEN $9E) ;" 2560" ;END LINE (000) .BYTE $0C,$08,$0A,$00,$9E,$20 .BYTE $32,$35,$36,$30,$00,$00 ...
; A083559: Nearest integer to 1/(Sum_{k>=n} 1/k^4). ; 1,12,50,134,280,507,834,1277,1855,2586,3489,4580,5878,7401,9168,11195,13501,16104,19023,22274,25876,29847,34206,38969,44155,49782,55869,62432,69490,77061,85164,93815,103033,112836,123243,134270,145936,158259,171258,184949,199351,214482,230361,247004,264430,282657,30...
; A322462: Numbers on the 0-1-12 line in a spiral on a grid of equilateral triangles. ; 0,1,12,13,36,37,72,73,120,121,180,181,252,253,336,337,432,433,540,541,660,661,792,793,936,937,1092,1093,1260,1261,1440,1441,1632,1633,1836,1837,2052,2053,2280,2281,2520,2521,2772,2773,3036,3037,3312,3313,3600,3601,3900,3901,4212,421...
[bits 16] ; INPUT: al = char putch: pusha mov ah, 0x0e int 0x10 popa ret ; INPUT: si = ptr to string printf: pusha mov ah, 0x0e .print_string_loop: lodsb cmp al, 0x0 je .print_string_done int 0x10 jmp .print_string_loop .print_string_done: ...
include xlibproc.inc include Wintab.inc PROC_TEMPLATE WTMgrCsrPressureResponse, 6, Wintab, -, 184
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r8 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_WC_ht+0x17a60, %rcx nop sub %r10, %r10 mov (%rcx), %rax and $44789, %rdi lea addresses_A_ht+0x1e160, %r8 nop nop nop nop and %rbp, %rbp mov (%r8), %r12 nop nop nop cmp $57023, %rax l...
addi $x1, $x0, 0 addi $x2, $x0, 0 addi $x3, $x0, 0 addi $x4, $x0, 0 addi $x5, $x0, 0 addi $x6, $x0, 0 addi $x7, $x0, 0 addi $x8, $x0, 0 addi $x9, $x0, 0 addi $x10, $x0, 0 addi $x11, $x0, 0 addi $x12, $x0, 0 addi $x13, $x0, 0 addi $x14, $x0, 0 addi $x15, $x0, 0 addi $x16, $x0, 0 addi $x17, $x0, 0 addi $x18, $x0, 0 addi ...
// ------------------------------------------------------------------------------------------------- // Copyright 2017 - NumScale SAS // // Distributed under the Boost Software License, Version 1.0. // See accompanying file LICENSE.txt or copy at // ...
PUBLIC load_tiles ;============================================================== ; load_tiles(unsigned char *data, int index, int count, int bpp) ;============================================================== ; Loads the specified tileset into VRAM ;============================================================== .l...
; int ferror(FILE *stream) INCLUDE "clib_cfg.asm" SECTION code_stdio ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; IF __CLIB_OPT_MULTITHREAD & $02 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PUBLIC _ferror EXTERN _ferror_fastcall _ferror: pop af pop hl push hl push af jp _ferror_fastcall ;;;;;;;;;;;;;;;;;;;;;;;;;...
%DEFINE SANDBOX %include "var_header.inc" ; Header has global variable definitions for other modules %include "func_header.inc" ; Header has global function definitions for other modules ;------------------------------------------------------------- ; ; SINGLE THREAD FLOATING POINT MULTI-PRECISION CALCULATOR ; ; Sand...
copyright zengfr site:http://github.com/zengfr/romhack 00042A move.l D1, (A0)+ 00042C dbra D0, $42a 012C0A move.l A0, ($6ac,A5) 012C0E tst.b ($4dc,A5) [base+6AC, base+6AE] 012C90 movea.l ($6ac,A5), A0 012C94 move.w ($e,A0), D0 [base+6AC, base+6AE] 012CA6 move.l A0, ($6ac,A5) 012CAA rts [base+6AC,...
; ; This file is automatically generated ; ; Do not edit!!! ; ; djm 12/2/2000 ; ; ZSock Lib function: sock_settos SECTION code_clib PUBLIC sock_settos PUBLIC _sock_settos EXTERN no_zsock INCLUDE "packages.def" INCLUDE "zsock.def" .sock_settos ._sock_settos ld a,r_sock_settos call_pkg(tcp_all) ret nc...
; A050506: Nearest integer to log(Fibonacci(n)). ; 1,1,2,2,3,3,4,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,14,14,15,15,16,16,17,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,30,30,30,31,31,32,32,33,33 mov $2,1 mul $2,$0 mov $0,3 mov $1,3 lpb $0,1 sub $0,1 add $1,$2 div $1,3 ...
section .text global _start _start: mov eax, 4 mov ebx, 1 mov ecx, wlcm_msg mov edx, wlc_len int 0x80 ; %eax Name %ebx %ecx %edx %esx %edi ; 3 sys_read unsigned int char * size_t - - mov eax, 3 mov ebx, 0 ; STDIN descriptor mov ecx, buff mov edx, 64 ; si...
#include <stdint.h> // this is the secret key stored inside the protected enclave memory uint64_t key[] = {0,-1llu,-1llu,0,0,-1llu, 2}; extern "C" int callback(); // stringify #define STR(x) #x // this is a macro wrapper to gernate code that behaves similar to // sgx-step zero and single stepping #define _SIM(_la...