text stringlengths 1 1.05M |
|---|
/*
* Vulkan Example - Push descriptors
*
* Note: Requires a device that supports the VK_KHR_push_descriptor extension
*
* Push descriptors apply the push constants concept to descriptor sets. So instead of creating
* per-model descriptor sets (along with a pool for each descriptor type) for rendering multiple objects,... |
/*************************************************************************/
/* rasterizer_scene_gles3.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
; A036144: a(n) = 2^n mod 131.
; Submitted by Jamie Morken(m3)
; 1,2,4,8,16,32,64,128,125,119,107,83,35,70,9,18,36,72,13,26,52,104,77,23,46,92,53,106,81,31,62,124,117,103,75,19,38,76,21,42,84,37,74,17,34,68,5,10,20,40,80,29,58,116,101,71,11,22,44,88,45,90,49,98,65,130,129,127,123,115,99,67,3,6,12,24,48,96,61,122,113,95... |
;********************************************************************
; config.asm
;
; BIOS rewrite for PC/XT
; BIOS replacement for PC/XT clone
;
; This file is the New BIOS Configuration
;
;********************************************************************
;
; change log
;------------
; created 06/24/2019 ... |
; A081041: 6th binomial transform of (1,5,0,0,0,0,0,0,...).
; 1,11,96,756,5616,40176,279936,1912896,12877056,85660416,564350976,3688436736,23944605696,154551545856,992612745216,6347497291776,40435908673536,256721001578496,1624959306694656,10257555623510016,64592132441112576,405833586846990336,2544686274283831296,159262... |
; SPIR-V
; Version: 1.0
; Generator: Khronos Glslang Reference Front End; 10
; Bound: 47
; Schema: 0
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %4 "main" %22
OpExecutionMode %4 OriginUp... |
//===- llvm/unittest/Support/FileUtilitiesTest.cpp - unit tests -----------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
NAME Data_transfer
TITLE add
assume cs:codesg,ds:datasg
; this is add proc ;;
datasg segment
data1 db 1,0ffh ,101B,'$ 2', 'WoW:),Zp* '
dw 0123h, 0456H,0abch ,0defh,110101001b
msg1 DD 1023, 10001001011001011100B,5C2A57F2H
ARRAY db 2 DUP (1,101b , 'Y') ;?
mgs2 db 3 dup('hello')
db ?
db 3 du... |
#include "parameters.h"
const float A_MIN = 100;
const float A_HUGE = 500;
const float ALPHA = 1.3f;
const float R_MIN = 5.f;
const int N_DOMINANT = 20;
const bool SAVE_PATCH_MATCH = false;
const int MIN_PATCH_OFFSET = 20;
const int RELEVANT_OFFSET_NORM = 25;
const float VARIANCE_THRESHOLD = 2.f; |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC/GEOS
MODULE: ffile.ldf
FILE: ffmanagerManager.asm
AUTHOR: Jeremy Dashe, Jan 24, 1992
ROUTINES:
Name Description
---- -----------
FlatFileEntry Ent... |
// Copyright (c) 2012 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 "base/process_util.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/ui/brow... |
; -----------------------------------------------------------------------------
; "Smart" integrated RCS+ZX1 decoder by Einar Saukas (112 bytes)
; -----------------------------------------------------------------------------
; Parameters:
; HL: source address (compressed data)
; DE: destination address (decompressi... |
\ Write characters to Mode 7 screen
\ Using Indirect Indexing
\ Using BeebASM assembler
\ Help from https://twitter.com/0xC0DE6502
oswrch = &FFEE
screen = &7C00
addr = &70
ay = &81
ORG &2000
.start
.mode
LDA #7 \ Change to Mode 7
JSR screenmode
LDA #65
LDY #24
LDX #20
.loop
JSR mode7... |
;Ascending order using bubble sort
jmp START
arr: DB 43H, 12H, 07H, 36H, 11H ;elements in array(arr)
arrsize: DB 05H ;size(n) of array(arr)
START: nop
lda arrsize
mov c,a ;store size(n) of array
dcr c ;n=n-1
AGAIN: lxi h,... |
; A194756: Number of k such that {-k*pi} < {-n*pi}, where { } = fractional part.
; 1,1,1,1,1,1,1,8,7,6,5,4,3,2,15,13,11,9,7,5,3,22,19,16,13,10,7,4,29,25,21,17,13,9,5,36,31,26,21,16,11,6,43,37,31,25,19,13,7,50,43,36,29,22,15,8,57,49,41,33,25,17,9,64,55,46,37,28,19,10,71,61,51,41,31
mov $1,7
mov $2,$0
mod $0,7
sub $1,$0... |
object_const_def
Route110_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
;callback MAPCALLBACK_NEWMAP, .InitializeRoom
;callback MAPCALLBACK_TILES, .SetSpawn
Route110_MapEvents:
db 0, 0 ; filler
db 0 ; warp events
db 0 ; coord events
db 0 ; bg events
;bg_event 0, 1, BGEVENT_READ, RedsHouse1FBookshe... |
; A055718: Erroneous version of A056171.
; 0,1,1,1,2,1,2,2,2,1,2,2,3,2,2,2,3,3,4,4,4,3,4,4,4,3,3,3,4,4,5,5,5,4,4,4,5,4,4,4,5,5,6,6,6,5,6,6,6,6,6,6,7,7,7,7,7,6,7,7,8,7,7,7,7,7,8,8,8,8,9,9,10,9,9,9,9,9,10,10,10,9,10,10,10,9,9,9,10,10,10,10,10,9,9,9,10,10
mov $2,$0
pow $0,2
mov $1,$2
cal $1,56171 ; a(n) = pi(n) - pi(floo... |
MODULE generic_console_ioctl
PUBLIC generic_console_ioctl
SECTION code_clib
INCLUDE "ioctl.def"
EXTERN __zx_32col_font
EXTERN __zx_64col_font
EXTERN __zx_32col_udgs
; a = ioctl
; de = arg
generic_console_ioctl:
ex de,hl
ld c,(hl) ;bc = where we point to
inc hl
ld b,(hl)
cp IOCTL_GENCON_SET_FONT32
jr n... |
; A130713: a(0)=a(2)=1, a(1)=2, a(n)=0 for n > 2.
; 1,2,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,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
mov $1,2
bin $1,$0
mov $0,$1
|
;
;
;
; This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
;
; Copyright 2007-2019 Broadcom Inc. All rights reserved.
;
;
; This is the default program for the (20 GE port) BCM56800 SDKs.
; To start it, use the following commands from BC... |
map_header DiglettsCave, DIGLETTS_CAVE, CAVERN, 0
end_map_header
|
#include <cmath>
#include "Isis.h"
#include "ProcessByLine.h"
#include "SpecialPixel.h"
#include "IException.h"
using namespace std;
using namespace Isis;
void cubefunc(Buffer &in,
Buffer &out);
double bad = 0;
double y;
enum function {
COS,
SIN,
TAN,
ACOS,
ASIN,
ATAN,
INV,
SQRT,
POW... |
; A109763: Primes repeated.
; 2,2,3,3,5,5,7,7,11,11,13,13,17,17,19,19,23,23,29,29,31,31,37,37,41,41,43,43,47,47,53,53,59,59,61,61,67,67,71,71,73,73,79,79,83,83,89,89,97,97,101,101,103,103,107,107,109,109,113,113,127,127,131,131
div $0,2
cal $0,40 ; The prime numbers.
mov $1,$0
|
//
// Created by qfeng on 17-9-29.
//
#include "gbtree_model/tree_node.h"
namespace quickscorer {
TreeNode::TreeNode(uint32_t depth) {
// initialize depth of node in the tree
this->_depth = depth;
// initialize bitvector and mask with 11...11
_mask = _bitvector = ~((BANDWITH_TYPE)... |
title Special Export call locations for DS == SS conversion.
; Windows Write, Copyright 1985-1992 Microsoft Corporation
?DF = 1 ; Dont generate default segment definitions
?PLM = 1
.XLIST
include cmacros.inc
.LIST
subttl Define Windows Groups
... |
; Hack and Slash Adventure for the HP-35s
; This program is by Paul Dale and is used here by permission.
; https://www.hpmuseum.org/software/35hacksl.htm
MODEL P35S
SEGMENT HackAndSlash CODE
LBL D
ALL
XEQ @702
SF 10
XEQ @639
STO M
XEQ @639... |
lda {m1}
sta $fe
lda {m1}+1
sta $ff
sec
lda ($fe),y
sbc {m2}
sta ($fe),y
iny
lda ($fe),y
sbc {m2}+1
sta ($fe),y
iny
lda ($fe),y
sbc {m2}+2
sta ($fe),y
iny
lda ($fe),y
sbc {m2}+3
sta ($fe),y |
[BITS 64]
global unused_interrupt_handler:function
global modern_interrupt_handler:function
global cpu_sampling_irq_entry:function
global blocking_cycle_irq_entry:function
global parasite_interrupt_handler:function
extern current_eoi_mechanism
extern current_intr_handler
extern cpu_sampling_irq_handler
extern blocking... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: print drivers
FILE: uiEval.asm
AUTHOR: Dave Durran
ROUTINES:
Name Description
---- -----------
PrintEvalUI gets ui info from... |
/*
* All Video Processing kernels
* Copyright © <2010>, Intel Corporation.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the ri... |
SECTION code_stdio
PUBLIC __stdio_printf_g
EXTERN __dtog__, __stdio_printf_float_tail
__stdio_printf_g:
; %g, %G converter called from vfprintf()
;
; enter : ix = FILE *
; hl = void *stack_param
; de = void *buffer_digits
; hl'= current output tally
; stack = bu... |
Route7_Script:
jp EnableAutoTextBoxDrawing
Route7_TextPointers:
dw Route7Text1
Route7Text1:
text_far _Route7Text1
text_end
|
; A080856: a(n) = 8*n^2 - 4*n + 1.
; 1,5,25,61,113,181,265,365,481,613,761,925,1105,1301,1513,1741,1985,2245,2521,2813,3121,3445,3785,4141,4513,4901,5305,5725,6161,6613,7081,7565,8065,8581,9113,9661,10225,10805,11401,12013,12641,13285,13945,14621,15313,16021,16745,17485,18241,19013,19801,20605,21425,22261,23113,23981,2... |
; A125837: Numbers whose base 8 or octal representation is 6666666......6.
; 0,6,54,438,3510,28086,224694,1797558,14380470,115043766,920350134,7362801078,58902408630,471219269046,3769754152374,30158033218998,241264265751990,1930114126015926,15440913008127414,123527304065019318,988218432520154550,7905747460161236406,632... |
/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2014 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person ... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2011-2017 Intel Corporation All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions
; are met:
; * Redistributions of so... |
/**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* 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... |
; A063196: Dimension of the space of weight 2n cuspidal newforms for Gamma_0( 7 ).
; 0,1,3,3,5,5,7,7,9,9,11,11,13,13,15,15,17,17,19,19,21,21,23,23,25,25,27,27,29,29,31,31,33,33,35,35,37,37,39,39,41,41,43,43,45,45,47,47,49,49,51,51,53,53,55,55,57,57,59,59,61,61,63,63,65,65,67,67,69,69,71,71,73,73,75,75,77,77,79,79,81,81... |
; $Id: EMRCA.asm 69111 2017-10-17 14:26:02Z vboxsync $
;; @file
; EM Assembly Routines.
;
;
; Copyright (C) 2006-2017 Oracle Corporation
;
; This file is part of VirtualBox Open Source Edition (OSE), as
; available from http://www.virtualbox.org. This file is free software;
; you can redistribute it and/or modify it u... |
global NW_ASM_AVX512
extern malloc
extern free
extern printf
extern backtracking_C
extern new_alignment_matrix
extern get_score_SSE
section .rodata
malloc_error_str : db `No se pudo reservar memoria suficiente.\nMalloc: %d\nIntente reservar: %d bytes\n`,0
; Máscara utilizada para invertir el string almacenado en un... |
/*
* Copyright (C) 2019-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "level_zero/core/source/fence.h"
#include "shared/source/command_stream/command_stream_receiver.h"
#include "shared/source/memory_manager/memory_constants.h"
#include "shared/source/memory_manager/memory_manager.h"
#inc... |
; A166925: Digital root of square of n-th triangular number.
; 1,9,9,1,9,9,1,9,9,1,9,9,1,9,9,1,9,9,1,9,9,1,9,9,1,9,9,1,9,9,1,9,9,1,9,9,1,9,9,1,9,9,1,9,9,1,9,9,1,9,9,1,9,9,1,9,9,1,9,9,1,9,9,1,9,9,1,9,9,1,9,9,1,9,9,1,9,9,1,9,9,1,9,9,1,9,9
mod $0,3
pow $1,$0
gcd $1,9
|
; A139245: a(n) = 20*n - 16.
; 4,24,44,64,84,104,124,144,164,184,204,224,244,264,284,304,324,344,364,384,404,424,444,464,484,504,524,544,564,584,604,624,644,664,684,704,724,744,764,784,804,824,844,864,884,904,924,944,964,984,1004,1024,1044,1064,1084,1104,1124,1144,1164,1184,1204,1224,1244,1264,1284,1304,1324,1344,1364,... |
; char *stpcpy(char * restrict s1, const char * restrict s2)
SECTION code_clib
SECTION code_string
PUBLIC stpcpy_callee
EXTERN asm_stpcpy
stpcpy_callee:
pop bc
pop hl
pop de
push bc
jp asm_stpcpy
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _stpcpy_callee
defc _stpcpy_callee = stpcpy_callee
E... |
incasm "macroMath.asm"
num_enemies byte 0
; Whether this enemy exists
enemy_exists dcb 10,0
; The theta is from 0 to $a0
enemy_theta dcb 10,0
; The radius from -127 to +127
enemy_radius dcb 10,0
; Equivalent x & y locations, maybe.
enemy_x dcw 10,0
enemy_y dcw 10,0
; Enumeration of enemy ... |
; A211774: Number of rooted 2-regular labeled graphs on n nodes.
; Submitted by Christian Krause
; 0,0,0,3,12,60,420,3255,28056,270144,2868840,33293205,419329020,5697423732,83069039508,1293734268645,21436030749840,376516868504160,6988441065717744,136675039085498691,2809247116432575420,60543293881318183740,1365186080156... |
// Copyright 2014 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 "ui/ozone/platform/dri/dri_window_delegate_manager.h"
#include "ui/ozone/platform/dri/dri_window_delegate.h"
namespace ui {
DriWindowDelegateM... |
; A048740: Product of divisors of n-th composite number.
; 8,36,64,27,100,1728,196,225,1024,5832,8000,441,484,331776,125,676,729,21952,810000,32768,1089,1156,1225,10077696,1444,1521,2560000,3111696,85184,91125,2116,254803968,343,125000,2601,140608,8503056,3025,9834496,3249,3364,46656000000,3844,250047,2097152,4225,1897... |
; L0903.asm
; Generated 01.03.1980 by mlevel
; Modified 01.03.1980 by Abe Pralle
INCLUDE "Source/Defs.inc"
INCLUDE "Source/Levels.inc"
;---------------------------------------------------------------------
SECTION "Level0903Section",ROMX
;---------------------------------------------------------------------
L0903_C... |
/****************************************************************************
** Meta object code from reading C++ file 'formempresas.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.5.1)
**
** WARNING! All changes made in this file will be lost!
********************************************************... |
; A079001: Digital equivalents of letters A, B, C, ..., Z on touch-tone telephone keypad.
; 2,2,2,3,3,3,4,4,4,5,5,5,6,6,6,7,7,7,7,8,8,8,9,9,9,9
add $0,4
lpb $0
trn $0,3
mov $2,$1
trn $2,6
add $0,$2
add $1,1
lpe
mov $0,$1
|
;start=0x3000
#include ../registers.inc
#include ../init.asm
#include ../isr.asm
#include ../utilities.asm
org $3000
bset DDRB,$FF ; set port b for output
bset DDRJ,$02 ; enable leds
bclr PTJ,$02
bset DDRP,$FF ; set off 7 seg display
lds #STACK
movb #$FF,PORTB
swi
;test
;from dbug12 import Debugge... |
/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2015 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
... |
global _start
section .text
_start:
mov al, 0x1
sub al, 0x3
jns exit_ten
mov rax, 60
mov rdi, 0
syscall
exit_ten:
mov rax, 60
mov rdi, 10
syscall
section .data
|
ori $1,$0,0x1919
jal loop1
sw $1,-0x300c($31)
loop1:
jal loop2
ori $2,$0,0x928e
loop2:
sw $2,-0x3010($31)
jal loop3
sw $31,8($0)
loop3:
jal loop4
nop
loop4:
sw $31,12($0) |
def main(a0:i8, c0:i8, e0:i8, g0:i8, i0:i8, a1:i8, c1:i8, e1:i8, g1:i8, i1:i8, a2:i8, c2:i8, e2:i8, g2:i8, i2:i8, a3:i8, c3:i8, e3:i8, g3:i8, i3:i8, a4:i8, c4:i8, e4:i8, g4:i8, i4:i8, a5:i8, c5:i8, e5:i8, g5:i8, i5:i8, a6:i8, c6:i8, e6:i8, g6:i8, i6:i8, a7:i8, c7:i8, e7:i8, g7:i8, i7:i8, a8:i8, c8:i8, e8:i8, g8:i8, i8:... |
; -----------------------------------------------------------------------------
; Lisp for the 65c02.
; Used with the Ophis assembler and the py65mon simulator.
; Martin Heermance <mheermance@gmail.com>
; -----------------------------------------------------------------------------
; establish module level scope to hi... |
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
//
// Copyright (c) 2011 The LevelDB Authors. All rig... |
SECTION code_clib
SECTION code_adt_wa_priority_queue
PUBLIC __w_heap_swap
__w_heap_swap:
; enter : hl = word *
; de = word *
;
; exit : hl = word * (unchanged)
; de += 2
; swap two words at addresses de, hl
;
; uses : af, bc, de
ld a,(de)
ldi
ld c,a
ld... |
; A060820: (2*n-1)^2 + (2*n)^2.
; 5,25,61,113,181,265,365,481,613,761,925,1105,1301,1513,1741,1985,2245,2521,2813,3121,3445,3785,4141,4513,4901,5305,5725,6161,6613,7081,7565,8065,8581,9113,9661,10225,10805,11401,12013,12641,13285,13945,14621,15313,16021,16745,17485,18241,19013,19801,20605,21425,22261,23113,23981,24865,... |
pla
pla
pla
pla |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r8
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x14687, %rsi
lea addresses_WT_ht+0x1787, %rdi
clflush (%rsi)
nop
nop
nop
nop
inc %r8
mov $4, %rcx
rep movsw
nop
nop
nop
nop
cmp $18169, %r13
lea addresses_A_ht+0x19587, %rsi
lea addresses... |
; A309715: Number of even parts appearing among the third largest parts of the partitions of n into 4 parts.
; 0,0,0,0,0,0,0,1,2,3,4,5,6,8,10,13,16,19,22,26,30,35,40,46,52,59,66,74,82,91,100,111,122,134,146,159,172,187,202,219,236,254,272,292,312,334,356,380,404,430,456,484,512,542,572,605,638,673,708,745,782,822,862,9... |
;
; Copyright (C) 2008-2020 Advanced Micro Devices, Inc. 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,
; this list of... |
; NEC PC8001 graphics library, by @Stosstruppe
; Adapted to z88dk by Stefano Bodrato, 2018
SECTION code_clib
PUBLIC pcalc
EXTERN base_graphics
;
; $Id: pcalc.asm $
;
; ******************************************************************
;
; Get absolute pixel address in map of virtual (x,y) coordinate.
;
; Design... |
;;
;; Copyright (c) 2019-2021, Intel Corporation
;;
;; 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 conditions and... |
; A032818: Numbers whose set of base-6 digits is {1,4}.
; Submitted by Christian Krause
; 1,4,7,10,25,28,43,46,61,64,151,154,169,172,259,262,277,280,367,370,385,388,907,910,925,928,1015,1018,1033,1036,1555,1558,1573,1576,1663,1666,1681,1684,2203,2206,2221,2224,2311,2314,2329,2332,5443,5446,5461,5464,5551,5554,5569,5572... |
// Copyright 2012 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 "cc/trees/layer_tree_host.h"
#include "base/basictypes.h"
#include "cc/layers/render_surface_impl.h"
#include "cc/layers/video_layer.h"
#include... |
xor dx, dx
test:
in ax, 0x60
mov bx, 42
mov cx, 1
add dx, cx
cmp dx, 255
jne test
hlt
|
; A048645: Integers with one or two 1-bits in their binary expansion.
; 1,2,3,4,5,6,8,9,10,12,16,17,18,20,24,32,33,34,36,40,48,64,65,66,68,72,80,96,128,129,130,132,136,144,160,192,256,257,258,260,264,272,288,320,384,512,513,514,516,520,528,544,576,640,768,1024,1025,1026,1028,1032,1040,1056,1088,1152,1280,1536,2048,2049... |
// Copyright (c) 2007-2020 Hartmut Kaiser
//
// SPDX-License-Identifier: BSL-1.0
// 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)
#pragma once
#include <hpx/config.hpp>
#include <hpx/actions/transfer_action.hpp... |
EvolutionAnimation:
push hl
push de
push bc
ld a, [wCurSpecies]
push af
ldh a, [rOBP0]
push af
ld a, [wBaseDexNo]
push af
call .EvolutionAnimation
pop af
ld [wBaseDexNo], a
pop af
ldh [rOBP0], a
pop af
ld [wCurSpecies], a
pop bc
pop de
pop hl
ld a, [wEvolutionCanceled]
and a
ret z
scf
ret
.... |
; A104721: Expansion of (1+x)^2/(1-4*x^2).
; 1,2,5,8,20,32,80,128,320,512,1280,2048,5120,8192,20480,32768,81920,131072,327680,524288,1310720,2097152,5242880,8388608,20971520,33554432,83886080,134217728,335544320,536870912,1342177280,2147483648,5368709120,8589934592,21474836480,34359738368,85899345920,137438953472,34359... |
class Solution {
public:
int minPathSum(vector<vector<int>>& grid) {
int n = grid.size();
int m = grid[0].size();
vector<vector<int>> dp(n, vector<int>(m));
dp[0][0] = grid[0][0];
for(int i = 1; i < n; i++){
dp[i][0] = dp[i-1][0] + grid[i][0];
}
fo... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
%>
<%docstring>accept(fd, addr, addr_len) -> str
Invokes the syscall accept.
See 'man 2 accept' for more information.
Arguments:
fd(int): fd
addr(SOCKADDR_ARG): addr
addr_len(socklen_t*): addr_len
Returns:
int
</... |
; -----------------------------------------------------------------------------
; Test for heap functions under py65mon.
; Martin Heermance <mheermance@gmail.com>
; -----------------------------------------------------------------------------
.word $8000
.org $8000
.outfile "tests/cellTest.rom"
.alias RamSize $7EFF... |
; void sp1_DeleteSpr_fastcall(struct sp1_ss *s)
SECTION code_clib
SECTION code_temp_sp1
PUBLIC _sp1_DeleteSpr_fastcall
EXTERN asm_sp1_DeleteSpr
defc _sp1_DeleteSpr_fastcall = asm_sp1_DeleteSpr
|
#include <sstream>
#include <iomanip>
#include <algorithm>
#include <thread>
#include <condition_variable>
#include <spdlog/spdlog.h>
#include <filesystem.h>
#include "overlay.h"
#include "logging.h"
#include "cpu.h"
#include "gpu.h"
#include "memory.h"
#include "timing.hpp"
#include "mesa/util/macros.h"
#include "stri... |
dnl AMD K7 mpn_lshift -- mpn left shift.
dnl Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
dnl
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
dnl modify it under the terms of the GNU Lesser General Public License as
dnl p... |
#include <iostream>
#include <cstdio>
#include <algorithm>
#include <cstring>
#include <sstream>
#include <vector>
#include <iomanip>
#include <cmath>
#include <set>
#include <map>
#include <queue>
#include <climits>
#include <cassert>
using namespace std;
typedef long long LL;
typedef pair<int,int> pii;
#define pb ... |
;/*!
; @file
;
; @brief BvsModeUndo DOS wrapper
;
; (c) osFree Project 2021, <http://www.osFree.org>
; for licence see licence.txt in root directory, or project website
;
; This is Family API implementation for DOS, used with BIND tools
; to link required API
;
; @author Yuri Prokushev (yuri.prokushev@gma... |
BITS 64
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
; FADDP
FLDPI
FLDPI
FLDPI
;TEST_BEGIN_RECORDING
fsubrp st2, st0
;TEST_END_RECORDING
|
; A199559: 2*9^n+1.
; 3,19,163,1459,13123,118099,1062883,9565939,86093443,774840979,6973568803,62762119219,564859072963,5083731656659,45753584909923,411782264189299,3706040377703683,33354363399333139,300189270593998243,2701703435345984179,24315330918113857603,218837978263024718419,1969541804367222465763,177258762393050... |
; ---------------------------------------------------------------------------
; Sprite mappings - walls (GHZ)
; ---------------------------------------------------------------------------
Map_Edge_internal:
dc.w M_Edge_Shadow-Map_Edge_internal
dc.w M_Edge_Light-Map_Edge_internal
dc.w M_Edge_Dark-Map_Edge_internal... |
; A168230: a(n) = n + 2 - a(n-1) for n>1; a(1) = 0.
; 0,4,1,5,2,6,3,7,4,8,5,9,6,10,7,11,8,12,9,13,10,14,11,15,12,16,13,17,14,18,15,19,16,20,17,21,18,22,19,23,20,24,21,25,22,26,23,27,24,28,25,29,26,30,27,31,28,32,29,33,30,34,31,35,32,36,33,37,34,38,35,39,36,40,37,41,38,42,39,43,40,44,41,45,42,46,43,47,44,48,45,49,46,50,... |
; A157620: 781250n^2 - 1107500n + 392499.
; 66249,1302499,4101249,8462499,14386249,21872499,30921249,41532499,53706249,67442499,82741249,99602499,118026249,138012499,159561249,182672499,207346249,233582499,261381249,290742499,321666249,354152499,388201249,423812499,460986249,499722499,540021249,581882499,625306249,6702... |
;; Division routines
;; -----------------
;;
;; included by `routines/math.s`
.code
.I16
ROUTINE Divide_S16Y_U16X
CPY #$8000
IF_GE
PHP
REP #$30
.A16
TYA
NEG16
TAY
JSR Divide_U16Y_U16X
; Result is negative
TYA
NEG16
TAY
PLP
RTS
ENDIF
BRA Divide_U16Y_U16X
.I16
ROUTINE Divide_U16Y_S1... |
/*
* Copyright (c) 2015 Cryptonomex, Inc., and contributors.
*
* The 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 Software without restriction, including without limitation the... |
;; ---------------------------------------
;; asm_tick
;;
;; rdi: Uint8 buttons
;; rsi: ptr Uint8 pixels[w*h*4]
;; rdx: Uint32 elapsed_ms
;; return int 0 or 1 for quit
;; ---------------------------------------
; parameters order:
; r9 ; 6th param
; r8 ; 5th param
; r10 ; 4th param
; rdx ; 3rd param
; rsi ... |
; A120588: G.f. is 1 + x*c(x), where c(x) is the g.f. of the Catalan numbers (A000108).
; 1,1,1,2,5,14,42,132,429,1430,4862,16796,58786,208012,742900,2674440,9694845,35357670,129644790,477638700,1767263190,6564120420,24466267020,91482563640,343059613650,1289904147324,4861946401452,18367353072152,69533550916004,26374795... |
;THE YANKEE DOODLE VIRUS
;POOR DISASSEMBLY OF IT MANY REFRENCE MADE AS ABSOLUTE WHEN THEY SHOULD
;BE REFRENCE TO LOCATIONS IN PROGRAM
;WILL WORK IF NO CHANGES MADE TO CODE
;EXCUSE SOME OF THE COMMENTS WHICH MAKE NO SENSE
.RADIX 16
INT01_OFFS EQU 0004
INT03_OFFS EQU 000C
MEM_SIZE EQU 04... |
// Copyright (c) 2007-2012 Hartmut Kaiser
//
// 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)
#if !defined(HPX_UTIL_PARSE_COMMAND_LINE_NOV_30_2011_0652PM)
#define HPX_UTIL_PARSE_COMMAND_LINE_NOV_30_2011_0652PM
#... |
/*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#include <uve/vn_uve_entry.h>
#include <uve/agent_uve.h>
VnUveEntry::VnUveEntry(Agent *agent, const VnEntry *vn)
: VnUveEntryBase(agent, vn), port_bitmap_(), inter_vn_stats_(), mutex_(),
prev_stats_update_time_(0), prev_in_bytes_(0), p... |
#include<iostream>
int checkifnumeratorprime(int a,int b)
{
if(isprime(a)) return 1;
else return 0;
}
int checkifnumdivisible(int a,int b)
{
//if(b==0) return 0;
//else return 1;
return 0;
}
int divide(int a,int b)
{
if(b == 1) return (a);
if(b == 0) return -1;
if(b == 3) return (a);
if(b == 2) retu... |
; A169448: Number of reduced words of length n in Coxeter group on 3 generators S_i with relations (S_i)^2 = (S_i S_j)^33 = I.
; 1,3,6,12,24,48,96,192,384,768,1536,3072,6144,12288,24576,49152,98304,196608,393216,786432,1572864,3145728,6291456,12582912,25165824,50331648,100663296,201326592,402653184,805306368,1610612736... |
;
; jfdctint.asm - accurate integer FDCT (MMX)
;
; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
;
; Based on
; x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYASAKA Masaru.
; For conditions of distribution and use, see copyright notice in jsimdext.inc
;
; This file should be assem... |
; A058794: Row 3 of A007754.
; 2,18,52,110,198,322,488,702,970,1298,1692,2158,2702,3330,4048,4862,5778,6802,7940,9198,10582,12098,13752,15550,17498,19602,21868,24302,26910,29698,32672,35838,39202,42770,46548,50542,54758,59202,63880,68798,73962,79378,85052,90990,97198,103682,110448,117502,124850,132498,140452,148718,157... |
dnl ARM64 mpn_addmul_1 and mpn_submul_1
dnl Contributed to the GNU project by Torbjörn Granlund.
dnl Copyright 2013, 2015, 2017 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 o... |
#include <torch/Normal.h>
#include <cmath>
#include <torch/Vector.h>
namespace torch
{
Normal::Normal() :
x(0), y(0), z(0)
{
}
Normal::Normal(float x, float y, float z) :
x(x), y(y), z(z)
{
}
Normal::Normal(const Vector& v) :
x(v.x), y(v.y), z(v.z)
{
}
Normal Normal::operator-() const
{
return Normal(-x, -... |
/*
* Copyright (C) 2014 Patrick Mours. All rights reserved.
* License: https://github.com/crosire/reshade#license
*/
#include "dll_log.hpp"
#include "d3d11_device.hpp"
#include "d3d11_device_context.hpp"
#include "dxgi/dxgi_device.hpp"
#include "reshade_api_type_convert.hpp"
D3D11Device::D3D11Device(IDXGIDevice1 *... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.