text stringlengths 1 1.05M |
|---|
class Solution {
public:
int minDeletionSize(vector<string>& A) {
string last = A[0];
int len = A[0].size();
int del = 0;
for(int i=1;i<A.size();i++){
for(int j=0;j<len;j++){
if(last[j] != '#'){
if(A[i][j] >= last[j])
... |
; A166362: a(n) = phi(nonprime(n)).
; 1,2,2,4,6,4,4,6,8,8,6,8,12,10,8,20,12,18,12,8,16,20,16,24,12,18,24,16,12,20,24,22,16,42,20,32,24,18,40,24,36,28,16,30,36,32,48,20,32,44,24,24,36,40,36,60,24,32,54,40,24,64,42,56,40,24,72,44,60,46,72,32,42,60,40,32,48,48,52,36,40,72,48,36,88,56,72,58,96,32,110,60,80,60,100,36,64,84,... |
//===- Allocator.hpp --------------------------------------------*- C++ -*-===//
//
// Copyright (C) 2020 GrammaTech, Inc.
//
// This code is licensed under the MIT license. See the LICENSE file in the
// project root for license terms.
//
// This project is sponsored by the Office of Naval Research, One Liberty
//... |
code32
format ELF
public _gf_mul
public _AES_RotWord
section '.text' executable align 16
_gf_mul:
mov r3, r0
cmp r1, #0
beq .b0
mov r0, #0
mov r2, #280 ; I'd replace the mov and add with a movw for later procs but pfffff
add r2, #3
.loop:
tst r1, #1
eorne r0, r3
lsl r3, #1
lsr r1, ... |
; A267295: Circulant Ramsey numbers RC_2(3,n) of the second kind.
; Submitted by Jamie Morken(s2)
; 3,6,9,14,17,22,27,36,39,46,49
mov $5,$0
mov $6,$0
add $6,1
lpb $6
mov $0,$5
mov $1,0
sub $6,1
sub $0,$6
mov $2,2
lpb $0
mov $3,$0
sub $3,2
lpb $3
mov $4,$0
trn $0,$2
mod $4,$2
... |
copyright zengfr site:http://github.com/zengfr/romhack
001590 lea ($20,A0), A0
00249A move.l -(A6), (A4)+ [123p+ 6C, enemy+6C]
00249C rts [123p+ 6E, 123p+ 70, enemy+6E, enemy+70]
0024B6 move.l -(A6), (A4)+ [123p+ 6C, enemy+6C]
0024B8 rts [123p+ 6E, 123p+ 70, enemy+6E, enemy+70]
0024E8 move.l -(A6), (A4)+ ... |
; A071400: Rounded volume of a regular octahedron with edge length n.
; 0,0,4,13,30,59,102,162,241,344,471,627,815,1036,1294,1591,1931,2316,2749,3233,3771,4366,5020,5736,6517,7366,8285,9279,10348,11497,12728,14044,15447,16941,18528,20211,21994,23878,25867,27963,30170,32490
pow $0,6
sub $0,4
lpb $0
sub $0,1
add $1,... |
PAGE 75, 132
TITLE MP0 Your Name current date
COMMENT *
This program illustrates a (very) basic assembly program and
the use of LIB291 input and output routines.
Put your name in the places where it says 'your name' and also
change the date where it says 'current da... |
DATA B
DATA A
DATA C[4]
DATA D
CONST E = 123
START:
READ AX
READ BX
MOV C[2], AX
MOV B, BX
ADD CX, AX, BX
X:
READ AX
SUB DX, AX, BX
PRINT DX
PRINT CX
IF CX EQ DX THEN
MOV C[0], CX
PRINT C[0]
IF CX EQ DX THEN
MOV C[0], CX
PRINT C[0]
ELSE
MOV C[1], DX
PRINT C[1]
JUMP X
ENDIF
ELSE
MOV C[1], DX
PRINT C[1]
... |
; A329031: a(n) = A327860(A328841(n)).
; Submitted by Jon Maiga
; 0,1,1,5,1,5,1,7,8,31,8,31,1,7,8,31,8,31,1,7,8,31,8,31,1,7,8,31,8,31,1,9,10,41,10,41,12,59,71,247,71,247,12,59,71,247,71,247,12,59,71,247,71,247,12,59,71,247,71,247,1,9,10,41,10,41,12,59,71,247,71,247,12,59,71,247,71,247,12,59,71,247,71,247,12,59,71,247,7... |
inc c
call foo
inc d
end
foo:
inc a
call bar
inc a
ret
bar:
inc b
ret |
// #includes using etc.
#include "LuaRenderer2D.h"
#include "Lua.hpp"
#include "Renderer2D.h"
#include "Texture.h"
#include "Font.h"
#include <assert.h>
// static member initialization of m_pRenderer2D.
aie::Renderer2D* LuaRenderer2D::sm_pRenderer2D;
//-----------------------------------------------------------------... |
; A074932: Row sums of unsigned triangle A075513.
; Submitted by Christian Krause
; 1,3,18,170,2200,36232,725200,17095248,463936896,14246942336,488428297984,18491942300416,766293946203136,34498781924766720,1676731077272217600,87501958444207351808,4880017252828686155776,289655721031484738535424,1823127908045146444811468... |
// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2017 Intel Corporation. All Rights Reserved.
#ifndef LIBREALSENSE_RS2_FRAME_HPP
#define LIBREALSENSE_RS2_FRAME_HPP
#include "rs_types.hpp"
#include "rs_sensor.hpp"
namespace rs2
{
class frame
{
public:
frame() : frame_ref... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %r14
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x1e8a9, %r14
add $32124, %rdx
mov (%r14), %r12w
nop
nop
and %r14, %r14
lea addresses_D_ht+0xd129, %r8
nop
nop
nop
xor %r13, %r13
mov (%r8), %r10d
nop
nop
nop
nop
and... |
;JOS (Jacob Operating System) BOOTSECTOR
[org 0x7C00] ;start at memory address 0x7C00, the part of memory where the boot sector is.
[bits 16]
section .text
global main
main:
;reset segment registers and set stack pointer to entry point
cli ;clear interrupts
jmp 0x0000:zero_seg ;insures that BIOS isn't doing any w... |
#pragma once
#define GLFW_INCLUDE_VULKAN
#include "GLFW/glfw3.h"
#include <string>
namespace procngen {
class Window {
private:
// Window properties
const int width_;
const int height_;
std::string window_name_;
GLFWwindow* window_;
void init_glfw_window();
void terminate_glfw_window()... |
//Linear Fit
#include<iostream>
#include<iomanip>
#include<cmath>
using namespace std;
int main()
{
double x[] = {10.2,11.4,11.5,12.5,13.1,13.4,13.6,15,15.2,15.3,15.6,16.4,16.5,17,17.1};
double y[] = {69.81,82.75,81.75,80.38,85.89,75.32,69.81,78.54,81.29,99.2,86.35,110.23,106.55,85.50,90.02};
int i,j,k,n;
... |
macro EvalPawns Us
; in rbp address of Pos struct
; rdi address of pawn table entry
; out esi score
local Them, Up, Right, Left
local Isolated0, Isolated1, Backward0, Backward1, Doubled
local NextPiece, AllDone, Done, WritePawnSpan
local Neighbours_True, Neighbours_True__Lever_False
local Neighbours_... |
// -*- C++ -*-
//
//$Id: Marshal.inl 72845 2006-05-30 14:09:02Z jwillemsen $
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE
TAO_Marshal_Object::TAO_Marshal_Object (void)
{
}
ACE_INLINE
TAO_Marshal_Primitive::TAO_Marshal_Primitive (void)
{
}
ACE_INLINE
TAO_Marshal_Any::TAO_Marshal_Any (void)
{
}
ACE_INLINE
TAO_Marsh... |
# SYNTAX TEST "Packages/Assembly-6809/Assembly-6809.sublime-syntax"
# <- source.mc6809
label1 macro comment
# <- entity.name.type.constant
#^^^^^ entity.name.type.constant
# ^^^^^ support.function.directive.macro
endm
# ^^^^ support.function.directive.macro
label2 macro no... |
.include "defaults_item.asm"
table_file_jp equ "exe6-utf8.tbl"
table_file_en equ "bn6-utf8.tbl"
game_code_len equ 3
game_code equ 0x4252354A // BR5J
game_code_2 equ 0x42523545 // BR5E
game_code_3 equ 0x42523550 // BR5P
card_type equ 0
card_id equ 15
card_no equ "015"
card_sub equ "Item Card 015"
card_sub_... |
<%
from pwnlib.shellcraft import i386
from pwnlib.context import context as ctx # Ugly hack, mako will not let it be called context
%>
<%page args="dest, src, stack_allowed = True"/>
<%docstring>
Thin wrapper around :func:`pwnlib.shellcraft.i386.mov`, which sets
`context.os` to `'freebsd'` before calling.
Example... |
global _start
section .text
_start:
xor rsi,rsi
push rsi ; starts the search at position 0
pop rdi
next_page:
or di,0xfff
inc rdi
next_4_bytes:
push 21
pop rax
syscall
cmp al,0xf2
jz next_page
mov eax,0xefbeefbd... |
/*
See LICENSE file in root folder
*/
#ifndef ___C3D_RenderQuad_H___
#define ___C3D_RenderQuad_H___
#include "PassesModule.hpp"
#include "Castor3D/Buffer/UniformBufferOffset.hpp"
#include "Castor3D/Material/Texture/Sampler.hpp"
#include "Castor3D/Render/Passes/CommandsSemaphore.hpp"
#include <CastorUtils/Design/Named... |
; A071917: Number of pairs (x,y) where x is even, y is odd, 1<=x<=n, 1<=y<=n and x+y is prime.
; Submitted by Jon Maiga
; 0,1,2,4,5,7,9,11,14,18,21,25,28,31,35,40,44,48,52,56,61,67,72,78,84,90,97,104,110,117,124,131,138,146,154,163,172,181,190,200,209,219,228,237,247,257,266,275,285,295,306,318,329,341,354,367,381,395,... |
#include "Platform.inc"
#include "TestDoubles.inc"
radix decimal
AdcRam udata
setAdcChannelResult res 1
ChannelStubs code
global initialiseSetAdcChannelStub
global setAdcChannel
global releaseAdcChannel
initialiseSetAdcChannelStub:
banksel setAdcChannelResult
movwf setAdcChannelResult
return
setAdcChannel... |
// Created on: 1995-12-06
// Created by: Jacques GOUSSARD
// Copyright (c) 1995-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the G... |
copyright zengfr site:http://github.com/zengfr/romhack
00042A move.l D1, (A0)+
00042C dbra D0, $42a
00046E move.w D0, ($28,A5)
000472 move.w #$9000, $800100.l [base+ 28]
00A9DC move.w #$12d6, ($28,A5)
00A9E2 clr.b ($4d4,A5) [base+ 28]
00AD5E move.w #$6d6, ($28,A5)
00AD64 moveq #$1, D0 [base+ 2... |
copyright zengfr site:http://github.com/zengfr/romhack
0029B2 move.w D1, ($6,A4)
002A24 move.w ($6,PC,D0.w), D2 [base+28C, base+2AC, base+2CC]
002A8A move.b #$c, ($d,A4) [base+28C, base+2AC, base+2CC]
002AAE move.b #$c, ($d,A4) [base+28C, base+2AC, base+2CC]
002BC2 move.b #$c, ($d,A4) [base+28C, base+2AC, b... |
; A268306: The number of even permutations p of 1,2,...,n such that -1<=p(i)-i<=2 for i=1,2,...,n
; 1,1,2,4,7,12,22,41,75,137,252,464,853,1568,2884,5305,9757,17945,33006,60708,111659,205372,377738,694769,1277879,2350385,4323032,7951296,14624713,26899040,49475048,90998801,167372889,307846737,566218426,1041438052,1915503... |
; Z88 Small C+ Run Time Library
; Long functions
;
SECTION code_l_sccz80
PUBLIC l_long_and
l_long_and:
; primary = dehl
; stack = secondary, ret
; 90 cycles
pop ix
pop bc
ld a,c
and l
ld l,a
ld a,b
and h
ld h,a
pop bc
ld a,c
and e
ld e,a
ld a,b
a... |
.data
arr: .word 34, 23, 15, 82, 38, 56, 48, 93, 49, 11
newarr: .word 0:10
msg: .asciiz "Hello World"
space: .asciiz " "
endl: .asciiz "\n"
.text
.globl main
main:
la $s0, arr
add $s1, $zero, $zero
L1:
lw $t1, 0($s0)
li $v0,1
move $a0, $t1
syscall
addi $s0, $s0, 4
addi $s1, $s1, 1
li ... |
.include "binary_clock.inc"
/********************************************************************************
* R A M
*******************************************************************************/
.DSEG
hours: .byte 1
minutes: .byte 1
seconds: .byte 1
/************************************... |
;******************************************************************************
;* SIMD-optimized deinterlacing functions
;* Copyright (c) 2010 Vitor Sessak
;* Copyright (c) 2002 Michael Niedermayer
;*
;* This file is part of FFmpeg.
;*
;* FFmpeg is free software; you can redistribute it and/or
;* modify it und... |
; A164848: a(n) = A026741(n)/A051712(n+1).
; 1,1,3,2,1,3,1,4,3,1,1,6,1,1,3,4,1,3,1,2,3,1,1,12,1,1,3,2,1,3,1,4,3,1,1,6,1,1,3,4,1,3,1,2,3,1,1,12,1,1,3,2,1,3,1,4,3,1,1,6,1,1,3,4,1,3,1,2,3,1,1,12,1,1,3,2,1,3,1,4,3,1,1,6,1,1,3,4,1,3,1,2,3,1,1,12,1,1,3,2
add $0,1
dif $0,2
gcd $0,12
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r8
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x12f9c, %rbp
clflush (%rbp)
nop
sub %r8, %r8
movups (%rbp), %xmm4
vpextrq $1, %xmm4, %r11
nop
nop
add %rdi, %rdi
lea addresses_A_ht+0x1e31c, %r9
nop
nop
nop
nop
nop
and $23... |
; AMXJITSN.ASM: Just-In-Time compiler for the Abstract Machine of the "Pawn"
; scripting language
; (C) 1999-2000, Marc Peter; beta version; provided AS IS WITHOUT ANY WARRANTIES
; I reached >155 million instr./sec on my AMD K6-2/366 with the Hanoi "bench"
; (27 disks, no output, DOS4/GW under Win95) with this impleme... |
flypoint: MACRO
const FLY_\1
db \2, SPAWN_\1
ENDM
Flypoints:
; landmark, spawn point
const_def
; Johto
flypoint NEW_BARK, NEW_BARK_TOWN
flypoint BATTLE_TOWER, BATTLE_TOWER
; Kanto
KANTO_FLYPOINT EQU const_value
flypoint PALLET, PALLET_TOWN
flypoint VIRIDIAN, VIRIDIAN_CITY
flypoint PEWTER, ... |
dnl S/390-64 mpn_rshift.
dnl Copyright 2011, 2014 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of either:
dnl
dnl * the GNU Lesser General Public License as published by the... |
; A295855: a(n) = a(n-1) + 3*a(n-2) -2*a(n-3) - 2*a(n-4), where a(0) = 1, a(1) = -2, a(2) = 2, a(3) = 1.
; Submitted by Jon Maiga
; 1,-2,2,1,9,12,33,49,106,163,317,496,909,1437,2538,4039,6961,11128,18857,30241,50634,81387,135093,217504,358741,578293,949322,1531711,2505609,4045512,6600273,10662169,17360746,28055683,4561... |
db "BALLOON@" ; species name
db "It rolls its cute"
next "eyes as it sings a"
next "soothing lullaby."
page "Its gentle song"
next "puts anyone who"
next "hears it to sleep.@"
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %r15
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x1b463, %r12
nop
sub %r15, %r15
mov $0x6162636465666768, %rdi
movq %rdi, %xmm3
movups %xmm3, (%r12)
nop
nop
xor $57799, %r15
lea addresses_normal_ht+0x11bbb, %rax
n... |
#include "Reflection/ReflectedTypeDB.h"
namespace DAVA
{
ReflectedType::~ReflectedType() = default;
ReflectedType::ReflectedType(const Type* type_)
: type(type_)
{
}
Vector<const AnyFn*> ReflectedType::GetCtors() const
{
Vector<const AnyFn*> ret;
ret.reserve(structure->ctors.size());
for (auto& it :... |
; CALLER linkage for function pointers
SECTION code_clib
PUBLIC strcasecmp
PUBLIC _strcasecmp
EXTERN stricmp1
.strcasecmp
._strcasecmp
pop bc
pop de
pop hl
push hl
push de
push bc
jp stricmp1
|
; A213255: 2^(n-1) - floor((2^(n-1) - 1)/(n-1)).
; 1,3,6,13,26,54,110,225,456,922,1862,3755,7562,15214,30584,61441,123362,247581,496694,996148,1997288,4003654,8023886,16078166,32212255,64527754,129246702,258848476,518358122,1037950430,2078209982,4160749569,8329633544,16674578914,33378031558,66810602383,133724387162,267... |
SafariZoneWest_Object:
db $0 ; border block
def_warps
warp 20, 0, 0, SAFARI_ZONE_NORTH
warp 21, 0, 1, SAFARI_ZONE_NORTH
warp 26, 0, 2, SAFARI_ZONE_NORTH
warp 27, 0, 3, SAFARI_ZONE_NORTH
warp 29, 22, 2, SAFARI_ZONE_CENTER
warp 29, 23, 3, SAFARI_ZONE_CENTER
warp 3, 3, 0, SAFARI_ZONE_SECRET_HOUSE
warp 11,... |
; A093112: a(n) = (2^n-1)^2 - 2.
; -1,7,47,223,959,3967,16127,65023,261119,1046527,4190207,16769023,67092479,268402687,1073676287,4294836223,17179607039,68718952447,274876858367,1099509530623,4398042316799,17592177655807,70368727400447,281474943156223,1125899839733759,4503599493152767,18014398241046527,7205759350105702... |
<%
from pwnlib.shellcraft.arm.linux import syscall
%>
<%page args=""/>
<%docstring>
Invokes the syscall getuid. See 'man 2 getuid' for more information.
Arguments:
</%docstring>
${syscall('SYS_getuid')}
|
; ---------------------------------------------------------------------------
; Subroutine to display Sonic and set music
; ---------------------------------------------------------------------------
Sonic_Display:
move.w flashtime(a0),d0
beq.s @display
subq.w #1,flashtime(a0)
lsr.w #3,d0
bcc.s @chkinvincibl... |
; A198646: 11*3^n-1.
; 10,32,98,296,890,2672,8018,24056,72170,216512,649538,1948616,5845850,17537552,52612658,157837976,473513930,1420541792,4261625378,12784876136,38354628410,115063885232,345191655698,1035574967096,3106724901290,9320174703872,27960524111618,83881572334856,251644717004570,754934151013712,22648024530411... |
#include "StateTransition.h"
using namespace NCL::CSC8503;
|
#include "Texture3D.h"
#include <vector>
Texture3D::Texture3D(const std::vector<GLfloat> & textureBuffer, const int _width, const int _height, const int _depth, const bool generateMipmaps) :
width(_width), height(_height), depth(_depth)//, clearData(4 * _width * _height * _depth, 0.0f)
{
// Generate texture on GPU.... |
; A072672: Prime(n)*prime(2*n)+prime(n)+prime(2*n).
; Submitted by Christian Krause
; 11,31,83,159,359,531,791,1079,1487,2159,2559,3419,4283,4751,5471,7127,8399,9423,11151,12527,13467,15519,16799,20159,22539,24479,26207,28511,29919,32147,37631,41183,43883,47319,52499,54719,59091,62975,66863
mov $1,$0
seq $0,40 ; The p... |
; A021764: Expansion of 1/((1-x)(1-4x)(1-5x)(1-8x)).
; Submitted by Jon Maiga
; 1,18,215,2160,19821,172638,1456915,12056220,98541641,799142058,6448579215,51871439880,416407919461,3338534836278,26744994007115,214144960297140,1714090450201281,13717400347223298,109762678131820615,878219168328612000,7026343529014635101,562... |
; Этот файл содержит в себе определения для доступа к параметрам содержищимся в заголовке FAT16 файловой системы
%ifndef FAT_DEF
%define FAT_DEF
%define bsOemName bp+0x03 ; 8 ; OEM название
%define bsBytesPerSec bp+0x0B ; dw ; кол-во байт в секторе
%define bsSecsPerClust bp+0x0D ; db ; секторов/кластер
%... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
push %r14
push %rcx
push %rdi
push %rdx
push %rsi
// Store
lea addresses_RW+0xcd35, %r11
nop
nop
and %rsi, %rsi
movb $0x51, (%r11)
nop
nop
nop
nop
nop
and %rsi, %rsi
// Store
lea addresses_D+0x13a35, %rdx
cl... |
; A108154: a(n) = n^2 - n + 1 if prime else 0.
; 0,3,7,13,0,31,43,0,73,0,0,0,157,0,211,241,0,307,0,0,421,463,0,0,601,0,0,757,0,0,0,0,0,1123,0,0,0,0,1483,0,0,1723,0,0,0,0,0,0,0,0,2551,0,0,0,2971,0,0,3307,0,3541,0,0,3907,0,0,0,4423,0,0,4831,0,5113,0,0,0,5701,0
mov $2,$0
pow $2,2
add $0,$2
mov $1,$0
add $0,1
mul $0,2
seq... |
; ===============================================================
; Mar 2014
; ===============================================================
;
; size_t b_vector_size(b_vector_t *v)
;
; Return the vector's current size.
;
; ===============================================================
SECTION code_adt_b_vector
P... |
//===--------------------------------------------------------------------------------*- C++ -*-===//
// _
// | |
// __| | __ ___ ___ ___
// / _` |/ _` \ \ /\ / / '_ |
// | (_| | (_| |\ V V /| | | |
// ... |
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trad... |
/// \file
// Range v3 library
//
// Copyright Eric Niebler 2013-present
//
// Use, modification and distribution is subject to 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)
//
// Project home: https://github.com/ericniebler... |
// Copyright (c) 2022 PaddlePaddle 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... |
; A140234: Sum of the semiprimes <= n.
; 0,0,0,0,4,4,10,10,10,19,29,29,29,29,43,58,58,58,58,58,58,79,101,101,101,126,152,152,152,152,152,152,152,185,219,254,254,254,292,331,331,331,331,331,331,331,377,377,377,426,426,477,477,477,477,532,532,589
mov $2,$0
mov $4,$0
lpb $4
mov $0,$2
sub $4,1
sub $0,$4
mov $3,$0
... |
; A315172: Coordination sequence Gal.5.54.5 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,6,10,14,18,22,26,30,34,40,46,50,54,58,62,66,70,74,80,86,90,94,98,102,106,110,114,120,126,130,134,138,142,146,150,154,160,166,170,174,178,18... |
; ---------------------------------------------------------------------------
; Sprite mappings - GHZ platforms
; ---------------------------------------------------------------------------
Map_Plat_GHZ_internal:
dc.w @small-Map_Plat_GHZ_internal
dc.w @large-Map_Plat_GHZ_internal
@small: dc.b 4
dc.b $F4, $B, 0, ... |
; A328005: Number of distinct coefficients in functional composition of 1 + x + ... + x^(n-1) with itself.
; 0,1,2,4,8,13,19,25,33,41,51,61,73,85,99,113,129,145,163,181,201,221,243,265,289,313,339,365,393,421,451,481,513,545,579,613,649,685,723,761,801,841,883,925,969,1013,1059,1105,1153,1201,1251,1301,1353,1405,1459
... |
; A132354: Integers m such that 7*m + 1 is a square.
; 0,5,9,24,32,57,69,104,120,165,185,240,264,329,357,432,464,549,585,680,720,825,869,984,1032,1157,1209,1344,1400,1545,1605,1760,1824,1989,2057,2232,2304,2489,2565,2760,2840,3045,3129,3344,3432,3657,3749,3984,4080
mul $0,2
mov $2,$0
lpb $2
add $1,$0
sub $0,1
ad... |
; A126965: a(n) = (2*n)!*(2*n-1)/(2^n*n!).
; -1,1,9,75,735,8505,114345,1756755,30405375,585810225,12439852425,288735522075,7273385294175,197646339515625,5763367260275625,179518217255251875,5948862302837829375,208977775735174070625,7757508341684492015625,303429397707601987696875,12473408484142233061809375,53763588876520... |
; Executable name : bind-shell
; Designed OS : Linux (32-bit)
; Author : wetw0rk
; Version : 1.0
; Created Following : SLAE
; Description : A linux/x86 bind shell. Created by analysing msfvenom;
; original payload was 78 bytes and contained 1 NULL. My
; ... |
; A239065: n^3*(n^4 + n^2 - 1).
; Submitted by Christian Krause
; 1,152,2403,17344,81125,287496,840007,2129408,4841289,10099000,19646891,36078912,63117613,105948584,171615375,269479936,411753617,614103768,896340979,1283192000,1805163381,2499500872,3411249623,4594420224,6113265625,8043673976,10474682427,13510116928,1727... |
/**
* \file dnn/src/cuda/conv_bias/simple_int1.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on a... |
\ ******************************************************************
\ * Event Vector Routines
\ ******************************************************************
\\ System vars
.old_eventv SKIP 2
.start_eventv ; new event handler in X,Y
{
\\ Remove interrupt instructions
lda #NOP_OP
sta PSG_STROBE_SEI_... |
; #########################################################################
.186
.model tiny
; #########################################################################
.code
start:
mov ax, 03h ; set video mode 80x25, 16 colors
int 10h ; change video mode & clear scr... |
; A132731: Triangle T(n,k) = 2 * binomial(n,k) - 2 with T(n,0) = T(n,n) = 1, read by rows.
; 1,1,1,1,2,1,1,4,4,1,1,6,10,6,1,1,8,18,18,8,1,1,10,28,38,28,10,1,1,12,40,68,68,40,12,1,1,14,54,110,138,110,54,14,1,1,16,70,166,250,250,166,70,16,1,1,18,88,238,418,502,418,238,88,18,1,1,20,108,328,658,922,922,658,328,108,20,1,1,2... |
; A065043: Characteristic function of the numbers with an even number of prime factors (counted with multiplicity): a(n) = 1 if n = A028260(k) for some k then 1 else 0.
; 1,0,0,1,0,1,0,0,1,1,0,0,0,1,1,1,0,0,0,0,1,1,0,1,1,1,0,0,0,0,0,0,1,1,1,1,0,1,1,1,0,0,0,0,0,1,0,0,1,0,1,0,0,1,1,1,1,1,0,1,0,1,0,1,1,0,0,0,1,0,0,0,0,1,0... |
; A089898: Product of (digits of n each incremented by 1).
; 1,2,3,4,5,6,7,8,9,10,2,4,6,8,10,12,14,16,18,20,3,6,9,12,15,18,21,24,27,30,4,8,12,16,20,24,28,32,36,40,5,10,15,20,25,30,35,40,45,50,6,12,18,24,30,36,42,48,54,60,7,14,21,28,35,42,49,56,63,70,8,16,24,32,40,48,56,64,72,80,9,18,27,36,45,54,63,72,81,90,10,20,30,40,... |
;
; Amstrad CPC Stdio
;
; putchar - puts a character
; (HL)=char to display
;
; Stefano Bodrato - 8/6/2001
;
;
; $Id: fputc_cons.asm,v 1.5 2015/01/19 01:33:20 pauloscustodio Exp $
;
PUBLIC fputc_cons
INCLUDE "cpcfirm.def"
.fputc_cons
ld hl,2
add hl,sp
ld ... |
_grep: file format elf32-i386
Disassembly of section .text:
00000000 <grep>:
char buf[1024];
int match(char*, char*);
void
grep(char *pattern, int fd)
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 ec 18 sub $0x18,%esp
int n, m;
char *p, *q;
... |
/*
* Copyright Null LLC
* Please read the License!
* _ _ _
* | | | | | |
* | |__ | |_ _ _ | | ____ ____
* | __)| | | | |/ || |/ ___) _ | gdt.hpp
* | | | | |_| ( (_| | | ( ( | | Info about the CPU
* |_| |_|\__ |\____|_| \_||_|
* (____/
*/
#pragma once
#in... |
=============================================================================
; ATA read sectors (LBA mode)
;
; @param EAX Logical Block Address of sector
; @param CL Number of sectors to read
; @param RDI The address of buffer to put data obtained from disk
;
; @return None
;=========================================... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r15
push %r8
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x172fd, %rsi
lea addresses_UC_ht+0xfa5d, %rdi
clflush (%rsi)
nop
nop
and %rax, %rax
mov $32, %rcx
rep movsb
nop
add %rsi, %rsi
lea addresses_WC_ht+0x16abf, %rsi
lea addresses_W... |
;-------------------------------------------------------------------------------
; thread.nasm - thread system calls.
;-------------------------------------------------------------------------------
module tm.kern.thread
%include "sys.ah"
%include "errors.ah"
%include "thread.ah"
%include "tm/kern.ah"
%include "tm/pr... |
DisplayPCMainMenu::
xor a
ldh [hAutoBGTransferEnabled], a
call SaveScreenTilesToBuffer2
ld a, [wNumHoFTeams]
and a
jr nz, .leaguePCAvailable
CheckEvent EVENT_GOT_POKEDEX
jr z, .noOaksPC
ld a, [wNumHoFTeams]
and a
jr nz, .leaguePCAvailable
hlcoord 0, 0
ld b, 8
ld c, 14
jr .next
.noOaksPC
hlcoord 0, 0
ld... |
Name: ys_w44.asm
Type: file
Size: 25275
Last-Modified: '2016-05-13T04:51:16Z'
SHA-1: 2DAF4EDFBC190533F4114EFE9880F3BAEDD6D4A3
Description: null
|
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/blink/websourcebuffer_impl.h"
#include <stdint.h>
#include <cmath>
#include <limits>
#include "base/bind.h"
#include "base/callback.h"
... |
; /*
; * Provide SSE luma and chroma mc functions for HEVC decoding
; * Copyright (c) 2013 Pierre-Edouard LEPERE
; *
; * This file is part of FFmpeg.
; *
; * FFmpeg is free software; you can redistribute it and/or
; * modify it under the terms of the GNU Lesser General Public
; * License as published by the Free Softwa... |
; A053545: Comparisons needed for Batcher's sorting algorithm applied to 2^n items.
; 0,1,5,19,63,191,543,1471,3839,9727,24063,58367,139263,327679,761855,1753087,3997695,9043967,20316159,45350911,100663295,222298111,488636415,1069547519,2332033023,5066719231,10972299263,23689428991,51002736639,109521666047,234612588543... |
/*************************************************************************/
/* file_access.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
db "POISONMOTH@" ; species name
dw 411, 280 ; height, weight
db "The scales it"
next "scatters will"
next "paralyze anyone"
page "who touches them,"
next "making that person"
next "unable to stand.@"
|
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
c0
.text@150
lbegin:
ld a, 00
ldff(ff), a
ld a, 30
ldff(00), a
ld a, 01
ldff(4d), a
stop, 00
ld a, ff
ldff(45), a
ld b, 91
call lwaitly_b
ld hl, fe00
ld d, 10
ld a, d
ld(hl++), a
ld a, 08
ld(hl++), a
inc l
inc l
ld a, d
ld(hl++), ... |
/*
* Copyright (c) 2011-2019, The DART development contributors
* All rights reserved.
*
* The list of contributors can be found at:
* https://github.com/dartsim/dart/blob/master/LICENSE
*
* This file is provided under the following "BSD-style" License:
* Redistribution and use in source and binary forms, w... |
;
; CCE MC-1000 Stdio
;
; getk() Read key status
;
; Stefano Bodrato, 2013
;
;
; $Id: getk.asm,v 1.5 2015/01/19 01:33:20 pauloscustodio Exp $
;
; The code at entry $c009 checks if a key has been pressed in a 7ms interval.
; If so, A and ($012E) are set to $FF and the key code is put in ($011C).
; Otherwise, A and ($01... |
SECTION smc_sound_bit
PUBLIC _bitfx_14
INCLUDE "clib_target_cfg.asm"
EXTERN asm_bit_open
_bitfx_14:
; Squoink
ld a,230
ld (qi_FR_1 + 1),a
xor a
ld (qi_FR_2 + 1),a
call asm_bit_open
ld b,200
qi_loop:
dec h
jr nz, qi_jump
push af
ld a,(qi_FR_1 + 1)
dec a
ld ... |
code32
format ELF
public _detab
section '.text' executable align 16
_detab:
ldrb r3, [r8]
cmp r3, #0
beq .return
.loop:
cmp r3, #9
beq .replace
ldrb r3, [r0, #1]
cmp r3, #0
bne .loop
.return:
mov r0, #0
bx lr
.replace:
strb r2, [r0]
ldrb r3, [r0, #1]
cmp r3, #0
bne .loop
mov r0... |
Function: ?DebugStr@@YAXPAE@Z
00000: 0000 53 PUSH EBX
00000: 0001 56 PUSH ESI
00000: 0002 8B 5C 24 0C MOV EBX, DWORD PTR 0000000C[ESP]
00008: 0006 0F B6 13 MOVZX EDX, BYTE PTR 00000000[EBX]
00008: 0009 42 INC ... |
// See the file "COPYING" in the main distribution directory for copyright.
#include "zeek-config.h"
#include "JSON.h"
#include "rapidjson/internal/ieee754.h"
#include "Desc.h"
#include "threading/MsgThread.h"
#ifndef __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS
#endif
#include <sstream>
#include <errno.h>
#incl... |
;
; Z88dk Generic Floating Point Math Library
;
; divide bc ix de by FA, leave result in FA
;
; $Id: fdiv.asm,v 1.4 2015/01/19 01:32:56 pauloscustodio Exp $
PUBLIC fdiv
EXTERN sgn
EXTERN div14
EXTERN pack2
EXTERN norm4
EXTERN fa
EXTERN extra
.fdiv
call sgn
ret z ;dividing by zero..
... |
; A128492: Denominator of Sum_{k=1..n} 1/(2*k-1)^2.
; Submitted by Jon Maiga
; 1,9,225,11025,99225,12006225,2029052025,405810405,117279207045,42337793743245,42337793743245,22396692890176605,2799586611272075625,25196279501448680625,21190071060718340405625
mul $0,2
mov $1,1
lpb $0
mov $2,$0
sub $0,2
add $2,1
pow... |
#include <Engine/Model/CModel.h>
#include <Engine/Texture/CTexture.h>
#include <Engine/Model/CMesh.h>
#include <Engine/Shader/CShader.h>
#include <Engine/Camera/CCamera.h>
#include <Engine/Engine.h>
#include <Engine/Light/CLightsSet.h>
#include <Engine/Serialization/SerializationUtils.h>
#include <iostream>
std::ost... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.