text
stringlengths
1
1.05M
; A047450: Numbers that are congruent to {0, 1, 2, 3, 5, 6} mod 8. ; 0,1,2,3,5,6,8,9,10,11,13,14,16,17,18,19,21,22,24,25,26,27,29,30,32,33,34,35,37,38,40,41,42,43,45,46,48,49,50,51,53,54,56,57,58,59,61,62,64,65,66,67,69,70,72,73,74,75,77,78,80,81,82,83,85,86,88 mov $1,$0 div $1,2 mul $1,2 div $1,3 add $0,$1
; A056468: a(n) = Sum_{k=1..n} k^6*binomial(n,k). ; Submitted by Christian Krause ; 0,1,66,924,7400,44040,217392,942592,3714048,13593600,46914560,154328064,487778304,1490384896,4423372800,12801146880,36235378688,100580917248,274361352192,736775372800,1950815354880,5099601002496,13176144920576,33682341494784 mov $4,$0 ...
org 0 %include "../../defaults_common.asm" mov ax,cs mov es,ax mov ds,ax cli mov ss,ax mov sp,0xfffe sti ; Create copy of picture shifted over by 1 pixel ; Fill character is 0xdd which has foreground on left ; Low nybble is foreground => low nybble on left ; picture at "picture": ; bytes ...
#include "helpers/title.hpp" extern "C" { #include "nanojpeg.h" } Title::Title(FsSaveDataInfo& saveInfo) { Result rc=0; std::unique_ptr<NsApplicationControlData> buf = std::make_unique<NsApplicationControlData>(); size_t outsize=0; NacpLanguageEntry *langentry = nullptr; if (buf == nullpt...
; Listing generated by Microsoft (R) Optimizing Compiler Version 18.00.40629.0 TITLE C:\Users\cex123\Desktop\FYP\develop\spartan\Source\Kernel\Thread\Scheduler\JumpToRing3.c .686P .XMM include listing.inc .model flat INCLUDELIB OLDNAMES EXTRN _ring3:PROC PUBLIC _JumpToRing3 ; Function compile flags...
// Copyright 2015 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 <initializer_list> #include <iterator> #include <string> #include "ash/constants/ash_features.h" #include "ash/constants/ash_switches.h" #includ...
opt c,ct ******************************************************************************** * T2Loader (TO8 Thomson) - Benoit Rousseau 2021 * ------------------------------------------------------------------------------ * Changement disquettes SDDRIVE : Daniel Coulom * Lib. MEGAROM T.2 : Prehisto * * premiere...
; ; jdsample.asm - upsampling (SSE2) ; ; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB ; ; Based on the x86 SIMD extension for IJG JPEG library ; Copyright (C) 1999-2006, MIYASAKA Masaru. ; For conditions of distribution and use, see copyright notice in jsimdext.inc ; ; This file should be assembled wit...
; A060696: Number of permutations in S_n avoiding the strings 123, 321 and 231. ; Submitted by Christian Krause ; 1,1,2,3,5,11,23,63,153,489,1329,4785,14235,56475,181215,780255,2672145,12348945,44781345,220253985,840523635,4370620275,17465201775,95498916975,397983749625,2278224696825,9867844134225,58917607974225,264469...
; A155458: a(n)=6*a(n-1)+25*a(n-2), n>2 ; a(0)=1, a(1)=1, a(2)=6 . ; Submitted by Jon Maiga ; 1,1,6,61,516,4621,40626,359281,3171336,28010041,247343646,2184312901,19289468556,170344633861,1504304517066,13284442948921,117314270620176,1035996697444081,9148836950168886,80792939137115341,713478558576914196 sub $0,1 lpb $0...
add x9, x20, x21
LoadWildData:: ld hl, WildDataPointers ld a, [wCurMap] ; get wild data for current map ld c, a ld b, 0 add hl, bc add hl, bc ld a, [hli] ld h, [hl] ld l, a ; hl now points to wild data for current map ld a, [hli] ld [wGrassRate], a and a jr z, .NoGrassData ; if no grass data, skip to surfing data ...
/*****************************************************************************/ /* XDMF */ /* eXtensible Data Model and Format */ /* */ ...
_sh: file format elf32-i386 Disassembly of section .text: 00000000 <runcmd>: struct cmd *parsecmd(char*); // Execute cmd. Never returns. void runcmd(struct cmd *cmd) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 ec 38 sub $0x38,%esp...
SECTION code_clib SECTION code_l PUBLIC l_long_addus_exx EXTERN l_long_addu_exx, l_long_sbcu_exx, l_neg_dehl l_long_addus_exx: ; compute unsigned a += signed b ; unsigned a saturates at 0 or $ffff ffff ; ; enter : dehl'= unsigned long a ; dehl = signed long b ; ; exit : dehl = a + b, ...
; ----------------------------------------------------------------------------------------------------------- ; Variables (we don't currently use these, this is just an example of how to populate the data segment) ; -------------------------------------------------------------------------------------------------------...
/** * lock_manager_test.cpp */ #include <random> #include <thread> // NOLINT #include "common/config.h" #include "concurrency/lock_manager.h" #include "concurrency/transaction_manager.h" #include "gtest/gtest.h" namespace bustub { /* * This test is only a sanity check. Please do not rely on this test * to chec...
BITS 64 default rel %include "x86-helpers.asm" nasm_util_assert_boilerplate thunk_boilerplate ; classic pointer chasing benchmark define_bench replay_crossing push_callee_saved mov rbp, rsp and rsp, -64 sub rsp, 66 ; rsp points 2 bytes before a 64b boundary mov [rsp], rsp ; set up the pointer...
;; ;; Copyright (c) 2012-2021, Intel Corporation ;; ;; Redistribution and use in source and binary forms, with or without ;; modification, are permitted provided that the following conditions are met: ;; ;; * Redistributions of source code must retain the above copyright notice, ;; this list of conditions and...
;Write a C function using Assembly. global add42 add42: push ebp mov ebp, esp mov eax, [ebp+8] add eax, 42 mov esp, ebp pop ebp ret
INCLUDE "hardware.inc" INCLUDE "header.inc" SECTION "var",BSS repeat_loop: DS 1 SECTION "Main",HOME ;-------------------------------------------------------------------------- ;- Main() - ;-------------------------------------------------------...
name "calc2" ; command prompt based simple calculator (+,-,*,/) for 8086. ; example of calculation: ; input 1 <- number: 10 ; input 2 <- operator: - ; input 3 <- number: 5 ; ------------------- ; 10 - 5 = 5 ; output -> number: 5 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; th...
;*************************************************************************** ; FILE: stringy.asm * ; CONTENTS: Guitar synthesiser using Karplus-Strong algorithm * ; COPYRIGHT: MadLab Ltd. 2005, 2017 * ; AUTHOR...
; ; Sharp OZ family functions ; ; ported from the OZ-7xx SDK by by Alexander R. Pruss ; by Stefano Bodrato - Oct. 2003 ; ; ; void ozquiet() ; ; ------ ; $Id: ozquiet.asm,v 1.1 2003/10/27 17:03:40 stefano Exp $ ; XLIB ozquiet LIB ozclick XREF ozclick_setting ozquiet: xor a out (16h),a ; turn off note ...
/* * 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 ...
SECTION code_fp_math48 PUBLIC ___fsdiv_callee EXTERN cm48_sdccixp_dsdiv_callee defc ___fsdiv_callee = cm48_sdccixp_dsdiv_callee
; 8086 assembly file ; by:czfshine ; date: 2018/05/17 11:03:49 ; 有一个首地址为mem的100个字的数组, ; 试编制程序删除数组中所有为零的项, ; 并将后续项向前压缩,最后将数组的剩余部分补上零 nextw MACRO reg inc reg inc reg ENDM ; The Main Data segment DATA SEGMENT mem dw 1,2,3,4,5,6,7,8,9,0,0,0,0,1,0,1,0,1,0,1, 80 dup(2),255,254 ;待压缩的数字 len equ $-mem DATA ENDS...
/* Copyright (c) 2015 Heinrich Fink <hfink@toolsonair.com> * Copyright (c) 2014 ToolsOnAir Broadcast Engineering GmbH * * 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...
; A171487: Product of odd prime anti-factors < n, with multiplicity. ; Submitted by Christian Krause ; 1,1,1,9,9,1,15,15,1,21,21,25,675,27,1,33,1155,35,39,39,1,45,45,49,2499,51,55,3135,57,1,63,4095,65,69,69,1,75,5775,77,81,81,85,7395,87,91,8463,8835,95,99,99,1,105,105,1,111,111,115,13455,13923,14399,14883,15375,125,129...
[org 0x7c00] ; bootloader offset KERNEL_OFFSET equ 0x1000 mov [BOOT_DRIVE], dl mov bp, 0x9000 ; set the stack mov sp, bp mov bx, MSG_REAL_MODE call print ; This will be written after the BIOS messages call print_endl call load_kernel mov bx, MSG_SWITCHING_TO_PROT_MODE call print call pr...
#include "DBConnection.h" #include "Callbacks.h" #include <sqlite3.h> #include <utility> #include <QString> #include <QtSql/QSqlError> #include "Globals.h" DBConnection* DBConnection::theCnx = nullptr; //Ctor & Dtor DBConnection::DBConnection(const std::string &path, char* zErrMsg) : _dbPath(path) { QString str = ...
; =============================================================== ; Feb 2014 ; =============================================================== ; ; void *p_queue_back(p_queue_t *q) ; ; Return item at back of queue without removing it from the queue. ; ; =============================================================== ...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r14 push %r8 push %r9 push %rcx push %rdi push %rsi lea addresses_normal_ht+0xb6e2, %rsi lea addresses_UC_ht+0x198e6, %rdi nop nop nop nop nop add $14258, %r8 mov $17, %rcx rep movsq nop nop nop nop and $57937, %r10 lea addresses_A_ht+0xfeb6, %r9 no...
squish_program: ld hl,return_asm_error call ti.PushErrorHandler ld (persistent_sp),sp call util_move_prgm_name_to_op1 ld de,ti.basic_prog ld hl,ti.OP1 call ti.Mov9b ld hl,ti.OP1 ld de,backup_prgm_name call ti.Mov9b ld bc,(prgm_real_size) dec bc dec bc push bc bit 0,c jp nz,ti.ErrSyntax srl b rr c pus...
; A179820: a(n) = n-th triangular number mod (n+2). ; 0,1,3,1,4,1,5,1,6,1,7,1,8,1,9,1,10,1,11,1,12,1,13,1,14,1,15,1,16,1,17,1,18,1,19,1,20,1,21,1,22,1,23,1,24,1,25,1,26,1,27,1,28,1,29,1,30,1,31,1,32,1,33,1,34,1,35,1,36,1,37,1,38,1,39,1,40,1,41,1,42,1,43,1,44,1,45 sub $1,$0 add $0,2 bin $1,2 mod $1,$0 mov $0,$1
#include <QtGlobal> // Automatically generated by extract_strings.py #ifdef __GNUC__ #define UNUSED __attribute__((unused)) #else #define UNUSED #endif static const char UNUSED *bitcoin_strings[] = {QT_TRANSLATE_NOOP("bitcoin-core", "To use the %s option"), QT_TRANSLATE_NOOP("bitcoin-core", "" "%s, you must set a rpcpa...
; A302255: Total domination number of the n-antiprism graph. ; 0,1,2,2,3,4,4,4,5,6,6,7,8,8,8,9,10,10,11,12,12,12,13,14,14,15,16,16,16,17,18,18,19,20,20,20,21,22,22,23,24,24,24,25,26,26,27,28,28,28,29,30,30,31,32,32,32,33,34,34,35,36,36,36,37,38,38,39,40,40,40,41 mul $0,2 lpb $0,1 sub $0,2 mov $2,$0 trn $0,1 ad...
/* Copyright 2005-2010 Intel Corporation. All Rights Reserved. This file is part of Threading Building Blocks. Threading Building Blocks is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundat...
; A231307: Recurrence a(n) = a(n-2) + n^M for M=8, starting with a(0)=0, a(1)=1. ; 0,1,256,6562,65792,397187,1745408,6161988,18522624,49208709,118522624,263567590,548504320,1079298311,2024293376,3642188936,6319260672,10617946377,17339221248,27601509418,42939221248,65424368779,97815094784,143735354060,207890408960,29632...
; A268727: One-based index of the toggled bit between n and A268717(n+1): a(n) = A070939(A003987(n,A268717(1+n))). ; Submitted by Jon Maiga ; 1,2,3,1,4,1,1,2,5,1,1,2,1,2,3,1,6,1,1,2,1,2,3,1,1,2,3,1,4,1,1,2,7,1,1,2,1,2,3,1,1,2,3,1,4,1,1,2,1,2,3,1,4,1,1,2,5,1,1,2,1,2,3,1,8,1,1,2,1,2,3,1,1,2,3,1,4,1,1,2,1,2,3,1,4,1,1,2,5,...
// // Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to ...
;====================== comments =================== ; first operand - address bufer result (string symbols) ; second operand - address of number ; third operand - count bits of number (should be multiple 8) ;=================================================== ;======================= code ====================== segme...
; =============================================================== ; 2017 ; =============================================================== ; ; void tshr_cls_wc_pix(struct r_Rect8 *r, uchar pix) ; ; Clear the rectangular area on screen. ; ; =============================================================== SECTION code_c...
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.24.28117.0 TITLE C:\Users\libit\source\repos\L027\L027\L027.cpp .686P .XMM include listing.inc .model flat INCLUDELIB LIBCMT INCLUDELIB OLDNAMES CONST SEGMENT $SG5554 DB 'f1(%d)', 0aH, 00H $SG5563 DB 'Hello World!', 0aH, 00H CONST ENDS PUBLIC ...
#include "Background.hpp" #include <iostream> static inline void moveBackground(sf::Sprite& spr, float speed, unsigned int elapsedTimeMS) { auto texSize = spr.getTexture()->getSize(); auto newLeft = spr.getTextureRect().left + speed * elapsedTimeMS; if(newLeft > texSize.x*2) { newLeft -= texSize.x; } spr.s...
; A030221: Chebyshev even indexed U-polynomials evaluated at sqrt(7)/2. ; 1,6,29,139,666,3191,15289,73254,350981,1681651,8057274,38604719,184966321,886226886,4246168109,20344613659,97476900186,467039887271,2237722536169,10721572793574,51370141431701,246129134364931,1179275530392954,5650248517599839 mov $1,1 mov $2,4 l...
/* * Copyright (C) 2011-2014 Daniel Scharrer * * This software is provided 'as-is', without any express or implied * warranty. In no event will the author(s) be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software for any purpose, * inclu...
// Copyright (c) 2009-2018 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include <config/bitcoin-config.h> #endif #include <clientversion.h> #include <coins.h> #include ...
dnl PowerPC-64 mpn_com_n. dnl Copyright 2003, 2004, 2005 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 Public License as published dnl by the Free Softwa...
*=$1000 ;take the text pointer and load it into the memory address that's used as an ;argument fo print_str ldx >text_ptr stx print_ptr ldx <text_ptr stx print_ptr+1 jmp print_str text_ptr .null "hello, world!" chrout = $ffd2 print_ptr = $2000 print_str lda print_ptr,x ;load the current char into the accumulat...
; A180735: Expansion of (1+x)*(1-x)/(1 - x + x^2 + x^3). ; Submitted by Jon Maiga ; 1,1,-1,-3,-3,1,7,9,1,-15,-25,-11,29,65,47,-47,-159,-159,47,365,477,65,-777,-1319,-607,1489,3415,2533,-2371,-8319,-8481,2209,19009,25281,4063,-40227,-69571,-33407,76391,179369,136385,-119375,-435129,-452139,102365,989633,1339407,247409,-...
; A184535: a(n) = floor(3/5 * n^2), with a(1)=1. ; 1,2,5,9,15,21,29,38,48,60,72,86,101,117,135,153,173,194,216,240,264,290,317,345,375,405,437,470,504,540,576,614,653,693,735,777,821,866,912,960,1008,1058,1109,1161,1215,1269,1325,1382,1440,1500,1560,1622,1685,1749,1815,1881,1949,2018,2088,2160,2232,2306,2381,2457,2535,...
// // CPUDeconvolution.cpp // MNN // // Created by MNN on 2018/07/20. // Copyright © 2018, Alibaba Group Holding Limited // #include "CPUDeconvolution.hpp" #include "BufferAllocator.hpp" #include "CPUBackend.hpp" #include "Concurrency.h" #include "Macro.h" #include "Matrix.hpp" #include "TensorUtils.hpp" #include ...
; A090003: Length of longest contiguous block of 1's in binary expansion of n^3. ; Submitted by Simon Strandgaard ; 0,1,1,2,1,5,2,3,1,2,5,2,2,1,3,4,1,2,2,2,5,2,2,5,2,4,1,3,3,5,4,5,1,2,2,4,2,3,2,4,5,3,2,2,2,6,5,4,2,3,4,2,1,2,3,4,3,2,5,2,4,3,5,6,1,2,2,2,2,4,4,3,2,5,3,8,2,4,4,4,5,6,3,3,2,4,2,3,2,3,6,8,5,2,4,5,2,4,3,3 pow...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r15 push %r9 push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x19b80, %rsi lea addresses_A_ht+0x1c458, %rdi nop nop nop nop inc %r9 mov $85, %rcx rep movsw nop and %rcx, %rcx lea addresses_WC_ht+0x1da8, %rsi lea addresses_WC_ht+0x8b80, %...
; A170334: Number of reduced words of length n in Coxeter group on 37 generators S_i with relations (S_i)^2 = (S_i S_j)^42 = I. ; 1,37,1332,47952,1726272,62145792,2237248512,80540946432,2899474071552,104381066575872,3757718396731392,135277862282330112,4870003042163884032,175320109517899825152,6311523942644393705472 ad...
; A047383: Numbers that are congruent to {1, 5} mod 7. ; 1,5,8,12,15,19,22,26,29,33,36,40,43,47,50,54,57,61,64,68,71,75,78,82,85,89,92,96,99,103,106,110,113,117,120,124,127,131,134,138,141,145,148,152,155,159,162,166,169,173,176,180,183,187,190,194,197,201,204,208,211,215,218,222,225,229,232,236,239,243,246,250,253,257...
db 0 ; species ID placeholder db 45, 90, 20, 65, 65, 20 ; hp atk def spd sat sdf db WATER, DARK ; type db 225 ; catch rate db 88 ; base exp db NO_ITEM, DEEPSEATOOTH ; items db GENDER_F50 ; gender ratio db 100 ; unknown 1 db 20 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/carvan...
MODULE generic_console_ioctl PUBLIC generic_console_ioctl SECTION code_clib INCLUDE "ioctl.def" EXTERN generic_console_cls EXTERN __zx_32col_font EXTERN __zx_64col_font EXTERN __zx_32col_udgs EXTERN __ts2068_hrgmode EXTERN __console_w ; a = ioctl ; de = arg generic_console_ioctl: ex de,hl ld c,(hl) ;bc...
; A011751: Expansion of (1 + x^4)/(1 + x + x^3 + x^4 + x^5) mod 2. ; 1,1,1,0,1,0,0,0,1,0,0,1,0,1,0,1,1,0,0,0,0,1,1,1,0,0,1,1,0,1,1,1,1,1,0,1,0,0,0,1,0,0,1,0,1,0,1,1,0,0,0,0,1,1,1,0,0,1,1,0,1,1,1,1,1,0,1,0,0,0,1,0,0,1,0,1,0,1,1,0,0,0,0,1,1,1,0,0,1,1,0,1,1,1,1,1,0,1,0,0,0,1,0,0,1,0,1,0,1,1,0,0,0,0,1,1,1,0,0,1,1,0,1,1,1,1...
; A285075: Positions of 1 in A285073; complement of A285074. ; Submitted by Jamie Morken(s3) ; 2,4,6,9,11,14,16,18,21,23,26,28,30,33,35,38,40,43,45,47,50,52,55,57,59,62,64,67,69,72,74,76,79,81,84,86,88,91,93,96,98,100,103,105,108,110,113,115,117,120,122,125,127,129,132,134,137,139,142,144,146,149,151,154,156,158,161,16...
; A213843: Antidiagonal sums of the convolution array A213841. ; 1,13,62,190,455,931,1708,2892,4605,6985,10186,14378,19747,26495,34840,45016,57273,71877,89110,109270,132671,159643,190532,225700,265525,310401,360738,416962,479515,548855,625456,709808,802417,903805,1014510,1135086,1266103,1408147,1561820,1727740,1906541,...
; A315471: Coordination sequence Gal.3.52.3 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. ; 1,6,11,16,21,26,32,38,43,48,53,58,64,70,75,80,85,90,96,102,107,112,117,122,128,134,139,144,149,154,160,166,171,176,181,186,192,198,203,208,21...
TITLE uinhelp.asm - utilities for new help engine. ;*** ;uinhelp.asm ; ; Copyright <C> 1985-1988, Microsoft Corporation ; ;Purpose: ; Utilities for the new help system. ; ; ;******************************************************************************* .xlist include version.inc .list UINHELP_ASM =...
;------------------------------------------------------------------------------ ; ; 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...
; A070510: a(n) = n^3 mod 48. ; 0,1,8,27,16,29,24,7,32,9,40,35,0,37,8,15,16,17,24,43,32,45,40,23,0,25,8,3,16,5,24,31,32,33,40,11,0,13,8,39,16,41,24,19,32,21,40,47,0,1,8,27,16,29,24,7,32,9,40,35,0,37,8,15,16,17,24,43,32,45,40,23,0,25,8,3,16,5,24,31,32,33,40,11,0,13,8,39,16,41,24,19,32,21,40,47,0,1,8,27 pow $0,3 mod $0,...
; Q40 determine processor / hardware type  1999 Tony Tebby section init xdef q40_prtype xref gu_exvt include 'dev8_keys_68000' include 'dev8_keys_sys' include 'dev8_mac_creg' ;+++ ; Determines the processor/hardware type ; ; d6 r four bytes: msbyte processor number 40, 60 hex ; ; co-processor 01 Intern...
#include <algorithm> #include <eepp/network/http.hpp> #include <eepp/network/uri.hpp> #include <eepp/system/clock.hpp> #include <eepp/system/filesystem.hpp> #include <eepp/system/functionstring.hpp> #include <eepp/system/iostreamfile.hpp> #include <eepp/system/iostreammemory.hpp> #include <eepp/system/log.hpp> #include...
// 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 "chrome/browser/ui/views/constrained_window_views.h" #include <algorithm> #include "base/command_line.h" #include "base/strings/utf_string_...
; Cerberus Application Header (Ti83+[SE] App) ; ; hjp - 28 june 2001 - First (clumsy) attempt to write a header-file ; hjp - 29 june 2001 - Fixed/added things ; hjp - 3 july 2001 - Straightened up some things for grayscale ; hjp - 13 july 2001 - Reshaped variable initialisation (clears statvars now) MODULE Ti83plus_...
; Small C+ Math Library SECTION code_fp PUBLIC evenpol EXTERN poly EXTERN pushfa EXTERN ldbcfa EXTERN fmul ; ; transcendental floating point routines: polynomial evaluation ; .evenpol CALL pushfa ; LD DE,L265F ; PUSH DE ...
; 2018 June feilipu SECTION code_clib SECTION code_math PUBLIC l_z180_mulu_40_32x8 l_z180_mulu_40_32x8: ; multiplication of 32-bit number and 8-bit number into a 40-bit product ; ; enter : a = 8-bit multiplier = x ; dehl = 32-bit multiplicand = y ; ; exit : ade...
/* Copyright (c) 2006, NIF File Format Library and Tools All rights reserved. Please see niflib.h for license. */ //-----------------------------------NOTICE----------------------------------// // Some of this file is automatically filled in by a Python script. Only // // add custom code in the designated areas o...
%macro x86EnterRealMode 0 [bits 32] jmp word 0x18:.ProtectedModeB16 .ProtectedModeB16: [bits 16] mov eax, cr0 ; Disable protected mode flag. and al, ~1 mov cr0, eax jmp word 0x00:.RealMode .RealMode: mov ax, 0 ; Setup segment registers. mov ds, ax mov ss, ax sti ; Enabl...
db "MUSHROOM@" ; species name dw 100, 120 ; height, weight db "The tochukaso" next "growing on this" next "#MON's back" page "orders it to" next "extract juice from" next "tree trunks.@"
#include "global.h" #if !defined(WITHOUT_NETWORKING) #include "GameSoundManager.h" #include "LocalizedString.h" #include "NetworkSyncManager.h" #include "OptionRowHandler.h" #include "PrefsManager.h" #include "RageLog.h" #include "ScreenManager.h" #include "ScreenNetworkOptions.h" #include "ScreenPrompt.h" #include "S...
; A105126: Primes of the form 16n+9. ; Submitted by Jon Maiga ; 41,73,89,137,233,281,313,409,457,521,569,601,617,761,809,857,937,953,1033,1049,1097,1129,1193,1289,1321,1433,1481,1609,1657,1721,1753,1801,1913,1993,2089,2137,2153,2281,2297,2377,2393,2441,2473,2521,2617,2633,2713,2729,2777,2857,2953,2969,3001,3049,3209,32...
// 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 "chrome/browser/ash/login/help_app_launcher.h" #include <string> #include "base/strings/stringprintf.h" #include "base/strings/utf_string_c...
#include "flutter/shell/platform/windows/testing/win32_flutter_window_test.h" #include <iostream> namespace flutter { namespace testing { Win32FlutterWindowTest::Win32FlutterWindowTest(int width, int height) : Win32FlutterWindow(width, height){}; Win32FlutterWindowTest::~Win32FlutterWindowTest() = default; void...
/* * Copyright © 2009 Red Hat, Inc. * Copyright © 2018 Ebrahim Byagowi * * This is part of HarfBuzz, a text shaping library. * * Permission is hereby granted, without written agreement and without * license or royalty fees, to use, copy, modify, and distribute this * software and its documentation for any pu...
ParryAskNumber1Text: text "Sheesh, the way" line "you attacked! That" para "was something! We" line "should meet again!" para "How about giving" line "me your number?" done ParryAskNumber2Text: text "So you want to" line "register my phone" para "number for a re-" line "match, huh?" done ParryNumberAcc...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable : 4244) #endif #include <random> #include "core/graph/onnx_protobuf.h" #include "asserts.h" #include "core/framework/data_types.h" #include "core/framework/ml_v...
// Copyright (c) Microsoft Corporation // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include "pch.h" #include "events_service_xsapi.h" #include "xbox_live_app_config_internal.h" #include "cll/BasicJsonWriter.h" #include "cll/ConversionHelpers.h" using namespace...
#include "pch.h" #include "FancyZonesData.h" #include "FancyZonesDataTypes.h" #include "JsonHelpers.h" #include "ZoneSet.h" #include "Settings.h" #include <common/utils/json.h> #include <fancyzones/lib/util.h> #include <shlwapi.h> #include <filesystem> #include <fstream> #include <optional> #include <regex> #include ...
class KthLargest { public: int possible; priority_queue<int, vector<int>, greater<int>> pq; KthLargest(int k, vector<int>& nums) { possible = k; for(int i = 0; i < nums.size(); i++) { pq.push(nums[i]); if(pq.size() > k) { pq.pop(); } ...
/* * This source file is part of RmlUi, the HTML/CSS Interface Middleware * * For the latest information, see http://github.com/mikke89/RmlUi * * Copyright (c) 2008-2010 CodePoint Ltd, Shift Technology Ltd * Copyright (c) 2019 The RmlUi Team, and contributors * * Permission is hereby granted, free of charge, to...
#include "csc32Model.h" #include <math.h> #include <stdlib.h> Model::Model() { } Model::~Model() { SAFEFREE(probDltO1); SAFEFREE(probLiteral); } int Model::Init() { for (int i=0;i<(4096>>3);i++) { probToBitNum[i]=(u32)(128*log((float)(i*8+4)/4096)/log(0.5)); } probLiteral=(u32*)malloc(256*257*4); if (p...
; A245294: Decimal expansion of the square root of 1.2. ; Submitted by Jon Maiga ; 1,0,9,5,4,4,5,1,1,5,0,1,0,3,3,2,2,2,6,9,1,3,9,3,9,5,6,5,6,0,1,6,0,4,2,6,7,9,0,5,4,8,9,3,8,9,9,9,5,9,6,6,5,0,8,4,5,3,7,8,8,8,9,9,4,6,4,9,8,6,5,5,4,2,4,5,4,4,5,4,6,7,6,0,1,7,1,6,8,7,2,3,2,7,7,4,1,2,5,1 mov $3,$0 mul $3,3 lpb $3 sub $2,2...
SECTION code_fp_math32 PUBLIC cm32_sdcc_exp EXTERN cm32_sdcc_fsread1, _m32_expf cm32_sdcc_exp: call cm32_sdcc_fsread1 jp _m32_expf
; ; ARJ Mode 1-3 and 7 decode functions ; Size optimized ; ; Copyleft 1993-1997 Mr Ni! (the Great) of the TOS-crew ; ; altered version, two nullbytes have to be added at the end of the ; packed data. Orig size isn't necesarry then. ; packed data has to start on an even adress ; These alterations make the program a bit ...
; A169965: Numbers whose decimal expansion contains only 0's and 2's. ; 0,2,20,22,200,202,220,222,2000,2002,2020,2022,2200,2202,2220,2222,20000,20002,20020,20022,20200,20202,20220,20222,22000,22002,22020,22022,22200,22202,22220,22222,200000,200002,200020,200022,200200,200202,200220,200222,202000,202002,202020,202022,20...
SECTION code_clib PUBLIC load_palette PUBLIC _load_palette ;============================================================== ; void load_palette(unsigned char *data, int index, int count) ;============================================================== ; C interface for LoadPalette ;==================================...
DATA SEGMENT STR1 DB "BINARY NUMBER IS : $" STR2 DB "DECIMAL NUMBER IS : $" BSTR DB 20 DUP("$") RSTR DB 20 DUP("$") NEWLINE DB 13,10,"$" CNT DB 0 N DB 2 H DB 16 D DB 10H NUM DB ? SNUM DB ? HNUM DB 19H DATA ENDS CODE SEGMENT...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1990 -- All Rights Reserved PROJECT: PC GEOS MODULE: Serial Driver - Public Interface FILE: serial.asm AUTHOR: Adam de Boor, Jan 12, 1990 ROUTINES: Name Description ---- ----------- REVIS...
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "third_party/blink/renderer/modules/xr/xr_canvas_input_provider.h" #include "device/vr/public/mojom/vr_service.mojom-blink.h" #include "third_pa...
; uint16_t in_stick_sinclair1(void) SECTION code_clib SECTION code_input PUBLIC in_stick_sinclair1 EXTERN asm_in_stick_sinclair1 defc in_stick_sinclair1 = asm_in_stick_sinclair1
// Astral Shipwright - Gwennaël Arbona #pragma once #include "NovaAISimulationComponent.h" #include "NovaOrbitalSimulationComponent.h" #include "NovaGameState.h" #include "Spacecraft/NovaSpacecraftPawn.h" #include "Spacecraft/NovaSpacecraftMovementComponent.h" #include "Nova.h" #include "Neutron/System/NeutronAss...
; output: de = checksums calcchecksum: push bc push hl push af ld de, 0 ld bc, 0x0600 ; b: 6 banks, c:bank offset = 0 .banks: push bc ld hl, rendertarget ld a, c add a, (hl) nextreg DSTMMU, a ld hl, DESTADDR ; DSTMMU base address ld b, 32 .outer: push bc ld b, 0 ;...
add 1,1,1 A: add 2,2,2 # comment B: add 3, 3, 3 jalr 1,1,0 lui 1,1023 addi 1,1,-0x33 lli 1,45 movi 1, 54334 halt .fill 555 .space 3
// 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 "net/http/http_server_properties_manager.h" #include "base/bind.h" #include "base/metrics/histogram_macros.h" #include "base/prefs/pref_service....