text
stringlengths
1
1.05M
// ProtocolRecognizer.cpp // Implements the cProtocolRecognizer class representing the meta-protocol that recognizes possibly multiple // protocol versions and redirects everything to them #include "Globals.h" #include "ProtocolRecognizer.h" #include "Protocol17x.h" #include "Protocol18x.h" #include "../ClientHandl...
// LIC// ==================================================================== // LIC// This file forms part of oomph-lib, the object-oriented, // LIC// multi-physics finite-element library, available // LIC// at http://www.oomph-lib.org. // LIC// // LIC// Copyright (C) 2006-2022 Matthias Heil and Andrew Hazel // LIC// ...
<% from pwnlib.shellcraft.aarch64.linux import syscall %> <%page args="fd, fd2"/> <%docstring> Invokes the syscall dup2. See 'man 2 dup2' for more information. Arguments: fd(int): fd fd2(int): fd2 </%docstring> ${syscall('SYS_dup2', fd, fd2)}
; ; ; ; This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. ; ; Copyright 2007-2019 Broadcom Inc. All rights reserved. ; ; ; This is the default program for Greyhound SKUs: ; BCM534x2 ; ; To start it, use the following commands from ...
#include "../utils/fwd_declares.hpp" #include "../utils/quad.hpp" #include "../utils/triple.hpp" #include <boost/dynamic_bitset_fwd.hpp> #include <algorithm> #include <map> #include <vector> #ifndef INDIGOX_CLASSES_ATHENAEUM_HPP #define INDIGOX_CLASSES_ATHENAEUM_HPP namespace indigox { /*! \brief Fragment class f...
// Copyright 2010-2017 Google // 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 in wri...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %rcx push %rdi push %rsi lea addresses_WC_ht+0x1014e, %rsi lea addresses_WT_ht+0xc42e, %rdi clflush (%rdi) nop add $58298, %r11 mov $92, %rcx rep movsw nop cmp $47491, %r13 pop %rsi pop %rdi pop %rcx pop %r13 pop %r11 ret .global s_faulty_load s...
; ; feilipu, 2020 May ; ; This Source Code Form is subject to the terms of the Mozilla Public ; License, v. 2.0. If a copy of the MPL was not distributed with this ; file, You can obtain one at http://mozilla.org/MPL/2.0/. ; ;------------------------------------------------------------------------- ; asm_f16_add -...
// license:BSD-3-Clause // copyright-holders:Jarek Parchanski /*************************************************************************** video.c Functions to emulate the video hardware of the machine. ***************************************************************************/ #include "emu.h" #include "inclu...
; A099981: Bisection of A001358. ; Submitted by Christian Krause ; 6,10,15,22,26,34,38,46,51,57,62,69,77,85,87,93,95,111,118,121,123,133,141,143,146,158,161,169,178,185,194,202,205,209,214,217,219,226,237,249,254,262,267,278,289,295,299,302,305,314,321,326,329,335,341,355 mul $0,2 add $0,1 seq $0,1358 ; Semiprimes (or...
/* * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
; A104161: G.f.: x*(1 - x + x^2)/((1-x)^2 * (1 - x - x^2)). ; 0,1,2,5,10,19,34,59,100,167,276,453,740,1205,1958,3177,5150,8343,13510,21871,35400,57291,92712,150025,242760,392809,635594,1028429,1664050,2692507,4356586,7049123,11405740,18454895,29860668,48315597,78176300,126491933,204668270,331160241,535828550,866988831,...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Copyright(c) 2011-2015 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...
; A135225: Pascal's triangle A007318 augmented with a leftmost border column of 1's. ; 1,1,1,1,1,1,1,1,2,1,1,1,3,3,1,1,1,4,6,4,1,1,1,5,10,10,5,1,1,1,6,15,20,15,6,1,1,1,7,21,35,35,21,7,1,1,1,8,28,56,70,56,28,8,1,1,1,9,36,84,126,126,84,36,9,1,1,1,10,45,120,210,252,210,120,45,10,1,1,1,11,55,165,330,462,462,330,165,55,11,1...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r15 push %rbp push %rcx push %rdi push %rsi lea addresses_WC_ht+0xd320, %rsi lea addresses_normal_ht+0x1b420, %rdi nop nop nop nop cmp %r11, %r11 mov $3, %rcx rep movsw nop nop nop nop nop and $12074, %rdi lea addresses_normal_ht+0x14290, %rsi lea addresses_W...
/* Copyright 2015 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...
#include "joystick.h" #include <cmath> #include <iostream> #include <csignal> Joystick::Joystick() {} Joystick::~Joystick() { stop_poll_loop(); disconnect(); deinit(); } std::unique_ptr<Joystick> Joystick::create() { std::unique_ptr<Joystick> ptr(new Joystick()); if (ptr && ptr->init()) { ...
; A178832: Number of minima of the 1-D Griewank function in [-n, n]. ; 1,1,1,1,1,1,1,3,3,3,3,3,3,5,5,5,5,5,5,7,7,7,7,7,7,7,9,9,9,9,9,9,11,11,11,11,11,11,13,13,13,13,13,13,15,15,15,15,15,15,15,17,17,17,17,17,17,19,19,19,19,19,19,21,21,21,21,21,21,21,23,23,23,23,23,23,25,25,25,25,25,25,27,27,27,27,27,27,29,29,29,29,29,29...
; ; Generic pseudo graphics routines for text-only platforms ; ; Xor pixel at (x,y) coordinate. SECTION code_clib PUBLIC xorpixel .xorpixel defc NEEDxor = 1 INCLUDE "pixel6.asm"
global _getSeconds global _getAlarmSeconds global _getMinutes global _getAlarmMinutes global _getHoursASM global _getAlarmHoursASM global _getDayofWeek global _getDayofMonth global _getMonth global _getYear global _setAlarmSeconds global _setAlarmMinutes global _setAlarmHoursASM section .text %macro _setState 1 ...
#include "MainFrame.h" #include <QtWidgets/QApplication> int main(int argc, char *argv[]) { QApplication a(argc, argv); QFont font("Microsoft YaHei", 9, QFont::Normal); a.setFont(font); MainFrame w; w.show(); return a.exec(); }
.global s_prepare_buffers s_prepare_buffers: push %r10 push %rax push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x119d7, %rsi lea addresses_normal_ht+0x18fd3, %rdi nop nop nop nop nop sub $19342, %rbp mov $98, %rcx rep movsw nop nop sub %rsi, %rsi lea addresses_normal_ht+0x13368, %rbp cmp %r10, %...
; A135837: A007318 * a triangle with (1, 2, 2, 4, 4, 8, 8, ...) in the main diagonal and the rest zeros. ; Submitted by Christian Krause ; 1,1,2,1,4,2,1,6,6,4,1,8,12,16,4,1,10,20,40,20,8,1,12,30,80,60,48,8,1,14,42,140,140,168,56,16,1,16,56,224,280,448,224,128,16,1,18,72,336,504,1008,672,576,144,32,1,20,90,480,840,2016,...
; A247534: Number of length 2+3 0..n arrays with some disjoint pairs in every consecutive four terms having the same sum. ; 8,45,136,317,600,1033,1616,2409,3400,4661,6168,8005,10136,12657,15520,18833,22536,26749,31400,36621,42328,48665,55536,63097,71240,80133,89656,99989,111000,122881,135488,149025,163336,178637,194760...
#include <iostream> #include <string> #include <sstream> #include <random> #include <algorithm> #include <assert.h> #include <vector> #include <limits.h> #include <time.h> #include <unordered_map> #include <map> #include <math.h> #include <set> using namespace std; void printVector(vector<int> &v) { cout<<"[ "; f...
/* * KVStoreTest.actor.cpp * * This source file is part of the FoundationDB open source project * * Copyright 2013-2018 Apple Inc. and the FoundationDB project authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You ma...
// 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 <boost/version.hpp> #if defined(WIN32) && BOOST_VERSION <= 104900 #define BOOST_INTERPROCESS_HAS_WINDOWS_KERNEL_BOOTT...
; This file is generated by tools/cpuidgen.d SECTION .text global cpuidPopulateStore struc cpustore .idString: resb 12 .maxLeaf: resb 4 .eax1_eax: resb 4 .eax1_ebx: resb 4 .eax1_ecx: resb 4 .eax1_edx: resb 4 .eax7ecx0_ebx: resb 4 .eax7ecx0_ecx: resb 4 .eax7ecx0_edx: resb 4 endstruc c...
; A135036: Sums of the products of n consecutive pairs of numbers. ; 0,6,26,68,140,250,406,616,888,1230,1650,2156,2756,3458,4270,5200,6256,7446,8778,10260,11900,13706,15686,17848,20200,22750,25506,28476,31668,35090,38750,42656,46816,51238,55930,60900,66156,71706,77558,83720,90200,97006,104146,111628,119460,127650,13620...
/* MIT License Copyright (c) 2021 Maciej Malecki 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,...
SECTION code_fp_am9511 PUBLIC _fabs EXTERN cam32_sdcc_fabs defc _fabs = cam32_sdcc_fabs
// Copyright (c) 2006-2013, Andrey N. Sabelnikov, www.sabelnikov.net // 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 source code must retain the above copyright // noti...
; A048059: Primes of the form k^2 + k + 11. ; Submitted by Jamie Morken(w1) ; 11,13,17,23,31,41,53,67,83,101,167,193,251,283,317,353,431,563,661,823,881,941,1201,1493,1571,1733,2081,2267,2663,2767,3203,3433,3671,3793,3917,4567,4703,5413,5711,6173,6491,6653,6983,7151,7321,8753,8941,9323,10111,10313,10723,11353,11783,128...
############################################################################### # 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...
; A132761: a(n) = n*(n+17). ; 0,18,38,60,84,110,138,168,200,234,270,308,348,390,434,480,528,578,630,684,740,798,858,920,984,1050,1118,1188,1260,1334,1410,1488,1568,1650,1734,1820,1908,1998,2090,2184,2280,2378,2478,2580,2684,2790,2898,3008,3120,3234,3350,3468,3588,3710,3834,3960,4088,4218,4350,4484,4620,4758,4898,5040,5...
/*========================================================================= Program: CMake - Cross-Platform Makefile Generator Module: $RCSfile: cmFindPackageCommand.cxx,v $ Language: C++ Date: $Date: 2012/03/29 17:21:09 $ Version: $Revision: 1.1.1.1 $ Copyright (c) 2002 Kitware, Inc., Insigh...
#include "SplineSegmentCarveOperationData.h" FSplineSegmentCarveOperationData::FSplineSegmentCarveOperationData() { this->OperationNumber = 0; this->Material = NULL; this->CarveFilter = ECarveFilterType::ReplaceAll; this->Precious = EPreciousMaterialOptions::TurnIntoGems; }
Sound_57_Header: smpsHeaderStartSong 3 smpsHeaderVoice Sound_39_57_6C_Voices smpsHeaderTempoSFX $01 smpsHeaderChanSFX $02 smpsHeaderSFXChannel cPSG3, Sound_57_PSG3, $00, $00 smpsHeaderSFXChannel cFM5, Sound_39_57_6C_FM5, $00, $00 ; PSG3 Data Sound_57_PSG3: smpsPSGform $E7 dc.b nB4, $0B Sound_5...
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "androidwebview.h" #include "errorhandler.h" #include "logger.h" #include "mozillavpn.h" #include "networ...
frame 1, 08 frame 2, 08 frame 1, 08 frame 2, 06 frame 1, 06 frame 3, 08 frame 0, 08 frame 3, 08 endanim
#include "Platform.inc" #include "TailCalls.inc" #include "PowerManagement.inc" #include "Lcd.inc" #include "Ui.inc" #include "States.inc" radix decimal defineUiState UI_STATE_BOOT bsf uiFlags, UI_FLAG_PREVENTSLEEP setUiNextState UI_STATE_SETTINGS goto fullPowerMode defineUiStateInSameSection UI_STATE...
; ; (c)2017 Phillip Stevens 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 source code must retain the above copyright notice, this ; list of conditions and the following d...
; void __CALLEE__ sp1_MoveSprAbs_callee(struct sp1_ss *s, struct sp1_Rect *clip, uchar *frame, uchar row, uchar col, uchar vrot, uchar hrot) ; 04.2006 aralbrec, Sprite Pack v3.0 ; sinclair spectrum version ; *** PLEASE HELP ME I'VE BEEN MADE UGLY BY BUGFIXES PUBLIC sp1_MoveSprAbs_callee PUBLIC ASMDISP_SP1_MOVESPRABS_...
/* * 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 %r11 push %r9 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x1ed69, %rsi lea addresses_D_ht+0xafdd, %rdi add %r10, %r10 mov $77, %rcx rep movsw nop nop nop nop nop and $58895, %rbp lea addresses_WC_ht+0x1d275, %rsi lea addresses_WT_ht+0...
; A120162: a(1)=3; a(n)=floor((14+sum(a(1) to a(n-1)))/4). ; 3,4,5,6,8,10,12,15,19,24,30,37,46,58,72,90,113,141,176,220,275,344,430,538,672,840,1050,1313,1641,2051,2564,3205,4006,5008,6260,7825,9781,12226,15283,19103 add $0,4 mov $2,2 mov $3,2 lpb $0 sub $0,$2 sub $0,1 mov $1,$3 add $1,2 sub $1,$2 div $1,4...
;*! ;* \copy ;* Copyright (c) 2009-2013, Cisco Systems ;* 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 source code must retain the abo...
.dseg eeprom_static_instance: .BYTE SZ_ST_EEPROM
//=---------------------------------------------------------------------= // // $Id$ $Name$ // // The contents of this file are subject to the AAF SDK Public Source // License Agreement Version 2.0 (the "License"); You may not use this // file except in compliance with the License. The License is available // in AAFSD...
#ifndef MENOH_HPP #define MENOH_HPP #include <memory> #include <vector> #include <menoh/menoh.h> #ifndef DOXYGEN_SHOULD_SKIP_THIS #define MENOH_CPP_API_ERROR_CHECK(statement) \ { \ auto ec = statement; ...
; A333167: a(n) = r_2(n^2 + 1), where r_2(k) is the number of ways of writing k as a sum of 2 squares (A004018). ; 4,4,8,8,8,8,8,12,16,8,8,8,16,16,8,8,8,16,24,8,8,16,16,16,8,8,8,16,16,8,16,16,24,16,16,8,8,16,24,8,8,12,16,24,16,8,16,32,16,8,16,8,16,16,8,16,8,32,16,8,16,8,16,16,16,8,8,16,32,8,24,8,32,32,8,16,16,16,16,8,1...
; A131751: Numbers that are both centered triangular and centered pentagonal. ; 1,31,1891,117181,7263301,450207451,27905598631,1729696907641,107213302675081,6645495068947351,411913480972060651,25531990325198812981,1582571486681354344141,98093900183918770523731 seq $0,253470 ; Indices of centered triangular numbers (A0...
; DO NOT MODIFY THIS FILE DIRECTLY! ; author: @TinySecEx ; ssdt asm stub for 6.3.9600-sp0-windows-8.1 i386 .686 .mmx .xmm .model flat,stdcall option casemap:none option prologue:none option epilogue:none .code ; ULONG __stdcall NtWorkerFactoryWorkerReady( ULONG arg_01 ); _6_3_9600_sp0_windows_...
.include "syscalls.asm" # $a0 - int to print .eqv print_int dosyscall 1 .eqv print_int_hex dosyscall 34 .eqv print_int_bin dosyscall35 .eqv print_uint dosyscall36 # $f12 - float/double to print .eqv print_float dosyscall 2 .eqv print_double dosyscall 3 # $a0 - address of (null-terminated) string to print .eqv print_...
; A033354: [ 34/n ]. ; 34,17,11,8,6,5,4,4,3,3,3,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,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,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,0,0,0,0,0 add $0,1 mov $1,34 div $1,$0
; A175163: a(n) = 32*(2^n + 1). ; 64,96,160,288,544,1056,2080,4128,8224,16416,32800,65568,131104,262176,524320,1048608,2097184,4194336,8388640,16777248,33554464,67108896,134217760,268435488,536870944 mov $1,2 pow $1,$0 add $1,1 mul $1,32 mov $0,$1
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r15 push %r8 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_WC_ht+0x11a37, %r8 nop nop nop cmp $58621, %r15 movb (%r8), %r11b nop nop nop nop add %r11, %r11 lea addresses_WC_ht+0x1dc77, %r8 nop sub $9350, %r11 mov $0x616263646566676...
.model tiny .code org 100h maine proc Mov ah,01h mov cx,2000h int 10h ; Set cursor off mov ax,03h int 10h ; Clear screen mov ah,9 mov dx, offset win_msgA int 21h ;Print Our Message xor ah,ah int 16h ; Get key mov ax,03h int 10h ; Clear screen mov ah,01h mov cx,0607h int 10h ; Set cursor...
/** * Copyright (c) 2021 OceanBase * OceanBase CE is licensed under Mulan PubL v2. * You can use this software according to the terms and conditions of the Mulan PubL v2. * You may obtain a copy of Mulan PubL v2 at: * http://license.coscl.org.cn/MulanPubL-2.0 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS...
#include "qrcodedialog.h" #include "ui_qrcodedialog.h" #include "bitcoinunits.h" #include "guiconstants.h" #include "guiutil.h" #include "optionsmodel.h" #include <QPixmap> #include <QUrl> #include <qrencode.h> QRCodeDialog::QRCodeDialog(const QString &addr, const QString &label, bool enableReq, QWidget *parent) : ...
; ; Small C z88 Character functions ; Written by Dominic Morris <djm@jb.man.ac.uk> ; 22 August 1998 ; ; $Id: tolower.asm,v 1.5 2015/01/19 01:32:42 pauloscustodio Exp $ ; PUBLIC tolower EXTERN asm_tolower ; FASTCALL .tolower ld a,l call asm_tolower ld l,a ld h,0 ret
; A081598: Let n = 10x + y where 0 <= y <= 9, x >= 0. Then a(n) = 7x+y. ; 0,1,2,3,4,5,6,7,8,9,7,8,9,10,11,12,13,14,15,16,14,15,16,17,18,19,20,21,22,23,21,22,23,24,25,26,27,28,29,30,28,29,30,31,32,33,34,35,36,37,35,36,37,38,39,40,41,42,43,44,42,43,44,45,46,47,48,49,50,51,49,50,51,52,53,54,55,56,57,58,56,57,58,59,60,61,6...
asteroid_005 EECS205BITMAP <21, 23, 255,, offset asteroid_005 + sizeof asteroid_005> BYTE 0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh BYTE 0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,024h BYTE 024h,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0f...
; Unununium Operating Engine's boot record ; Copyright (C) 2001, Dave Poirier ; Distributed under the BSD License ; ; version 1.0.3 ; ; Featuring: ; - cpu detection, 8088, 80286 and 80386+, will allow only 386+ to go thru ; - enable protected mode ; - set ds, es, fs, gs and ss to 4GB r/w 32bits data segment ; - set cs ...
#include "mainwindow.h" #include <QApplication> #include<QFile> #include<QTextStream> int main(int argc, char *argv[]) { QApplication a(argc, argv); QFile file(":/dark.qss"); file.open(QFile::ReadOnly | QFile::Text); QTextStream stream(&file); a.setStyleSheet(stream.readAll()); MainWindow w; ...
;THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX ;SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO ;END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A ;ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS ;IN USING, DISPLAYI...
############################################################################### # 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...
; A171965: Partial sums of floor(n^2/6) (A056827). ; 0,0,0,1,3,7,13,21,31,44,60,80,104,132,164,201,243,291,345,405,471,544,624,712,808,912,1024,1145,1275,1415,1565,1725,1895,2076,2268,2472,2688,2916,3156,3409,3675,3955,4249,4557,4879,5216,5568,5936,6320,6720,7136,7569,8019,8487,8973,9477,9999,10540,11100,11680,12280,12...
; void monocromatizar_uno_asm ( ; unsigned char *src, ; unsigned char *dst, ; int h, ; int w, en pixels ; int src_row_size, en bytes ; int dst_row_size ; ); section .data mask: DQ 0x00000000FFFFFFFF maskPrimeroCuarto: DW 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0x0000, 0x0000 maskPrimerosDos: DW 0xFFFF,...
; A277108: a(n) = 4n*(n+5). ; Submitted by Christian Krause ; 24,56,96,144,200,264,336,416,504,600,704,816,936,1064,1200,1344,1496,1656,1824,2000,2184,2376,2576,2784,3000,3224,3456,3696,3944,4200,4464,4736,5016,5304,5600,5904,6216,6536,6864,7200,7544,7896,8256,8624,9000,9384,9776,10176,10584,11000,11424,11856,12296,127...
// Copyright (C) 2022 Jérôme "Lynix" Leclercq (lynix680@gmail.com) // This file is part of the "Nazara Engine - Graphics module" // For conditions of distribution and use, see copyright notice in Config.hpp #include <Nazara/Graphics/Model.hpp> #include <Nazara/Graphics/GraphicalMesh.hpp> #include <Nazara/Graphics/Grap...
#include "../src/BigInteger.h" #include "gtest/gtest.h" #include "Random.h" #include "stack_calc.h" #include "utils.h" #include "../src/exceptions.h" static void VerifyRemainderString(std::string opstring) { StackCalc sc(opstring); while (sc.DoNextOperation()) { ASSERT_EQ(sc.snCalc.top().to_string(...
section .multiboot align 4 dd 1BADB002h dd 0003h ; set align boot modules to page boundaries, supply memory map dd -(1BADB002h + 0003h) section .bootstrap_stack nobits stack_bottom: resb 16384 ; 16 KiB stack_top: section .text extern kernel_main global _start _start: mov esp, stack_top call ke...
KERNEL_V_ADDR equ 0xC0000000 KERNEL_V_PAGENO equ (KERNEL_V_ADDR >> 22) global flush_paging flush_paging: push eax push ebp ; mov the page dir addr to cr3 mov ebp, esp mov eax, [ebp + 4] sub eax, KERNEL_V_ADDR mov cr3, eax pop ebp pop eax ret global invalidate_page invalidate_page: push eax push ebp m...
; A182687: a(n) = the smallest 1-digit number with exactly n divisors, a(n) = 0 if no such number exists. ; 1,2,4,6,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,0,0,0,0,0,0,0,0,0,0 mov $4,1 mov $8,$0 mov $7,$8 clr $4,$7 mul $7,2 add $7,$4 mov $1,$7
#ifndef PONTO_H #define PONTO_H #include <iostream> #include <string> /** * \Interface que representa cada ponto, independente de sua dimensão. */ class Ponto { public: /** * \Representação de string do ponto. * \retorna uma string que representa o ponto, como uma tupla de n-dimensões. */ v...
; A214398: Triangle where the g.f. of column k is 1/(1-x)^(k^2) for k>=1, as read by rows n>=1. ; Submitted by Christian Krause ; 1,1,1,1,4,1,1,10,9,1,1,20,45,16,1,1,35,165,136,25,1,1,56,495,816,325,36,1,1,84,1287,3876,2925,666,49,1,1,120,3003,15504,20475,8436,1225,64,1,1,165,6435,54264,118755,82251,20825,2080,81,1,1,2...
; int system(const char *string) SECTION code_clib SECTION code_stdlib PUBLIC _system EXTERN asm_system _system: pop af pop hl push hl push af jp asm_system
; A283707: Binary representation of the x-axis, from the left edge to the origin, of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 721", based on the 5-celled von Neumann neighborhood. ; 1,0,111,1101,11110,111110,1111110,11111110,111111110,1111111110,11111111110,111111111110,111111...
li x2, 7 li x3, 11 slt x1, x2, x3 outr x1 ; should be 1 slt x1, x3, x2 outr x1 ; should be 0 slt x1, x2, x2 outr x1 ; should be 0 sltu x1, x0, x2 outr x1 ; should be 1 li x2, 0 sltu x1, x0, x2 outr x1 ; should be 0 li x2, -1 sltu x1, x0, x2 outr x1 ; should be 1 li x2, 0b1011 li x3, 0b0110 and x1, x2, x3 o...
; A346573: Decimal expansion of 2 - Pi/3. ; Submitted by Jamie Morken(s2) ; 9,5,2,8,0,2,4,4,8,8,0,3,4,0,2,2,5,3,8,4,5,7,8,5,5,3,8,9,0,6,8,3,2,3,7,1,9,3,4,2,7,6,8,6,6,8,7,4,9,6,4,7,2,6,3,4,1,6,8,5,1,3,5,8,9,7,3,9,4,5,3,1,2,3,7,9,3,0,3,3,3,7,9,0,6,5,5 add $0,1 mov $2,1 mov $3,$0 mul $3,5 lpb $3 mul $1,$3 mov $5,$3 ...
; A004019: a(0) = 0; for n > 0, a(n) = (a(n-1) + 1)^2. ; Submitted by Christian Krause ; 0,1,4,25,676,458329,210066388900,44127887745906175987801,1947270476915296449559703445493848930452791204,3791862310265926082868235028027893277370233152247388584761734150717768254410341175325352025,14378219780015246281818710879551167...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r9 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0xb932, %rdi nop nop sub $55372, %r11 mov $0x6162636465666768, %rdx movq %rdx, %xmm2 movups %xmm2, (%rdi) nop nop add $53038, %rdx lea addresses_D_ht+0xe75a, %r10 nop nop nop n...
@0 // ** 1: push constant 0 ** D=A // store the current address as a value @SP // >> push constant value (0) onto stack << A=M // move to top of stack M=D // write value of D to current location @SP // increment stack pointer M=M+1 - ...
; A014130: ((n+3)!/6)*product( 2*k+1, k=0..n). ; Submitted by Jamie Morken(s2) ; 1,12,300,12600,793800,69854400,8172964800,1225944720000,229251662640000,52269379081920000,14269540489364160000,4594792037575259520000,1723047014090722320000000,744356310087192042240000000,366967660872985676824320000000 mov $1,$0 add $0,1 ...
; A242771: Number of integer points in a certain quadrilateral scaled by a factor of n (another version). ; 0,0,1,3,6,9,14,19,25,32,40,48,58,68,79,91,104,117,132,147,163,180,198,216,236,256,277,299,322,345,370,395,421,448,476,504,534,564,595,627,660,693,728,763,799,836,874,912,952,992,1033,1075,1118,1161,1206 mov $2,$...
; A246643: A sequence used in the touching circle problem described in A247512. ; Submitted by Christian Krause ; 1,10,121,1690,25921,420250,7027801,119508490,2050368961,35341836010,610665665401,10564982353210,182902930753921,3167536046903290,54865571909148121,950426408617182250,16464857882672822401,2852386282804326268...
;----------------------------------------------------------------------------------------- ; ; Percussion Sequencer ; called from main track PSG driver ; processDrums ldy psgCurrentVoice ; get voice lda psgMainStackOffset,y ; stack offset for voice and #$F0 ; get track mode cmp #$10 ...
; A007564: Shifts left when INVERT transform applied thrice. ; Submitted by Christian Krause ; 1,1,4,19,100,562,3304,20071,124996,793774,5120632,33463102,221060008,1473830308,9904186192,67015401391,456192667396,3122028222934,21467769499864,148246598341018,1027656663676600,7148588698592956,49884553176689584,349114088380...
; int rand(void) SECTION code_clib SECTION code_stdlib PUBLIC rand EXTERN asm_rand defc rand = asm_rand
/* * ofGstVideoGrabber.cpp * * Created on: 17/01/2011 * Author: arturo */ #include "ofGstVideoGrabber.h" #include "ofPixels.h" #include <gst/video/video.h> #ifdef TARGET_LINUX #include <sys/utsname.h> #endif //------------------------------------------------- //----------------------------------------- g...
; A055473: Powers of ten written in base 2. ; Submitted by Jamie Morken(m4) ; 1,1010,1100100,1111101000,10011100010000,11000011010100000,11110100001001000000,100110001001011010000000,101111101011110000100000000,111011100110101100101000000000,1001010100000010111110010000000000,1011101001000011101101110100000000000 seq ...
; A145699: Numbers n such that there exists x in N with (x+1)^3-x^3=37*n^2 ; Submitted by Jon Maiga ; 1,589,347509,205029721,120967187881,71370435820069,42108436166652829,24843905967889349041,14657862412618549281361,8648113979538976186653949,5102372590065583331576548549,3010391180024714626653976989961,17761256938419915...
; A140466: a(n) = 4*A002088(n). ; Submitted by Jon Maiga ; 0,4,8,16,24,40,48,72,88,112,128,168,184,232,256,288,320,384,408,480,512,560,600,688,720,800,848,920,968,1080,1112,1232,1296,1376,1440,1536,1584,1728,1800,1896,1960,2120,2168,2336,2416,2512,2600,2784,2848,3016,3096,3224,3320,3528,3600,3760,3856,4000,4112,4344,44...
;Hacks for rupee towers to drop flagged collectibles ;Add additional params to Item_DropCollectible2 params argument in a2 ;obj_mure3 pointer should be in s2 ;index of the for loop is in s0 obj_mure3_hack: lh a3, 0x18(s2) ;get our new flag out of the z rotation beqz a3, obj_mure3_hack_end or a2, r0, r0 add a3, s0 ;...
;-------------------------------------------------------------------- ;- Programmers: Scott Leonard & Errol Leon ;- Date: 02-27-2011 ;- Version: 1 ;- Test Case: 7 ;- ;- TEST 1: ADD ;- TEST 2: ADDC ;- TEST 3: SUB ;- TEST 4: SUBC ;- ;- LED output set to R15. ;- Tests will run then LED will continuously output results ...
/* * Copyright (C) 1999-2011 Insight Software Consortium * Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in co...
; A021149: Decimal expansion of 1/145. ; 0,0,6,8,9,6,5,5,1,7,2,4,1,3,7,9,3,1,0,3,4,4,8,2,7,5,8,6,2,0,6,8,9,6,5,5,1,7,2,4,1,3,7,9,3,1,0,3,4,4,8,2,7,5,8,6,2,0,6,8,9,6,5,5,1,7,2,4,1,3,7,9,3,1,0,3,4,4,8,2,7,5,8,6,2,0,6,8,9,6,5,5,1,7,2,4,1,3,7 add $0,2 mov $1,10 pow $1,$0 mul $1,4 div $1,5800 mod $1,10 mov $0,$1
; A158669: a(n) = 900*n^2 - 30. ; Submitted by Christian Krause ; 870,3570,8070,14370,22470,32370,44070,57570,72870,89970,108870,129570,152070,176370,202470,230370,260070,291570,324870,359970,396870,435570,476070,518370,562470,608370,656070,705570,756870,809970,864870,921570,980070,1040370,1102470,1166370,1232070,12995...
db "STARSHAPE@" ; species name dw 207, 760 ; height, weight db "When the stars" next "twinkle at night," next "it floats up from" page "the sea floor, and" next "its body's center" next "core flickers.@"