text stringlengths 1 1.05M |
|---|
/* BSD 3-Clause License
*
* Copyright © 2008-2022, Jice and the libtcod contributors.
* 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 code must retain the ... |
; A171609: Lim_{n->inf.} (A171608)^n, = left-shifted vector considered as a sequence.
; 1,2,4,6,12,16,24,30,60,72,96,112,168,192,240,270,540,600,720,792,1056,1152,1344,1456
mov $1,10
lpb $0,1
mov $2,$0
div $0,2
mov $3,$1
mov $1,$2
sub $1,$0
mul $1,$3
add $1,$3
lpe
sub $1,10
div $1,10
add $1,1
|
; A183041: Least number of knight's moves from (0,0) to (n,1) on infinite chessboard.
; 3,2,1,2,3,4,3,4,5,6,5,6,7,8,7,8,9,10,9,10,11,12,11,12,13,14,13,14,15,16,15,16,17,18,17,18,19,20,19,20,21,22,21,22,23,24,23,24,25,26,25,26,27,28,27,28,29,30,29,30,31,32,31,32,33,34
mov $2,$0
sub $0,2
mov $4,$2
div $4,4
sub $4,$0
add... |
[bits 64]
exit_process equ 0x0210
stream_write equ 0x050C
section .text
mov edx,2
mov r8,0xFFFF8000_00001000
mov r9d,0x10
mov eax,stream_write
syscall
mov edx,eax
mov eax,exit_process
syscall |
.586
.model flat
.code
_conta_occorrenze proc
push ebp
mov ebp,esp
push esi
push edi
push ebx
mov ebx, dword ptr[ebp+8] ; stringa
mov ecx, dword ptr[ebp+12] ; parola da trovare
mov esi, 0
mov edi,0
mov eax, 0
stringa:
cmp byte ptr[ebx+esi], 0
je fine
mov dl, byte ptr[ebx+esi] ; sentence
cmp dl, byte ptr[ecx] ... |
;Original RLE decompressor by Shiru.
;Rewritten for use with ca65 by FrankenGraphics.
;uses 4 bytes in zero page
;decompress data from an address in X/Y to PPU_DATA
;put these 4 reservations where they belong in your project.
;alternately, you can use any memory in zp you've defined temp vars for.
RLE_lo: .res 1
... |
; A022460: a(n) = prime(3*n) mod prime(n).
; Submitted by Christian Krause
; 1,1,3,2,3,9,5,13,11,26,13,3,3,9,9,11,56,7,1,68,15,1,15,3,88,94,7,5,13,11,106,110,112,1,124,140,136,130,142,140,140,158,154,164,170,190,178,158,172,176,184,194,214,200,206,208,212,220,220,226,244,230,208,230,248,262,236,238,238,244,244,244,266,... |
// Copyright (c) 2015, The Regents of the University of California (Regents)
// See LICENSE.txt for license details
#include <functional>
#include <iostream>
#include <vector>
#include <gms/third_party/gapbs/benchmark.h>
#include <gms/third_party/gapbs/bitmap.h>
#include <gms/third_party/gapbs/builder.h>
#include <gm... |
#include <qt/test/addressbooktests.h>
#include <qt/test/util.h>
#include <test/test_bitcoin.h>
#include <interfaces/chain.h>
#include <interfaces/node.h>
#include <qt/addressbookpage.h>
#include <qt/addresstablemodel.h>
#include <qt/editaddressdialog.h>
#include <qt/optionsmodel.h>
#include <qt/platformstyle.h>
#inclu... |
; A024128: a(n) = 11^n - n.
; 1,10,119,1328,14637,161046,1771555,19487164,214358873,2357947682,25937424591,285311670600,3138428376709,34522712143918,379749833583227,4177248169415636,45949729863572145,505447028499293754,5559917313492231463,61159090448414546272,672749994932560009181,7400249944258160101190,814027493868397... |
.include "defaults_item.asm"
table_file_jp equ "exe5-utf8.tbl"
table_file_en equ "bn5-utf8.tbl"
game_code_len equ 3
game_code equ 0x4252424A // BRBJ
game_code_2 equ 0x42524245 // BRBE
game_code_3 equ 0x42524250 // BRBP
card_type equ 0
card_id equ 15
card_no equ "015"
card_sub equ "Item Card 015"
card_sub_... |
SECTION code_fp_am9511
PUBLIC __divulong
EXTERN cam32_sdcc_ldivu
; divide two 32-bit numbers into a 32-bit quotient
;
; enter : stack = dividend (32-bit), divisor (32-bit), ret
;
; exit : dehl = quotient
defc __divulong = cam32_sdcc_ldivu
|
PORTD &= escBDown;
TIMSK1 &= 0b11111011;
in r25, 0x0b
lds r24, 0x01B8
and r24, r25
out 0x0b, r24
ldi r30, 0x6F
ldi r31, 0x00
ld r24, Z
andi r24, 0xFB
st Z, r24
push r1
push r0
in r0, 0x3f ; 63
push r0
eor r1, r1
push r24
push r25
push r30
push r31
in r25, 0x0b ; 11
lds r24, 0x01B8 ; 0x8001b8 <escBDown>
and r24,... |
; A310503: Coordination sequence Gal.4.73.1 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,4,10,16,20,26,32,36,40,46,52,56,62,68,72,76,82,88,92,98,104,108,112,118,124,128,134,140,144,148,154,160,164,170,176,180,184,190,196,200,206... |
;******************************************************************************
;* utils.asm: helper macros
;******************************************************************************
;* Copyright (C) 2014 Vabishchevich Nikolay <vabnick@gmail.com>
;*
;* This file is part of libass.
;*
;* Permission to use, copy, mo... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %rax
push %rbx
push %rsi
lea addresses_WC_ht+0x955a, %rbx
nop
nop
sub %r10, %r10
mov (%rbx), %si
nop
nop
sub %rax, %rax
pop %rsi
pop %rbx
pop %rax
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r14
push %r15
push %rcx
push %rdi
push %rd... |
/***
mockcpp is a generic C/C++ mock framework.
Copyright (C) <2009> <Darwin Yuan: darwin.yuan@gmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the ... |
;
; QuickDraw patch program
;
;--------------------------------------------------------------------------------
.NoList
.Include TLASM:GrafEQU.TEXT ; All definitions
.Include TLASM:SYSEQU.TEXT ; All definitions
.Include TLASM:SYSMACS.... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r8
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x1747f, %rsi
lea addresses_UC_ht+0x4751, %rdi
nop
nop
nop
nop
and %rbx, %rbx
mov $13, %rcx
rep movsq
nop
nop
cmp %r12, %r12
lea addresses_D_ht+0xd43f, %r13
nop
nop
nop
dec %r8
mov (%r13... |
cpu mpc821
page 0
include stddef60
org 0x1000
mfimmr r25
mtimmr r25
bdnzl 0x10
bdztla 7,0x10
beq 0x10
beq 2,0x10
beq cr2,0x10
cmpw r1,r2
clrlwi r1,r2,5
mtspr iccsr,r5
mticcsr r5
mcrf cr4... |
/*
* Software License Agreement (BSD License)
* Copyright (c) 2013, Georgia Institute of Technology
* 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 code must retai... |
; A077985: Expansion of 1/(1 + 2*x - x^2).
; 1,-2,5,-12,29,-70,169,-408,985,-2378,5741,-13860,33461,-80782,195025,-470832,1136689,-2744210,6625109,-15994428,38613965,-93222358,225058681,-543339720,1311738121,-3166815962,7645370045,-18457556052,44560482149,-107578520350,259717522849,-627013566048,1513744654945,-36545028... |
%ifdef CONFIG
{
"RegData": {
"RBX": "0x05",
"RDI": "0x04",
"RDX": "0x01",
"RSI": "0x00",
"R8": "0x0",
"R9": "0x0",
"R10": "0x1",
"R11": "0x1"
}
}
%endif
mov rbx, 0x02
mov rdi, 0x02
mov rdx, 0x80
mov rsi, 0x80
mov rcx, 8 ; Tests wrapping around features
stc
rcr bl, cl
lahf
mov r8w... |
// Copyright 2010 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 ... |
; A189479: Fixed point starting with 0 of the morphism 0->01, 1->101.
; 0,1,1,0,1,1,0,1,0,1,1,0,1,1,0,1,0,1,1,0,1,0,1,1,0,1,1,0,1,0,1,1,0,1,1,0,1,0,1,1,0,1,0,1,1,0,1,1,0,1,0,1,1,0,1,0,1,1,0,1,1,0,1,0,1,1,0,1,1,0,1,0,1,1,0,1,0,1,1,0,1,1,0,1,0,1,1,0,1,1,0,1,0,1,1,0,1,0,1,1
sub $0,1
mov $1,$0
max $1,0
seq $1,120613 ; a(n... |
#include <stdio.h>
#include <unistd.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <time.h>
#include <semaphore.h>
#include "psdaq/epicstools/PVCached.hh"
using Pds_Epics::EpicsPVA;
using Pds_Epics::PVCached;
#include <string>
#include <vector>
#inclu... |
; A112031: Numerator of 3/4 + 1/4 - 3/8 - 1/8 + 3/16 + 1/16 - 3/32 - 1/32 + 3/64 + ....
; 3,1,5,1,11,3,21,5,43,11,85,21,171,43,341,85,683,171,1365,341,2731,683,5461,1365,10923,2731,21845,5461,43691,10923,87381,21845,174763,43691,349525,87381,699051,174763,1398101,349525,2796203,699051,5592405,1398101,11184811,2796203,2... |
; *** NOT FOR GENERAL DISTRIBUTION *** ;
; ;
; This File is for the Purpose of Virus Study Only! It Should not be Passed ;
; Around Among the General Public. It Will be Very Useful for Learning how ;
; Vi... |
Name: ysm_ram.asm
Type: file
Size: 16825
Last-Modified: '2016-05-13T04:52:57Z'
SHA-1: 2C5D23AD28B14883D0432251F1D19138ACD15EEB
Description: null
|
; COPYRIGHT (c) 1995,99,2002 XDS. All Rights Reserved.
; Implementation for isWholeNum function
cpu 386
bits 32
%ifdef OS2
group DGROUP _DATA
section _DATA use32 align=4 FLAT public 'DATA'
%else
group DGROUP _DATA
section _DATA use32 align=4 public 'DATA'
%en... |
;
; interrups.asm
;
; Created on: Apr 18, 2010
; Author: anizzomc
;
GLOBAL _cli
GLOBAL _sti
GLOBAL picMasterMask
GLOBAL picSlaveMask
GLOBAL _lidt
GLOBAL haltcpu
GLOBAL _irq00Handler
GLOBAL _irq01Handler
GLOBAL _irq02Handler
GLOBAL _irq03Handler
GLOBAL _irq04Handler
GLOBAL _irq05Handler
GLOBAL _irq80Handler
EX... |
; A248428: Number of length n+2 0..3 arrays with every three consecutive terms having the sum of some two elements equal to twice the third.
; 16,20,24,28,36,44,52,68,84,100,132,164,196,260,324,388,516,644,772,1028,1284,1540,2052,2564,3076,4100,5124,6148,8196,10244,12292,16388,20484,24580,32772,40964,49156,65540,81924,... |
; char *strstrip_fastcall(const char *s)
SECTION code_clib
SECTION code_string
PUBLIC _strstrip_fastcall
EXTERN asm_strstrip
defc _strstrip_fastcall = asm_strstrip
|
/*
MobileRobots Advanced Robotics Interface for Applications (ARIA)
Copyright (C) 2004, 2005 ActivMedia Robotics LLC
Copyright (C) 2006, 2007, 2008, 2009 MobileRobots Inc.
Copyright (C) 2010, 2011 Adept Technology, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms o... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r14
push %r15
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x12fa2, %rsi
nop
nop
cmp %r10, %r10
mov $0x6162636465666768, %r12
movq %r12, %xmm7
movups %xmm7, (%rsi)
nop
xor $32010, %r14
lea addresses_WC_ht+0x8ca2, %rsi
lea addresses... |
; A086755: Sum_{k=1..n} (k(k+1))^2/2.
; 2,20,92,292,742,1624,3192,5784,9834,15884,24596,36764,53326,75376,104176,141168,187986,246468,318668,406868,513590,641608,793960,973960,1185210,1431612,1717380,2047052,2425502,2857952,3349984,3907552
lpb $0
mov $2,$0
sub $0,1
add $2,2
bin $2,2
pow $2,2
add $1,$2
lpe
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r15
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0xeddd, %r15
cmp $3178, %r10
movb (%r15), %r14b
nop
nop
nop
inc %rdi
lea addresses_WC_ht+0xa2dd, %r14
clflush (%r14)
nop
nop
nop
dec %rdx
movl $0x61626364, (%r14)
nop
nop
nop
... |
;
; Source code written by Gabriel Correia
;
global getts
section .text
; Returns the CPU timestamp from the RDTSC instruction
getts:
push rbp
mov rbp, rsp
sub rsp, 16
; Retrive the current TSC
rdtsc
; 32 - 31
; [VALUE - 0]
shl rdx, 32
; OR with RAX = [0 - VALUE] with RDX = [VALU... |
; A309231: Column 3 of the array at A326662 see Comments.
; 7,17,25,34,43,53,61,71,79,89,97,106,115,125,133,142,151,161,169,178,187,197,205,215,223,233,241,250,259,269,277,287,295,305,313,322,331,341,349,359,367,377,385,394,403,413,421,430,439,449,457,466,475,485,493,503,511,521,529,538,547,557,565,574,583,593,601,610,... |
; A199344: Least integer > n having a digital sum larger than that of n.
; 1,2,3,4,5,6,7,8,9,19,11,12,13,14,15,16,17,18,19,29,21,22,23,24,25,26,27,28,29,39,31,32,33,34,35,36,37,38,39,49,41,42,43,44,45,46,47,48,49,59,51,52,53,54,55,56,57,58,59,69,61,62,63,64,65,66,67
mov $1,$0
add $1,1
lpb $1
add $0,9
dif $1,10
lpe... |
#include <bits/stdc++.h>
using namespace std;
#define eol "\n"
#define _(x) #x << "=" << to_str(x) << ", "
#define debug(x) { ostringstream stream; stream << x; string s = stream.str(); cout << s.substr(0, s.length() - 2) << eol; }
string to_string(basic_string<char>& x) { return "\"" + x + "\""; }
string to_string(ch... |
db DEX_FLAREON ; pokedex id
db 65, 130, 60, 65, 110
; hp atk def spd spc
db FIRE, FIRE ; type
db 45 ; catch rate
db 198 ; base exp
INCBIN "gfx/pokemon/front/flareon.pic", 0, 1 ; sprite dimensions
dw FlareonPicFront, FlareonPicBack
db TACKLE, SAND_ATTACK, QUICK_ATTACK, EMBER ; level 1 learnset
db ... |
; A337046: Integers n such that n! = x^2 + y^3 + z^6 where x, y and z are nonnegative integers, is soluble.
; 0,1,2,3,4,6,8,10,14,16,17,19,20,21,22,23,24,25
mov $4,$0
mov $6,$0
lpb $4
mov $0,$6
mov $1,0
mov $3,0
sub $4,1
sub $0,$4
lpb $0
mov $2,$0
seq $2,110660 ; Pronic numbers repeated.
mov $7... |
; A071055: Number of 0's in n-th row of triangle in A071038.
; 0,0,2,0,2,2,6,0,2,2,6,2,6,6,14,0,2,2,6,2,6,6,14,2,6,6,14,6,14,14,30,0,2,2,6,2,6,6,14,2,6,6,14,6,14,14,30,2,6,6,14,6,14,14,30,6,14,14,30,14,30,30,62,0,2,2,6,2,6,6,14,2,6,6,14,6,14,14,30,2,6,6,14,6,14,14,30,6,14,14,30,14,30,30,62,2,6,6,14,6
add $0,1
seq $0,1... |
TITLE
SSTACK SEGMENT PARA STACK 'STACK'
DB 64 DUP('—“≈ ____')
SSTACK ENDS
DSEG SEGMENT PARA PUBLIC 'DATA'
X DB 0,1,2,3,4,5,6,7
B DB 1B
K DB ?
DSEG ENDS
SUBTTL
PAGE
... |
<%
from pwnlib.shellcraft.powerpc.linux import syscall
%>
<%page args="fd, offset, count, flags"/>
<%docstring>
Invokes the syscall sync_file_range. See 'man 2 sync_file_range' for more information.
Arguments:
fd(int): fd
offset(off64_t): offset
count(off64_t): count
flags(unsigned): flags
</%docs... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0xf0ed, %rsi
lea addresses_normal_ht+0x17cfd, %rdi
clflush (%rdi)
nop
nop
nop
and $57801, %r11
mov $55, %rcx
rep movsw
nop
nop
nop
sub $49277, %rbp
lea addresses_normal_ht+0x1eaaa, %rsi... |
; A011765: Period 4: repeat [0, 0, 0, 1].
; 0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1
mod $0,4
trn $0,2
mov $1,$0
|
;/*
; * FreeRTOS Kernel V10.2.0
; * Copyright (C) 2019 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 restri... |
// you can use includes, for example:
// #include <algorithm>
// you can write to stdout for debugging purposes, e.g.
// cout << "this is a debug message" << endl;
int solution(vector<int> &A) {
// write your code in C++11
// special case
if(A.empty()) return -1;
// compute sum for all
l... |
;================================================================================
; Fake Flippers Softlock Fix
;--------------------------------------------------------------------------------
FlipperKill:
PHP
LDA $5D : CMP #$04 : BNE .done ; skip if we're not swimming
LDA FlippersEquipment : BNE .done ; skip if we ... |
; A290925: p-INVERT of the positive integers, where p(S) = 1 - 3*S - 2*S^2.
; Submitted by Christian Krause
; 3,17,92,495,2661,14304,76891,413329,2221860,11943663,64203453,345127232,1855239875,9972887313,53609499612,288179176047,1549114207525,8327301302176,44763611772699,240627889663761,1293501104827044,695324681825841... |
extern m7_ippsSM3GetSize:function
extern n8_ippsSM3GetSize:function
extern y8_ippsSM3GetSize:function
extern e9_ippsSM3GetSize:function
extern l9_ippsSM3GetSize:function
extern n0_ippsSM3GetSize:function
extern k0_ippsSM3GetSize:function
extern ippcpJumpIndexForMergedLibs
extern ippcpSafeInit:function
segment .data
a... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2018 The PIVX developers
// Copyright (c) 2018 The XIM developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-licen... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; 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... |
%define BPM 100
%include "../src/sointu.inc"
BEGIN_PATTERNS
PATTERN 80, HLD, HLD, HLD, HLD, HLD, HLD, HLD, HLD, HLD, HLD, 0, 0, 0, 0, 0
END_PATTERNS
BEGIN_TRACKS
TRACK VOICES(1),0
END_TRACKS
BEGIN_PATCH
BEGIN_INSTRUMENT VOICES(1) ; Instrument0
SU_ENVELOPE MONO,ATTAC(80),DECAY(80),SUSTAIN(64),R... |
; A317960: Trajectory of 12 under the morphism f: X -> XYX, where Y=1 if X contains an odd number of 1's, otherwise Y = 2.
; 1,2,2,1,2,1,1,2,2,1,2,1,1,2,2,1,2,1,1,2,2,1,2,2,1,2,2,1,2,1,1,2,2,1,2,1,1,2,2,1,2,1,1,2,2,1,2,1,1,2,2,1,2,1,1,2,2,1,2,1,1,2,2,1,2,1,1,2,2,1,2,2,1,2,2,1,2,1,1,2,2,1,2,1,1,2,2,1,2,1,1,2,2,1,2
add ... |
UseItem_:
ld a, 1
ld [wActionResultOrTookBattleTurn], a ; initialise to success value
ld a, [wcf91] ;contains item_ID
cp HM_01
jp nc, ItemUseTMHM
ld hl, ItemUsePtrTable
dec a
add a
ld c, a
ld b, 0
add hl, bc
ld a, [hli]
ld h, [hl]
ld l, a
jp hl
ItemUsePtrTable:
dw ItemUseBall ; MASTER_BALL
dw It... |
; A328286: Expansion of e.g.f. -log(1 - x - x^2/2).
; Submitted by Christian Krause
; 1,2,5,21,114,780,6390,61110,667800,8210160,112152600,1685237400,27624920400,490572482400,9381882510000,192238348302000,4201639474032000,97572286427616000,2399151995223984000,62268748888378032000,1701213856860117600000
mov $2,$0
add $... |
; A125521: a(n) is the minimal difference between two distinct n-digit numbers with property that when one of them is typed into a calculator and rotated 180 degrees, the other one is seen.
; 3,6,30,60,300,600,3000,6000,30000,60000,300000,600000,3000000,6000000,30000000,60000000,300000000,600000000,3000000000,600000000... |
.data
max_num: .word 1024
S31: .asciiz "OVERFLOW! "
S44: .asciiz "complete number: "
S48: .asciiz " "
S53: .asciiz " "
S59: .asciiz "---------------------------------------------------------------\\n"
S81: .asciiz " "
S89: .asciiz " "
S97: .asciiz "The total is "
.text
move $fp $sp
j main
complete_num:
move $s7 $fp
... |
// bsltf_wellbehavedmoveonlyalloctesttype.t.cpp -*-C++-*-
#include <bsltf_wellbehavedmoveonlyalloctesttype.h>
#include <bslma_allocator.h>
#include <bslma_default.h>
#include <bslma_defaultallocatorguard.h>
#include <bslma_testallocator.h>
#include <bslma_testallocatormonitor.h>
#include <bslmf_... |
#include "ViewOptions.h"
#include <trview.ui/Button.h>
#include <trview.ui/GroupBox.h>
#include <trview.ui/Checkbox.h>
#include <trview.ui/StackPanel.h>
#include <trview.ui/NumericUpDown.h>
#include <trview.app/Graphics/ITextureStorage.h>
namespace trview
{
namespace Colours
{
const Colour FlipOff{ 0.... |
; A089103: a(n) = Mod[n+Prime[n],10]
; 3,5,8,1,6,9,4,7,2,9,2,9,4,7,2,9,6,9,6,1,4,1,6,3,2,7,0,5,8,3,8,3,0,3,4,7,4,1,6,3,0,3,4,7,2,5,8,1,6,9,4,1,4,5,2,9,6,9,6,1,4,5,0,5,8,3,8,5,6,9,4,1,0,7,4,9,6,5,0,9,0,3,4,7,4,9,6,5,0,3,8,1,0,5,4,9,6,9,2,1
mov $2,$0
seq $0,6005 ; The odd prime numbers together with 1.
add $0,$2
trn $0,... |
/*
* Copyright 2009-2017 Alibaba Cloud 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... |
<%
from pwnlib.shellcraft.amd64.linux import syscall
%>
<%page args="start, length, vec"/>
<%docstring>
Invokes the syscall mincore. See 'man 2 mincore' for more information.
Arguments:
start(void): start
len(size_t): len
vec(unsigned): vec
</%docstring>
${syscall('SYS_mincore', start, length, ve... |
/*
//@HEADER
// ************************************************************************
//
// KokkosKernels 0.9: Linear Algebra and Graph Kernels
// Copyright 2017 Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the U.S. Government retain... |
ori $ra,$ra,0xf
addiu $1,$5,-4747
mult $4,$4
mflo $2
lui $4,9150
mult $6,$6
mtlo $2
addiu $5,$4,20587
srav $1,$2,$5
div $3,$ra
addiu $1,$2,3955
ori $4,$4,5211
srav $1,$1,$4
sb $1,7($0)
sll $4,$4,9
mult $0,$0
mthi $5
mult $1,$4
addiu $2,$4,-74
lui $4,20951
multu $5,$5
sll $4,$2,23
sb $1,5($0)
mflo $4
divu $4,$ra
lb $1,1... |
[BITS 64]
section .rdata
sockaddr_in:
DW 2
DW 0x672B ; port 11111
DQ 0
section .data
global CLIENT_STRUCT_SIZE
CLIENT_STRUCT_SIZE DQ 16
section .bss
global CLIENT_STRUCT
CLIENT_STRUCT RESB 16
SOCKET_DESCRIPTOR RESQ 1
global CLIENT_DESCRIPTOR
CLIENT_DESCRIPTOR RESQ 1
global REQUEST
REQUEST RESB 2000
... |
; char __fsneq (float left, float right)
SECTION code_fp_math48
PUBLIC cm48_sdccixp_dsneq
EXTERN cm48_sdccixp_dread2, am48_dne
cm48_sdccixp_dsneq:
; (left != right)
;
; enter : sdcc_float right, sdcc_float left, ret
;
; exit : HL = 0 and carry reset if false
; HL = 1 and carry set if tr... |
; A135449: Period 5: repeat 1, 9, -7, 3, 5.
; 1,9,-7,3,5,1,9,-7,3,5,1,9,-7,3,5,1,9,-7,3,5,1,9,-7,3,5,1,9,-7,3,5,1,9,-7,3,5,1,9,-7,3,5,1,9,-7,3,5,1,9,-7,3,5,1,9,-7,3,5,1,9,-7,3,5,1,9,-7,3,5,1,9,-7,3,5,1,9,-7,3,5,1,9,-7,3,5,1,9,-7,3,5,1,9,-7,3,5,1,9,-7,3,5,1
add $0,1
mov $1,16
mov $2,3
mov $3,4
lpb $0
sub $0,1
div $... |
; A209723: 1/4 the number of (n+1) X 5 0..2 arrays with every 2 X 2 subblock having distinct clockwise edge differences.
; 6,7,8,10,12,16,20,28,36,52,68,100,132,196,260,388,516,772,1028,1540,2052,3076,4100,6148,8196,12292,16388,24580,32772,49156,65540,98308,131076,196612,262148,393220,524292,786436,1048580,1572868,2097... |
//
// MainWindow.cpp
// interface
//
// Created by Mohammed Nafees on 04/06/2014.
// Copyright (c) 2014 High Fidelity, Inc. All rights reserved.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "MainWindow... |
//----------------------------------------------------
// file: Builder.cpp
//----------------------------------------------------
#include "Pch.h"
#pragma hdrstop
#include "Builder.h"
#include "UI_Main.h"
#include "MenuTemplate.rh"
//----------------------------------------------------
SceneBuilder Buil... |
; A062142: Fourth (unsigned) column sequence of coefficient triangle A062137 of generalized Laguerre polynomials n!*L(n,3,x).
; Submitted by Christian Krause
; 1,28,560,10080,176400,3104640,55883520,1037836800,19978358400,399567168000,8310997094400,179819755315200,4045944494592000,94612855873536000,2297740785500160000,... |
//===--- TypeCheckAvailability.cpp - Availability Diagnostics -------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
/********************************************************************************
*
* Copyright (c) 2018 ROCm Developer Tools
*
* MIT LICENSE:
* 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 So... |
_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 ... |
Sound47_Header:
smpsHeaderStartSong 2
smpsHeaderVoice Sound47_Voices
smpsHeaderTempoSFX $01
smpsHeaderChanSFX $01
smpsHeaderSFXChannel cFM5, Sound47_FM5, $00, $00
; FM5 Data
Sound47_FM5:
smpsSetvoice $00
dc.b nCs5, $05, nRst, $04, nCs5, $04, nRst, $04
smpsStop
Sound47_Voices:
; Voice $00
; $28
... |
li x15, 0x40001000
li x8 , 4194303
sw x8 , 0x3(x15)
|
#pragma once
#include <geometry_msgs/PoseStamped.h>
#include <image_geometry/pinhole_camera_model.h>
#include <image_transport/image_transport.h>
#include <pcl/point_types.h>
#include <pcl_ros/point_cloud.h>
#include <ros/ros.h>
#include <sensor_msgs/CameraInfo.h>
#include <std_msgs/Bool.h>
#include <std_msgs/String.h... |
//************************************************************************
// *
// Copyright (C) 2014 *
// University Corporation for Atmospheric Research *
// All Rights Reserved *
// *
//**********************************************************... |
/**
* @file
* English Pronunciation wrapped in NodeJS.
*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
#ifndef MALUUBA_SPEECH_NODEJS_ENPRONUNCIATION_HPP
#define MALUUBA_SPEECH_NODEJS_ENPRONUNCIATION_HPP
#include "maluuba/speech/pronunciation.hpp"
#include <node... |
// SplitHandler.cpp
#include "StdAfx.h"
#include "../../Common/ComTry.h"
#include "../../Common/MyString.h"
#include "../../Windows/PropVariant.h"
#include "../Common/ProgressUtils.h"
#include "../Common/RegisterArc.h"
#include "../Compress/CopyCoder.h"
#include "Common/MultiStream.h"
using names... |
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include "catch.hpp"
#include "dna.h"
TEST_CASE("Verify Test Configuration", "verification") {
REQUIRE(true == true);
}
TEST_CASE("Test the factorial function") {
REQUIRE(factorial(3) == 6);
REQUIRE(factorial(5) == 12... |
C arm/ecc-256-redc.asm
ifelse(<
Copyright (C) 2013 Niels Möller
This file is part of GNU Nettle.
GNU Nettle is free software: you can redistribute it and/or
modify it under the terms of either:
* the GNU Lesser General Public License as published by the Free
Software Foundation; either versi... |
user/_usertests: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <bsstest>:
void
bsstest(char *s)
{
int i;
for(i = 0; i < sizeof(uninit); i++){
0: 00007797 auipc a5,0x7
4: b2878793 addi a5,a5,-1240 # 6b28 <uninit>
8: 00009697 a... |
%ifidn __OUTPUT_FORMAT__,obj
section code use32 class=code align=64
%elifidn __OUTPUT_FORMAT__,win32
$@feat.00 equ 1
section .text code align=64
%else
section .text code
%endif
;extern _OPENSSL_ia32cap_P
global _aesni_encrypt
align 16
_aesni_encrypt:
L$_aesni_encrypt_begin:
mov eax,DWORD [4+esp]
mov edx... |
SECTION code_fp_am9511
PUBLIC fabs
EXTERN cam32_sccz80_fabs
defc fabs = cam32_sccz80_fabs
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _fabs
EXTERN cam32_sdcc_fabs
defc _fabs = cam32_sdcc_fabs
ENDIF
|
;******************************************************************************
;* MMX-optimized H.263 loop filter
;* Copyright (c) 2003-2013 Michael Niedermayer
;* Copyright (c) 2013 Daniel Kang
;*
;* This file is part of FFmpeg.
;*
;* FFmpeg is free software; you can redistribute it and/or
;* modify it under the term... |
u_offset1 = -TYPE ; behaviour offset is determined by next structure element
; all following objects "inherit" from defined Objectstruct
; all vars after "NEXT_OBJECT" can be different for each of the objects
;
; all definitions with the same name must be at the same structure p... |
; A044162: Numbers n such that string 3,3 occurs in the base 7 representation of n but not of n-1.
; 24,73,122,168,220,269,318,367,416,465,511,563,612,661,710,759,808,854,906,955,1004,1053,1102,1151,1176,1249,1298,1347,1396,1445,1494,1540,1592,1641,1690,1739,1788,1837,1883,1935,1984
mov $2,$0
mov $5,$0
mov $8,$0
mul $... |
; A195180: a(n) = 5*n - floor(3*n*sqrt(2)).
; 0,1,2,3,4,4,5,6,7,7,8,9,10,10,11,12,13,13,14,15,16,16,17,18,19,19,20,21,22,22,23,24,25,25,26,27,28,29,29,30,31,32,32,33,34,35,35,36,37,38,38,39,40,41,41,42,43,44,44,45,46,47,47,48,49,50,50,51,52,53,54,54,55,56,57,57,58,59,60,60,61,62,63,63,64,65,66,66,67,68,69,69,70,71,72,7... |
; A089105: Values taken by least witness function W(n).
; 2,3,5,6,7,10,11,12,13,14,15,17,18,19,20,21,22,23,24,26
mov $3,$0
sub $0,1
mov $1,1
mov $2,1
lpb $0
sub $0,$1
sub $0,$2
trn $0,1
trn $2,$1
add $1,$2
mov $2,2
add $2,$1
add $1,1
add $2,2
sub $2,$1
lpe
lpb $3
add $1,1
sub $3,1
lpe
add $1,1
... |
#include "main.hpp"
int countPrimes(int a, int b) {
int s = 0;
for (int i = a; i <= b; i++) {
if (isPrime(i)) {
s++;
}
}
return s;
}
|
; A086025: a(n) = Sum_{i=1..n} C(i+4,5)^2.
; 1,37,478,3614,19490,82994,296438,923702,2580071,6588075,15606084,34685508,72976852,146387476,281597860,521971876,936053677,1629533233,2761788434,4568378450,7391175350,11718183750,18235516650,27894475050,41997225075,62305185111,91174933032,131727226408,188055603304,2654820048... |
; A051755: Consider problem of placing N queens on an n X n board so that each queen attacks precisely 2 others. Sequence gives maximal number of queens.
; 3,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,1... |
#include "ofApp.h"
#include "ofVkRenderer.h"
#include "vk/ofAppVkNoWindow.h"
// We keep a pointer to the renderer so we don't have to
// fetch it anew every time we need it.
ofVkRenderer* renderer;
//--------------------------------------------------------------
void ofApp::setup(){
ofDisableSetupScreen();
ofSet... |
#pragma once
#ifndef CHIGRAPHGUI_DEBUGGER_DEBUGGER_WORKER_THREAD_HPP
#define CHIGRAPHGUI_DEBUGGER_DEBUGGER_WORKER_THREAD_HPP
#include <QObject>
#include <chi/Debugger/Debugger.hpp>
#include <lldb/API/SBEvent.h>
class DebuggerWorkerThread : public QObject {
Q_OBJECT
public:
DebuggerWorkerThread(std::shared_ptr<c... |
//BSD 3-Clause License
//
//Copyright (c) 2021, Florent Audonnet
//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 code must retain the above copyright notice, thi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.