text stringlengths 1 1.05M |
|---|
; A337929: Numbers w such that (F(2*n-1)^2, -F(2*n)^2, w) are primitive solutions of the Diophantine equation 2*x^3 + 2*y^3 + z^3 = 1, where F(n) is the n-th Fibonacci number (A000045).
; 1,11,79,545,3739,25631,175681,1204139,8253295,56568929,387729211,2657535551,18215019649,124847601995,855718194319,5865179758241,4020... |
// Copyright (C) 2012-2018 Internet Systems Consortium, Inc. ("ISC")
//
// 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/.
/// @file dhcp6_log.cc
/// Contains the logge... |
#include "SerialControlledRobot.h"
#include "JointSensors.h"
#include <KrisLibrary/utils/AnyCollection.h>
SerialControlledRobot::SerialControlledRobot(const char* _host,double timeout)
:host(_host),robotTime(0),timeStep(0),numOverruns(0),stopFlag(false),controllerMutex(NULL)
{
controllerPipe = new SocketPipeWorker... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
+---------... |
//////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga 2005-2013.
//
// 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)
//
// See http://www.boost.org/libs/c... |
;program to turn an led on and off(with some delay) which is interfaced to pin P0.2
org 0000h
;pins are configured as output by default
clr p0.2 ;led lights up: 8051 is better at sinking the current than sourcing it
acall delay ;call delay routine
setting:setb p0.2 ;led turned off
sjmp finish
de... |
; //////////////////////////////////////////////////////////////////////////
; > crc32.asm 2.0 12:53 PM 8/15/2001 CRC-32 Library <
; \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;
; Source code to the CRC-32 library.
;
; Copyright (c) 1997, 1999 G. Adam Stanislav
; A... |
; A003878: n^4+(9/2)*n^3+n^2-(9/2)*n+1.
; Submitted by Jon Maiga
; 1,3,48,199,543,1191,2278,3963,6429,9883,14556,20703,28603,38559,50898,65971,84153,105843,131464,161463,196311,236503,282558,335019,394453,461451,536628,620623,714099,817743
mov $1,1
sub $1,$0
sub $1,$0
add $0,3
add $1,1
bin $1,2
add $1,1
mul $1,$0
add ... |
;
; ANSI Video handling for the Jupiter ACE
;
; Stefano Bodrato - Feb. 2001
;
; Handles colors referring to current PAPER/INK/etc. settings
;
; Scrollup
;
;
; $Id: f_ansi_scrollup.asm,v 1.4 2015/01/19 01:33:18 pauloscustodio Exp $
;
PUBLIC ansi_SCROLLUP
.ansi_SCROLLUP
ld hl,$2420
ld de,$2400
ld bc,736
ldir
l... |
; A044801: Numbers n such that string 8,8 occurs in the base 10 representation of n but not of n+1.
; 88,188,288,388,488,588,688,788,889,988,1088,1188,1288,1388,1488,1588,1688,1788,1889,1988,2088,2188,2288,2388,2488,2588,2688,2788,2889,2988,3088,3188,3288,3388,3488,3588,3688,3788,3889
mov $2,$0
add $0,2
lpb $0
trn $... |
SECTION .text
GLOBAL square_p434
square_p434:
sub rsp, 0x620 ; last 0x30 (6) for Caller - save regs
mov [ rsp + 0x5f0 ], rbx; saving to stack
mov [ rsp + 0x5f8 ], rbp; saving to stack
mov [ rsp + 0x600 ], r12; saving to stack
mov [ rsp + 0x608 ], r13; saving to stack
mov [ rsp + 0x610 ], r14; saving to stack
mov [ rs... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r13
push %r14
push %r15
push %r8
push %rcx
push %rdx
// Store
lea addresses_WT+0x13280, %r13
add %r8, %r8
mov $0x5152535455565758, %r10
movq %r10, (%r13)
add %r15, %r15
// Store
lea addresses_A+0x1533, %rdx
nop
... |
; A111567: Binomial transform of A048654: generalized Pellian with second term equal to 4.
; 1,5,18,62,212,724,2472,8440,28816,98384,335904,1146848,3915584,13368640,45643392,155836288,532058368,1816560896,6202126848,21175385600,72297288704,246838383616,842758957056,2877359060992,9823918329856,33540955197440,11451598413... |
;*****************************************************************************
;* MMX/SSE2/AVX-optimized 10-bit H.264 iDCT code
;*****************************************************************************
;* Copyright (C) 2005-2011 x264 project
;*
;* Authors: Daniel Kang <daniel.d.kang@gmail.com>
;*
;* This file is p... |
; A093485: a(n) = (27*n^2 + 9*n + 2)/2.
; 1,19,64,136,235,361,514,694,901,1135,1396,1684,1999,2341,2710,3106,3529,3979,4456,4960,5491,6049,6634,7246,7885,8551,9244,9964,10711,11485,12286,13114,13969,14851,15760,16696,17659,18649,19666,20710,21781,22879,24004,25156,26335,27541,28774,30034,31321,32635,33976,35344,36739,3... |
LDA 00A1H
CPI 00H
JZ FAILURE ;Divide by zero
MOV B,A
LDA 00A0H
MVI C,00H
LOOP: CMP B
JC SUCCESS
SUB B
INR C
JMP LOOP
SUCCESS: STA 00B1H
MOV A,C
STA 00B0H
FAILURE: HLT |
; A156635: 144*n^2 - n.
; 143,574,1293,2300,3595,5178,7049,9208,11655,14390,17413,20724,24323,28210,32385,36848,41599,46638,51965,57580,63483,69674,76153,82920,89975,97318,104949,112868,121075,129570,138353,147424,156783,166430,176365,186588,197099,207898,218985,230360,242023,253974,266213,278740,291555,304658,318049,3... |
Function17c000:
call DisableLCD
ld hl, vTiles2
ld bc, $31 tiles
xor a
call ByteFill
call LoadStandardFont
call LoadFontsExtra
ld hl, HaveWantMap
decoord 0, 0
bccoord 0, 0, wAttrMap
ld a, SCREEN_HEIGHT
.y
push af
ld a, SCREEN_WIDTH
push hl
.x
push af
ld a, [hli]
ld [de], a
inc de
ld a, [hli]
ld ... |
; A047665: Expansion of (1/sqrt(1-6*x+x^2)-1/(1-x))/2.
; Submitted by Jamie Morken(w4)
; 0,1,6,31,160,841,4494,24319,132864,731281,4048726,22523359,125797984,704966809,3961924126,22321190911,126027618304,712917362209,4039658528934,22924714957471,130271906898720,741188107113961,4221707080583086,24070622500965631,1373691... |
dnl mpn_hamdist
dnl Copyright 2010 The Code Cavern
dnl This file is part of the MPIR Library.
dnl The MPIR Library is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU Lesser General Public License as published
dnl by the Free Software Foundation; either version 2.1 of the ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r8
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x159aa, %rsi
lea addresses_normal_ht+0x93dc, %rdi
nop
nop
nop
cmp $14485, %rbp
mov $55, %rcx
rep movsw
nop
nop
nop
nop
nop
inc %rbx
lea addresses_A_ht+0x1d26a, %r14
nop
nop
nop
nop
nop
c... |
GLOBAL _cli
GLOBAL _sti
GLOBAL _hlt
GLOBAL _picMasterMask
GLOBAL _picSlaveMask
GLOBAL _haltCpu
GLOBAL _irq00Handler
GLOBAL _irq01Handler
GLOBAL _exception0Handler
GLOBAL _exception1Handler
GLOBAL _systemCallHandler
GLOBAL _changeProcess
GLOBAL _contextSwitchProcess
GLOBAL _contextSwitchInterrupt
EXTERN switchProce... |
###############################################################################
# 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... |
.MODEL SMALL
.DATA
PROMPT_1 DB 'Enter the First digit : $'
NUM_1 DB ?
NUM_2 DB ?
NUM_3 DB ?
V1 DB ?
V2 DB ?
NL DB ' ', 0DH,0AH,'$'
VALUE_1 DB ?
.CODE
MAIN PROC
MOV AX,@DATA
MOV DX,AX
... |
// Copyright (c) 2014-2015, Pacific Biosciences of California, Inc.
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted (subject to the limitations in the
// disclaimer below) provided that the following conditions are met:
//
// * Redistri... |
%define nop8 db 0x0F, 0x1F, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00
%macro cache_line 0
nop8
nop8
nop8
nop8
nop8
nop8
nop8
nop8
%endmacro
GLOBAL foo
ALIGN 256
foo:
; This number of nops was adjusted in a way to align hot loops in both cases at a 64 bytes boundary
; Hot loops should have the same alignment, otherw... |
SFX_Press_AB_2_Ch4:
duty 2
squarenote 0, 9, 1, 1984
squarenote 0, 8, 1, 2000
squarenote 0, 9, 1, 1984
squarenote 12, 10, 1, 2000
endchannel
|
; A017192: a(n) = (9*n + 2)^8.
; 256,214358881,25600000000,500246412961,4347792138496,23811286661761,96717311574016,318644812890625,899194740203776,2252292232139041,5132188731375616,10828567056280801,21435888100000000,40213853471634241,72057594037927936,124097929967680321,206453783524884736,333160561500390625,523300059... |
;
; ZX Spectrum OPUS DISCOVERY specific routines
;
; Stefano Bodrato - Jun. 2006
;
; void opus_lptwrite (unsigned char databyte);
;
; $Id: opus_lptwrite.asm,v 1.5 2016/06/27 19:16:34 dom Exp $
;
SECTION code_clib
PUBLIC opus_lptwrite
PUBLIC _opus_lptwrite
EXTERN opus_rommap
EXTERN P_DEVICE
opus_lptw... |
/* Copyright 2017 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... |
//===--- SemaDeclAttr.cpp - Declaration Attribute Handling ----------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
// And has the following additional copyright:
//
// (C) Cop... |
;**************************************************
; Author: Henry Allard
; c Henry Allard 2020
; Bootloader for CDs
;**************************************************
; Note: Here, we are executed like a normal
; COM program, but we are still in Ring 0.
; We will use this loader to set up 32 bit
; mode and basic exc... |
/**
* Copyright (C) 2022 Elisha Riedlinger
*
* This software is provided 'as-is', without any express or implied warranty. In no event will the
* authors 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, including co... |
; void tshr_scroll_up(uchar prows, uchar attr)
SECTION code_clib
SECTION code_arch
PUBLIC tshr_scroll_up
EXTERN asm_tshr_scroll_up
tshr_scroll_up:
pop af
pop hl
pop de
push de
push hl
push af
jp asm_tshr_scroll_up
|
;; --------------------------------------------------------------------------------
;; jz/jnz example
;; --------------------------------------------------------------------------------
.data
val sw 10
.code
load val
push 10
sub
jz on_zero_flag
stat
halt
on_zero_flag:
... |
[org 0x7c00]
KERNEL_OFFSET equ 0x1000 ; The same one we used when linking the kernel
mov [BOOT_DRIVE], dl ; Remember that the BIOS sets us the boot drive in 'dl' on boot
mov bp, 0x9000
mov sp, bp
mov bx, MSG_REAL_MODE
call print_string
call print_nl
call load_kernel ; read the kernel ... |
%macro print 2
mov rax,01;
mov rdi,01;
mov rsi,%1;
mov rdx,%2;
syscall;
%endmacro
%macro read 2
mov rax,00;
mov rdi,00;
mov rsi,%1;
mov rdx,%2;
syscall;
%endmacro
%macro fopen 2
mov rax,02; //SYS_OPEN
mov rdi,%1; //file-name
mov rsi,%2; //File-Open Mode
... |
/*
* FreeRTOS Kernel V10.3.1
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* 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, ... |
dcode BA!,3,,BUS_SETADDR ; ( addr -- )
pla
mmu $00
nxt
dcode BA@,3,,BUS_GETADDR ; ( -- addr )
mmu $80
pha
nxt
dcode BW!,3,,BUS_SETWIN ; ( win -- )
pla
mmu $01
nxt
dcode BW@,3,,BUS_GETWIN ; ( win -- )
mmu $81
pha
nxt
dword BUS!,4,,BUS_POKE ; ( value addr -- )
.wp BUS_GETWIN
.w... |
; https://github.com/luckytoilet/projecteuler-solutions/blob/master/Solutions.md
section .text
global main
extern print_digits
extern exit
main:
jmp exit
; def largest_prime_factor(n: int):
; max = int(n/2)
; largest = 0
; for i in range(2, max):
; if n%i == 0:
; ... |
;===============================================================================
; Copyright 2014-2020 Intel Corporation
;
; 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.apa... |
; A055610: A companion sequence to A011896.
; 0,0,0,1,2,5,9,15,24,36,52,71,95,123,156,195,240,292,350,416,489,570,660,759,868,986,1115,1254,1404,1566,1740,1927,2126,2339,2565,2805,3060,3330,3616,3917,4235,4569,4920,5289,5676,6082,6506,6950,7413,7896
bin $0,3
add $0,2
mul $0,6
div $0,14
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; 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... |
;
; Copyright (c) 2010 The WebM 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 contributing proje... |
0x0000 (0x000000) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0001 (0x000002) 0x291A- f:00024 d: 282 | OR[282] = A
0x0002 (0x000004) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0003 (0x000006) 0x2919- f:00024 d: 281 | OR[281] = A
... |
/*
* @Description: Lidar measurement preprocess node
* @Author: Ge Yao
* @Date: 2020-11-12 15:14:07
*/
#include <ros/ros.h>
#include "glog/logging.h"
#include "lidar_localization/global_defination/global_defination.h"
#include "lidar_localization/data_pretreat/lidar_preprocess_flow.hpp"
using namespace lidar_loca... |
/*
* Copyright 2018- The Pixie Authors.
*
* 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 ag... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Printer Drivers
FILE: jobEndRedwood.asm
AUTHOR: Dave Durran
ROUTINES:
Name Description
---- -----------
PrintEndJob Cleanup done at en... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r14
push %r15
push %rax
push %rsi
lea addresses_WC_ht+0xda53, %rsi
nop
nop
nop
nop
nop
add $62729, %r10
mov $0x6162636465666768, %r11
movq %r11, %xmm5
movups %xmm5, (%rsi)
nop
cmp %r10, %r10
lea addresses_normal_ht+0x8343, %rax
clflush (%rax)
nop
no... |
#pragma once
#include <vector>
#include <iostream>
#include <omp.h>
#include <string>
#include <string.h>
#include <iomanip>
#include <vector>
#include <map>
#include <fstream>
#include <cmath>
#include <assert.h>
#include "defs.h"
namespace UTBasic
{
constexpr real sqr(real x)
{
re... |
SECTION code_clib
SECTION code_l
PUBLIC l_jrbc
; 8080 relative 16-bit jump
; call with twos complement offset in bc
;
; ld bc,destination-origin
; call l_jrbc
; .origin
l_jrbc:
ex (sp),hl
add hl,bc
ex (sp),hl
ret
|
DanaPhoneCalleeScript:
; gettrainername STRING_BUFFER_3, LASS, DANA1
checkflag ENGINE_DANA
iftrue .WantsBattle
farscall PhoneScript_AnswerPhone_Female
checkflag ENGINE_DANA_THURSDAY_NIGHT
iftrue .NotThursday
checkflag ENGINE_DANA_HAS_THUNDERSTONE
iftrue .HasThunderstone
readvar VAR_WEEKDAY
ifnotequal THURSDAY,... |
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 4.0.7 #12017 (Linux)
;--------------------------------------------------------
; Processed by Z88DK
;--------------------------------------------------------
EXTERN __divschar
EXTERN __divsc... |
/*
Copyright (c) 2012-2014 The SSDB 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 "version.h"
#include "util/log.h"
#include "util/strings.h"
#include "serv.h"
#include "net/proc.h"
#include "net/server.h"
// 声明命令处理函数的宏,宏在net... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; 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 s... |
; A245624: Sequence of distinct least positive numbers such that the average of the first n terms is a cube.
; 1,15,8,84,27,249,64,552,125,1035,216,1740,343,2709,512,3984,729,5607,1000,7620,1331,10065,1728,12984,2197,16419,2744,20412,3375,25005,4096,30240,4913,36159,5832,42804,6859,50217,8000,58440,9261,67515,10648,774... |
###############################################################################
# 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... |
// Copyright (c) 2016-2017 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/json/
#ifndef TAOCPP_JSON_INCLUDE_TRAITS_HPP
#define TAOCPP_JSON_INCLUDE_TRAITS_HPP
#include <map>
#include <string>
#include <vector>
#include "type.hpp"
namespace tao
{
namespace jso... |
<%
from pwnlib import shellcraft
%>
<%page args="filename, flags='O_RDONLY', mode=0"/>
<%docstring>
Opens a file
</%docstring>
<%
AT_FDCWD=-100
%>
${shellcraft.pushstr(filename)}
${shellcraft.syscall('SYS_openat', AT_FDCWD, 'sp', flags, mode)}
|
; A213485: Number of (w,x,y) with all terms in {0,...,n} and |w-x|+|x-y|+|y-w| != w+x+y.
; 0,4,20,54,109,191,309,469,674,930,1246,1628,2079,2605,3215,3915,4708,5600,6600,7714,8945,10299,11785,13409,15174,17086,19154,21384,23779,26345,29091,32023,35144,38460,41980,45710,49653,53815,58205
mov $2,$0
lpb $0,1
add $1,$0
... |
//------------------------------------------------------------------------------------------------
// Copyright (c) 2012 Alessandro Bria and Giulio Iannello (University Campus Bio-Medico of Rome).
// All rights reserved.
//-------------------------------------------------------------------------------------------... |
BEG TST1
CRD
CBF - 1
PRT
PBF - 1
PCH
UBF - 1
ORG 0373
EOF +2 /*
STA
* EXECUTE TESTS
GO JR T01
XF HLT
T01 JX R01
... |
; ===============================================================
; Dec 2012 by Einar Saukas & Urusergi
; "Turbo" version (89 bytes, 25% faster)
; ===============================================================
;
; void dzx7_turbo(void *src, void *dst)
;
; Decompress the compressed block at address src to address dst... |
EXTERN mainTextProc1ReturnAddress: QWORD
EXTERN mainTextProc2ReturnAddress: QWORD
EXTERN mainTextProc2BufferAddress: QWORD
EXTERN mainTextProc3ReturnAddress1: QWORD
EXTERN mainTextProc3ReturnAddress2: QWORD
EXTERN mainTextProc4ReturnAddress: QWORD
ESCAPE_SEQ_1 = 10h
ESCAPE_SEQ_2 = 11h
ESCAPE_SEQ_3 = 12h
ESCAPE_SEQ_4 =... |
; A127960: a(n) = n^2*3^n.
; 0,3,36,243,1296,6075,26244,107163,419904,1594323,5904900,21434787,76527504,269440587,937461924,3228504075,11019960576,37321507107,125524238436,419576389587,1394713760400,4613015762523,15188432850756,49801741599483,162679413013056,529555380901875,1718301299950404,5559060566555523,17935405284... |
/*
MIT License
Copyright (c) 2021 Attila Kiss
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, dis... |
; Copyright 2019 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
;
; https://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing, ... |
package asm.com.warmthdawn.mod.gugu_utils.asm.mixin;
import org.objectweb.asm.AnnotationVisitor;
import org.objectweb.asm.Attribute;
import org.objectweb.asm.ClassReader;
import org.objectweb.asm.ClassWriter;
import org.objectweb.asm.ConstantDynamic;
import org.objectweb.asm.FieldVisitor;
import org.objectweb.asm.Hand... |
; A167467: a(n) = 25*n^3 - n*(5*n+1)/2 + 1.
; 23,190,652,1559,3061,5308,8450,12637,18019,24746,32968,42835,54497,68104,83806,101753,122095,144982,170564,198991,230413,264980,302842,344149,389051,437698,490240,546827,607609,672736,742358,816625,895687,979694,1068796,1163143,1262885,1368172,1479154,1595981,1718803,184777... |
Name: yst_en_edit.asm
Type: file
Size: 52334
Last-Modified: '2016-05-13T04:52:56Z'
SHA-1: 0695381BE140785420FC08A00D702ADEC9962EBF
Description: null
|
/**
* \file NormalGravity.cpp
* \brief Implementation for GeographicLib::NormalGravity class
*
* Copyright (c) Charles Karney (2011-2018) <charles@karney.com> and licensed
* under the MIT/X11 License. For more information, see
* https://geographiclib.sourceforge.io/
**************************************... |
; A057780: Multiples of 3 that are one less than a perfect square.
; 0,3,15,24,48,63,99,120,168,195,255,288,360,399,483,528,624,675,783,840,960,1023,1155,1224,1368,1443,1599,1680,1848,1935,2115,2208,2400,2499,2703,2808,3024,3135,3363,3480,3720,3843,4095,4224,4488,4623,4899,5040,5328,5475,5775,5928,6240,6399,6723,6888,7... |
#include "mainwindow.h"
#include "sender.h"
#include "sender2.h"
#include "receiver.h"
#include <QtDebug>
#include <QPushButton>
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
{
QPushButton *btn = new QPushButton;
btn->setText("按钮");
btn->setFixedSize(100, 40);
btn->setParent(this);... |
; size_t b_array_erase_block_callee(b_array_t *a, size_t idx, size_t n)
SECTION code_adt_b_array
PUBLIC _b_array_erase_block_callee
_b_array_erase_block_callee:
pop af
pop hl
pop bc
pop de
push af
INCLUDE "adt/b_array/z80/asm_b_array_erase_block.asm"
|
; stdio_out_M
; 07.2009 aralbrec
PUBLIC stdio_out_capm
EXTERN stdio_numprec, stdio_outcommon
INCLUDE "../../stdio.def"
; output %M parameter
;
; EUI-48 / MAC-48 address in paired hex notation
;
; * width and justification applies to entire address
; * # selects '-' separator for bytes
;
; enter : ix = FILE *
;... |
; A246134: Binomial(2n, n) - 2 mod n^4.
; Submitted by Jamie Morken(s1.)
; 0,4,18,68,250,922,1029,580,2691,4754,2662,8474,4394,10294,2518,49732,29478,65074,123462,128818,6535,93174,36501,12058,187750,162582,297936,273782,536558,741422,59582,16964,118477,540434,132305,136130,1114366,1138598,2214594,2381618,1860867,27956... |
<%
from pwnlib.shellcraft.aarch64.linux import syscall
%>
<%page args="pipedes, flags"/>
<%docstring>
Invokes the syscall pipe2. See 'man 2 pipe2' for more information.
Arguments:
pipedes(int): pipedes
flags(int): flags
</%docstring>
${syscall('SYS_pipe2', pipedes, flags)}
|
; A017591: (12n+5)^11.
; 48828125,34271896307633,12200509765705829,550329031716248441,9269035929372191597,87507831740087890625,564154396389137449973,2775173073766990340489,11156683466653165551101,38358611506121121577937
mul $0,12
add $0,5
pow $0,11
|
; A328881: a(n+3) = 2^n - a(n), a(0)=a(2)=1, a(1)=0 for n >= 0.
; 1,0,1,0,2,3,8,14,29,56,114,227,456,910,1821,3640,7282,14563,29128,58254,116509,233016,466034,932067,1864136,3728270,7456541,14913080,29826162,59652323,119304648,238609294,477218589,954437176,1908874354,3817748707,7635497416,15270994830,30541989661,610839... |
; A192217: a(1)=1; a(n) = n*lcm(n, a(n-1)) for n > 1.
; Submitted by Jamie Morken(l1)
; 1,4,36,144,3600,21600,1058400,8467200,76204800,762048000,92207808000,1106493696000,186997434624000,2617964084736000,39269461271040000,628311380336640000,181581988917288960000,3268475800511201280000,1179919763984543662080000,23598395... |
GetHardwareVer:
call BankSwapper_INIT
;D= 0=msx 1=MSX2 2=MSX2+ 3=TurboR 4=WSX
;E= 0= No memory Mapper / 1=has memory mapper with 128k+
di
ld a,(&002D)
ld d,a
ld e,0
cp 2
jr nz,GetHardwareVerSwappertest
ld a,8
out (64),a ;Get current device id
in a,(64)
cp 247 ;247=CPL of 8
jr nz,... |
# mp_limb_t mulredc5(mp_limb_t * z, const mp_limb_t * x, const mp_limb_t * y,
# const mp_limb_t *m, mp_limb_t inv_m);
#
# Stack:
# inv_m ## parameters
# m
# y
# x
# z (4*(2k+7))%esp
# ??? (1 limb???)
# ebp ## pushed registers (4*(2k+5))%esp
# edi... |
; A344721: a(n) = Sum_{k=1..n} (-1)^(k+1) * floor(n/k)^3.
; Submitted by Christian Krause
; 1,7,27,56,118,196,324,448,685,901,1233,1549,2019,2445,3157,3664,4482,5262,6290,7128,8536,9598,11118,12392,14255,15743,18087,19711,22149,24417,27209,29251,32771,35327,39087,42048,46046,49244,54180,57512,62434,66838,72258,76246,83... |
SECTION code_clib
SECTION code_l
PUBLIC l_hex_nibble
PUBLIC l_hex_nibble_hi, l_hex_nibble_lo
l_hex_nibble_hi:
; translate top nibble of byte into a uppercase ascii hex digit
;
; enter : a = number
;
; exit : a = hex character representing top nibble of number
;
; uses : af
rra
... |
/*
-- MAGMA (version 2.1.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date August 2016
@precisions normal z -> s d c
@author Hartwig Anzt
*/
#include "magmasparse_internal.h"
#define RTOLERANCE lapackf77_dlamch( "E" )
... |
INCLUDE "data/bg_map_attributes.asm"
LoadBGMapAttributes::
ld hl, BGMapAttributesPointers
ld a, c ; c = which packet
push af ; save for later (to determine if we're handling the trainer card or party menu)
dec a ; read this code as:
add a ; dec a
ld e, a ; add a
xor a ; ld e, a
l... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r8
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x1aadd, %rax
nop
xor $2381, %r13
mov (%rax), %r8d
nop
nop
nop
nop
nop
add %r11, %r11
lea addresses_UC_ht+0x122c9, %rax
nop
nop
nop
sub $11917, %r13
movl $0x61626364, (%rax... |
#include "pch.h"
#include "CppUnitTest.h"
#include "core/collection/Bag.h"
#include "core/collection/Stack.h"
#include "TestUtils.h"
#include <iostream>
#include <vector>
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace UnitTest {
using namespace Ghurund::Core;
using namespace std;
... |
SFX_Cry02_2_Ch5:
duty_cycle 0
square_note 8, 15, 5, 1152
square_note 2, 14, 1, 1504
square_note 8, 13, 1, 1500
sound_ret
SFX_Cry02_2_Ch6:
duty_cycle_pattern 2, 2, 1, 1
square_note 7, 9, 5, 1089
square_note 2, 8, 1, 1313
square_note 8, 6, 1, 1306
SFX_Cry02_2_Ch8:
sound_ret
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r14
push %r8
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x944, %r8
nop
nop
nop
nop
nop
sub %r10, %r10
movl $0x61626364, (%r8)
nop
and %r14, %r14
lea addresses_WT_ht+0x6024, %rcx
nop
nop
nop
nop
xor %rsi, %rsi
movl $0x61626364, (%rcx... |
/*
* 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 writing, software
* distributed u... |
;-----------------------------------------------------------------------------
; Copyright (c) 2013 GarageGames, LLC
;
; Permission is hereby granted, free of charge, to any person obtaining a copy
; of this software and associated documentation files (the "Software"), to
; deal in the Software without restriction, inc... |
;
; Bootle v2: A Wordle clone in a boot sector.
;
; by Oscar Toledo G.
; https://nanochess.org/
;
; Creation date: Feb/27/2022. 12pm to 2pm.
; Revision date: Feb/27/2022. 4pm to 6pm. Integrated 2500 word list.
; Added word list verification. Sho... |
#ifdef NALL_STRING_INTERNAL_HPP
namespace nall {
char chrlower(char c) {
return (c >= 'A' && c <= 'Z') ? c + ('a' - 'A') : c;
}
char chrupper(char c) {
return (c >= 'a' && c <= 'z') ? c - ('a' - 'A') : c;
}
int imemcmp(const char* str1, const char* str2, unsigned size) {
while(size--) {
if(chrlower(*str1)... |
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.20714
//
//
///
// Buffer Definitions:
//
// cbuffer cbAllShadowData
// {
//
// float4x4 m_mWorldViewProjection; // Offset: 0 Size: 64 [unused]
// float4x4 m_mWorld; // Offset: 64 Size: 64 [unused]
// float4x4 m_mWorldVi... |
UnknownText_0x1b4dc5:
text "Hello. This is"
line "@"
text_ram wStringBuffer3
text "…"
para "Good morning,"
line "<PLAY_G>!"
done
UnknownText_0x1b4ded:
text "Hello. This is"
line "@"
text_ram wStringBuffer3
text "…"
para "How's it going,"
line "<PLAY_G>?"
done
UnknownText_0x1b4e16:
text "Hello. This i... |
; Generic MMC1 Template (NES 2.0)
; This template does not impose a specific "S*ROM" board layout.
;------------------------------------------------------------------------------;
; number of 16K PRG-ROM banks
PRG_BANKS = $08
; number of 8K CHR banks ($00 = CHR-RAM)
CHR_BANKS = $02
; MMC1 mirroring is mapper controll... |
_ln: 文件格式 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 ... |
// Copyright (c) 2013 The Chromium Embedded Framework 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 "libcef/browser/net/scheme_handler.h"
#include <string>
#include "libcef/browser/net/chrome_scheme_handler.h"
#include "... |
/*++
Copyright (c) Microsoft Corporation
Licensed under the MIT license.
Module Name:
- FontBuffer.hpp
Abstract:
- This manages the construction and storage of font definitions for the VT DECDLD control sequence.
--*/
#pragma once
#include "DispatchTypes.hpp"
namespace Microsoft::Console::VirtualTer... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.