text
stringlengths
1
1.05M
/* * 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...
; void p_forward_list_alt_init(void *p) SECTION code_clib SECTION code_adt_p_forward_list_alt PUBLIC p_forward_list_alt_init EXTERN asm_p_forward_list_alt_init defc p_forward_list_alt_init = asm_p_forward_list_alt_init
// Copyright 2021 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 "components/embedder_support/permission_context_utils.h" #include "build/build_config.h" #include "components/background_sync/background_sync_pe...
BITS 64 global MeasurementChain_Start global MeasurementChain_Checkpoint global MeasurementChain_End global FunctionTracePack_Start global FunctionTracePack_End section .text MeasurementChain_Start: push rax push rdx mov rax, 08FFFFFFFFFFFFFF0h ; callcount inc dword [rax] rdtsc ...
; =============================================================== ; Jan 2014 ; =============================================================== ; ; char *_memupr(void *p, size_t n) ; ; Change letters in buffer p to upper case. ; ; =============================================================== SECTION code_clib SECTI...
; Sprite dropping code V1.01  1985 Tony Tebby ; 2005 Marcel Kilgus ; ; 2005-03-27 1.01 Extension for empty (solid) mask (MK) ; ; d0 c s byte offset / green composite ; d1 c s row offset / red composite ; d2 s green sprite ; d3 s red sprite ; d4 s sprite mask ; d5 c s sprite word counter...
// MinNumber.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include <iostream> #include <climits> #include <string> using namespace std; int minNumber = INT_MAX; int main() { string input; cin >> input; while (input != "Stop") { int num = stoi(input); ...
// "Accepting Navi DataChip" text .org 0x08039480 // Increase number of letters .db 0x18 .org 0x08039470 // x-position of text mov r0,0x1C // Use wider Navi names .org 0x80395BC bl naviSelect_getNaviNameTile .org 0x80395C4 mov r2,0xB // from 0x3 .org 0x80395D2 bl naviSelect_renderNaviName // Unlock Chip Gate...
#include "common/buffer/buffer_impl.h" #include "common/buffer/zero_copy_input_stream_impl.h" #include "test/common/buffer/utility.h" #include "gtest/gtest.h" namespace Envoy { namespace Buffer { namespace { class ZeroCopyInputStreamTest : public testing::Test { public: ZeroCopyInputStreamTest() { Buffer::Own...
; A061087: a(n) = A061086(n) / n. ; 11,14,109,116,1025,1036,1049,1064,1081,10100,10121,10144,10169,10196,10225,10256,10289,10324,10361,10400,10441,100484,100529,100576,100625,100676,100729,100784,100841,100900,100961,101024,101089,101156,101225,101296,101369,101444,101521,101600,101681,101764,101849,101936,102025,10211...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r14 push %r9 push %rbp push %rcx push %rdi push %rsi lea addresses_WT_ht+0x1d3e2, %rbp nop sub %r14, %r14 mov (%rbp), %r11d nop inc %rsi lea addresses_A_ht+0xd692, %rsi lea addresses_A_ht+0xf68e, %rdi nop nop nop and $7875, %r13 mov $43, %rcx rep mo...
; zone_ctx* __profiler_zone_begin(char* name) EXTERN __profiler_begin:PROC ; void __profiler_zone_end(zone_ctx* ctx); EXTERN __profiler_end:PROC EXTERN __imp_TlsGetValue:PROC EXTERN __imp_TlsSetValue:PROC EXTERN __imp_GlobalAlloc:PROC .code profiler_zone PROC ; save argument registers push rcx push rd...
// Copyright (c) 2016 The UUV Simulator 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 ...
TITLE DIRCALL - Directory manipulation internal calls NAME DIRCALL ; ; Microsoft Confidential ; Copyright (C) Microsoft Corporation 1991 ; All Rights Reserved. ; ;** Low level directory manipulation routines for making removing and ; verifying local or NET directories ; ; DOS_MKDIR ; DOS_CHDIR ; DOS_RMDIR ; ; Mo...
; A155942: Numbers n such that 16n+1 is a prime. ; 1,6,7,12,15,16,21,22,25,27,28,36,37,40,42,48,55,58,61,63,72,75,76,78,81,85,88,93,97,100,106,111,117,118,126,130,132,133,135,142,151,162,163,166,168,172,175,177,181,190,193,195,196,198,201,207,208,210,216,226,231,235,237,243,250,253,258,261,265,267,268,271,280,282,285,2...
; A171835: Partial sums of numbers congruent to {3, 4, 5, 6} mod 8 (A047425). ; 3,7,12,18,29,41,54,68,87,107,128,150,177,205,234,264,299,335,372,410,453,497,542,588,639,691,744,798,857,917,978,1040,1107,1175,1244,1314,1389,1465,1542,1620,1703,1787,1872,1958,2049,2141,2234,2328,2427,2527,2628,2730,2837,2945,3054,3164,32...
; A165206: a(n) = (3-4*n)*F(2*n-2) + (4-7*n)*F(2*n-1). ; Submitted by Christian Krause ; 1,-3,-25,-112,-416,-1411,-4537,-14085,-42653,-126794,-371554,-1076423,-3089555,-8799207,-24897121,-70052356,-196151492,-546916555,-1519249933,-4206274089,-11611243109,-31967026718,-87796880710,-240605174927,-658056278951,-179649500...
CeladonMansion2F_MapScripts: db 0 ; scene scripts db 0 ; callbacks CeladonMansion2FComputer: jumptext CeladonMansion2FComputerText CeladonMansion2FMeetingRoomSign: jumptext CeladonMansion2FMeetingRoomSignText CeladonMansion2FBookshelf: jumpstd difficultbookshelf CeladonMansion2FComputerText: text "<PLAYER> t...
;----------------------------------------------------------------------------- ; 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 restriction...
/* <dory/mock_kafka_server/client_handler_factory_base.cc> ---------------------------------------------------------------------------- Copyright 2013-2014 if(we) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obt...
.size 8000 .text@48 jp lstatint .text@100 jp lbegin .data@143 80 .text@150 lbegin: ld a, ff ldff(45), a ld b, 91 call lwaitly_b xor a, a ldff(40), a ld hl, fea0 lbegin_fill_oam: dec l ld(hl), a jrnz lbegin_fill_oam ld d, 10 ld a, d ld(hl), a inc l ld a, 08 ld(hl), a inc l inc l inc l ld a, d ...
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.16.27026.1 TITLE Z:\Sources\Lunor\Repos\rougemeilland\Palmtree.Math.Core.Implements\Palmtree.Math.Core.Implements\CALC_divrem_critical.c .686P .XMM include listing.inc .model flat INCLUDELIB MSVCRT INCLUDELIB OLDNAMES END
include stdiolib.i CGROUP group code code segment dword 'CODE' assume cs:CGROUP,ds:CGROUP STDIOLIB_JUMP fputc siol_fputc code ends end
.MODEL TINY .DATA STRING DB "DOLL" COUNT DB 04H .CODE .STARTUP ;SETTING THE DISPLAY MODE MOV AL, 3 MOV AH, 0 INT 10H LEA SI, STRING MOV DL, 40 ; INITIAL SETTING OF THE COLUMN X1: MOV AH, 2 ;SETTING THE CURSOR POSITION MOV BH, 0 MOV DH, 12 ;SETTING THE ROW INT 10H MOV AL, [SI] ...
// Copyright (c) 2009-2014 Bitcoin Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "init.h" // for pwalletMain #include "bitcoinrpc.h" #include "ui_interface.h" #include "base58.h" #include <boost/lexica...
; ; Copyright (C) 2008-2020 Advanced Micro Devices, Inc. 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...
.include "vdc.inc" .macro matrix_store sta \1_0 eor #$ff inc A sta \1_1 .endmacro .code transform: ; compute_rotation_matrix: ; t0 = ry - rz ry = * + 1 lda #$00 tax sec rz = * + 1 sbc #$00 sta @t0 ; t1 = ry + rz txa clc adc ...
dnl mpn_karaadd dnl Copyright 2011 The Code Cavern dnl This file is part of the MPIR Library. dnl The MPIR Library is free software; you can redistribute it and/or modify dnl it under the terms of the GNU Lesser General Public License as published dnl by the Free Software Foundation; either version 2.1 of the ...
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r8 push %rcx push %rdi push %rsi lea addresses_WT_ht+0xbccd, %rsi lea addresses_WT_ht+0xa325, %rdi nop nop add $56561, %r13 mov $9, %rcx rep movsl nop nop nop and %r8, %r8 pop %rsi pop %rdi pop %rcx pop %r8 pop %r13 ret .global s_faulty_load s_faulty_loa...
; char *strcpy_callee(char * restrict s1, const char * restrict s2) SECTION code_clib SECTION code_string PUBLIC _strcpy_callee EXTERN asm_strcpy _strcpy_callee: pop hl pop de ex (sp),hl jp asm_strcpy
; A114459: Integer part of sqrt(n)+sqrt(n+1)+sqrt(n+2)+sqrt(n+3). ; 6,7,8,9,10,10,11,12,12,13,14,14,15,15,16,16,17,17,18,18,18,19,19,20,20,20,21,21,22,22,22,23,23,23,24,24,24,25,25,25,26,26,26,26,27,27,27,28,28,28,28,29,29,29,30,30,30,30,31,31,31,31,32,32,32,32,33,33,33,33,34 mul $0,2 mov $1,$0 mov $2,4 mov $3,$0 mul ...
/* $Id$ */ // Copyright (C) 2000, International Business Machines // Corporation and others. All Rights Reserved. // This code is licensed under the terms of the Eclipse Public License (EPL). #ifndef CoinSort_H #define CoinSort_H #include <functional> #include <new> #include <algorithm> #include "CoinDistance.hpp" ...
Name: mn_hp_smsub2.asm Type: file Size: 85557 Last-Modified: '1993-08-24T11:35:00Z' SHA-1: CAB7D497DD2CB661D7356832D4C0A25356C4F77E Description: null
SECTION code_clib PUBLIC xor_MODE2 .xor_MODE2 ld a,h cp 128 ret nc defc NEEDxor = 1 INCLUDE "target/spc1000/graphics/pixel_MODE2.inc"
; ---------------------------------------------------------------------- ; cpuid.asm ; ; A CPUID ; To assemble and run: ; ; nasm -felf64 cpuid.asm \ ; && ld -o cpuid cpuid.o && ./cpuid ; ---------------------------------------------------------------------- %define CODE %include "syscalls.inc.asm" %include "start...
SECTION code_fp_math16 PUBLIC cm16_sccz80_acos EXTERN cm16_sccz80_read1, acosf16 cm16_sccz80_acos: call cm16_sccz80_read1 jp acosf16
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r14 push %r15 push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0x15261, %r12 sub %rdi, %rdi movb $0x61, (%r12) nop nop nop nop dec %r12 lea addresses_WC_ht+0x18289, %r15 nop nop nop nop nop dec %r14 vmovups (%r15), %ymm0 vextracti128 ...
; A155465: a(n) = 7*a(n-1) - 7*a(n-2) + a(n-3) for n > 2; a(0) = 7, a(1) = 88, a(2) = 555. ; Submitted by Jamie Morken(s3) ; 7,88,555,3276,19135,111568,650307,3790308,22091575,128759176,750463515,4374021948,25493668207,148587987328,866034255795,5047617547476,29419671029095,171470408627128,999402780733707,58249462757751...
; A204539: a(n) = number of integers N=4k whose "basin" sequence (cf. comment) ends in n^2. ; 1,1,1,2,1,3,2,4,2,4,3,5,1,9,2,10,3,5,7,9,2,10,9,9,2,13,9,8,4,20,4,15,6,15,8,12,6,22,6,15,15,21,5,13,12,23,7,24,11,19,15,24,6,30,6,26,7,27,26,13,6,33,27,30,5,13,30,30,5,37,15,26,28,32,7,17,25,54,9,30,21,41,25,11,13,47,30,43,11,...
section .bss buffer: resb 64 outbuff: resb 3500 N: resb 8 tmp1: resb 8 currpos: resb 8 outlen: resb 8 section .text atoi: xor rax, rax xor rcx, rcx .pre: mov cl, [rdx] inc rdx cmp rcx, '0' jb .pre cmp rcx, '9' ja .pre dec rdx ...
; A204092: The number of 1 by n Haunted Mirror Maze puzzles with a unique solution. ; Submitted by Jamie Morken(s3) ; 1,3,17,91,449,2123,9841,45211,206881,945003,4313297,19680571,89784449,409577483,1868351281,8522666971,38876763361,177338745003,808940722577,3690027171451,16832256509249,76781232397643,350241657358321,15...
;****************************************************************************** ; ; (c) 2010 by BECK IPC GmbH ; http://www.beck-ipc.com ; ;****************************************************************************** ; ; Module: cry20.asm ; Function: Dynamic linking of TCPI/IP API Function Crypt_MD5_Final() ; ; ...
; A077543: Smallest n-digit composite palindrome. ; Submitted by Jamie Morken(m4) ; 4,22,111,1001,10001,100001,1000001,10000001,100000001,1000000001,10000000001,100000000001,1000000000001,10000000000001,100000000000001,1000000000000001,10000000000000001,100000000000000001 mov $1,1 mov $2,1 mov $3,$0 mul $3,5 lpb $3 ...
kernel: file format elf32-i386 Disassembly of section .text: 80100000 <multiboot_header>: 80100000: 02 b0 ad 1b 00 00 add 0x1bad(%eax),%dh 80100006: 00 00 add %al,(%eax) 80100008: fe 4f 52 decb 0x52(%edi) 8010000b: e4 .byte 0xe4 8010000c <entry>: # E...
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
#include "stdafx.h" #include "stack.h" struct StackElement { char value; StackElement *next; }; StackElement *createStack() { StackElement *head = new StackElement{ 0, nullptr }; return head; } void pop(StackElement *&head, char value) { StackElement *newElement = new StackElement{ value, head }; head = newEle...
; A144706: Central coefficients of Pascal-like triangle A132047. ; 1,6,18,60,210,756,2772,10296,38610,145860,554268,2116296,8112468,31201800,120349800,465352560,1803241170,7000818660,27225405900,106035791400,413539586460,1614773623320 mov $2,1 mov $3,$0 lpb $0 mul $2,$3 mul $3,2 trn $0,$3 mov $1,$3 bin $1,$2...
; A165719: Integers of the form k*(k+9)/8. ; 14,17,45,50,92,99,155,164,234,245,329,342,440,455,567,584,710,729,869,890,1044,1067,1235,1260,1442,1469,1665,1694,1904,1935,2159,2192,2430,2465,2717,2754,3020,3059,3339,3380,3674,3717,4025,4070,4392,4439,4775 add $0,1 mov $1,$0 mov $2,2 mov $3,$0 lpb $0 trn $0,2 add $2,...
; ; Upcaste Performance Libraries ; Copyright (C) 2012-2013 Jesse W. Towner ; ; 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...
; A256512: n*(1+(2*n)^n). ; 0,3,34,651,16388,500005,17915910,737894535,34359738376,1785233613321,102400000000010,6427501315524619,438244169232678924,32254987351648575501,2548827677619195478030,215233605000000000000015,19342813113834066795298832,1843276605301420850021531665,185659646372829639831095083026,197079720041098...
// // test-encoder.cc // #include <cstdio> #include <cinttypes> #undef NDEBUG #include <cassert> #include <cstdint> #include <cstdlib> #include <cassert> #include <map> #include <vector> #include <memory> #include <string> #include "types.h" #include "host-endian.h" #include "bits.h" #include "meta.h" #include "code...
; =============================================================== ; Dec 2013 ; =============================================================== ; ; int ffs(int i) ; ; Return bit position of least significant bit set. Bit ; positions are numbered 1-16 with 0 returned if no bits ; are set. ; ; =========================...
BITS 64 section .text global CPUID_enabled CPUID_enabled: pushfq ;Save RFLAGS pushfq ;Store RFLAGS xor qword [esp], 0x00200000 ;Invert the ID bit in stored RFLAGS popfq ;Load stored RFLAGS (with ID bit i...
; slbb0_writechar ; 08.2009 aralbrec XLIB slbb0_writechar LIB slbb0_appendchar ; write a char to the index specified ; ; enter : hl = & struct slbb ; a = index to write to ; d = char ; exit : carry set for success ; carry reset if index out of bounds ; uses : af, hl .slbb0_writechar c...
; A010004: a(0) = 1, a(n) = 13*n^2 + 2 for n>0. ; 1,15,54,119,210,327,470,639,834,1055,1302,1575,1874,2199,2550,2927,3330,3759,4214,4695,5202,5735,6294,6879,7490,8127,8790,9479,10194,10935,11702,12495,13314,14159,15030,15927,16850,17799,18774,19775,20802,21855,22934,24039,25170,26327,27510,28719,29954,31215,32502,33815...
// file name HardwareInit.asm setup:{ initHardware: { //Disable CIA IRQ's to prevent crashes lda #$7f sta $dc0d sta $dd0d //bank out BASIC and Kernal lda $01 and #%11111000 ora #%00000101 sta $01 // set VIC to BANK 3 lda $dd00 and #11111100 sta $dd00 // set screen to char mem l...
; A289060: a(n) = 3*a(n-1) - 3*a(n-2) + *a(n-3) for n >= 8, where a(0) = 2, a(1) = 4, a(2) = 7, a(3) = 11, a(4) = 17, a(5) = 25, a(6) = 36, a(7) = 51. ; 2,4,7,11,17,25,36,51,70,93,120,151,186,225,268,315,366,421,480,543,610,681,756,835,918,1005,1096,1191,1290,1393,1500,1611,1726,1845,1968,2095,2226,2361,2500,2643,2790,...
; $1EE4 goToProcessSound1: { jmp processSound1 } ; $1EE7 handleCpuIo1: { mov y,!cpuIo1_read_prev mov a,!cpuIo1_read : mov !cpuIo1_read_prev,a mov !cpuIo1_write,a cmp y,!cpuIo1_read : bne .branch_change .branch_noChange mov a,!sound1 : bne goToProcessSound1 ret .branch_change cmp a,#$00 : beq .bran...
// This file is a part of the IncludeOS unikernel - www.includeos.org // // Copyright 2015 Oslo and Akershus University College of Applied Sciences // and Alfred Bratterud // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may...
; A236213: Number of units in the imaginary quadratic field Q(sqrt(-d)), where d > 0 is the n-th squarefree number. ; 4,2,6,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,...
; Map 08 exec Map8Exec: lda PlayerMap7LampsCount ora Map8Lamps+2*4 bne L320A lda MapVar3 bmi L320A dec MapVar3 lda #$07 ldy #$0E jsr Entrance31aa L320A: lda Map8Lamps+0*4 ora Map8Lamps+1...
lda {m1} clc adc {c1},y sta {c1},y lda {m1}+1 adc {c1}+1,y sta {c1}+1,y
; A005823: Numbers whose ternary expansion contains no 1's. ; 0,2,6,8,18,20,24,26,54,56,60,62,72,74,78,80,162,164,168,170,180,182,186,188,216,218,222,224,234,236,240,242,486,488,492,494,504,506,510,512,540,542,546,548,558,560,564,566,648,650,654,656,666,668,672,674,702,704,708,710,720,722,726,728,1458,1460,1464,1466,14...
/*************************************************************************/ /* test_physics.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
; void *memmem_callee(const void *big, size_t big_len, const void *little, size_t little_len) SECTION code_clib SECTION code_string PUBLIC _memmem_callee, l0_memmem_callee EXTERN asm_memmem _memmem_callee: pop af exx pop bc exx pop hl pop de pop bc push af l0_memmem_callee: exx pus...
; A341346: a(n) = A048673(2n-1) mod 3. ; 1,0,1,0,1,1,0,0,1,0,1,0,1,0,1,1,0,0,0,1,1,0,1,0,1,0,0,1,1,1,1,0,0,0,1,1,1,0,0,0,1,0,1,0,1,1,0,0,0,1,1,0,1,1,0,1,1,0,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,1,1,1,1,1,0,0,0,1,0,0,0,0,1,0,0,0,1,1,1,0,1,1,1,1,0,1,0,0,1,0,0,0,0,0,0,1,1,0,1,0,0,1,1,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,1,0,1,0,1...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r13 push %r15 push %r8 push %rcx push %rdi lea addresses_A_ht+0x10073, %r8 nop nop nop nop sub $55719, %r10 mov (%r8), %r13w nop nop add $64122, %r15 lea addresses_WT_ht+0x120c4, %r12 clflush (%r12) nop nop nop nop nop add %rdi, %rdi mov (%r12), %rc...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r15 push %r8 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x111ef, %r15 nop nop nop nop dec %rcx movb (%r15), %r12b nop nop and %rdx, %rdx lea addresses_UC_ht+0x1548f, %rsi lea addresses_normal_ht+0xe527, %rdi nop nop sub %rbx, %rbx m...
#ifndef OPENGLWINDOW_HPP_ #define OPENGLWINDOW_HPP_ #include <array> #include <glm/vec2.hpp> #include <random> #include "abcg.hpp" class OpenGLWindow : public abcg::OpenGLWindow { protected: void initializeGL() override; void paintGL() override; void paintUI() override; void resizeGL(int width, int height) ...
SECTION code_driver PUBLIC vpeek_MODE1 PUBLIC vpeek_read_screen GLOBAL y_table GLOBAL vpeek_screendollar GLOBAL generic_console_font32 INCLUDE "target/gb/def/gb_globals.def" ;Entry: c = x, ; b = y ;Exit: nc = success ; a = character, ; ...
############################################################################### # 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...
lda {c1},y cmp {m1} lda {c1}+1,y sbc {m1}+1 bvc !+ eor #$80 !: bmi {la1}
<% from pwnlib.shellcraft.mips.linux import syscall %> <%page args="which, who, prio"/> <%docstring> Invokes the syscall setpriority. See 'man 2 setpriority' for more information. Arguments: which(priority_which_t): which who(id_t): who prio(int): prio </%docstring> ${syscall('SYS_setpriority', w...
; void im2_install_isr(uint8_t vector, void *isr) SECTION code_clib SECTION code_z80 PUBLIC _im2_install_isr EXTERN asm_im2_install_isr _im2_install_isr: pop af pop hl pop de push de push hl push af jp asm_im2_install_isr
; A296198: Harary index of the n X n black bishop graph. ; 0,1,8,21,55,104,197,318,514,755,1110,1531,2113,2786,3675,4684,5972,7413,9204,11185,13595,16236,19393,22826,26870,31239,36322,41783,48069,54790,62455,70616,79848,89641,100640,112269,125247,138928,154109,170070 mov $10,$0 mov $12,$0 lpb $12,1 clr $0,10 mov $...
/** * @file * @author __AUTHOR_NAME__ <mail@host.com> * @copyright 2021 __COMPANY_LTD__ * @license <a href="https://opensource.org/licenses/MIT">MIT License</a> */ #ifndef ZEN_UTILS_ASSERT_HPP #define ZEN_UTILS_ASSERT_HPP #include <iostream> #include <exception> #ifndef NDEBUG #define ZEN_ASSERT(condition, me...
; A076411: Number of perfect powers < n. ; 0,1,1,1,2,2,2,2,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,6,6,7,7,7,7,7,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12 lpb $0 sub $0,1 mov $...
/* ///////////////////////////////////////////////////////////////////////// * File: implicit_link.cpp * * Purpose: Implicit link file for the test.scratch.sink.WindowsMessageBox project. * * Created: 4th January 2009 * Updated: 26th September 2015 * * Status: Wizard-generated * * Lice...
SECTION "r0a", ROM0 DS $4000 SECTION "rx", ROMX DS $4000 SECTION "r0b", ROM0 DS $4000
/*========================================================================= Program: ParaView Module: pqSettingsDialog.cxx Copyright (c) 2005,2006 Sandia Corporation, Kitware Inc. All rights reserved. ParaView is a free software; you can redistribute it and/or modify it under the terms of the Para...
// Copyright Carl Philipp Reh 2009 - 2016. // 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) #ifndef FCPPT_MATH_MATRIX_TRANSLATION_HPP_INCLUDED #define FCPPT_MATH_MATRIX_TRANSLATION_HPP_INCLU...
dnl HP-PA 2.0 mpn_add_n, mpn_sub_n dnl Copyright 1997, 2000, 2002, 2003, 2009, 2010 Free Software Foundation, dnl Inc. dnl This file is part of the GNU MP Library. dnl dnl The GNU MP Library is free software; you can redistribute it and/or modify dnl it under the terms of either: dnl dnl * the GNU Lesser Gen...
#include "utils.h" namespace sparql { int Utils::IRI2inner_format(const std::string& std_iri, std::string* format_result) { std::regex prefix("^<http://rdf\\.dingfu.com/ns/(.*)>$"); *format_result = static_cast<std::string>(std::regex_replace(std_iri, prefix, "$1")); if (*forma...
; A021360: Decimal expansion of 1/356. ; 0,0,2,8,0,8,9,8,8,7,6,4,0,4,4,9,4,3,8,2,0,2,2,4,7,1,9,1,0,1,1,2,3,5,9,5,5,0,5,6,1,7,9,7,7,5,2,8,0,8,9,8,8,7,6,4,0,4,4,9,4,3,8,2,0,2,2,4,7,1,9,1,0,1,1,2,3,5,9,5,5,0,5,6,1,7,9,7,7,5,2,8,0,8,9,8,8,7,6 seq $0,173833 ; 10^n - 3. div $0,356 mod $0,10
%include "io.inc" extern getAST extern freeAST struc Node data resd 1 left resd 1 right resd 1 endstruc section .bss ; La aceasta adresa, scheletul stocheaza radacina arborelui root: resd 1 section .text global main atoi_function: push ebp mov ebp, esp xor eax, eax ; stoche...
; A240846: a(0)=0, a(1)=1, a(n) = a(n-1)*12 + 13. ; 0,1,25,313,3769,45241,542905,6514873,78178489,938141881,11257702585,135092431033,1621109172409,19453310068921,233439720827065,2801276649924793,33615319799097529,403383837589170361,4840606051070044345,58087272612840532153,697047271354086385849,8364567256249036630201,10...
;----------------------------------------------------------------------- ; filename - __strstr.asm ; ; function(s) ; ; jump stub for C++ implementation of strstr() ;----------------------------------------------------------------------- ; ; C/C++ Run Time Library - Version 10.0 ; ; Copyright (c) 1987, 200...
; SMSQ IBM internal key tables  2000 Tony Tebby ; ; 2000-06-24 1.01 Handles left and right shift key separately. (MK) ; 2007-05-09 1.02 Fixed keyrow line 1, bit 5 ("\" on English kbds) (MK) section kbd xdef kbd_krtab xdef kbd_atab include 'dev8_smsq_kbd_keys' kbd_krtab dc.b $08,$31,$34,$16 ; 00 dc.b $1...
; ; Devilishly simple routines for the Spectrum ; ; puts(char *s) - put string to screen ; ; ; $Id: puts_cons.asm,v 1.7 2016-07-02 13:52:42 dom Exp $ ; MODULE puts_cons SECTION code_clib PUBLIC puts_cons PUBLIC _puts_cons PUBLIC cputs PUBLIC _cputs EXTERN fputc_cons ; Enter in with hl holding the addre...
; A031313: Position of n-th 0 in A031312. ; 97,100,103,106,109,247,250,253,256,259,397,400,403,406,409,547,550,553,556,559,697,700,703,706,709,847,850,853,856,859,997 mov $2,1 add $2,$0 mov $3,$0 div $3,5 mul $3,9 add $2,$3 mov $1,$2 mul $3,4 add $1,$3 sub $1,1 mul $1,3 add $1,97 mov $0,$1
/* * MIT License * * Copyright (c) 2016 xiongziliang <771730766@qq.com> * * This file is part of ZLMediaKit(https://github.com/xiongziliang/ZLMediaKit). * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to de...
; int atexit_fastcall(void (*func)(void)) SECTION code_clib SECTION code_stdlib PUBLIC _atexit_fastcall EXTERN asm_atexit defc _atexit_fastcall = asm_atexit
section .text global _start ;must be declared for linker (ld) _start: ;tell linker entry point xor eax,eax ; eax:=0 lea edx,[rax+len] ;message length mov al,1 ;system call number (sys_write) mov esi,msg ;message to write mov edi,eax ;file descriptor (stdout) syscall ;call kernel mov al,60 ;s...
dnl Alpha mpn_divexact_by3c -- mpn division by 3, expecting no remainder. dnl Copyright 2004, 2005, 2009 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl The GNU MP Library is free software; you can redistribute it and/or modify dnl it under the terms of the GNU Lesser General Pub...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2020-12-03 // PURPOSE: unit tests for the AnalogKeypad library // https://github.com/RobTillaart/AnalogKeypad // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ----------------------...
// // 40 Combination Sum II.cpp // Leetcode // // Created by Quinn on 2020/9/27. // Copyright © 2020 Quinn. All rights reserved. // #include <vector> using namespace std; class Solution { public: vector<vector<int>> res; vector<int> path; vector<vector<int>> combinationSum2(vector<int>& candidate...
#include <Windows.h> #include <Shlwapi.h> #include "shared.h" #pragma comment(lib, "Shlwapi.lib") static bool gShouldExit = 0; // TODO: Add explorer.exe restart detection int CALLBACK WinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _In_ LPSTR lpCmdLine, _In_ int nCmdShow) { // Fi...
#include "duckdb/catalog/catalog.hpp" #include "duckdb/catalog/catalog_entry/list.hpp" #include "duckdb/common/exception.hpp" #include "duckdb/main/client_context.hpp" #include "duckdb/main/database.hpp" #include "duckdb/parser/parsed_data/alter_table_info.hpp" #include "duckdb/parser/parsed_data/create_collation_info...
INCLUDE "graphics/grafix.inc" SECTION code_graphics PUBLIC Line_r EXTERN __gfx_coords ; ; $Id: liner.asm,v 1.9 2016-07-02 09:01:35 dom Exp $ ; ; ****************************************************************************** ; ; Draw a pixel line from (x0,y0) defined in (COORDS) - the current plot ; coord...
; A182780: Twice A024537. ; Submitted by Jamie Morken(s3) ; 2,4,8,18,42,100,240,578,1394,3364,8120,19602,47322,114244,275808,665858,1607522,3880900,9369320,22619538,54608394,131836324,318281040,768398402,1855077842,4478554084,10812186008,26102926098,63018038202,152139002500,367296043200,886731088898,2140758220994,51682...