text
stringlengths
1
1.05M
#include <ros/ros.h> #include <std_msgs/Bool.h> #include <std_msgs/String.h> #include <std_msgs/Float32.h> #include <sensor_msgs/LaserScan.h> #include <geometry_msgs/Twist.h> #include <geometry_msgs/Pose.h> #include <geometry_msgs/PoseWithCovarianceStamped.h> #include <geometry_msgs/PoseWithCovariance.h> #include <tf/t...
COB // COB = COFFEE BREAK -- same as HLT
#ifndef LZHL_HuffStatTmp_HPP #define LZHL_HuffStatTmp_HPP #include "LZHMacro.hpp" class HuffStatTmpStruct { public: HUFFINT i; HUFFINT n; }; void shellSort( HuffStatTmpStruct* a, int N ); #endif
user/_mkdir: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <main>: #include "kernel/stat.h" #include "user/user.h" int main(int argc, char *argv[]) { 0: 7179 addi sp,sp,-48 2: f406 sd ra,40(sp) 4: f022 sd s0,32(sp) 6: ec...
; A035336: a(n) = 2*floor(n*phi) + n - 1, where phi = (1+sqrt(5))/2. ; 2,7,10,15,20,23,28,31,36,41,44,49,54,57,62,65,70,75,78,83,86,91,96,99,104,109,112,117,120,125,130,133,138,143,146,151,154,159,164,167,172,175,180,185,188,193,198,201,206,209,214,219,222,227,230,235,240,243,248,253,256,261,264,269,274,277,282,287,290...
/* * myUtil.cpp * * Created on: 2016/10/02 * Author: ryota */ #include <myUtil.h> #include <stdio.h> #include <stdint.h> int16_t concatenate2Byte_int(uint8_t H_byte, uint8_t L_byte) { int32_t con; con = L_byte + (H_byte<<8); if (con > 32767) { con -= 65536; } return (int16_t)...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r14 push %rax push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0xa8d6, %rbx nop nop nop add $55301, %rsi movb (%rbx), %al nop nop nop cmp $42374, %rdi lea addresses_normal_ht+0x42d6, %rsi lea addresses_UC_ht+0x12d93, %rdi clflush (%rd...
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
; Version for the TRS-80 Model 4 with hires graphics board. ; ; With the hires board the Model 4 is capable of 640 x 240 but this largely ; copies the Spectrum routine rendering at 256 x 240 and then doubling ; the pixels horizontally to correct the pixel aspect ratio. ; ; Need to do the full 640 pixels across and adju...
#pragma once #include <atomic> #include <thread> #include "ntripclient.hpp" #include "rclcpp/rclcpp.hpp" #include "rclcpp_lifecycle/lifecycle_node.hpp" #include "rclcpp_lifecycle/lifecycle_publisher.hpp" #include "rtcm_msgs/msg/rtk_rtcm.hpp" /** * ROS2 Node intetface for rtmc correction data * TODO: External config ...
; A092167: Let M = 2 X 2 matrix [ 1 2 / 5 4 ]; a(n) = (2,2) entry of M^n. ; 4,26,154,926,5554,33326,199954,1199726,7198354,43190126,259140754,1554844526,9329067154,55974402926,335846417554,2015078505326,12090471031954,72542826191726,435256957150354,2611541742902126 mov $1,7 mov $2,6 mov $3,1 add $3,$0 pow $2,$3 add $2...
;; $Header: ;; ;; Keycode->UTF-8 english keyboard cell ;; By EKS - Dave Poirier (instinc@users.sourceforge.net) ;; Distributed under the BSD License ;; ;; This cell provides a kbd.set_unicode_client function and uses originally the ;; 'dragon' cell's kbd.set_keycode_client function to receives notification of ;; keycod...
; A040022: Continued fraction for sqrt(28). ; 5,3,2,3,10,3,2,3,10,3,2,3,10,3,2,3,10,3,2,3,10,3,2,3,10,3,2,3,10,3,2,3,10,3,2,3,10,3,2,3,10,3,2,3,10,3,2,3,10,3,2,3,10,3,2,3,10,3,2,3,10,3,2,3,10,3,2,3,10,3,2,3,10,3,2,3,10,3,2,3,10,3,2,3,10,3,2,3,10,3,2,3,10,3,2,3,10,3,2,3,10,3,2,3,10,3,2,3,10,3,2,3,10,3,2,3,10,3,2,3,10,3,...
// Bits with wrong byte ordering // // Copyright 2019 Democosm // // 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 cond...
db 0xd1, 0xf6 ; shl Ev, 0x1 db 0xd0, 0xf6 ; shl Eb, 0x1 db 0xd9, 0xd9 ; fstp1 st1 db 0xdc, 0xd0 ; fcom2 db 0xdc, 0xd8 ; fcomp3 db 0xdd, 0xc8 ; fxch4 db 0xde, 0xd1 ; fcomp5 db 0xdf, 0xc3 ; fxch7 db 0xdf, 0xd0 ; fstp8 db 0xdf, 0xd8 ; fstp9 db 0x83, 0xe2, 0xdf ; and edx, 0xffffffdf (sign-extension) ...
; A222471: Decimal expansion of the negative of the limit of the continued fraction 1/(1-2/(2-2/(3-2/(4-... in terms of Bessel functions. ; Submitted by Christian Krause ; 1,4,3,9,7,4,9,3,2,1,8,7,0,2,3,2,8,0,5,8,9,5,7,0,6,9,5,7,4,1,1,2,2,7,4,2,5,1,5,2,7,3,3,7,6,2,2,3,8,1,1,6,1,7,5,2,8,1,4,5,3,0,7,8,8,7,7,2,3,6,1,6,8,1,...
; A329926: Beatty sequence for (8+sqrt(41))/5. ; 3,6,9,12,15,18,21,24,27,30,33,36,40,43,46,49,52,55,58,61,64,67,70,73,77,80,83,86,89,92,95,98,101,104,107,110,113,117,120,123,126,129,132,135,138,141,144,147,150,154,157,160,163,166,169,172,175,178,181 mov $4,$0 add $0,1 mov $3,$0 mul $3,2 div $3,25 mov $1,$3 add $1,3 mo...
format MZ include 'loader.inc' ;fs= 0-based segment ;ds=es-data segnt cs=code segment gs=wolny segment _code use32 code32: mov eax,0900h ;wypisz komunikat lea edx,[TMessage] ;zaladuj adres do dx int 21h ;przerwanie dosa mov edx,FileName ;adres bufora na nazwe mov byte[e...
// Copyright 2013 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 "ui/ozone/ime/fake_input_method_context_ozone.h" namespace ui { FakeInputMethodContextOzone::FakeInputMethodContextOzone() { } FakeInputMethod...
; A007851: Number of elements w of the Weyl group D(n) such that the roots sent negative by w span an Abelian subalgebra of the Lie algebra. ; 1,4,14,48,167,593,2144,7864,29171,109173,411501,1560089,5943199,22732739,87253604,335897864,1296447899,5015206349,19439895089,75487384829,293595204239,1143532045499,445977497744...
; A246472: Number of order-preserving (monotone) functions from the power set of 1 = {0} to the power set of n = {0, ..., n-1}. ; 1,3,9,30,109,418,1650,6604,26589,107274,432934,1746484,7040626,28362324,114175812,459344920,1847008989,7423262554,29822432862,119766845860,480833598054,1929896415484,7744047734652,3106766511...
#include "renderer.h" #include "board.h" #include "piece.h" namespace colours { constexpr std::uint32_t lastMoveLight = 0xCED287; constexpr std::uint32_t lastMoveDark = 0xA9A356; constexpr std::uint32_t regularLight = 0xECDBB9; constexpr std::uint32_t regularDark = 0xAE8968; } SDL_Texture *Renderer::r...
#include <bits/stdc++.h> using namespace std; int main () { int K; cin >> K; vector<int> v(K); for (int i = 0; i < K; ++i) cin >> v[i]; vector<tuple<int, int, int>> dp(K); dp.front() = make_tuple(v.front(), 0, 0); int res = v.front(); for (int i = 1; i < K; ++i) { auto [s, l,...
#include <iostream> #include <vector> #include <string> using namespace std; /** * 2020-04-14 * Veronica */ class Solution { public: string stringShift(string s, vector<vector<int>>& shift) { int shifts = 0; for (auto a : shift) { if (a[0] == 0) shifts -= a[1]; else shifts += a[1]; } if (shifts ...
_forktest: file format elf32-i386 Disassembly of section .text: 00000000 <printf>: #define N 1000 void printf(int fd, char *s, ...) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 ec 18 sub $0x18,%esp write(fd, s, strlen(s)); 6: 8b 45 0c ...
; ; Getsprite - Picks up a sprite from display with the given size ; by Stefano Bodrato - Jan 2001 ; Apr 2002 - Fixed. (Long time, I know...) ; ; The original putsprite code is by Patrick Davidson (TI 85) ; ; Generic version (just a bit slow) ; ; ; $Id: getsprite.asm $ ; IF !__CPU_INTEL__ & !__CPU_GBZ80__ SECTIO...
SECTION bss_crt PUBLIC __math_lhs PUBLIC __math_rhs PUBLIC __math_result PUBLIC __math_block1 PUBLIC __math_block2 PUBLIC __math_block3 __math_block1: __math_lhs: defs 4 __math_block2: __math_rhs: defs 4 __math_block3: __math_result: defs 4
%define BE(a) ( ((((a)>>24)&0xFF) << 0) + ((((a)>>16)&0xFF) << 8) + ((((a)>>8)&0xFF) << 16) + ((((a)>>0)&0xFF) << 24) ) ftyp_start: dd BE(ftyp_end - ftyp_start) db "ftyp" db "isom" dd BE(0x00) db "mif1", "miaf" ftyp_end: ;"FreeSpaceBox as defined in ISO/IEC 14496-12 may be present as permitted by that specificatio...
// 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 "core/fetch/MockResourceClients.h" #include "core/fetch/ImageResource.h" #include "testing/gtest/include/gtest/gtest.h" namespace blink { Mock...
; A041084: Numerators of continued fraction convergents to sqrt(50). ; Submitted by Jon Maiga ; 7,99,1393,19601,275807,3880899,54608393,768398401,10812186007,152139002499,2140758220993,30122754096401,423859315570607,5964153172084899,83922003724759193,1180872205318713601,16616132878186749607,233806732499933208099,328991...
; $Id: bit_noise.asm $ ; ; 1 bit sound functions ; ; void bit_noise(int duration, int period); ; SECTION code_clib PUBLIC bit_noise PUBLIC _bit_noise EXTERN noise EXTERN bit_open_di EXTERN bit_close_ei ; ; Stub by Stefano Bodrato - 8/10/2001 ; .bit_noise ._bit_noise call bit_open...
#pragma once #include "Ghost.hpp" namespace Pacenstein { /** * The subclass for Inky. * * Inky is a subclass of Ghost, Inky is the blue ghost. */ class Inky : public Ghost { public: /** * Constructor of the Inky ghost class. * * \param x The x positio...
/*******************************<GINKGO LICENSE>****************************** Copyright (c) 2017-2022, the Ginkgo authors 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 co...
// // context.cpp // ~~~~~~~~~~~ // // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff 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) // // Disable autolinking for unit tests. #if !d...
; A120136: a(1)=7; a(n)=floor((14+sum(a(1) to a(n-1)))/2). ; 7,10,15,23,34,51,77,115,173,259,389,583,875,1312,1968,2952,4428,6642,9963,14945,22417,33626,50439,75658,113487,170231,255346,383019,574529,861793,1292690,1939035,2908552,4362828,6544242,9816363,14724545,22086817,33130226,49695339,74543008,111814512,167721768,...
/**************************************************************************/ /* */ /* WWIV Version 5.x */ /* Copyright (C)2014-2020, WWIV Software Services */ /* ...
_echo: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "stat.h" #include "user.h" int main(int argc, char *argv[]) { 0: 8d 4c 24 04 lea 0x4(%esp),%ecx 4: 83 e4 f0 and $0xfffffff0,%esp 7: ff 71 fc pushl -0x4(%ecx) a: 55 ...
/************************************************************** * * 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 y...
#pragma once #include <utility> using SpellID = int; // Pair of ending tick and Spell using SpellCast = std::pair<int, SpellID>; class Spell { public: Spell(SpellID l_id, float l_duration) : m_id(l_id), m_duration(l_duration) {} SpellID GetSpellID() { return m_id; } float GetDuration() { return m_duration...
; Split TOS into 4 bytes with most significant byte at TOS. ; S: a -- e d c b $CODE 'SPLIT-8',$SPLIT8 POPDS EAX XOR ECX,ECX MOV CL,AL PUSH ECX MOV CL,AH PUSH ...
;----------------------------------------------------------; ; BOS kernel Christoffer Bubach, 2003-2005. ; ;----------------------------------------------------------; ; ; ; Goes back to realmode to do an INT. ; ; ...
; These macrodefinitions are copied from linux sources ; Linux is written in C, so the definitions looked a bit ; different there. ; We could have just looked up their values and use ; them directly inright places ; However it would have made the code much less legible %define O_RDONLY 0 %define PROT_READ 0x1 %define ...
; A280321: Number of 2 X 2 matrices with all elements in {0,..,n} having determinant = n*permanent. ; 1,12,25,49,81,121,169,225,289,361,441,529,625,729,841,961,1089,1225,1369,1521,1681,1849,2025,2209,2401,2601,2809,3025,3249,3481,3721,3969,4225,4489,4761,5041,5329,5625,5929,6241,6561,6889,7225,7569,7921,8281,8649,9025,...
; A321825: a(n) = Sum_{d|n, d==1 (mod 4)} d^9 - Sum_{d|n, d==3 (mod 4)} d^9. ; Submitted by Jon Maiga ; 1,1,-19682,1,1953126,-19682,-40353606,1,387400807,1953126,-2357947690,-19682,10604499374,-40353606,-38441425932,1,118587876498,387400807,-322687697778,1953126,794239673292,-2357947690,-1801152661462,-19682,3814699218...
; Title: Windows Bind Stager (NX, IPv6) ; Platforms: Windows NT 4.0, Windows 2000, Windows XP, Windows 2003 ; Author: Rapid7, Inc [BITS 32] global _start _start: call LKernel32Base LGetProcAddress: push ebx push ebp push esi push edi mov ebp, [esp + 24] mov eax, [ebp + 0x3...
// Copyright (c) 2017 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/third_party/quiche/src/quic/quartc/quartc_factory.h" #include <utility> #include "net/third_party/quiche/src/quic/core/crypto/quic_ran...
_cat: file format elf32-i386 Disassembly of section .text: 00000000 <cat>: char buf[512]; void cat(int fd) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 56 push %esi 4: 53 push %ebx 5: 8b 75 08 mov 0...
; A158696: a(n) = Hermite(n, 17). ; Submitted by Jon Maiga ; 1,34,1154,39100,1322476,44651384,1504922296,50631541456,1700403497360,57003614246944,1907515621443616,63715458844144064,2124360257029138624,70699077726731255680,2348535276026105088896,77870625208539097863424,2577145198809546174689536,8513107675285131880781465...
%include "io.inc" section .data num dd 100 section .text global CMAIN CMAIN: mov ebp, esp; for correct debugging ;write your code here xor eax, eax mov ecx, [num] add_to_sum: ;push ecx ;imul ecx, ecx ;add eax, ecx ;pop ecx push ecx push eax mov eax, ecx mul ecx...
db DEX_SEAKING ; pokedex id db 80 ; base hp db 92 ; base attack db 65 ; base defense db 68 ; base speed db 80 ; base special db WATER ; species type 1 db WATER ; species type 2 db 60 ; catch rate db 170 ; base exp yield INCBIN "pic/ymon/seaking.pic",0,1 ; 77, sprite dimensions dw SeakingPicFront dw SeakingPicBack ; att...
; General IO utility: fetch multiple bytes V2.00  1988 Tony Tebby section gen_util xdef gu_fmul xdef gu_flin xref gu_iow include 'dev8_keys_qdos_io' ;+++ ; This routine does simple fetch line, using d1, preserving a1 ; ; d1 cr buffer size / length of l...
; A078312: Greatest prime factor of n*rad(n)+1, where rad=A007947 (squarefree kernel). ; Submitted by Jamie Morken(s1) ; 2,5,5,3,13,37,5,17,7,101,61,73,17,197,113,11,29,109,181,67,17,97,53,29,7,677,41,131,421,53,37,13,109,89,613,31,137,17,761,401,29,353,37,19,13,73,17,17,43,167,1301,41,281,13,89,157,13,673,1741,1801,18...
; A099976: Bisection of A000984. ; 2,20,252,3432,48620,705432,10400600,155117520,2333606220,35345263800,538257874440,8233430727600,126410606437752,1946939425648112,30067266499541040,465428353255261088,7219428434016265740,112186277816662845432,1746130564335626209832,27217014869199032015600,424784580848791721628840,66375...
; SPIR-V ; Version: 1.0 ; Generator: Khronos Glslang Reference Front End; 10 ; Bound: 105 ; Schema: 0 OpCapability Shader %1 = OpExtInstImport "GLSL.std.450" OpMemoryModel Logical GLSL450 OpEntryPoint Fragment %4 "main" %89 OpExecutionMode %4 OriginU...
; Original address was $BB45 ; Unused "Dark" hammer bro fight area .word $0000 ; Alternate level layout .word $0000 ; Alternate object layout .byte LEVEL1_SIZE_01 | LEVEL1_YSTART_170 .byte LEVEL2_BGPAL_00 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18 .byte LEVEL3_TILESET_00 | LEVEL3_VSCROLL_LOCKLOW .byte LEVEL4_BGBANK_IN...
_kill: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "stat.h" #include "user.h" int main(int argc, char **argv) { 0: 8d 4c 24 04 lea 0x4(%esp),%ecx 4: 83 e4 f0 and $0xfffffff0,%esp 7: ff 71 fc pushl -0x4(%ecx) a: 55 ...
// prepare-data2.cc -- converts Michael Collins new file into my training format // // Mark Johnson, 8th October 2003 const char usage[] = "Usage: prepare-data penn-wsj-regex nsentences collins-tree-command collins-score-command\n" "\n" "where:\n" " penn-wsj-regex is a regular expression that expands to the names of\...
; A033940: a(n) = 10^n mod 7. ; 1,3,2,6,4,5,1,3,2,6,4,5,1,3,2,6,4,5,1,3,2,6,4,5,1,3,2,6,4,5,1,3,2,6,4,5,1,3,2,6,4,5,1,3,2,6,4,5,1,3,2,6,4,5,1,3,2,6,4,5,1,3,2,6,4,5,1,3,2,6,4,5,1,3,2,6,4,5,1,3,2,6,4,5,1,3,2,6,4,5,1,3,2,6,4,5,1,3,2,6 mov $1,4 mov $2,$0 lpb $2 mul $1,3 mod $1,28 sub $2,1 lpe sub $1,4 div $1,4 add $...
db WEEPINBELL ; 070 db 65, 90, 50, 55, 85, 45 ; hp atk def spd sat sdf db GRASS, POISON ; type db 120 ; catch rate db 151 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F50 ; gender ratio db 100 ; unknown 1 db 20 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/weepinbell/front.d...
;/* ; * Microsoft Confidential ; * Copyright (C) Microsoft Corporation 1991 ; * All Rights Reserved. ; */ ************************************************************ ************************************************************ ** ** ** THIS FILE I...
// 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) // // Copyright (C) 2010,2017 Vicente J. Botet Escriba #ifndef JASEL_FUNDAMENTAL_V3_STRONG_STRONG_TYPE_HPP #define JASEL_FUNDAMENTAL_V3_STRONG_STRONG_TYPE_HPP #in...
; A135711: Minimal perimeter of a polyhex with n cells. ; 6,10,12,14,16,18,18,20,22,22,24,24,26,26,28,28,30,30,30,32,32,34,34,34,36,36,36,38,38,38,40,40,40,42,42,42,42,44,44,44,46,46,46,46,48,48,48,48,50,50,50,50,52,52,52,52,54,54,54,54,54,56,56,56,56,58,58,58,58,58,60,60 mul $0,12 add $0,4 seq $0,196 ; Integer part o...
D7_Header: sHeaderInit ; Z80 offset is $DE73 sHeaderPatch D7_Patches sHeaderTick $01 sHeaderCh $02 sHeaderSFX $80, $05, D7_FM5, $90, $00 sHeaderSFX $80, $C0, D7_PSG3, $00, $00 D7_FM5: sPatFM $00 ssModZ80 $01, $01, $C5, $1A dc.b nF7, $07 sStop D7_PSG3: sVolEnvPSG v07 dc.b nRst, $07 ssModZ80 $01, $02...
; ; ZX Spectrum OPUS DISCOVERY specific routines ; ; Stefano Bodrato - Jun. 2006 ; ; ; - init the jump table ; ; $Id: opus_rommap.asm,v 1.5 2016-06-27 19:16:34 dom Exp $ ; SECTION code_clib PUBLIC opus_rommap PUBLIC _opus_rommap PUBLIC P_DEVICE PUBLIC P_TESTCH opus_rommap: _opus_rommap: ; start creat...
IFDEF recursively_included ; this part is included from this same file at the end of regular part DEVICE ZXSPECTRUMNEXT ORG $F000 ; these should be page 63 set by non-included code IncludedLabel: rst $00 .localLabel1: rst $08 Including2ndFile: INCLUDE "...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %rax push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x18b72, %rax nop nop nop cmp $12716, %rsi vmovups (%rax), %ymm6 vextracti128 $0, %ymm6, %xmm6 vpextrq $0, %xmm6, %rcx nop nop nop nop nop xor $50459, %rcx lea addresses_A_ht+...
// /micNfs/netgen/bin/ngscxx test_matrix_mul.cpp -lngstd -lsolve -lngcomp -lngfem -linterface -limf -lsvml -lirng -lintlc -lmkl_rt -L/micNfs/intel/mkl/lib/mic/ #include <solve.hpp> #include "mysparsematrix.hpp" using namespace ngsolve; int main( int argc, char *argv[] ) { if(argc<2) { cout << "usage: " <<...
; A062026: a(n) = n(n+1)(n^2 -3n +6)/4 ; 0,2,6,18,50,120,252,476,828,1350,2090,3102,4446,6188,8400,11160,14552,18666,23598,29450,36330,44352,53636,64308,76500,90350,106002,123606,143318,165300,189720,216752,246576,279378,315350,354690,397602,444296,494988,549900,609260,673302,742266,816398,895950,981180,1072352,1169736...
/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors ...
; A003630: Inert rational primes in Q[sqrt(3)]. ; Submitted by Jamie Morken(w4) ; 5,7,17,19,29,31,41,43,53,67,79,89,101,103,113,127,137,139,149,151,163,173,197,199,211,223,233,257,269,271,281,283,293,307,317,331,353,367,379,389,401,439,449,461,463,487,499,509,521,523,547,557,569,571,593,607,617,619,631,641,643,653,677,...
#include "aabb.hpp" namespace vkg { auto AABB::transform(glm::mat4 m) const -> AABB { auto _min = glm::vec3(m[3]); auto _max = _min; auto p = glm::vec3(m[0]); auto v0 = p * min.x; auto v1 = p * max.x; _min += glm::min(v0, v1); _max += glm::max(v0, v1); p = glm::vec3(m[1]); v0 = p * min.y; v1 = p ...
#ifndef AVO_MATH_OPERATIONS_HPP_BJORN_SUNDIN_JUNE_2021 #define AVO_MATH_OPERATIONS_HPP_BJORN_SUNDIN_JUNE_2021 #include "../util/concepts.hpp" #include <algorithm> #include <cmath> #include <cstring> namespace avo::math { /* Returns 1 if the number is positive, 0 if it is 0 and -1 if it is negative. */ template<uti...
// See the file "COPYING" in the main distribution directory for copyright. #include "Tag.h" #include "Manager.h" const logging::Tag logging::Tag::Error; logging::Tag::Tag(type_t type, subtype_t subtype) : zeek::Tag(log_mgr->GetTagType(), type, subtype) { } logging::Tag& logging::Tag::operator=(const logging::Ta...
#include "test_signal.h" #include "test_item_id.h" #include "test_ranges.h" #include "test_lines.h" #include "test_grid.h" #include <QtTest/QtTest> int main(int argc, char* argv[]) { QCoreApplication app(argc, argv); int result = 0; QList<const QMetaObject*> tests; // register tests tests.appen...
# @created by Le Nhut Nam # @ vn.hcmus.fit.sv18120061.computerarchitecture.mips # Nhap vao mot chuoi, xuat ra chuoi dao nguoc .data msg1: .asciiz "Nhap vao mot chuoi: " msg2: .asciiz "Chuoi nguoc la: " str: .space 256 newLine: .asciiz "\n" .text # Xuat msg1 li $v0, 4 la $a0, msg1 syscall # Nhap chuoi li $v0, ...
/* Copyright (c) 2019, isaponsoft (Isao Shibuya) All rights reserved. * * Use of this source code is governed by a BSD-style license that * * can be found in the LICENSE file. */ #ifndef __libamtrs__unixdrv__chrono__datetime__hpp #define __libamtrs__unixdrv__chrono__datetime__hpp ...
; A100803: A100802(m) where A100802(m) > A100802(m-1). ; 1,3,3,7,3,7,3,7,11,3,11,7,3,7,11,11,3,11,7,3,11,7,11,15,7,3,7,3,7,27,7,11,3,19,3,11,11,7,11,11,3,19,3,7,3,23,23,7,3,7,11,3,19,11,11,11,3,11,7,3,19,27,7,3,7,27,11,19,3,7,11,15,11,11,7,11,15,7,15,19,3,19,3,11 mov $30,$0 mov $32,2 lpb $32 clr $0,30 mov $0,$30 ...
/* Various utility definitions for libpqxx. * * DO NOT INCLUDE THIS FILE DIRECTLY; include pqxx/util instead. * * Copyright (c) 2000-2021, Jeroen T. Vermeulen. * * See COPYING for copyright license. If you did not receive a file called * COPYING with this source code, please notify the distributor of this * mi...
; ; DalSoRiR2 YMF278B OPL4 ; DalSoRiR2_FM_BASE_PORT: equ 0C4H DalSoRiR2_WAVE_BASE_PORT: equ 07EH DalSoRiR2_CONFIG: equ 6700H DalSoRiR2_C0_ENABLE: equ 01H DalSoRiR2_C4_ENABLE: equ 02H DalSoRiR2_YRW801_DISABLE: equ 20H DalSoRiR2: MACRO ?fmbase = DalSoRiR2_FM_BASE_PORT this: super: OPL4 ?fmbase, DalSoRiR2_WAVE_BASE_PO...
/** \file \author Shin'ichiro Nakaoka */ #include "JointSliderView.h" #include "BodyItem.h" #include "BodyBar.h" #include "LinkSelectionView.h" #include <cnoid/Body> #include <cnoid/Link> #include <cnoid/Archive> #include <cnoid/EigenUtil> #include <cnoid/Buttons> #include <cnoid/SpinBox> #include <cnoid/Slider> #...
// // snarls.cpp // // Unit tests for SnarlManager and related functions // #include <stdio.h> #include <iostream> #include <set> #include "json2pb.h" #include "vg.pb.h" #include "catch.hpp" #include "snarls.hpp" #include "genotypekit.hpp" namespace vg { namespace unittest { TEST_CASE( "NetGraph can all...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Copyright(c) 2011-2018 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...
ARCH_MIPS EQU 0 ARCH_PPC EQU 0 HAVE_MIPS32 EQU 0 HAVE_DSPR2 EQU 0 HAVE_MSA EQU 0 HAVE_MIPS64 EQU 0 HAVE_VSX EQU 0 HAVE_MMI EQU 0 HAVE_VPX_PORTS EQU 1 HAVE_PTHREAD_H EQU 1 HAVE_UNISTD_H EQU 1 CONFIG_DEPENDENCY_TRACKING EQU 1 CONFIG_EXTERNAL_BUILD EQU 0 CONFIG_INSTALL_DOCS EQU 0 CONFIG_INSTALL_BINS EQU 1 CONFIG_INSTALL_...
.intel_syntax noprefix .section .data name: .ascii "have fun\n" .section .text .globl _start _start: mov edx,9 lea ecx, [name] /*This is for reading data section variables. Or we can use: mov ecx, OFFSET FLAT:name*/ /*mov dword ptr gs:[0x68], ecx pcmpistri xmm1, xmm2, 0x2*/ ...
SECTION code_clib PUBLIC im1_init PUBLIC _im1_init EXTERN asm_im1_handler EXTERN l_push_di EXTERN l_pop_ei im1_init: _im1_init: call l_push_di ld hl,asm_im1_handler ld ($8013),hl ld a,195 ld ($8012),a call l_pop_ei ret
.byte $01 ; Unknown purpose .byte OBJ_BIGREDPIRANHA, $0C, $16 .byte OBJ_BIGGOOMBA, $10, $17 .byte OBJ_BIGREDTROOPA, $18, $15 .byte OBJ_VENUSFIRETRAP, $26, $07 .byte OBJ_BIGGREENHOPPER, $30, $17 .byte OBJ_BIGGOOMBA, $42, $0F .byte OBJ_BIGGREENHOPPER, $46, $11 .byte OBJ_BIGREDTROOPA, $58, $13 .byte OBJ_BIGREDT...
SFX_Cry21_3_Ch4: dutycycle 27 unknownsfx0x20 3, 243, 100, 5 unknownsfx0x20 2, 226, 68, 5 unknownsfx0x20 5, 209, 34, 5 unknownsfx0x20 2, 178, 132, 4 unknownsfx0x20 8, 209, 162, 4 unknownsfx0x20 3, 243, 36, 5 unknownsfx0x20 4, 228, 228, 4 unknownsfx0x20 8, 209, 2, 5 endchannel SFX_Cry21_3_Ch5: dutycycle 204 ...
MOVED_ADULT_KING_ZORA: .byte 0x00 .align 4 ; Checks if King Zora should spawn as moved or not ; Returns t1 = 1 if true, else 0 kz_moved_check: la t0, SAVE_CONTEXT lhu t1, 0x0EDA(t0) andi t1, t1, 0x0008 ; "Moved King Zora" Flag bnez t1, @@return_true ; if the flag i...
// stdafx.cpp : source file that includes just the standard includes // C_Save_FileNamePattern.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h" // TODO: reference any additional headers you need in STDAFX.H // and not in this file
db 0 ; species ID placeholder db 75, 125, 70, 115, 125, 70 ; hp atk def spd sat sdf db PSYCHIC, PSYCHIC ; type db 3 ; catch rate db 255 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_UNKNOWN ; gender ratio db 100 ; unknown 1 db 80 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/aze...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: netwareSpecific.asm AUTHOR: Chung Liu, Oct 14, 1992 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date ...
Music_WildPokemonVictory: dbw $80, Music_WildPokemonVictory_Ch1 dbw $01, Music_WildPokemonVictory_Ch2 dbw $02, Music_WildPokemonVictory_Ch3 Music_WildPokemonVictory_Ch1: tempo 104 volume $77 notetype $C, $A2 dutycycle 2 octave 3 note B_, 1 note A_, 1 note G#, 1 note F#, 1 note E_, 2 octave 4 note D#, 2 ...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Grazelle ; High performance, hardware-optimized graph processing engine. ; Targets a single machine with one or more x86-based sockets. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Authored b...
SECTION code_clib SECTION code_fp_math48 PUBLIC _exp EXTERN cm48_sdcciy_exp defc _exp = cm48_sdcciy_exp
// Copyright (c) 2020 udv. All rights reserved. #include "real/input.hpp" namespace Real { Real::Scope<Input> Input::Make() { Real::Scope<Input> input; #ifdef REAL_PLATFORM_WINDOWS input = Real::MakeScope<Platform::Input>(); #endif return input; } }
sb $6,1($0) sllv $5,$4,$3 sll $6,$6,14 xori $5,$5,39580 xori $3,$4,42592 or $5,$5,$3 sra $3,$1,8 addu $4,$4,$3 sw $3,16($0) lw $4,4($0) addu $0,$3,$3 sra $5,$1,21 nor $3,$1,$3 xor $0,$1,$3 lw $3,0($0) sllv $0,$3,$3 lh $4,0($0) xori $3,$3,22876 sltiu $4,$3,-26878 lw $5,0($0) nor $2,$2,$3 or $1,$3,$3 subu $6,$6,$3 ori $6...
// Copyright 2020 the V8 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. #include "src/execution/isolate.h" #include "src/wasm/streaming-decoder.h" #include "src/wasm/wasm-engine.h" #include "src/wasm/wasm-objects-inl.h" #inc...
VermilionCity_Script: call EnableAutoTextBoxDrawing ld hl, wCurrentMapScriptFlags bit 6, [hl] res 6, [hl] push hl call nz, .initCityScript pop hl bit 5, [hl] res 5, [hl] call nz, .setFirstLockTrashCanIndex ld hl, VermilionCity_ScriptPointers ld a, [wVermilionCityCurScript] jp CallFunctionInTable .setFirst...
; A091860: a(1)=1, a(n)=sum(i=1,n-1,b(i)) where b(i)=0 if a(i) and a(n-i) are both even, b(i)=1 otherwise. ; Submitted by Jon Maiga ; 1,1,2,3,4,4,6,5,6,6,8,6,8,8,8,7,8,8,10,8,10,10,10,8,10,10,10,10,10,10,10,9,10,10,12,10,12,12,12,10,12,12,12,12,12,12,12,10,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,11,12,12,14,12,14,...
; ; SAM Coupe C Library ; ; getkey() Wait for keypress ; ; We will corrupt any register ; ; Stefano Bodrato - Mar.2001 ; ; ; $Id: fgetc_cons.asm,v 1.4 2016-06-12 17:32:01 dom Exp $ ; SECTION code_clib PUBLIC fgetc_cons PUBLIC _fgetc_cons .fgetc_cons ._fgetc_cons call $016C IF STANDA...