text
stringlengths
1
1.05M
#include <eigen_conversions/eigen_msg.h> #include <nodelet/nodelet.h> #include <ros/ros.h> #include <tf/LinearMath/Quaternion.h> #include <tf/transform_datatypes.h> #include <tf/transform_listener.h> #include <tf_conversions/tf_eigen.h> #include <pluginlib/class_list_macros.hpp> #include <odom_estimator/odometry.h> #i...
############################################################################### # 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...
// File: crn_vector.cpp // See Copyright Notice and license at the end of inc/crnlib.h #include "crn_core.h" #include "crn_vector.h" #include "crn_rand.h" #include "crn_color.h" #include "crn_vec.h" namespace crnlib { bool elemental_vector::increase_capacity(uint min_new_capacity, bool grow_hint, uint e...
; A052625: E.g.f. (1-x)^2/(1-2x+x^2-x^3). ; Submitted by Christian Krause ; 1,0,0,6,48,360,3600,45360,645120,10160640,177811200,3432844800,72329241600,1650160512000,40537905408000,1067062284288000,29961435119616000,893842506805248000,28234468042260480000 mov $2,$0 mul $0,2 seq $0,291289 ; The Padovan sequence A000931 ...
// Copyright 2019 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 "chromeos/services/assistant/test_support/scoped_assistant_client.h" namespace chromeos { namespace assistant { ScopedAssistantClient::ScopedAs...
#include "Settings.h" #include <Arduino.h> #include "Vehicle.h" Vehicle::Vehicle(){ } Vehicle::~Vehicle(){ } //Calls the initialization of all 3 objects void Vehicle::initialize() { throttle.initialize(); brake.initialize(); steer.initialize(computeAngleLeft()); } void Vehicle::eStop() { if (SerialPrint) ...
SSAnne5Script: call EnableAutoTextBoxDrawing ld hl, SSAnne5TrainerHeader0 ld de, SSAnne5ScriptPointers ld a, [wSSAnne5CurScript] call ExecuteCurMapScriptInTable ld [wSSAnne5CurScript], a ret SSAnne5ScriptPointers: dw CheckFightingMapTrainers dw DisplayEnemyTrainerTextAndStartBattle dw EndTrainerBattle SSAnn...
/* Copyright (c) 2008-2017, Benoit AUTHEMAN 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 a...
/* * 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. * */ //---------- PA_AVS_IEF_Unpack_8...
section .text %ifdef TEST2x64 global foo %else global _foo %endif %include "foo-proc.asm"
#if defined(Hiro_Widget) namespace hiro { struct pWidget : pSizable { Declare(Widget, Sizable) auto focused() const -> bool override; auto setEnabled(bool enabled) -> void override; auto setFocused() -> void override; auto setFont(const Font& font) -> void override; auto setGeometry(Geometry geometry) ->...
SECTION code_clib PUBLIC res_MODE0 EXTERN CONSOLE_ROWS EXTERN CONSOLE_COLUMNS .res_MODE0 ld a,l cp CONSOLE_ROWS * 2 ret nc ld a,h cp CONSOLE_COLUMNS * 2 ret nc defc NEEDunplot = 1 INCLUDE "gfx/gencon/pixel.inc"
aLine 0 gNew delPtr gMoveNext delPtr, Root aLine 1 gBne delPtr, Root, 3 aLine 2 Exception EMPTY_LIST aLine 4 gBne delPtr, Rear, 3 aLine 5 gMove Rear, Root aLine 7 nMoveRelOut delPtr, delPtr, 100 gNewVPtr delNext gMoveNext delNext, delPtr pSetNext Root, delNext aLine 8 pDeleteNext delPtr nDelete delPtr gDelete del...
; A074057: 2*phi(n-2)-(n-1). ; 0,-1,0,-1,2,-3,4,-1,2,-3,8,-5,10,-3,0,-1,14,-7,16,-5,2,-3,20,-9,14,-3,8,-5,26,-15,28,-1,6,-3,12,-13,34,-3,8,-9,38,-19,40,-5,2,-3,44,-17,34,-11,12,-5,50,-19,24,-9,14,-3,56,-29,58,-3,8,-1,30,-27,64,-5,18,-23,68,-25,70,-3,4,-5,42,-31,76,-17,26,-3,80 mov $1,$0 cal $1,10 ; Euler totient funct...
; ; Memotech MTX stdio ; ; getk() Read key status ; ; Stefano Bodrato - Aug. 2010 ; ; ; $Id: getk.asm,v 1.3+ (now on GIT) $ ; SECTION code_clib PUBLIC getk PUBLIC _getk .getk ._getk call $79 ld hl,0 ret z IF STANDARDESCAPECHARS cp 13 jr nz,not_return ld a,10 .not_return ENDIF...
; ; ZX IF1 & Microdrive functions ; ; if1_checksum (internal routine) ; ; check BC bytes starting from HL ; and compare with the following byte ; ; $Id: if1_checksum.asm,v 1.1 2004/10/08 12:33:23 stefano Exp $ ; XLIB if1_checksum if1_checksum: push hl ld e,0 nxt_byte: ld a,e add (hl) i...
#include "lucipch.h" #include "Luci/Debug/Log.h" #include <spdlog/sinks/stdout_color_sinks.h> #include <spdlog/sinks/basic_file_sink.h> namespace Luci { Ref<spdlog::logger> Log::s_CoreLogger; Ref<spdlog::logger> Log::s_ClientLogger; void Log::Initialize() { std::vector<spdlog::sink_ptr> logSinks; logSinks.e...
; A028745: Nonsquares mod 32. ; 2,3,5,6,7,8,10,11,12,13,14,15,18,19,20,21,22,23,24,26,27,28,29,30,31 mov $4,$0 lpb $0 add $1,2 add $2,$1 sub $0,$2 trn $0,$2 add $0,$2 sub $0,1 add $3,1 add $5,$1 mov $1,$3 mov $3,$2 trn $2,$5 lpe mov $1,$2 add $1,1 add $1,$3 trn $1,2 lpb $4 add $1,1 sub $4,1 l...
; 8086 assembly file ; by:czfshine ; date: 2018/04/12 10:46:38 ;试编写一段程序,从键盘接收一个-32768-32767间的十进制有符号数, ;并在终端上显示与它等值的二进制数。 ; The Main Data segment include scan.inc DATA SEGMENT DATA ENDS ;entry code segment CODE SEGMENT ASSUME CS:CODE ,DS:DATA START: ;entry point MOV AX,DATA MOV DS,AX mov...
; --------------------------------------------------------------------------- ; Object 5D - fans (SLZ) ; --------------------------------------------------------------------------- Fan: moveq #0,d0 move.b obRoutine(a0),d0 move.w Fan_Index(pc,d0.w),d1 jmp Fan_Index(pc,d1.w) ; ===================================...
; ; CPC Maths Routines ; ; August 2003 **_|warp6|_** <kbaccam /at/ free.fr> ; ; $Id: log10.asm,v 1.3 2015/01/21 10:56:29 stefano Exp $ ; INCLUDE "cpcfirm.def" INCLUDE "cpcfp.def" PUBLIC log10 PUBLIC log10c EXTERN get_para .log10 call get_para call firmware .log10c defw CPCFP_FLO_LOG10 re...
; A293673: a(n) is the integer k that minimizes |k/Fibonacci(n) - 4/5|. ; 0,1,1,2,2,4,6,10,17,27,44,71,115,186,302,488,790,1278,2067,3345,5412,8757,14169,22926,37094,60020,97114,157134,254249,411383,665632,1077015,1742647,2819662,4562310,7381972,11944282,19326254,31270535,50596789,81867324,132464113,214331437,346795550...
PAGE ,132 TITLE CONDEV FANCY CONSOLE DRIVER ;****************************************************************************** ; Change Log: ; Date Who # Description ; -------- --- --- ------------------------------------------------------ ; 06/01/90 MKS C02 Bug#173. ANSI was permi...
; A332137: a(n) = (10^(2n+1)-1)/3 + 4*10^n. ; 7,373,33733,3337333,333373333,33333733333,3333337333333,333333373333333,33333333733333333,3333333337333333333,333333333373333333333,33333333333733333333333,3333333333337333333333333,333333333333373333333333333,33333333333333733333333333333,3333333333333337333333333333333 a...
#include <ctype.h> #include <stdio.h> int main(void) { int n, a[6]; char c; scanf("%d%*c", &n); while (n--) { a[0] = a[1] = a[2] = a[3] = a[4] = a[5] = 0; while ((c = getchar()) != '\n') { if (isupper(c)) a[0] = a[5]++; else if (islow...
; Win32.Harrier ; title HDL - The pretty PE Polymorphic virus. ; page 52,130 ; ; *==================================================================* ; ! (c) 08-Sep-1997y by TechnoRat "95-th Harrier from DarkLand" ! ; *==================================================================* ; ; Start coding: ...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r15 push %r9 push %rbp push %rcx lea addresses_normal_ht+0x16722, %r11 clflush (%r11) nop nop mfence mov (%r11), %r9d dec %rcx lea addresses_A_ht+0x16af5, %rbp dec %r12 movb (%rbp), %r10b nop nop nop nop nop and $6060, %r9 lea addresses_WT...
; A104538: Expansion of (1 + 2*x) / (1 + 2*x + 4*x^2). ; 1,0,-4,8,0,-32,64,0,-256,512,0,-2048,4096,0,-16384,32768,0,-131072,262144,0,-1048576,2097152,0,-8388608,16777216,0,-67108864,134217728,0,-536870912,1073741824,0,-4294967296,8589934592,0,-34359738368,68719476736,0,-274877906944,549755813888,0,-2199023255552,439804...
; This program calculates a power of 2 by building a simple loop using jumps, ; comparisons and increments global asm_func section .text asm_func: mov rdx, 8 ; this is our exponent mov rax, 2 ; this is the base mov rcx, 1 ; our counter loop: add rax, rax ; doubles RAX inc rcx ; increments...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r8 push %rax push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0xd67b, %rax nop nop nop xor %r13, %r13 mov $0x6162636465666768, %rbx movq %rbx, (%rax) nop nop nop nop cmp $49270, %r13 lea addresses_D_ht+0x2cdb, %rax nop nop nop no...
// Copyright (c) 2012-2017 The Kazucoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <addrman.h> #include <test/test_kazucoin.h> #include <string> #include <boost/test/unit_test.hpp> #include <hash.h>...
; A089658: Let S1 := (n,t)->add( k^t * add( binomial(n,j), j=0..k), k=0..n); a(n) = S1(n,1). ; 0,2,11,42,136,400,1104,2912,7424,18432,44800,107008,251904,585728,1347584,3072000,6946816,15597568,34799616,77201408,170393600,374341632,818937856,1784676352,3875536896,8388608000,18102616064,38956695552,83617644544,179046449...
# For now, we just call the main function and # pass parameters .intel_syntax noprefix .text .globl _start .extern main _start: xor ebp, ebp mov esi, DWORD PTR [rsp+0] lea rdi, 8[rsp] call main mov rdi, rax mov rax, 60 syscall
class CfgAmmo { class M_Scalpel_AT; class B_30mm_MP_Tracer_Green; class ACE_Hellfire_AGM114K: M_Scalpel_AT {class ace_missileguidance;}; class ACE_Hellfire_AGM114N: M_Scalpel_AT {class ace_missileguidance;}; class VTX_Hellfire_AGM114K: ACE_Hellfire_AGM114K { displayName = "AGM-114K Hellfire"; model = ...
// Copyright Take Vos 2021. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt) #pragma once #include "text_shaper_char.hpp" #include "text_shaper_line.hpp" #include "text_cursor.hpp" #include "glyph_metrics.hpp" #in...
/**M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, insta...
; A128542: a(n) = ((2n)^(2n) - 1)/((2n+1)*(2n-1)). ; 0,1,17,1333,266305,101010101,62350352785,56984650387477,72340172838076673,121815504877079063701,262801002506265664160401,706890015246831381773595701,2319540481478754999041880822337,9120177155862455275254332279111413,42331447143363186286810636338907542545,229022393876...
public FuncInt3 _TEXT SEGMENT FuncInt3 PROC int 3 ret FuncInt3 ENDP END
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r9 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x3531, %rcx nop and $61616, %rdx movw $0x6162, (%rcx) nop nop nop nop dec %r12 lea addresses_UC_ht+0xdb99, %rsi lea addresses_WC_ht+0x147f1, %rdi nop nop nop xor %r10, %r10 mov...
/* // Copyright (c) 2000-2009, Texas Engineering Experiment Station (TEES), a // component of the Texas A&M University System. // All rights reserved. // The information and source code contained herein is the exclusive // property of TEES and may not be disclosed, examined or reproduced // in whole or in part withou...
; A204467: Number of 3-element subsets that can be chosen from {1,2,...,6*n+3} having element sum 9*n+6. ; 1,8,25,50,85,128,181,242,313,392,481,578,685,800,925,1058,1201,1352,1513,1682,1861,2048,2245,2450,2665,2888,3121,3362,3613,3872,4141,4418,4705,5000,5305,5618,5941,6272,6613,6962,7321,7688,8065,8450,8845,9248,9661,...
CreditsMons: db VENUSAUR db CHARIZARD db BLASTOISE db RAICHU db UMBREON db GRAVELER db ABRA db TANGROWTH db STARMIE db GYARADOS db DITTO db CORSOLA db MILTANK db NIDOKING db PIKACHU rept 9 db GENGAR endr
; A158670: a(n) = 60*n^2 - 1. ; Submitted by Christian Krause ; 59,239,539,959,1499,2159,2939,3839,4859,5999,7259,8639,10139,11759,13499,15359,17339,19439,21659,23999,26459,29039,31739,34559,37499,40559,43739,47039,50459,53999,57659,61439,65339,69359,73499,77759,82139,86639,91259,95999,100859,105839,110939,116159,12149...
; A245906: Numbers of the form 4n^2 + 1 or 4n^2 + 8n + 1. ; 5,13,17,33,37,61,65,97,101,141,145,193,197,253,257,321,325,397,401,481,485,573,577,673,677,781,785,897,901,1021,1025,1153,1157,1293,1297,1441,1445,1597,1601,1761,1765,1933,1937,2113,2117,2301,2305,2497,2501,2701 add $0,1 mov $1,$0 div $1,2 pow $1,2 add $0,$1 ...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r15 push %r9 push %rax push %rcx push %rdi push %rsi lea addresses_D_ht+0xe64e, %rax nop nop nop nop add $16229, %r15 mov (%rax), %r13 nop nop nop nop and %r10, %r10 lea addresses_normal_ht+0x1b49c, %rsi lea addresses_D_ht+0x7e0c, %rdi nop nop nop n...
// Copyright (C) 2018-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "legacy/transformations/convert_opset1_to_legacy/convert_matmul_to_fc_or_gemm.hpp" #include <algorithm> #include <utility> #include <memory> #include <vector> #include <string> #include <numeric> #include <ngraph/opsets/o...
; A244041: Sum of digits of n written in fractional base 4/3. ; 0,1,2,3,3,4,5,6,5,6,7,8,6,7,8,9,6,7,8,9,9,10,11,12,8,9,10,11,10,11,12,13,8,9,10,11,11,12,13,14,12,13,14,15,9,10,11,12,11,12,13,14,14,15,16,17,14,15,16,17,10,11,12,13,11,12,13,14,14,15,16,17,16,17,18,19,15,16,17,18,10,11,12,13,13,14,15,16,13,14,15,16,15,16,...
; A169414: Number of reduced words of length n in Coxeter group on 17 generators S_i with relations (S_i)^2 = (S_i S_j)^32 = I. ; 1,17,272,4352,69632,1114112,17825792,285212672,4563402752,73014444032,1168231104512,18691697672192,299067162755072,4785074604081152,76561193665298432,1224979098644774912,19599665578316398592...
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * h...
; ZwQuerySystemInformation
/** * \file Principal.cpp * \brief Fichier pour les différents tests * \author IFT-2008 * \version 0.1 * \date mars 2021 * */ #include <iostream> #include <fstream> #include <ctime> #include "ReseauInterurbain.h" using namespace std; using namespace TP2; int main() { int nb = 1; //Choix de l'utilisate...
// Copyright 2017 The Fuchsia 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 "src/ui/scenic/lib/gfx/resources/gpu_image.h" #include "src/ui/lib/escher/impl/naive_image.h" #include "src/ui/lib/escher/util/image_utils.h" #in...
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2006 Banca Profilo S.p.A. This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http://quantlib.org/ QuantLib is free software: you can redistribute i...
// // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com) // // 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) // // Official repository: https://github.com/boostorg/beast // #ifndef BOO...
// Copyright (c) 2009-2017 The Bitcoin Core developers // Copyright (c) 2020 The RoseCoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <base58.h> #include <chain.h> #include <rpc/safemode.h> #include ...
; A020915: Number of terms in base 3 representation of 2^n. ; 1,1,2,2,3,4,4,5,6,6,7,7,8,9,9,10,11,11,12,12,13,14,14,15,16,16,17,18,18,19,19,20,21,21,22,23,23,24,24,25,26,26,27,28,28,29,30,30,31,31,32,33,33,34,35,35,36,36,37,38,38,39,40,40,41,42,42,43,43,44,45,45,46,47,47,48,48,49,50,50,51,52,52,53,53,54,55,55,56,57,57,...
.size 8000 .text@48 ei jp lstatint .text@100 jp lbegin .data@143 c0 .text@150 lbegin: ld a, 00 ldff(ff), a ld a, 30 ldff(00), a ld a, 01 ldff(4d), a stop, 00 ld c, 44 ld b, 90 lbegin_waitly90: ldff a, (c) cmp a, b jrnz lbegin_waitly90 ld a, 11 ldff(40), a ld hl, 8010 ld a, ff ld(hl++), a ld(hl...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x14955, %rbp xor $36336, %rsi mov (%rbp), %di nop nop nop nop sub %rsi, %rsi lea addresses_WT_ht+0x12cfb, %rsi lea addresses_A_ht+0x1df55, %rdi clflush (%rsi) nop sub $22007,...
; A001536: (11n+1)(11n+10). ; 10,252,736,1462,2430,3640,5092,6786,8722,10900,13320,15982,18886,22032,25420,29050,32922,37036,41392,45990,50830,55912,61236,66802,72610,78660,84952,91486,98262,105280,112540,120042,127786,135772,144000,152470,161182,170136,179332,188770,198450,208372,218536,228942,239590,250480,261612,272...
; A120512: a(n) = min{j : A120501(j) = n}. ; 1,4,8,9,14,15,17,18,24,25,27,28,31,32,34,35,42,43,45,46,49,50,52,53,57,58,60,61,64,65,67,68,76,77,79,80,83,84,86,87,91,92,94,95,98,99,101,102,107,108 mov $1,1 lpb $0,1 add $1,$0 div $0,2 add $1,2 lpe
#include <opencv2/core/core.hpp> #include "witness/server/vision/apriltag.h" #include "witness/server/file_operations/file_operations.h" #include "gtest/gtest.h" #include "witness/server/vision/imshow_wrapper.h" extern "C" { #include "apriltag/apriltag.h" #include "apriltag/apriltag_pose.h" #include "apriltag/tagStand...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Copyright(c) 2011-2020 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...
BITS 64 EXTERN _printf GLOBAL entrypoint SECTION .data msg: db "Hello world", 10 SECTION .text entrypoint: push rbx lea rdi, [rel msg] call _printf pop rbx ret mov rax, 0x02000001 xor rdi, rdi syscall
; ; Test of floating-point formats ; ; 8-bit db 1.0 db +1.0 db -1.0 db 1.5 db +1.5 db -1.5 db 0.0 db +0.0 db -0.0 db 1.83203125 db +1.83203125 db -1.83203125 db 1.83203125e1 db +1.83203125e1 db -1.83203125e1 db 1.83203125e-1 db +1.83203125e-1 db -1.83203125e-1 db 1.13203125e-2...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r14 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0x12b70, %r13 nop and $55634, %r12 movb $0x61, (%r13) nop and %r12, %r12 lea addresses_A_ht+0x11218, %r14 nop nop nop nop cmp %rbx, %rbx mov (%r14), %rdi nop nop nop dec %rdi l...
//============================================================================= // // Adventure Game Studio (AGS) // // Copyright (C) 1999-2011 Chris Jones and 2011-20xx others // The full list of copyright holders can be found in the Copyright.txt // file, which is part of this source code distribution. // // The AGS ...
{ "name": { "first": "Jonas", "last": "Sicking" }, "email": "jonas@sicking.cc" }
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1991 -- All Rights Reserved PROJECT: PC GEOS MODULE: DotMatrix printers FILE: correctGamma20.asm AUTHOR: Jim DeFrisco, May 27, 1992 REVISION HISTORY: Name Date Description ---- ---- ----------- ...
; char *_memupr_(void *p, size_t n) SECTION code_clib SECTION code_string PUBLIC _memupr__callee EXTERN asm__memupr _memupr__callee: pop hl pop bc ex (sp),hl jp asm__memupr ; SDCC bridge for Classic IF __CLASSIC PUBLIC __memupr__callee defc __memupr__callee = _memupr__callee ENDIF
;================================================================================ ; Mantle Object Changes ;-------------------------------------------------------------------------------- Mantle_CorrectPosition: LDA $7EF3C6 : AND.b #$04 : BEQ + LDA.b #$0A : STA $0D10, X ; just spawn it off to the side where we know ...
; A287470: Decimal representation of the diagonal from the origin to the corner of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 276", based on the 5-celled von Neumann neighborhood. ; 1,0,6,0,28,0,120,0,496,0,2016,0,8128,0,32640,0,130816,0,523776,0,2096128,0,8386560,0,33550336,0,1...
#include <thread> #include <chrono> #include "mem_utils.hpp" #include "game_structs.hpp" bool is_in_game( game_state_t* state_manager ) { const auto game_state = state_manager->game_state; // == prep phase, == action phase return game_state == PREP_PHASE || game_state == ACTION_PHASE; } unsigned long main_thread...
; A086951: n3^n(4n-1)/9. ; Submitted by Jon Maiga ; 0,1,14,99,540,2565,11178,45927,180792,688905,2558790,9310059,33303636,117448461,409209570,1410975855,4821232752,16343405073,55013709438,184024732275,612124372620,2025821736981,6673705343514,21893519253879 mov $1,3 pow $1,$0 mov $2,$0 mul $2,4 bin $2,2 mul $1,$2 mov $...
[extern isr_handler] [extern irq_handler] isr_common_stub: pusha mov ax,ds push eax mov ax,0x10 mov ds,ax mov es,ax mov fs,ax mov gs,ax ;Save segments and register's for later. and call the handler call isr_handler pop eax mov ds,ax mov es,ax mov fs,ax mov g...
_stressfs: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "fs.h" #include "fcntl.h" int main(int argc, char *argv[]) { 0: 8d 4c 24 04 lea 0x4(%esp),%ecx 4: 83 e4 f0 and $0xfffffff0,%esp int fd, i; char path[] = "stressfs0"; 7: b8 30 00 0...
; A170427: Number of reduced words of length n in Coxeter group on 34 generators S_i with relations (S_i)^2 = (S_i S_j)^44 = I. ; 1,34,1122,37026,1221858,40321314,1330603362,43909910946,1449027061218,47817893020194,1577990469666402,52073685498991266,1718431621466711778,56708243508401488674,1871372035777249126242,617552...
/////////////////////////////////////////////////////////////////////////////////////// // naonlm3d.cpp // Developed by Jose V. Manjon and Pierrick Coupe // Modified by Dongjin Kwon, Nicolas Honnorat /////////////////////////////////////////////////////////////////////////////////////// /////////////////////////...
; A177234: a(n) = binomial(n^2, n)/(n+1). ; 2,21,364,8855,278256,10737573,491796152,26088783435,1573664496040,106395830418878,7970714909592876,655454164338881388,58702034425556612832,5687847988198592380965,592867741295430227919600 add $0,2 mov $1,$0 pow $1,2 bin $1,$0 add $0,1 div $1,$0 mov $0,$1
/*A thief wants to loot houses and knows the amount of money in each house. He cannot loot two consecutive houses.The following program returns the maximum amount of money he can loot.*/ //Time complexity: O(n^2); Constraints: 1 <= n <= 10^4 #include <bits/stdc++.h> using namespace std; int getMaxMoney(int arr[], int ...
#include "FastxParser.hpp" #include <iostream> #include <thread> #include <vector> struct Bases { uint32_t A, C, G, T; }; int main(int argc, char* argv[]) { if (argc == 1) { std::cerr << "usage: test_parser fa1 fb1 ... fa2 fb2 ..."; return 1; } int numFiles = argc - 1; if (numFiles % 2 !=...
Name: ys_w56.asm Type: file Size: 11155 Last-Modified: '2016-05-13T04:51:43Z' SHA-1: 21B6B55474E2507917FE3B312A755829B5F92A4A Description: null
; A133462: a(n+1)-10a(n)=3(-3, -2, -1, 0, 1, 2, 3, 4, 5 ...). ; 1,1,4,37,370,3703,37036,370369,3703702,37037035,370370368,3703703701,37037037034,370370370367,3703703703700,37037037037033,370370370370366,3703703703703699,37037037037037032,370370370370370365 sub $0,1 lpb $0 sub $0,1 add $2,1 add $3,$2 mov $1,$3 ...
; A112849: Number of congruence classes (epimorphisms/vertex partitionings induced by graph endomorphisms) of undirected cycles of even length: |C(C_{2*n})|. ; 1,4,11,36,127,463,1717,6436,24311,92379,352717,1352079,5200301,20058301,77558761,300540196,1166803111,4537567651,17672631901,68923264411,269128937221,1052049481...
_ScrollTrainerPicAfterBattle: ; Load the enemy trainer's pic and scrolls it into ; the screen from the right. xor a ld [wEnemyMonSpecies2], a ld b, SET_PAL_BATTLE call RunPaletteCommand callfar _LoadTrainerPic hlcoord 19, 0 ld c, $0 .scrollLoop inc c ld a, c cp 7 ret z ld d, $0 push bc push hl .drawTraine...
// 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 "content/browser/renderer_host/media/audio_input_device_manager.h" #include <stddef.h> #include <memory> #include <string> #include "base/...
bits 32 section .text align 4 dd 0x1BADB002 dd 0x00 dd - (0x1BADB002+0x00) global start extern kmain ; the entry function kmain in the object file start: cli ; clear the interrupts call kmain ; ...
; A068067: Number of integers m, 0 < m <= n, such that n divides m(m+1)/2. ; Submitted by Jon Maiga ; 1,0,2,0,2,1,2,0,2,1,2,1,2,1,4,0,2,1,2,1,4,1,2,1,2,1,2,1,2,3,2,0,4,1,4,1,2,1,4,1,2,3,2,1,4,1,2,1,2,1,4,1,2,1,4,1,4,1,2,3,2,1,4,0,4,3,2,1,4,3,2,1,2,1,4,1,4,3,2,1,2,1,2,3,4,1,4,1,2,3,4,1,4,1,4,1,2,1,4,1 mov $1,$0 gcd $0,...
; Copyright 2021 Justin Skists ; ; 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, publish, distribute,...
object_const_def ; object_event constants OreburghApartmentE2F_MapScripts: db 0 ; scene scripts db 0 ; callbacks OreburghApartmentE2F_GreatBallKidScript: faceplayer checkevent EVENT_OREBURGH_GOT_GREAT_BALL iftrue .After opentext writetext .IntroText waitbutton verbosegiveitem GREAT_BALL iffalse .BagFull ...
#ifndef MIGRAPHX_GUARD_AMDMIGRAPHX_ONNX_PARSER_HPP #define MIGRAPHX_GUARD_AMDMIGRAPHX_ONNX_PARSER_HPP #include <migraphx/config.hpp> #include <migraphx/program.hpp> #include <google/protobuf/text_format.h> #include <google/protobuf/io/zero_copy_stream_impl.h> #include <onnx.pb.h> #include <unordered_map> #include <fun...
#include "../test_helpers.hxx" extern "C" { #include "libpq-fe.h" } using namespace std; using namespace pqxx; namespace { void test_error_verbosity() { PQXX_CHECK_EQUAL( int(connection_base::terse), int(PQERRORS_TERSE), "error_verbosity enum should match PGVerbosity."); PQXX_CHECK_EQUAL( int(connection_base...
; The purpose of this file is to define generic symbols and to include ; the requested build configuraton file to bring in platform specifics. ; There are several hardware platforms supported by SBC. ; 1. SBC Z80 SBC (v1 or v2) w/ ECB interface ; 2. ZETA Standalone Z80 SBC w/ SBC compatibility ; 3. ZETA2 Seco...
# $Id: 02_add_1.asm,v 1.2 2001/03/22 00:39:03 ellard Exp $ # # Copyright 1999-2000 by the President and Fellows of Harvard College. # See LICENSE.txt for license information. # #@ tests add # OK lc r2, 1 add r3, r2, r2 add r4, r3, r2 add r5, r4, r2 add r6, r5, r2 add r7, r6, r2 add r8, r7, r2 add r9, r8, r2 a...
TextMode.println : ; ebx is String pusha call TextMode.print call TextMode.newline popa ret TextMode.print : ; ebx is String pusha mov ah, 0x0F mov ecx, [TextMode.charpos] TextMode.println.loop : mov al, [ebx] cmp al, 0x0 je TextMode.println.ret mov [ecx], ax add ecx, 2 add ebx, 1 jmp TextMode.println.loop ...
; A027276: a(n) = Sum_{k=0..2n} (k+1) * A026552(n, k). ; 1,6,27,72,270,648,2268,5184,17496,38880,128304,279936,909792,1959552,6298560,13436928,42830208,90699264,287214336,604661760,1904684544,3990767616,12516498432,26121388032,81629337600,169789022208 mov $3,$0 add $0,2 mov $1,$3 mov $3,$0 add $3,5 mov $0,$3 add $1,1 ...
; A305060: a(n) = 18*2^n + 10. ; 28,46,82,154,298,586,1162,2314,4618,9226,18442,36874,73738,147466,294922,589834,1179658,2359306,4718602,9437194,18874378,37748746,75497482,150994954,301989898,603979786,1207959562,2415919114,4831838218,9663676426,19327352842,38654705674,77309411338,154618822666,309237645322 mov $1,2 po...
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // //=============================================================================// #include "cbase.h" #include "hudelement.h" #include <vgui_controls/Panel.h> #include <vgui/ISurface.h> #include <vgui/ILocalize.h> #include "...
INCLUDE "hardware.inc" SECTION "Helper Functions",HOME ;-------------------------------------------------------------------------- ;- wait_ly() b = ly to wait for - ;-------------------------------------------------------------------------- wait_ly:: ld c,rLY & $FF .no...
; A028233 o=1: If n = p_1^e_1 * ... * p_k^e_k, p_1 < ... < p_k primes, then a(n) = p_1^e_1, with a(1) = 1. ; Coded manually 2021-02-27 by Antti Karttunen, https://github.com/karttu ; ; Note that A028233(n) = A020639(n)^A067029(n), A028234(n) = n/A028233(n). ; ; Code after register renumbering $2 -> $1 as suggested by m...
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r14 push %r9 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_WC_ht+0x1a5e7, %rax nop nop nop nop nop xor $13881, %rbp movb (%rax), %r14b nop nop nop nop cmp $32364, %rax lea addresses_A_ht+0xe67, %r9 nop nop nop nop nop lfence mov $0x616263646...