text stringlengths 1 1.05M |
|---|
#ifndef CLOVER_GAME_PHYSICALMATERIALPAIR_HPP
#define CLOVER_GAME_PHYSICALMATERIALPAIR_HPP
#include "build.hpp"
#include "resources/resource.hpp"
#include "resources/resourcepair.hpp"
#include "physicalmaterial.hpp"
#include <utility>
namespace clover {
namespace game {
class PhysicalMaterialPair;
} // game
namespac... |
/*
Copyright Oliver Kowalke 2009.
Copyright Thomas Sailer 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)
*/
/***************************************************... |
Name: Poo-j.asm
Type: file
Size: 4858
Last-Modified: '1992-07-14T23:56:57Z'
SHA-1: 53169C9CF0F48936E0B5AAED89E1C922CAA6FDCE
Description: null
|
; Source code for Sopwith
; Reverse-engineered by Andrew Jenner
;
; Copyright (c) 1984-2000 David L Clark
; Copyright (c) 1999-2001 Andrew Jenner
;
; All rights reserved except as specified in the file license.txt.
; Distribution of this file without the license.txt file accompanying is
; prohibited.
PUBLIC _farmemmov... |
// ----------------------------------------------------------------------------
// headers
// ----------------------------------------------------------------------------
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "RenderSystemConfigDialog.h"
#endif
// For compilers that support preco... |
SECTION code_clib
SECTION code_fp_math48
PUBLIC _exp2_fastcall
EXTERN cm48_sdcciy_exp2_fastcall
defc _exp2_fastcall = cm48_sdcciy_exp2_fastcall
|
* MISCELLANEOUS ROUTINES AT $F669
* IN THE APPLE II INTEGER BASIC ROM
ORG $F669
* ADDRESSES
ASAVE EQU $56
XSAVE EQU $57
YSAVE EQU $58
PSAVE EQU $59
STACK EQU $100
*
SAVE STY YSAVE
STX XSAVE
STA ASAVE
PHP
PLA
STA PSAVE
TSX
INX
INX
LDA $0100,X
... |
;
; Copyright (c) Microsoft. All rights reserved.
; Licensed under the MIT license. See LICENSE file in the project root for full license information.
;
;
;
; This is the fast memcpy implementation for ARM stolen from the CRT (original location
; vctools\crt\crtw32\string\arm\memcpy.asm) and modified to be compati... |
; A023619: Convolution of Lucas numbers and (F(2), F(3), F(4), ...).
; 1,5,13,29,60,118,225,419,767,1385,2474,4380,7697,13441,23345,40357,69480,119186,203793,347455,590851,1002385,1696918,2867064,4835425,8141693,13687765,22979309,38527572,64517230,107915649,180314075,300981767,501929081
mov $2,1
mov $5,$0
add $0,1
lpb... |
; A338045: G.f.: Sum_{k>=0} x^(2^k) / (1 - x^(2^k))^3.
; 1,4,6,14,15,27,28,50,45,70,66,105,91,133,120,186,153,216,190,280,231,319,276,405,325,442,378,539,435,585,496,714,561,748,630,882,703,931,780,1100,861,1134,946,1309,1035,1357,1128,1581,1225,1600,1326,1820,1431,1863,1540
mov $5,2
mov $6,$0
lpb $5
mov $0,$6
mov... |
; A010967: a(n) = binomial coefficient C(n,14).
; 1,15,120,680,3060,11628,38760,116280,319770,817190,1961256,4457400,9657700,20058300,40116600,77558760,145422675,265182525,471435600,818809200,1391975640,2319959400,3796297200,6107086800,9669554100,15084504396,23206929840,35240152720,52860229080,78378960360,114955808528,... |
#include <iostream>
#include <vector>
#include "solver.h"
using namespace std;
namespace nash
{
namespace solver
{
Solver::Solver(const Game &game)
{
this->utility_function = game.utility_function;
this->p1_agent = mwu::Agent(game.p1_action_space_size);
this->p2_agent = mwu::Agent(game.p... |
; Churong Zhang
.386
.model flat
public _Average
.code
_Average proc
mov eax, [esp + 8]
mov ecx, [esp + 4]
dec ecx
finit
fld REAL8 PTR [eax]
jz done
Sum:
add eax, 8
fld REAL8 PTR [eax]
fadd
dec ecx
jnz Sum
fild Dword PTR [esp + 4]
fdiv
Done:
ret
_Average e... |
// ------------------------------------------------------------------
// Fast R-CNN
// Copyright (c) 2015 Microsoft
// Licensed under The MIT License [see fast-rcnn/LICENSE for details]
// Written by Ross Girshick
// ------------------------------------------------------------------
#include <cfloat>
#include "caffe/... |
;
; Old School Computer Architecture - interfacing FLOS
; Stefano Bodrato, 2011
;
; Enter in current directory entry
;
; $Id: change_dir.asm,v 1.3 2016/06/22 22:13:09 dom Exp $
;
INCLUDE "flos.def"
SECTION code_clib
PUBLIC change_dir
PUBLIC _change_dir
EXTERN flos_err
change_dir:
_change_dir:
call kjt_... |
; A213770: Antidiagonal sums of the convolution array A213768.
; 1,7,23,58,126,250,467,837,1457,2484,4172,6932,11429,18739,30603,49838,81002,131470,213175,345425,559461,905832,1466328,2373288,3840841,6215455,10057727,16274722,26334102,42610594,68946587,111559197,180507929,292069404,472579748,764651708,1237234157,200188... |
#pragma once
namespace REGoth
{
// See BsCorePrerequisites.h, TypeID_Core
enum TypeID_REGoth
{
TID_REGOTH_VisualCharacter = 600000,
TID_REGOTH_Character = 600001,
TID_REGOTH_ScriptBackedBy = 600002,
TID_REGOTH_CharacterKeyboardInput = 600003,
... |
%ifdef CONFIG
{
"RegData": {
"MM0": ["0x0", "0x0"],
"MM1": ["0xFFFFFFFF00000000", "0x0"],
"MM2": ["0xFFFFFFFFFFFFFFFF", "0x0"],
"MM3": ["0x00000000FFFFFFFF", "0x0"]
}
}
%endif
movq mm0, [rel data5]
movq mm1, [rel data6]
movq mm2, [rel data7]
movq mm3, [rel data8]
; False, False
; 0.0 >= 1.0
; ... |
(+f0.0) sel(8) g40<1>UD g5<4>UD g6<4>UD { align16 1Q };
(-f0.0) sel(8) g6<1>UD g13<8,8,1>UD 0x00000000UD { align1 1Q };
(-f0.0) sel(16) g7<1>UD g9<8,8,1>UD 0x00000000UD { align1 1H };
(+f0.0) sel(8) g2<1>UD g31<8,8,1>UD g34<8,8,1>UD { align1 1Q };
(+f... |
btr eax, 4
|
// Distributed under the MIT License.
// See LICENSE.txt for details.
#include "Evolution/Systems/Ccz4/DerivZ4Constraint.hpp"
#include <cstddef>
#include "DataStructures/DataVector.hpp"
#include "DataStructures/Tensor/Tensor.hpp"
#include "Utilities/ContainerHelpers.hpp"
#include "Utilities/GenerateInstantiations.hp... |
.segment "CODE"
; PARAMETERS WILL BE (TILE_NUMBER, X, Y, XOFFSET, YOFFSET)
FLIP_SPRITE_V = %10000000 ; OAM BIT FLAG FOR FLIPPING THE SPRITE VERTICALLY
FLIP_SPRITE_H = %01000000 ; OAM BIT FLAG FOR FLIPPING THE SPRITE HORIZONTAL
PRIORITY_SPRITE = %00100000 ; OAM BIT FLAG PRIORITY
.proc oam_dma
set PPU_CTR... |
; ----------------------------------------------------------------
; Z88DK INTERFACE LIBRARY FOR NIRVANA+ ENGINE - by Einar Saukas
;
; See "nirvana+.h" for further details
; ----------------------------------------------------------------
; void NIRVANA_paintC(unsigned char *attrs, unsigned int lin, unsigned int col)
... |
; A282513: a(n) = floor((3*n + 2)^2/24 + 1/3).
; 0,1,3,5,8,12,17,22,28,35,43,51,60,70,81,92,104,117,131,145,160,176,193,210,228,247,267,287,308,330,353,376,400,425,451,477,504,532,561,590,620,651,683,715,748,782,817,852,888,925,963
mov $2,$0
add $2,2
lpb $0
trn $1,$2
add $1,$0
sub $0,1
trn $2,4
lpe
mov $0,$1
|
; int system_fastcall(const char *string)
SECTION code_stdlib
PUBLIC _system_fastcall
EXTERN asm_system
_system_fastcall:
push ix
call asm_system
pop ix
ret
|
include Irvine32.inc
.data
works BYTE 'works', 0
arr DWORD 0, 1, 2, 3
sizeVec = LENGTHOF arr * 2
vec DWORD sizeVec DUP (0)
.code
main proc
MOV EDX, 0
MOV EBX, 0
MOV ESI, OFFSET arr
MOV EDI, OFFSET vec
; Creating the first half of the array
do_while:
CMP EDX, SIZEOF arr
JE end_do
MOV ECX, ... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
%>
<%docstring>reserved82(vararg_0, vararg_1, vararg_2, vararg_3, vararg_4) -> str
Invokes the syscall reserved82.
See 'man 2 reserved82' for more information.
Arguments:
vararg(int): vararg
Returns:
long
</%docstring>
<... |
/*
* 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... |
; A174927: Periodic sequence: Repeat 1, 64.
; 1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64
mod $0,2
mov $1,64
pow $1,$0
mov $0,$1
|
<%
from pwnlib.shellcraft.thumb.linux import syscall
%>
<%page args="file, length"/>
<%docstring>
Invokes the syscall truncate64. See 'man 2 truncate64' for more information.
Arguments:
file(char): file
length(off64_t): length
</%docstring>
${syscall('SYS_truncate64', file, length)}
|
; int p_stack_empty_fastcall(p_stack_t *s)
SECTION code_clib
SECTION code_adt_p_stack
PUBLIC _p_stack_empty_fastcall
EXTERN asm_p_stack_empty
defc _p_stack_empty_fastcall = asm_p_stack_empty
|
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %rax
push %rbp
push %rdi
lea addresses_WC_ht+0x3acb, %rdi
add %r13, %r13
mov (%rdi), %rax
nop
nop
nop
and $18769, %rdi
lea addresses_A_ht+0x92cb, %rax
nop
nop
nop
nop
nop
sub $1647, %rbp
mov (%rax), %r14d
nop
nop
nop
nop
xor $44410, %r13
pop %rdi
pop... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2010 - 2015, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distributi... |
SECTION code_crt0_sccz80
PUBLIC l_long_div
EXTERN l_long_divide
l_long_div:
ld a,129
jp l_long_divide
|
INCLUDE "config_private.inc"
SECTION code_clib
SECTION code_math
PUBLIC l_mulu_32_16x16
; compute: dehl = hl * de
; alters : af, bc, de, hl
IF __CPU_Z180__ && ((__CLIB_OPT_IMATH = 0) || (__CLIB_OPT_IMATH = 100))
EXTERN l_z180_mulu_32_16x16
defc l_mulu_32_16x16 = l_z180_mulu_32_16x16
ELSE
IF __CPU_... |
; A004125: Sum of remainders of n mod k, for k = 1, 2, 3, ..., n.
; 0,0,1,1,4,3,8,8,12,13,22,17,28,31,36,36,51,47,64,61,70,77,98,85,103,112,125,124,151,138,167,167,184,197,218,198,233,248,269,258,297,284,325,328,339,358,403,374,414,420,449,454,505,492,529,520,553,578,635,586,645,672,693,693,738,725,790,799,840,835,904,... |
; A256079: Increase each (decimal) digit of n by 1, with carry (i.e., '9' becomes '0' and a (further) increment of 1 of the digit to the left).
; 1,2,3,4,5,6,7,8,9,10,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,... |
#include "Instance.h"
namespace avalanche {
Instance::Instance(mc::protocol::Version version)
: m_Dispatcher(),
m_Client(&m_Dispatcher, version),
m_Version(version),
m_Active(true)
{
}
bool Instance::Update() {
if (!m_Active) return true;
auto behavior = GetBehavior();
auto state... |
Snd_SpecialS_Header:
smpsHeaderStartSong 3
smpsHeaderVoice Snd_SpecialS_Voices
smpsHeaderChan $06, $03
smpsHeaderTempo $01, $10
smpsHeaderDAC Snd_SpecialS_DAC
smpsHeaderFM Snd_SpecialS_FM1, $FF, $10
smpsHeaderFM Snd_SpecialS_FM2, $FF, $16
smpsHeaderFM Snd_SpecialS_FM3, $... |
#pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/NativeTypes.hpp>
#include <RED4ext/Scripting/Natives/Generated/anim/AnimNode_FloatValue.hpp>
#include <RED4ext/Scripting/Natives/Generated/anim/FloatLink.hpp>
namespace RED4ext
{
... |
; A117572: Expansion of (1+2x^2)/((1-x^2)(1-x^3)).
; 1,0,3,1,3,3,4,3,6,4,6,6,7,6,9,7,9,9,10,9,12,10,12,12,13,12,15,13,15,15,16,15,18,16,18,18,19,18,21,19,21,21,22,21,24,22,24,24,25,24,27,25,27,27,28,27,30,28,30,30,31,30,33,31,33,33,34,33,36,34,36,36,37,36,39,37
mul $0,2
mov $2,2
add $2,$0
add $0,2
lpb $0
trn $0,4
... |
; VideoPrint.asm
; Apple
PrintYPosition = zeroPageCounter
!set zeroPageCounter = zeroPageCounter+1
;------------------------------------------------------------------
!zone SetPrintYPosition
SetPrintYPosition
sty PrintYPosition
; Set character pointer to beginning of row Y.
; lda SCREEN_LINE_OFFSET_TABLE_LO,... |
; A111007: Triangle T(n,m) which contains in row n the rounded ordinate value at abscissa m along the upper rim of the circle with diameter n centered at (n/2, 1).
; 1,1,1,1,2,1,1,2,2,1,1,3,3,3,1,1,3,3,3,3,1,1,3,4,4,4,3,1,1,3,4,4,4,4,3,1,1,4,4,5,5,5,4,4,1,1,4,5,5,5,5,5,5,4,1,1,4,5,6,6,6,6,6,5,4,1,1,4,5,6,6,6,6,6,6,5,4,... |
/*
* Copyright (c) 2016 MariaDB Corporation Ab
*
* Use of this software is governed by the Business Source License included
* in the LICENSE.TXT file and at www.mariadb.com/bsl11.
*
* Change Date: 2022-01-01
*
* On the date above, in accordance with the Business Source License, use
* of this software will be g... |
; A033356: [ 36/n ].
; 36,18,12,9,7,6,5,4,4,3,3,3,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
add $0,1
mov $1,36
div $1,$0
|
; A142882: First trisection of A120070.
; Submitted by Jon Maiga
; 3,15,24,9,27,48,33,63,48,15,72,45,99,84,51,120,105,72,21,135,108,63,168,153,120,69,195,180,147,96,27,216,189,144,81,255,240,207,156,87,288,273,240,189,120,33,315,288,243,180,99,360,345,312,261,192,105,399,384,351,300,231,144,39
mul $0,3
seq $0,120070 ;... |
; A040533: Continued fraction for sqrt(557).
; 23,1,1,1,1,46,1,1,1,1,46,1,1,1,1,46,1,1,1,1,46,1,1,1,1,46,1,1,1,1,46,1,1,1,1,46,1,1,1,1,46,1,1,1,1,46,1,1,1,1,46,1,1,1,1,46,1,1,1,1,46,1,1,1,1,46,1,1,1,1,46,1,1,1,1,46,1,1,1,1,46,1,1,1,1
mov $4,2
mov $6,$0
lpb $4,1
sub $4,1
add $0,$4
sub $0,1
mov $2,$0
div $2,5
... |
#include "guis/GuiMenu.h"
#include "components/OptionListComponent.h"
#include "components/SliderComponent.h"
#include "components/SwitchComponent.h"
#include "guis/GuiCollectionSystemsOptions.h"
#include "guis/GuiDetectDevice.h"
#include "guis/GuiGeneralScreensaverOptions.h"
#include "guis/GuiSlideshowScreensaverOpti... |
; A196507: a(n) = n*(3*n^2 + 6*n + 1).
; 0,10,50,138,292,530,870,1330,1928,2682,3610,4730,6060,7618,9422,11490,13840,16490,19458,22762,26420,30450,34870,39698,44952,50650,56810,63450,70588,78242,86430,95170,104480,114378,124882,136010,147780,160210,173318,187122,201640,216890,232890,249658,267212,285570,304750,324770,3... |
.text
.file "gcc.jump.unsigned_condition.ll"
.globl unsigned_condition
.align 16
.type unsigned_condition,@function
unsigned_condition: // @unsigned_condition
// BB#0:
{
r1 = add(r0, #-102)
if (cmp.gtu(r1.new, #9)) jump:nt .LBB0_6
}
// BB#1:
{
r2 = ##.LJTI0_0
}
{
r1 = memw(r2 +... |
GLOBAL divide_by_zero
GLOBAL overflow
GLOBAL invalid_opcode
; -----------------------------------------------------------------------------
; Generates a divide by zero exception
; Parameters:
; None
; -----------------------------------------------------------------------------
divide_by_zero:
push rbp
mov rbp, rs... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x12ef7, %r10
nop
nop
and $55185, %rax
movb $0x61, (%r10)
nop
nop
nop
nop
inc %r12
lea addresses_normal_ht+0x18437, %rbx
nop
nop
nop
add %r13, %r13
mov (%rbx), %r9d
n... |
; A232250: Number of (n+1) X (1+1) 0..2 arrays with every element both >= and <= some horizontal or antidiagonal neighbor.
; Submitted by Jamie Morken(w1)
; 9,37,163,723,3209,14245,63235,280707,1246089,5531525,24555043,109002515,483874057,2147969733,9535072003,42327224963,187895169801,834087159397,3702603905187,1643626... |
; A038391: Expansion of (x^3+2*x+1) / ((x-1)^4*(x^2+x+1)^2).
; 1,4,7,13,23,33,48,69,90,118,154,190,235,290,345,411,489,567,658,763,868,988,1124,1260,1413,1584,1755,1945,2155,2365,2596,2849,3102,3378,3678,3978,4303,4654,5005,5383,5789,6195,6630,7095,7560,8056,8584,9112,9673,10268,10863,11493,12159,12825,13528,14269,1501... |
###############################################################################
# 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... |
/*
Customized version of WiFiClientSecure.cpp
WiFiClientBearSSL- SSL client/server for esp8266 using BearSSL libraries
- Mostly compatible with Arduino WiFi shield library and standard
WiFiClient/ServerSecure (except for certificate handling).
Copyright (c) 2018 Earle F. Philhower, III
This library i... |
; A298095: Number of nX3 0..1 arrays with every element equal to 3, 4, 5 or 6 king-move adjacent elements, with upper left element zero.
; Submitted by Christian Krause
; 0,1,0,1,0,3,0,7,2,19,10,53,42,153,156,453,548,1367,1860,4187,6182,12967,20270,40489,65870,127181,212768,401209,684456,1269547,2195656,4025967,7029770... |
; A279395: a(n) = Sum_{ d >= 1, d divides n} (-1)^(n-d)*d^4.
; Submitted by Simon Strandgaard
; 1,15,82,271,626,1230,2402,4367,6643,9390,14642,22222,28562,36030,51332,69903,83522,99645,130322,169646,196964,219630,279842,358094,391251,428430,538084,650942,707282,769980,923522,1118479,1200644,1252830,1503652,1800253,1874... |
// Created on 26-06-2019 12:17:51 by necronomicon
#include <bits/stdc++.h>
using namespace std;
#define MP make_pair
#define PB push_back
#define ARR_MAX (int)1e5 //Max array length
#define INF (int)1e9 //10^9
#define EPS 1e-9 //10^-9
#define MOD 1000000007 //10^9+7
#define PI 3.14159265358979323846264338327... |
__________________________________________________________________________________________________
32ms
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
/**
* Definition for a binary tree node.
* struct TreeN... |
#include <iostream>
#include <vector>
#include <map>
#include <algorithm>
using namespace std;
class Solution {
public:
int lengthOfLongestSubstring(string s) {
vector<int> curind(256, -1);
int len = s.size();
if(!len)
return 0;
int maxlen = 0;
int in = 0, la = 0... |
SFX_Cry12_2_Ch1:
dutycycle 165
unknownsfx0x20 12, 242, 64, 4
unknownsfx0x20 15, 227, 160, 4
unknownsfx0x20 4, 210, 144, 4
unknownsfx0x20 8, 209, 128, 4
endchannel
SFX_Cry12_2_Ch2:
dutycycle 238
unknownsfx0x20 11, 210, 56, 4
unknownsfx0x20 14, 198, 152, 4
unknownsfx0x20 3, 178, 136, 4
unknownsfx0x20 8, 177,... |
;2(a)
;Name: Jaggesher Mondal
;Roll: 14025423
.MODEL SMALL
.STACK 100H
.DATA
MSG1 DB "Please Input a String=$"
MSG2 DB 0DH,0AH,"THE FIRST CAPITAL: $"
MSG3 DB 0DH,0AH,"THE LAST CAPITAL: $"
MSG4 DB 0DH,0AH,"NO CAPITALS$"
FC DB 'Z'
LC DB 'A'
FLAG DB 'N'
.CODE
MAIN PROC
MOV AX,@DATA
MOV DS,AX
MOV AH,9;S... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "askpassphrasedialog.h"... |
#include <iostream>
using namespace std;
const int N = 10;
struct drzewo //struktura drzewa
{
int var;
drzewo* left = nullptr; //syn z lewej
drzewo* right = nullptr; //syn z prawej
drzewo* parent = nullptr; //rodzic zeby bylo ciekawiej
};
drzewo* insert_node(drzewo* node, int key) //funkcja dodawania nowego elem... |
; A194514: First coordinate of (3,4)-Lagrange pair for n.
; -1,2,1,0,-1,2,1,0,3,2,1,0,3,2,1,4,3,2,1,4,3,2,5,4,3,2,5,4,3,6,5,4,3,6,5,4,7,6,5,4,7,6,5,8,7,6,5,8,7,6,9,8,7,6,9,8,7,10,9,8,7,10,9,8,11,10,9,8,11,10,9,12,11,10,9,12,11,10,13,12,11,10,13,12,11,14,13,12,11,14,13
add $0,1
mov $1,1
mov $2,$0
mul $0,2
add $2,2
sub ... |
push 1;
push 2;
push 3;
push 4;
push 5;
main2aux;
main2aux;
main2aux;
main2aux;
main2aux;
push 0;
push 0;
sethi 0x0200;
st;
push 0;
pull_cp 0;
push 10;
cmp_ugt;
bz 33;
push 0;
sethi 0x0200;
pull_cp 0;
ld;
push 1;
add;
tuck 1;
st;
push 0;
sethi 0x0200;
pull_cp 0;
ld;
push 1;
add;
tuck 1;
st;
pull_cp 0;
push 5;
cmp_ugt;
... |
; Keen Dreams Source Code
; Copyright (C) 2014 Javier M. Chavez
;
; 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 2 of the License, or
; (at your option) any later version.
... |
; -----------------------------------------------------------------------------
; Test for conio functions under py65mon.
; Martin Heermance <mheermance@gmail.com>
; -----------------------------------------------------------------------------
.org $8000
.outfile "tests/conioTest.rom"
.alias RamSize $7EFF ; def $8... |
; ===============================================================
; Dec 2013
; ===============================================================
;
; size_t strnlen(const char *s, size_t maxlen)
;
; Return minimum of strlen(s) and maxlen.
; Does not examine more than maxlen chars.
;
; ===================================... |
; Copyright © 2013 - 2021 by Brett Kuntz. All rights reserved.
include gameros.inc
boot:far_jmp 07C0h, @F
; ##########################################################################
@@: intro
clrscr
call loadkernel
dbgout "Kernel Load Failure"
halt
; #############################... |
; A097990: A puzzle: reverse digits of n^2 + 10.
; 10,11,41,91,62,53,64,95,47,19,11,131,451,971,602,532,662,992,433,173,14,154,494,935,685,536,686,937,497,158,19,179,4301,9901,6611,5321,6031,9731,4541,1351,161,1961,4771,9581,6491,5302,6212,9122,4132,1142,152
seq $0,97991 ; A puzzle: reverse digits of n^2 + 10.
sub $0,... |
Name: ed_dos2.asm
Type: file
Size: 5427
Last-Modified: '1992-11-18T01:42:24Z'
SHA-1: D1EA080459CB3EE4B7867C69D1A4A2F803D5A38C
Description: null
|
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>timer_getoverrun(timerid) -> str
Invokes the syscall timer_getoverrun.
See 'man 2 timer_getoverrun' for more information.
Arguments:
timerid(timer_t): timerid
Returns:
int
</%docstring>
<%page a... |
; A016995: a(n) = (7*n + 1)^3.
; 1,512,3375,10648,24389,46656,79507,125000,185193,262144,357911,474552,614125,778688,970299,1191016,1442897,1728000,2048383,2406104,2803221,3241792,3723875,4251528,4826809,5451776,6128487,6859000,7645373,8489664,9393931,10360232,11390625,12487168,13651919,14886936,16194277,17576000,19034... |
; A211534: Number of ordered triples (w,x,y) with all terms in {1,...,n} and w = 3x + 3y.
; 0,0,0,0,0,0,1,1,1,3,3,3,6,6,6,10,10,10,15,15,15,21,21,21,28,28,28,36,36,36,45,45,45,55,55,55,66,66,66,78,78,78,91,91,91,105,105,105,120,120,120,136,136,136,153,153,153,171,171,171,190,190,190,210,210,210,231,231,231,253,253,253,... |
TITLE GCOMPACT - Global memory compactor
.sall
.xlist
include kernel.inc
.list
WM_COMPACTING = 041h
.386p
include protect.inc
DataBegin
externB Kernel_Flags
externW WinFlags
externW Win386_Blocks
externW PagingFlags
externD gcompact_start
externD gcompact_timer
externD pPos... |
SECTION .text
GLOBAL test
test:
imul r10, [ rsi + 0x18 ], 0x13
imul r11, [ rsi + 0x20 ], 0x13
imul r11, [ rsi + 0x20 ], 0x2
imul r12, r12, 0x13
imul r12, r12, 0x13
imul r12, r15, 0x2
imul r12, [ rsi + 0x10 ], 0x2
imul r12, [ rsi + 0x8 ], 0x2
imul r13, r15, 0x2
imul r13, [ rsi + 0x18 ], 0x13
imul r14, [ rsi + 0x20 ], 0x... |
dnl Alpha mpn_sqr_diagonal.
dnl Copyright 2001, 2002, 2006 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl The GNU MP 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 Soft... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include <random>
#include <string>
#include "gtest/gtest.h"
#include "test/providers/provider_test_utils.h"
namespace onnxruntime {
namespace test {
#if defined(USE_CUDA) || defined(USE_ROCM)
TEST(IsFiniteTest, Float) {... |
; A158478: Number of colors needed to paint n sectors of a circle.
; 0,1,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3... |
; A202804: a(n) = n*(6*n+4).
; 0,10,32,66,112,170,240,322,416,522,640,770,912,1066,1232,1410,1600,1802,2016,2242,2480,2730,2992,3266,3552,3850,4160,4482,4816,5162,5520,5890,6272,6666,7072,7490,7920,8362,8816,9282,9760,10250,10752,11266,11792,12330,12880,13442,14016,14602,15200,15810,16432,17066,17712,18370,19040,19722,... |
/*
BIJOY
CSE-25th Batch
Shahjalal University of Science and Technology
*/
#include<bits/stdc++.h>
//#define pi 3.14159265358979323846264338328
//#define pi 2*acos(0.0)
//#define valid(tx,ty) tx>=0&&tx<r&&ty>=0&&ty<c
//#define ll long long int
//#define llu unsi... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. Th... |
;; This file is licensed under BSD 3-Clause License
;;
;; Copyright (c) 2020, magnar-blj
;; 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... |
/**
* \brief Implementation of class Simulation
* \file
*
* \copyright
* Copyright (c) 2012-2022, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
... |
/*=============================================================================
Copyright (c) 2003 Jonathan de Halleux (dehalleux@pelikhan.com)
http://spirit.sourceforge.net/
Use, modification and distribution is subject to the Boost Software
License, Version 1.0. (See accompanying file LICENSE_1_... |
si_reg:
push ebp
mov ebp, esp
mov esi, [ebp + 8]
pop ebp
ret |
#include "RegularTriangleSampling.h"
#include <set>
#include <vector>
using namespace SPH;
RegularTriangleSampling::RegularTriangleSampling()
{
}
void RegularTriangleSampling::sampleMesh(const unsigned int numVertices, const Vector3r * vertices, const unsigned int numFaces, const unsigned int * faces, co... |
; Setup name of IP channel V1.00 2004 Marcel Kilgus
section ip
xdef ip_cnam
include 'dev8_smsq_qpc_keys'
include 'dev8_smsq_qpc_ip_data'
ip_cnam
move.l a0,-(sp)
move.l chn_data(a0),a0 ; Internal data
dc.w qpc.ipcnm
move.l (sp)+,a0
rts
end
|
; void *p_forward_list_insert_after(void *list_item, void *item)
SECTION code_clib
SECTION code_adt_p_forward_list
PUBLIC p_forward_list_insert_after
EXTERN asm_p_forward_list_insert_after
p_forward_list_insert_after:
pop af
pop de
pop hl
push hl
push de
push af
jp asm_p_forward_list_... |
; A188030: Positions of 1 in the zero-one sequence given by [nr]-[nr-10r]-[10r], where r=(1+sqrt(5))/2, [ ]=floor, n>=1.
; 5,13,18,26,31,34,39,47,52,60,65,68,73,81,86,89,94,102,107,115,120,123,128,136,141,149,154,157,162,170,175,178,183,191,196,204,209,212,217,225,230,233,238,246,251,259,264,267,272,280,285,293,298,301... |
; this sample prints out the command line parameters.
; in dos you simply add this line after the executable,
; for example:
; param p1 p2 p3
; in emulator it is possible to set parameters
; by selecting "set command line paramters" from the "file" menu.
name "param"
org 100h
jmp start
buffer db 30 dup (' '... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r15
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x773e, %r14
nop
nop
nop
dec %r15
movw $0x6162, (%r14)
nop
nop
nop
nop
nop
inc %r13
lea addresses_WT_ht+0x164f9, %rsi
lea addresses_A_ht+0x12829, %rdi
clflush (%rdi)
nop
nop
no... |
#ifndef SPROUT_WEED_DETAIL_C_STR_AS_STRING_HPP
#define SPROUT_WEED_DETAIL_C_STR_AS_STRING_HPP
#include <type_traits>
#include <sprout/config.hpp>
#include <sprout/string.hpp>
#include <sprout/type_traits/identity.hpp>
namespace sprout {
namespace weed {
namespace detail {
template<typename T>
str... |
;Z88 Small C Library functions, linked using the z80 module assembler
;Small C Z88 converted by Dominic Morris <djm@jb.man.ac.uk>
;
;Exit routine, rewritten 27/11/98 so to traverse the atexit stack
;
;Constantly revisited through April
;Some of the opt rules cause this routine to be jumped to instead
;of called, so we ... |
; A017335: a(n) = (10*n + 5)^7.
; 78125,170859375,6103515625,64339296875,373669453125,1522435234375,4902227890625,13348388671875,32057708828125,69833729609375,140710042265625,266001988046875,476837158203125,817215093984375,1347646586640625,2149422977421875,3329565857578125,5026507568359375,7416552901015625,107211723967... |
#include <stdexcept>
#include "Program.h"
namespace GLSLPT
{
Program::Program(const std::vector<Shader>& shaders)
{
m_Object = glCreateProgram();
for (unsigned i = 0; i < shaders.size(); i++) {
glAttachShader(m_Object, shaders[i].Object());
}
glLinkProgram(m_Object);
printf("... |
/**
* @file texture.cpp
* @brief OpenGL texture object
*
* @author Christophe Ecabert
* @date 05.03.17
* Copyright © 2017 Christophe Ecabert. All rights reserved.
*/
#include <iostream>
#include "oglkit/ogl/texture.hpp"
#ifdef __APPLE__
#include <OpenGL/gl3.h>
#endif
/**
* @namespace OGLKit
* ... |
#include "ompt-target.h"
ompt_target_callbacks_active_t ompt_target_enabled;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.