text stringlengths 1 1.05M |
|---|
// Copyright 2019,2020,2021 Sony Corporation.
// Copyright 2021 Sony Group Corporation.
//
// 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.... |
// CommonPlugin.cpp
// MNN
//
// Created by MNN on b'2020/08/13'.
// Copyright © 2018, Alibaba Group Holding Limited
//
#include "CommonPlugin.hpp"
#include <MNN/MNNDefine.h>
#include "BinaryPlugin.hpp"
#include "InterpPlugin.hpp"
#include "PreluPlugin.hpp"
#include "RasterPlugin.hpp"
#include "ScalePlugin.hpp"
#in... |
include mpcp.inc
.xmm
;; declaracoes de dados (variaveis globais)
.data
msg BYTE "%f", 13, 10, 0
W SDWORD 7
X REAL8 7.1
Y REAL8 ?
;; seccao de codigo principal
.code
main PROC C
CVTSI2SD xmm0, W
SQRTSD xmm1, X
ADDSD xmm1, xmm0
MOVSD Y, xmm1
invoke printf, offset msg, Y
invoke _getch
invoke ExitProcess, ... |
;
; Sharp OZ family functions
;
; ported from the OZ-7xx SDK by by Alexander R. Pruss
; by Stefano Bodrato - Oct. 2003
;
; Serial libraries
; buffered serial input
;
; ------
; $Id: ozsetrxhandshaking.asm,v 1.1 2003/10/21 17:15:21 stefano Exp $
;
XLIB ozsetrxhandshaking
LIB serial_int
XREF SerialBu... |
input_piano:
call playstop
ld a,(JOYP_CURRENT) ;Select ?
bit 2,a
ret nz
ld a,(JOYP_ACTIVE) ;Right: next note
bit 4,a
jr z,+
ld a,(NOTECUR_X)
cp 15
jr nz,++
ld a,-1 ;Wrap around
++:
inc a
ld (NOTECUR_X),a
+:
ld a,(JOY... |
.section data
NOP
LD BC,23561
LD (BC),A
INC BC
INC B
DEC B
LD B,23
RLCA
ADD HL,BC
LD A,(BC)
DEC BC
INC C
DEC C
... |
#include "MeshBatchSample.h"
#include "SamplesGame.h"
#if defined(ADD_SAMPLE)
ADD_SAMPLE("Graphics", "Mesh Batch", MeshBatchSample, 3);
#endif
static Material* createMaterial()
{
Material* material = Material::create("res/core/shaders/forward/colored.vert", "res/core/shaders/forward/colored.frag", "VERTEX_COL... |
.filenamespace sl
.namespace math {
/*
* converts the byte at `input_address` to BCD and stores the resulting two
* bytes at `output_address`
*
* trashes:
* - AC
* - XR
* - zp_param_8
*/
.macro @sl_math_bcd_byte(input_address, output_address) {
.var output_lo = ... |
; 主引导程序
; %include 与 C的include相同
;-----------------------------------------------
%include "boot.inc"
SECTION MBR vstart=0x7c00
; cx = 0
mov ax, cs
mov ds, ax
mov es, ax
mov ss, ax
mov sp, 0x7c00 ; Stack : 0x0000:0x7c00
mov fs, ax
; 0xB800 用于显示字符
mov ax, 0xb800
mov gs, a... |
###############################################################################
# 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... |
INCLUDE "hardware.inc"
INCLUDE "header.inc"
SECTION "var",BSS
ram_ptr: DS 2
repeat_loop: DS 1
SECTION "Main",HOME
;--------------------------------------------------------------------------
;- Main() -
;-----------------------------------------... |
// Copyright 2019 The Pigweed Authors
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agre... |
#include "Common.h"
#include "cost/CrossEntropy.h"
namespace nn {
namespace cost {
constexpr float kEps = 1e-3;
class CrossEntropyTest: public ::testing::Test {
public:
CrossEntropyTest() = default;
protected:
template <ExecutorType T>
static float TestCrossEntropy(const size_t rows, const size_t cols, ... |
// Copyright (c) 2011 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 "chrome/common/extensions/extension_message_bundle.h"
#include <string>
#include <vector>
#include "base/i18n/rtl.h"
#include "base/memory/... |
; A098931: a(0) = 1, a(n) = 1 + 2*3 + 4*5 + 6*7 + ... + (2n)*(2n+1) for n > 0.
; 1,7,27,69,141,251,407,617,889,1231,1651,2157,2757,3459,4271,5201,6257,7447,8779,10261,11901,13707,15687,17849,20201,22751,25507,28477,31669,35091,38751,42657,46817,51239,55931,60901,66157,71707,77559,83721,90201,97007,104147,111629,119461,... |
; A332139: a(n) = (10^(2*n+1)-1)/3 + 6*10^n.
; 9,393,33933,3339333,333393333,33333933333,3333339333333,333333393333333,33333333933333333,3333333339333333333,333333333393333333333,33333333333933333333333,3333333333339333333333333,333333333333393333333333333,33333333333333933333333333333,3333333333333339333333333333333
... |
// Run at: https://peterhigginson.co.uk/AQA/
// r12 marks the pointer to the image data in memory
mov r12, #img_data
// r11 is the current position in VRAM which is being written to
mov r11, #256
// r0 signifies the row of pixels (item of image data in the img_data section) which is being drawn
mov r0, #0
loop:
... |
; A241685: The total number of squares and rectangles appearing in the Thue-Morse sequence logical matrices after n stages.
; 0,2,4,18,60,242,924,3698,14620,58482,233244,932978,3729180,14916722,59655964,238623858,954451740,3817806962,15271053084,61084212338,244336150300,977344601202,3909375608604,15637502434418,6254999... |
BITS 64
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=FLAG_SF|FLAG_PF
;TEST_FILE_META_END
;TEST_BEGIN_RECORDING
lea rcx, [rsp-0x30]
and rcx, 0xFFFFFFFFFFFFFFF0
mov dword [rcx+0x00], 0xAABBCCDD
mov dword [rcx+0x04], 0xEEFF1122
mov dword [rcx+0x08], 0x33445566
mov dword [rcx+0x0C], 0x77889900
movdqu xmm0, [... |
; A075272: BinomialMean (BM) transform of A075271, which see for the definition of (BM).
; Submitted by Jon Maiga
; 1,2,6,34,422,11586,678982,82653026,20565923814,10362872458882,10517568142605446,21434335059927667362,87558678536857464017446,716228573446369122069676994,11725371140175829761708518252742,384052741116626108... |
#ifndef _MATRIX_META_MATRIX_H_
#define _MATRIX_META_MATRIX_H_
#include <vector>
#include <algorithm>
#include <numeric>
#include <deque>
#include <boost/array.hpp>
#include <boost/multi_array.hpp>
#include <boost/bind.hpp>
#include "matrix/matrix.hpp"
#include "matrix/matrix_base.hpp"
#include "matrix/slice.hpp"
#... |
#include "Events/Keyboard.h"
using namespace Sourcehold::Events;
Keyboard::Keyboard()
{
}
Keyboard::~Keyboard()
{
}
SDL_Keysym Keyboard::Key()
{
return event.key.keysym;
}
EventType Keyboard::GetType()
{
return type;
}
SDL_Event Keyboard::Get()
{
return event;
}
void Keyboard::eventCallback(SDL_Event... |
; A182025: a(n) = 31*binomial(2*n,n-4) + Sum_{i=1..n-4} binomial(2*n,n-4-i)*(4+i).
; Submitted by Christian Krause
; 0,0,0,0,31,315,2112,11830,60060,287028,1317840,5883768,25741485,110921525,472431960,1993896450,8354335080,34799391000,144259293600,595644532560,2451231964350,10059146122662,41181227878560,168246990214380... |
/* ========================================
ID: mathema6
TASK: B
LANG: C++14
* File Name : B.cpp
* Creation Date : 22-06-2021
* Last Modified : Tue 22 Jun 2021 06:16:24 PM CEST
* Created By : Karel Ha <mathemage@gmail.com>
* URL :
* Points/Time :
* Total/ETA :
* Status :
==========... |
; A065366: Replace 3^k with (-2)^k in balanced ternary expansion of n.
; Submitted by Jon Maiga
; 1,-3,-2,-1,5,6,7,3,4,5,1,2,3,-11,-10,-9,-13,-12,-11,-15,-14,-13,-7,-6,-5,-9,-8,-7,-11,-10,-9,-3,-2,-1,-5,-4,-3,-7,-6,-5,21,22,23,19,20,21,17,18,19,25,26,27,23,24,25,21,22,23,29,30,31,27,28,29,25,26,27,13,14,15,11,12,13,9,1... |
; A273833: Partial sums of the number of active (ON,black) cells in n-th stage of growth of two-dimensional cellular automaton defined by "Rule 961", based on the 5-celled von Neumann neighborhood.
; 1,5,26,71,147,264,428,649,933,1290,1726,2251,2871,3596,4432,5389,6473,7694,9058,10575,12251,14096,16116,18321,20717,2331... |
; A013756: a(n) = 15^(3*n + 1).
; 15,50625,170859375,576650390625,1946195068359375,6568408355712890625,22168378200531005859375,74818276426792144775390625,252511682940423488616943359375,852226929923929274082183837890625
mov $1,3375
pow $1,$0
mul $1,196
div $1,661304
mul $1,50610
add $1,15
mov $0,$1
|
//-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 restrictio... |
;
; Created by Mateusz Stompór on 21/06/2019.
;
%include "source/list.asm"
%include "source/offsets.asm"
global LL_SIZE
section .text
LL_SIZE:
add rdi, LL_LIST_SIZE_OFFSET
mov rax, [rdi]
ret
|
; A289189: Upper bound for certain restricted sumsets.
; 3,3,3,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10
mov $1,3
lpb $0,1
add $1,2
sub $0,$1
lpe
div $1,2
add $1,2
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r15
push %r8
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x1c994, %rcx
nop
nop
nop
nop
nop
cmp %r8, %r8
movb (%rcx), %bl
nop
nop
inc %rdi
lea addresses_A_ht+0xb494, %r15
nop
nop
nop
nop
cmp $20877, %rax
mov (%r15), %r10w
nop
nop
nop
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r8
push %rax
push %rcx
push %rdx
lea addresses_UC_ht+0x14483, %r11
xor $52773, %rdx
mov $0x6162636465666768, %r8
movq %r8, %xmm7
movups %xmm7, (%r11)
nop
nop
nop
nop
add %rcx, %rcx
lea addresses_D_ht+0x8083, %r14
nop
nop
nop
nop
nop
inc %r8
vmovups ... |
#include "file_wrapper.hpp"
#include <fcntl.h>
#include <stdexcept>
#include <string>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
namespace
{
size_t GetFileSize(int fd)
{
if (fd == -1)
{
return 0;
}
// off_t is signed, and we return signed size from this method
... |
SECTION code_clib
PUBLIC vpeek_MODE2
EXTERN vpeek_screendollar
EXTERN __mc1000_modeval
defc DISPLAY = 0x8000
;Entry: c = x,
; b = y
; e = rawmode
;Exit: nc = success
; a = character,
; c = failure
vpeek_MODE2:
ld hl,-8
add hl,sp
l... |
#include "Platform.inc"
#include "FarCalls.inc"
#include "Arithmetic32.inc"
#include "TestFixture.inc"
radix decimal
udata
global expectedRBA
global expectedRBB
global expectedRBC
global expectedRBD
global expectedCarry
global expectedZero
global carry
global zero
expectedRBA res 1
expectedRBB res 1
ex... |
//
// Notice Regarding Standards. AMD does not provide a license or sublicense to
// any Intellectual Property Rights relating to any standards, including but not
// limited to any audio and/or video codec technologies such as MPEG-2, MPEG-4;
// AVC/H.264; HEVC/H.265; AAC decode/FFMPEG; AAC encode/FFMPEG; VC-1; a... |
// push constant 10
@10
D=A
@SP
M=M+1
A=M-1
M=D
// pop local 0
@0
D=A
@LCL
D=M+D
@addr.0
M=D
@SP
M=M-1
A=M
D=M
@addr.0
A=M
M=D
// push constant 21
@21
D=A
@SP
M=M+1
A=M-1
M=D
// push constant 22
@22
D=A
@SP
M=M+1
A=M-1
M=D
// pop argument 2
@2
... |
; A081408: a(n) = (n+1)*a(n-5), with a(0)=a(1)=a(2)=a(3)=a(4)=1.
; 1,1,1,1,1,6,7,8,9,10,66,84,104,126,150,1056,1428,1872,2394,3000,22176,31416,43056,57456,75000,576576,848232,1205568,1666224,2250000,17873856,27143424,39783744,56651616,78750000,643458816,1004306688,1511782272,2209413024,3150000000,26381811456,4218088089... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; Nacitajte zo suboru retazec znakov ukonceny znakom "konca suboru".
; Nech slovo je postupnost znakov medzi dvoma znakmi "medzera".
; Urcte pocet slov s dlzkou delitelnou 2.
; Pocet vytlacte osmickovo.
;
; Autor: LALA -> lala (at) linuxor ... |
@DEFINE INTERNAL RAM
@ITCM RAM 16Kb
.set ITCM_RAM_START ,0x00000000
.set ITCM_RAM_END ,0x00003FFF
@DTCM RAM 64Kb
.set DTCM_RAM_START ,0x20000000
.set DTCM_RAM_END ,0x2000FFFF
@TOTAL SRAM 256Kb
.set INT_SRAM_START ,0x20010000... |
; A232604: a(n) = 2^n * Sum_{k=0..n} k^p*q^k, where p=3, q=-1/2.
; Submitted by Jon Maiga
; 0,-1,6,-15,34,-57,102,-139,234,-261,478,-375,978,-241,2262,1149,6394,7875,21582,36305,80610,151959,314566,616965,1247754,2479883,4977342,9935001,19891954,39759519,79546038,159062285,318157338,636278739,1272596782,2545150689,5090... |
extern vmexit_handler
global vmx_supported
global vmx_ug_supported
global vmx_ept_supported
global vmx_vpid_supported
global vmx_get_revision_and_struct_size
global vmx_enable
global vmx_switch_to_root_op
global vmx_vmcs_activate
global vmx_read
global vmx_write
global vmx_launch
global vmx_exit
global vmx_ret
global ... |
; A130240: Partial sums of A130239.
; 0,2,4,6,9,12,15,18,21,25,29,33,37,41,45,49,53,57,61,65,69,73,77,81,85,90,95,100,105,110,115,120,125,130,135,140,145,150,155,160,165,170,175,180,185,190,195,200,205,210,215,220,225,230,235,240,245,250,255,260
mov $2,$0
mul $0,2
mov $1,6
trn $2,3
lpb $1
mul $1,2
sub $1,1
add $... |
; A005041: A self-generating sequence.
; 1,1,2,2,3,3,4,4,4,5,5,5,6,6,6,7,7,7,7,8,8,8,8,9,9,9,9,10,10,10,10,10,11,11,11,11,11,12,12,12,12,12,13,13,13,13,13,13,14,14,14,14,14,14,15,15,15,15,15,15,16,16,16,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,21,21,21
mov $... |
; void bit_fx_di(void *effect)
SECTION code_clib
SECTION code_sound_bit
PUBLIC _bit_fx_di
EXTERN _bit_fx_di_fastcall
_bit_fx_di:
pop af
pop hl
push hl
push af
jp _bit_fx_di_fastcall
|
DEF _cart
AORG >6000
; Cartridge ROM header
BYTE >AA ; Standard Header
BYTE >01 ; version
BYTE >01 ; # of application programs
BYTE >00 ; reserved
DATA >0000 ; power up list (unused)
DATA menua ; program menu entry list
DATA >0000 ; unused - DSR list
DATA >0000 ; unused - subpro... |
.global s_prepare_buffers
s_prepare_buffers:
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x1b371, %rsi
lea addresses_D_ht+0x18cc8, %rdi
dec %r9
mov $103, %rcx
rep movsl
nop
nop
nop
sub %rbp, %rbp
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r9
ret
.global s_faulty_load
s_faulty_load:
push %r12
... |
//===- llvm/unittest/IR/InstructionsTest.cpp - Instructions unit tests ----===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
; A017316: a(n) = (10*n + 3)^12.
; 531441,23298085122481,21914624432020321,1667889514952984961,39959630797262576401,491258904256726154641,3909188328478827879681,22902048046490258711521,106890007738661124410161,418596297479370673535601,1425760886846178945447841,4334523100191686738306881,11991163848716906297072721,306351... |
// Copyright (c) 2018-2020, The TurtleCoin Developers
// Copyright (c) 2020, TRRXITTE inc. development Team
//
// Please see the included LICENSE file for more information.
//////////////////////////////////////////
#include <walletbackend/BlockDownloader.h>
//////////////////////////////////////////
#include <config... |
;
; MSX specific routines
; by Stefano Bodrato, December 2007
;
; Internal function, call an EXTROM subroutine
;
;
; $Id: msxextrom.asm,v 1.3 2016-06-19 21:00:56 dom Exp $
;
SECTION code_clib
PUBLIC msxextrom
EXTERN msxrompage
defc EXTROM = $015f
msxextrom:
exx
ex af,af' ; st... |
/*
* Copyright 2018 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/**************************************************************************************************
*** This file was autogenerated from GrAlphaThresholdFragmentProcessor.fp;... |
dnl x86 mpn_mul_1 (for 386, 486, and Pentium Pro) -- Multiply a limb vector
dnl with a limb and store the result in a second limb vector.
dnl Copyright 1992, 1994, 1997, 1998, 1999, 2000, 2001, 2002, 2005 Free
dnl Software Foundation, Inc.
dnl
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Libra... |
InitDecorations:
ld a, DECO_FEATHERY_BED
ld [wDecoBed], a
ld a, DECO_TOWN_MAP
ld [wDecoPoster], a
ret
_PlayerDecorationMenu:
ld a, [wWhichIndexSet]
push af
ld hl, .MenuHeader
call LoadMenuHeader
xor a
ld [wBuffer5], a
ld a, $1
ld [wBuffer6], a
.top_loop
ld a, [wBuffer6]
ld [wMenuCursorBuffer], a
call .... |
;
; jcgryext.asm - grayscale colorspace conversion (64-bit SSE2)
;
; Copyright (C) 2011, 2016, D. R. Commander.
; Copyright (C) 2018, Matthias Räncker.
;
; Based on the x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYASAKA Masaru.
; For conditions of distribution and use, see copyright notice in j... |
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
;/*
; * FreeRTOS V202107.00
; * Copyright (C) 2020 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 restrictio... |
; A139192: a(n) = (prime(n)! - 4)/4.
; Submitted by Jon Maiga
; 29,1259,9979199,1556755199,88921857023999,30411275102207999,6463004184721244159999,2210440498434925488635903999999,2055709663544480704431390719999999,3440938272806586261578994895395225599999999,8363131653290951777042515513360187916287999999999,151038157658... |
// Copyright (c) 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 <stdint.h>
#include <utility>
#include "base/barrier_closure.h"
#include "base/command_line.h"
#include "base/location.h"
#include "base/mac... |
song3_header:
.byte $04 ;4 streams
.byte MUSIC_SQ1 ;which stream
.byte $01 ;status byte (stream enabled)
.byte SQUARE_1 ;which channel
.byte $B0 ;initial duty (10)
.byte ve_tgl_1 ;volume envelope
.word song3_square1 ;pointer to stream
.byt... |
Name: zel_code.asm
Type: file
Size: 18646
Last-Modified: '2016-05-13T04:27:09Z'
SHA-1: D895450E7E422627BBBDB0D3B63C6C7642C5E4F5
Description: null
|
/*=========================================================================
Program: Visualization Toolkit
Module: vtkImageContinuousDilate3D.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
Thi... |
CinnabarIsland_Script:
call EnableAutoTextBoxDrawing
ld hl, wCurrentMapScriptFlags
set 5, [hl]
ResetEvent EVENT_MANSION_SWITCH_ON
ResetEvent EVENT_LAB_STILL_REVIVING_FOSSIL
ld hl, CinnabarIsland_ScriptPointers
ld a, [wCinnabarIslandCurScript]
jp CallFunctionInTable
CinnabarIsland_ScriptPointers:
dw CinnabarIs... |
COMMENT @-----------------------------------------------------------------------
Copyright (c) GeoWorks 1994 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: CommonUI/COpen
FILE: copenFileSelectorMiddle.asm
ROUTINES:
Name Description
---- -----------
INT OLFSMarkDirtyAndRescanIfRealized
... |
;=====;
; PIC ;
;=====;
pic_remap:
push eax
push ebx
push ecx
push edx
xor edx,edx
xor ecx,ecx
xor ebx,ebx
;; Store masks:
inc edx
in al,021h
mov bl,al
inc edx
in al,0A1h
mov cl,al
;; Initialize master
inc edx
mov al,11h
out 020h,al ; Give the Master PIC (in port 20h) the "initializ... |
; A097408: Initial decimal digit of n^4.
; 1,1,8,2,6,1,2,4,6,1,1,2,2,3,5,6,8,1,1,1,1,2,2,3,3,4,5,6,7,8,9,1,1,1,1,1,1,2,2,2,2,3,3,3,4,4,4,5,5,6,6,7,7,8,9,9,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,5,5,5,5,6,6,6,7,7,7,8,8,8,9,9,1
add $0,1
pow $0,4
lpb $0
mov $1,$0
div $0,10
lpe
mov $0,$1
|
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <string>
#include <vector>
#include <map>
#include "common_layers_params.hpp"
#include "data_utils.hpp"
namespace CommonTestUtils {
void getConvOutShape(const std::vector<size_t> &inShape,
const conv... |
/*============================================================================
KWSys - Kitware System Library
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
Distributed under the OSI-approved BSD License (the "License");
see accompanying file Copyright.txt for details.
This software is distr... |
dnl mc68020 mpn_add_n, mpn_sub_n -- add or subtract limb vectors
dnl Copyright 1992, 1994, 1996, 1999-2003, 2005 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... |
; Seek/Search
mov ah,42h
mov al,0 ; Position: 0 = start, 1 = current pos, 2 = end
mov bx,filehandle
mov cx,0 ; Number of bytes to move CX/DX
mov dx,7 ; 7 bytes
|
copyright zengfr site:http://github.com/zengfr/romhack
00042A move.l D1, (A0)+
00042C dbra D0, $42a
0148F2 move.w (A1)+, D1
0148F4 add.w D5, D1 [base+6004, base+6024, base+602C, base+610C, base+6114, base+611C, base+6184, base+618C, base+6194, base+619C, base+61A4, base+61AC, base+6224, base+622C, base+6... |
;;
;; Copyright (c) 2012-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... |
class Solution {
private:
bool isChessBoard(const vector<vector<int>>& BOARD){
const int N = BOARD.size();
for(int row = 0; row < N; ++row){
for(int col = 0; col < N; ++col){
if(row >= 1 && BOARD[row - 1][col] == BOARD[row][col]){
return false;
... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2018 The PIVX developers
// Copyright (c) 2018 The Myce developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or htt... |
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2009, 2012 Roland Lichters
Copyright (C) 2009, 2012 Ferdinando Ametrano
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
Qu... |
; A254948: Number of length 1 1..(n+1) arrays with every leading partial sum divisible by 2, 3, 5, 7 or 11
; 1,2,3,4,5,6,7,8,9,10,11,11,12,13,14,14,15,15,16,17,18,18,19,20,21,22,23,23,24,24,25,26,27,28,29,29,30,31,32,32,33,33,34,35,36,36,37,38,39,40,41,41,42,43,44,45,46,46,47,47,48,49,50,51,52,52,53,54,55,55,56,56,57,5... |
; A283107: Numbers n such that tau(4*(n - 1)) is prime.
; Submitted by Jamie Morken(s2)
; 2,5,17,257,1025,16385,65537,1048577,67108865,268435457,17179869185,274877906945,1099511627777,17592186044417,1125899906842625,72057594037927937,288230376151711745,18446744073709551617,295147905179352825857,1180591620717411303425,7... |
; A138977: Number of 2 X n matrices containing a 1 in the top left entry, all entries are integer values and adjacent entries differ by at most 1.
; 3,19,121,771,4913,31307,199497,1271251,8100769,51620379,328939577,2096095523,13356910353,85113990379,542370291241,3456136077171,22023471375233,140339755317947,894284401724... |
///
/// Copyright (C) 2014-2015, Cyberhaven
/// All rights reserved.
///
/// Licensed under the Cyberhaven Research License Agreement.
///
#include "LuaExpression.h"
namespace s2e {
namespace plugins {
const char LuaExpression::className[] = "LuaExpression";
Lunar<LuaExpression>::RegType LuaExpression::methods[] = ... |
BITS 32
section .text
foo:
fcmovb st0, st2
fcmove st0, st3
fcmovbe st0, st4
fcmovu st0, st5
fcmovnb st0, st6
fcmovne st0, st7
fcmovnbe st0, st1
fcmovnu st0, st2
fxch
fucom st3
fld tword [eax]
fstp qword [ebx]
fld dword [ecx]
fstp st4
fst dword [edx]
fst qword [ebx]
fst st3
fild word [ebx]
fistp dword [ebx]
fild qword [... |
; this is based on "LayersMixingLoRes" test, but focusing on the colour mixing in the two
; new layer-priority modes: U+L and U+L-5 (introduced somewhere in 2.00.xx cores).
;
; The blend modes got further modified in later cores (3.1.5 latest at time of edit) and
; this test covers only the most simple basic ULA + Laye... |
#include "software/particle_filter.h"
#include "software/geom/util.h"
#include "software/util/parameter/dynamic_parameters.h"
/* Notes on the weights and evaluation:
* - PREDICTION_WEIGHT should always be greater than PREVIOUS_BALL_WEIGHT
* because
* in the case where there is no vision detection, we want to tak... |
#include <cstdio>
#ifdef _WIN32
#include <windows.h>
#endif
#define GLEW_NO_GLU
#include "GL/glew.h"
#ifdef _WIN32
#include <GL/wGLew.h>
#endif
#define GLFW_INCLUDE_NONE
#include "GLFW/glfw3.h"
#include "../Renderer.h"
#include <string.h>
#include "UniConversion.h"
#define STB_IMAGE_IMPLEMENTATION
#include "stb_... |
; A165253: Triangle T(n,k), read by rows given by [1,0,1,0,0,0,0,0,0,...] DELTA [0,1,0,0,0,0,0,0,0,...] where DELTA is the operator defined in A084938.
; Submitted by Jamie Morken(s2)
; 1,1,0,1,1,0,1,3,1,0,1,6,5,1,0,1,10,15,7,1,0,1,15,35,28,9,1,0,1,21,70,84,45,11,1,0,1,28,126,210,165,66,13,1,0,1,36,210,462,495,286,91,1... |
dnl mpn_umul_ppmm -- 1x1->2 limb multiplication
dnl Copyright 1999, 2000, 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 ... |
;*****************************************************************************
;* MMX optimized DSP utils
;*****************************************************************************
;* Copyright (c) 2000, 2001 Fabrice Bellard
;* Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>
;*
;* This file is part o... |
; Copyright (C) 2020-2021, Vi Grey
; 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 conditions and ... |
#include "leading_runner_clothes.h"
LeadingRunnerClothes::LeadingRunnerClothes(){
}
LeadingRunnerClothes::~LeadingRunnerClothes(){
} |
; ===============================================================
; May 2017
; ===============================================================
;
; void *tshr_saddrcright(void *saddr)
;
; Modify screen address to move right one character (eight pixels)
; If at rightmost edge move to leftmost column on next pixel row.
;
... |
;*********************************************************************
;* Title: COCOIODRV.asm
;*********************************************************************
;* Author: R. Allen Murphey
;*
;* License: Contributed 2021 by R. Allen Murphey to CoCoIO Development
;*
;* Description: CoCoIO with WIZnet W5100S driver ... |
MAC LEVEL_HEADER
.here:
.byte {2}<<6 | {1}-.here-3
.byte {3}<<5 | {4}
ENDM
; 00000 - 00011
MAC FIL ; select sides
.byte {1}<<3 | {2}
ENDM
; 00100 - 00111
MAC BLK ; x y width height
.byte {1} | $20
.byte {2}
.byte {3}<<4 | {4}
ENDM
... |
_zombie: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
int
main(void)
{
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 pus... |
/*=============================================================================
NifTK: A software platform for medical image computing.
Copyright (c) University College London (UCL). All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY o... |
#pragma once
#include "./Exception.hpp"
namespace cql {
/**
* Data encode error, usually cause by incorrect client implementation
* Example: throw EncodeException(CQL_CODEINFO, "some error");
*/
class EncodeException : public Exception {
public:
using Exception::Exception;
};
}
|
; A138238: Alternating sum of the squares of the first n Jacobsthal numbers.
; Submitted by Christian Krause
; 0,1,0,9,-16,105,-336,1513,-5712,23529,-92752,373737,-1489488,5968873,-23853648,95458281,-381745744,1527157737,-6108281424,24433824745,-97733900880,390938399721,-1563748006480
mov $2,1
lpb $0
sub $0,1
add ... |
;
; Copyright (c) 2021, Alliance for Open Media. All rights reserved
;
; This source code is subject to the terms of the BSD 2 Clause License and
; the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
; was not distributed with this source code in the LICENSE file, you can
; obtain it at www.aome... |
// Create several new thread and kill them
lbi r19 1
slbi r19 0x0100 // r19 is at start pc
addi r19 r19 13 // r19 is pointing to function 1
lbi r21 1
slbi r21 0x0400 // r21 is pointing to heap
nt r26 r19 r21
addi r22 r21 1 // r22 = r21 + 1
nt r26 r19 r22
// loop
ld r23 r21 0
ld r24 r22 0
beq r23 r0 -3
beq r24 r0 -4
kil... |
;
;********************************************************************************************************
; uC/OS-III
; The Real-Time Kernel
;
;
; (c) Copyright 2009-2016; Micrium, Inc.; Weston, FL
... |
_ls: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
close(fd);
}
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 push %eb... |
;
; Sharp OZ family functions
;
; ported from the OZ-7xx SDK by by Alexander R. Pruss
; by Stefano Bodrato - Oct. 2003
;
;
; interrupt driven serial routines
;
;
; ------
; $Id: serial_int.asm,v 1.5 2016/06/27 21:25:36 dom Exp $
;
SECTION code_clib
PUBLIC serial_int
PUBLIC serial_int_check
PUBLIC ozserbufget
PUB... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.