text stringlengths 1 1.05M |
|---|
; Glidix kernel
;
; Copyright (c) 2014-2017, Madd Games.
; All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions are met:
;
; * Redistributions of source code must retain the above copyright notice, this
; lis... |
; A211253: Number of (n+1) X (n+1) -6..6 symmetric matrices with every 2 X 2 subblock having sum zero and one or two distinct values.
; 21,29,41,61,93,145,229,365,585,941,1517,2449,3957,6397,10345,16733,27069,43793,70853,114637,185481,300109,485581,785681,1271253,2056925,3328169,5385085,8713245,14098321,22811557,369098... |
;
; jdcolor.asm - colorspace conversion (64-bit AVX2)
;
; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
; Copyright (C) 2009, 2016, D. R. Commander.
; Copyright (C) 2015, Intel Corporation.
;
; Based on the x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYASAKA Masaru.
; For conditi... |
// Two 16 bit numbers are available in memory locations 9000H and 9001H, and in 9002H and 9003H, where the most significant bits are in 9001H and 9003H Now, Write an 8085 assembly language program to add two numbers and save the result in 9004H and 9005H, with the most significant byte in 9005H Write an 8085 assembly l... |
;
; Z88 Graphics Functions - Small C+ stubs
;
; Written around the Interlogic Standard Library
;
; Stubs Written by D Morris - 30/9/98
;
;
; $Id: w_drawto.asm,v 1.2 2015/01/19 01:32:46 pauloscustodio Exp $
;
;Usage: drawto(struct *pixels)
PUBLIC drawto
EXTERN ... |
; A155152: Numbers n such that 13n^2+3n+1 is prime.
; Submitted by Christian Krause
; 1,2,3,6,7,8,11,13,14,15,19,20,22,23,24,26,34,37,39,40,41,42,44,46,47,48,51,53,57,62,63,64,66,68,73,74,75,79,88,91,94,96,97,99,102,107,111,112,116,122,133,135,144,146,152,161,162,163,165,166,167,172,180,183,184,187,189,194,198,201,209,... |
;
; Copyright (c) Microsoft Corporation. All rights reserved.
;
;**********************************************************************
; void *
; memcpy( void *dest, const void *src, size_t count );
; The memcpy function copies count bytes of src to dest.
; If the source and destination overlap, this function d... |
Name: zel0.asm
Type: file
Size: 3808
Last-Modified: '2016-05-13T04:23:03Z'
SHA-1: F183F7D303DF63F1F4304A4BF749C6A061218067
Description: null
|
; A251755: Digital root of n + n^2.
; 0,2,6,3,2,3,6,2,9,9,2,6,3,2,3,6,2,9,9,2,6,3,2,3,6,2,9,9,2,6,3,2,3,6,2,9,9,2,6,3,2,3,6,2,9,9,2,6,3,2,3,6,2,9,9,2,6,3,2,3,6,2,9,9,2,6,3,2,3,6,2,9,9,2,6,3,2,3,6,2,9,9,2,6,3,2,3,6,2,9,9,2,6,3,2,3,6,2,9,9,2,6,3,2,3
mov $2,$0
mov $4,$0
add $4,1
mov $0,$4
mul $0,$2
lpb $0,1
mov $3,$0
... |
; area de codigo iniciara' a partir do endereco 2000H
# ORG 2000H
# BEGIN 2000H
LHLD 2505 ; acessa o endereco 2505 na memoria, le um byte e guarda no registrador L, faz o mesmo processo com o registrador H no proximo byte
MOV A, L ; coloca no acumulador o conteudo do registrador L
CMA ; complementa o acumulador
... |
; ============================================
; Copyright (C) 2014 Laurent "ker2x" Laborde
;
; MBR for the Oak64 bootloader
;
; Some documentation
; http://wiki.osdev.org/MBR
; http://wiki.osdev.org/Memory_Map_(x86)
;
; ============================================
; List of guaranteed usable memory
; ---------------... |
/*------------------------------------------------------------------------
* (The MIT License)
*
* Copyright (c) 2008-2011 Rhomobile, Inc.
*
* 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 ... |
// Distributed under the MIT License.
// See LICENSE.txt for details.
#pragma once
#include <cstdint>
#include <pup.h>
#include "Options/Options.hpp"
#include "Parallel/CharmPupable.hpp"
#include "ParallelAlgorithms/EventsAndTriggers/Trigger.hpp"
#include "Utilities/Registration.hpp"
#include "Utilities/TMPL.hpp"
n... |
// Copyright 2022 PingCAP, 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 or agreed to i... |
; A245830: The Szeged index of a benzenoid consisting of a linear chain of n hexagons.
; 54,243,656,1381,2506,4119,6308,9161,12766,17211,22584,28973,36466,45151,55116,66449,79238,93571,109536,127221,146714,168103,191476,216921,244526,274379,306568,341181,378306,418031,460444,505633,553686,604691,658736,715909,776298,83... |
; A021522: Decimal expansion of 1/518.
; 0,0,1,9,3,0,5,0,1,9,3,0,5,0,1,9,3,0,5,0,1,9,3,0,5,0,1,9,3,0,5,0,1,9,3,0,5,0,1,9,3,0,5,0,1,9,3,0,5,0,1,9,3,0,5,0,1,9,3,0,5,0,1,9,3,0,5,0,1,9,3,0,5,0,1,9,3,0,5,0,1,9,3,0,5,0,1,9,3,0,5,0,1,9,3,0,5,0,1
add $0,1
mov $1,10
pow $1,$0
mul $1,6
div $1,3108
mod $1,10
mov $0,$1
|
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r14
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
// REPMOV
lea addresses_RW+0x10940, %rsi
lea addresses_normal+0x15d40, %rdi
xor $58576, %r8
mov $34, %rcx
rep movsl
cmp %r14, %r14
// Load
mov $0x5f3327000000... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r8
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x1c663, %r10
sub $16387, %r8
movw $0x6162, (%r10)
nop
nop
nop
cmp %r13, %r13
lea addresses_WC_ht+0x13f15, %r11
nop
nop
sub %rax, %rax
movb (%r11), %r10b
and %r8, %r8
lea addre... |
; A152985: Sum of proper divisors minus the number of proper divisors of the square A000290(n).
; 0,1,2,11,4,47,6,57,36,109,10,245,12,195,170,247,16,509,18,547,292,439,22,1055,152,597,358,969,28,1895,30,1013,632,985,534,2431,36,1215,850,2317,40,3397,42,2173,1712,1747,46,4313,396,2953,1382,2955,52,4715,1090,4083,1696,27... |
// Copyright (c) 2018-present Baidu, Inc. 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 b... |
; A080075: Proth numbers: of the form k*2^m + 1 for k odd, m >= 1 and 2^m > k.
; 3,5,9,13,17,25,33,41,49,57,65,81,97,113,129,145,161,177,193,209,225,241,257,289,321,353,385,417,449,481,513,545,577,609,641,673,705,737,769,801,833,865,897,929,961,993,1025,1089,1153,1217,1281,1345,1409,1473,1537,1601,1665,1729,1793,1857,1... |
SECTION .text
GLOBAL _start
GLOBAL uncalled
uncalled:
push ebp
mov ebp, esp
mov eax, 1
pop ebp
ret
_start:
mov eax, 5
mov ebx, 6
mov ecx, 7
cmp ecx, 6
je BB2
mov eax, 7
jmp BB3
BB2: mov eax, 5
mov ebx, 6
mov ecx, 7
BB3: mov eax,1 ; 'exit' system call
mov ebx,0 ; exit with err... |
/*
* Copyright 2008-2018 NVIDIA 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.0
*
* Unless required by applicable... |
; A070389: a(n) = 5^n mod 43.
; 1,5,25,39,23,29,16,37,13,22,24,34,41,33,36,8,40,28,11,12,17,42,38,18,4,20,14,27,6,30,21,19,9,2,10,7,35,3,15,32,31,26,1,5,25,39,23,29,16,37,13,22,24,34,41,33,36,8,40,28,11,12,17,42,38,18,4,20,14,27,6,30,21,19,9,2,10,7,35,3,15,32,31,26,1,5,25,39,23,29,16,37,13,22,24,34,41,33,36,8,40,28,11,... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r15
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x13a1b, %rsi
lea addresses_A_ht+0xc5e9, %rdi
nop
nop
nop
nop
and $48243, %r15
mov $101, %rcx
rep movsq
nop
sub %r11, %r11
lea addresses_A_ht+0x265f, %rsi
lea addresses_A_ht+0x... |
; A298790: Partial sums of A298788.
; Submitted by Jamie Morken(s1)
; 1,4,11,23,36,53,77,100,127,163,196,233,281,324,371,431,484,541,613,676,743,827,900,977,1073,1156,1243,1351,1444,1541,1661,1764,1871,2003,2116,2233,2377,2500,2627,2783,2916,3053,3221,3364,3511,3691,3844,4001,4193,4356,4523,4727,4900,5077,5293,5476,566... |
; A020331: Numbers whose base-3 representation is the juxtaposition of two identical strings.
; 4,8,30,40,50,60,70,80,252,280,308,336,364,392,420,448,476,504,532,560,588,616,644,672,700,728,2214,2296,2378,2460,2542,2624,2706,2788,2870,2952,3034,3116,3198,3280,3362,3444,3526,3608,3690,3772,3854,3936,4018
mov $2,$0
add ... |
/*
* Copyright (C) 2018-2020 Nick Naumenko (https://gitlab.com/nnaumenko)
* All rights reserved.
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#include "gtest/gtest.h"
#include "metaf.hpp"
TEST(MetafTime, fromStringDDHHMMwithDay) {... |
; A165404: The positions of zeros in the top row of A163898 (and A163899).
; Submitted by Christian Krause
; 0,1,4,6,7,16,18,19,24,25,28,30,31,64,66,67,72,73,76,78,79,96,97,100,102,103,112,114,115,120,121,124,126,127,256,258,259,264,265,268,270,271,288,289,292,294,295,304,306,307,312,313,316,318,319,384,385,388,390,391... |
; A116521: Binomial transform of tetranacci sequence A000078.
; Submitted by Christian Krause
; 0,0,0,1,5,17,51,148,429,1250,3655,10701,31336,91752,268623,786414,2302262,6739984,19731685,57765711,169112717,495088023,1449400960,4243211207,12422263776,36366946961,106466490879,311687250156,912483741738,2671352705755,78205... |
// Copyright (c) 2015-2016 The Khronos Group Inc.
//
// 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 ... |
RESULTS_START EQU $c000
RESULTS_N_ROWS EQU 18
include "base.inc"
; This test shows that even after stopping the channel, the current
; sample index/phase remains unchanged. It is only reset by turning
; the APU off (NR52).
CorrectResults:
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $08, $08, $... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ma... |
.global s_prepare_buffers
s_prepare_buffers:
push %r15
push %r8
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0xc92, %rsi
lea addresses_A_ht+0x1d462, %rdi
clflush (%rsi)
nop
nop
nop
xor $9255, %rbp
mov $1, %rcx
rep movsb
nop
sub %r8, %r8
lea addresses_WT_ht+0x4c92, %rsi
lea addresses_WC_... |
#include "tensorflow/core/graph/subgraph.h"
#include <string>
#include <vector>
#include "tensorflow/core/framework/graph.pb.h"
#include "tensorflow/core/graph/graph.h"
#include "tensorflow/core/graph/graph_constructor.h"
#include "tensorflow/core/graph/graph_def_builder.h"
#include "tensorflow/core/kernels/ops_util.... |
;-----------------------------------------------------------------------------
; Author : hiyohiyo
; Mail : hiyohiyo@crystalmark.info
; Web : http://openlibsys.org/
; License : The modified BSD license
;
; Copyright 2007 hiyohiyo, All rights reserved.
;----------------... |
; A008515: 5-dimensional centered cube numbers.
; 1,33,275,1267,4149,10901,24583,49575,91817,159049,261051,409883,620125,909117,1297199,1807951,2468433,3309425,4365667,5676099,7284101,9237733,11589975,14398967,17728249,21647001,26230283,31559275,37721517,44811149,52929151,62183583,72689825,84570817,97957299,112988051,1... |
#pragma once
#include <memory>
#include <string>
#include <vector>
#include "llvm/IR/Function.h"
#include "expr_ast.hpp"
/// PrototypeAST - This class represents the "prototype" for a function,
/// which captures its name, and its argument names (thus implicitly the number
/// of arguments the function takes).
clas... |
/***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without m... |
; A199020: 4*11^n-1.
; Submitted by Jon Maiga
; 3,43,483,5323,58563,644203,7086243,77948683,857435523,9431790763,103749698403,1141246682443,12553713506883,138090848575723,1518999334332963,16708992677662603,183798919454288643,2021788113997175083,22239669253968925923,244636361793658185163,2690999979730240036803,296009997... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r15
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x2294, %r15
nop
nop
and %r13, %r13
mov $0x6162636465666768, %rbx
movq %rbx, %xmm4
vmovups %ymm4, (%r15)
nop
nop
add $35347, %rdi
lea addresses_D_ht+0x1ab8b, %r13
sub %r11, %r1... |
// 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 "third_party/blink/renderer/core/animation/animation_test_helpers.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_core.h... |
; -----------------------------------------------------------------------------
ChangeMMC3Bank8000:
STA MMC3Bank8000
PHA
LDA #$86
STA $8000
PLA
STA $8001
RTS
ChangeMMC3BankA000:
STA MMC3BankA000
PHA
LDA #$87
STA $8000
PLA
STA $8001
RTS
;
; Disabling the MMC3 IRQ is done by writing any value to any EVEN... |
//===-test_argmax_negative_axis_keepdims_example_popart.cc-----------------------------------------------------------===//
//
// Copyright (C) 2019-2020 Alibaba Group Holding Limited.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License... |
[BITS 32]
GLOBAL api_getkey
[SECTION .text]
api_getkey: ; int api_getkey(int mode);
MOV EDX, 15
MOV EAX, [ESP+4] ; mode
INT 0x40
RET
|
//===- ConstantHoisting.cpp - Prepare code for expensive constants --------===//
//
// 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
//
//===---------------------------... |
/****************************************************************************
*
* Copyright (c) 2020-2022 PX4 Development Team. 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. Red... |
.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, 96
call lwaitly_b
ld a, 80
ldff(68), a
ld a, ff
ld c, 69
ldff(c), a
ldff(c), a
ldff(c), a
ldff(c), a
ldff(c), a... |
db DEX_KABUTO ; pokedex id
db 30 ; base hp
db 80 ; base attack
db 90 ; base defense
db 55 ; base speed
db 45 ; base special
db GROUND ; species type 1
db WATER ; species type 2
db 33 ; catch rate
db 119 ; base exp yield
INCBIN "pic/ymon/kabuto.pic",0,1 ; 55, sprite dimensions
dw KabutoPicFront
dw KabutoPicBack
; attack... |
; A176780: a(n) = n^4 + 6n^3 + 14n^2 + 15n + 6.
; 6,42,156,420,930,1806,3192,5256,8190,12210,17556,24492,33306,44310,57840,74256,93942,117306,144780,176820,213906,256542,305256,360600,423150,493506,572292,660156,757770,865830,985056,1116192,1260006,1417290,1588860,1775556,1978242,2197806,2435160,2691240,2967006,3263442... |
// 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 rights r... |
0: PUSHN 0
1: CALLX 16 :CVMMOUSE 0
2: POP G0:MOUSE
3: CALLX 10 :CVMJOYSTICK 0
4: POP G1:JOYSTICK
5: CALLX 13 :CVMMMAVI 0
6: POP G2:MMAVI
7: CALLX 15 :CVMMMMP3 0
8: POP G3:MMMP3
9: CALLX 14 :CVMMMMIDI 0
10: POP G4:MMMIDI
11: MOV 45 G159:A
12: MOV <cVct0 [ 0 , 30 , 30 ]> G160:CAMPOS
13: M... |
; A213843: Antidiagonal sums of the convolution array A213841.
; Submitted by Jamie Morken(s4)
; 1,13,62,190,455,931,1708,2892,4605,6985,10186,14378,19747,26495,34840,45016,57273,71877,89110,109270,132671,159643,190532,225700,265525,310401,360738,416962,479515,548855,625456,709808,802417,903805,1014510,1135086,1266103,... |
/* Copyright 2015 The TensorFlow 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 by applicable law or a... |
db NIDORAN_F ; pokedex id
db 55 ; base hp
db 47 ; base attack
db 52 ; base defense
db 41 ; base speed
db 40 ; base special
db POISON ; species type 1
db POISON ; species type 2
db 235 ; catch rate
db 59 ; base exp yield
INCBIN "pic/gsmon/nidoranf.pic",0,1 ; 55, sprite dimensions
dw NidoranFPicFront
dw NidoranFPicBack
;... |
/* Mednafen - Multi-system Emulator
*
* 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.
*
* This program is distrib... |
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===---------------------------------------... |
; DO NOT MODIFY THIS FILE DIRECTLY!
; author: @TinySecEx
; shadowssdt asm stub for 6.3.9600-sp0-windows-8.1 amd64
option casemap:none
option prologue:none
option epilogue:none
.code
; ULONG64 __stdcall NtUserYieldTask( );
NtUserYieldTask PROC STDCALL
mov r10 , rcx
mov eax , 4096
;syscall
... |
#include "ShadowMapPass.hpp"
#include "GraphicsManager.hpp"
#include "IShaderManager.hpp"
using namespace std;
using namespace My;
void ShadowMapPass::Draw(Frame& frame)
{
if (frame.frameContext.globalShadowMap != -1)
{
g_pGraphicsManager->DestroyShadowMap(frame.frameContext.globalShadowMap);
... |
; A157998: 169n^2 - n.
; 168,674,1518,2700,4220,6078,8274,10808,13680,16890,20438,24324,28548,33110,38010,43248,48824,54738,60990,67580,74508,81774,89378,97320,105600,114218,123174,132468,142100,152070,162378,173024,184008,195330,206990,218988,231324,243998,257010,270360,284048,298074,312438,327140,342180,357558,373274... |
;
; Copyright (c) Microsoft. All rights reserved.
; Licensed under the MIT license. See LICENSE file in the project root for full license information.
;
; ==++==
;
;
; ==--==
; ***********************************************************************
; File: JitHelpers_InlineGetThread.asm, see history in jithelp.asm
;... |
; A158083: a(n) = Fibonacci(n+3) for n < 5 and 9*n - 15 otherwise.
; 2,3,5,8,13,30,39,48,57,66,75,84,93,102,111,120,129,138,147,156,165,174,183,192,201,210,219,228,237,246,255,264,273,282,291,300,309,318,327,336,345,354,363,372,381,390,399,408,417,426,435
mov $4,$0
trn $0,1
mov $3,$0
trn $3,1
add $3,$0
mul $0,2
sub $0... |
#include "application.h"
#include "Settings.h"
#include "Mode.h"
#include "Animations.h"
#include "Adafruit_DotStar.h"
#include <vector>
#include "math.h"
//Animations.cpp
Settings *s_a;
Adafruit_DotStar *st_a;
Mode *m_a;
uint16_t PixelsPerColumn = 0;
std::vector<uint16_t> Columns;
std::vector<uint16... |
;---------------------------------------------------------------------------
; Optimzed Code Path - on x86 builds effectively excecutes USER32 code.
;
; Created:
; 16-DEC-93 nandurir
;---------------------------------------------------------------------------
TITLE USER5.ASM
PAGE ,132
... |
; void *p_list_pop_front(p_list_t *list)
SECTION code_clib
SECTION code_adt_p_list
PUBLIC p_list_pop_front
EXTERN asm_p_list_pop_front
defc p_list_pop_front = asm_p_list_pop_front
|
bits 64
blendvpd xmm2,xmm1,xmm0
vblendvpd xmm2,xmm1,xmm0,xmm0
vblendvpd xmm2,xmm1,xmm0
vblendvpd ymm2,ymm1,ymm0,ymm0
vblendvpd ymm2,ymm1,ymm0
vcvtsi2sd xmm9,xmm10,ecx
vcvtsi2sd xmm9,xmm10,rcx
vcvtsi2sd xmm9,xmm10,dword [rdi]
vcvtsi2sd xmm9,xmm10,qword [rdi]
vpextrb [rax],xmm1,0x33
vpextrw [... |
/****************************************************************************
Copyright (c) 2008-2009 Jason Booth
Copyright (c) 2010-2012 cocos2d-x.org
Copyright (c) 2013-2014 Chukong Technologies Inc.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this softw... |
/* -------------------------------------------------------------------------- *
* OpenMMDrude *
* -------------------------------------------------------------------------- *
* This is part of the OpenMM molecular simulation toolkit originating from *
... |
// 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 "content/common/gpu/gpu_channel_manager.h"
#include "base/bind.h"
#include "base/command_line.h"
#include "content/child/child_thread.h"
#in... |
; A012814: Take every 5th term of Padovan sequence A000931, beginning with the third term.
; Submitted by Jon Maiga
; 0,1,5,21,86,351,1432,5842,23833,97229,396655,1618192,6601569,26931732,109870576,448227521,1828587033,7459895657,30433357674,124155792775,506505428836,2066337330754,8429820731201,34390259761825,140298353... |
#include "Process.hpp"
namespace cos
{
Process::Process(uint32 memNeed, int p)
: memoryUsage(memNeed),
priority(p),
sleeping(false),
timeLeftToSleep(0)
{
numberOf++;
}
Process::~Process()
{
numberOf--;
}
uint32 Process::total()
{
return numberOf;
}
bool Process::isSleeping() const
{
ret... |
#ifndef MESSAGES_HPP
#define MESSAGES_HPP
#include "ErrorCodes/ErrorCodes.hpp"
#include "MessageStructs/GameMessages.hpp"
#include "PacketStructs/PacketStructs.hpp"
#endif |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r15
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x18e03, %rsi
lea addresses_A_ht+0x13bde, %rdi
clflush (%rsi)
clflush (%rdi)
nop
nop
nop
nop
sub %r10, %r10
mov $113, %rcx
rep movsq
and %r15, %r15
lea addresses_D_ht+0x7f56, %rdi
clflush (%rdi)
... |
; A105693: a(n) = Fibonacci(2n+2)-2^n.
; 0,1,4,13,39,112,313,859,2328,6253,16687,44320,117297,309619,815656,2145541,5637351,14799280,38826025,101809867,266865720,699311581,1832117599,4799138368,12569491809,32917725667,86200462408,225717215989,591018294423,1547471885008,4051665796057,10608062374075,27773595067992,727148... |
; A064583: a(n) = n^4*(n^4+1)*(n^2-1).
; 0,0,816,53136,986880,9390000,58831920,276825696,1057222656,3444262560,9900990000,25724822640,61490347776,137047559376,287786357040,574098840000,1095233372160,2009042197056,3559481173296,6114129610320,10214463840000,16642143690480,26505160063536,41348347984416,63293496422400,9521... |
// Time: O(n)
// Space: O(1)
class Solution {
public:
int majorityElement(vector<int>& nums) {
int ans = nums[0], cnt = 1;
for (const auto& i : nums) {
if (i == ans) {
++cnt;
} else {
--cnt;
if (cnt == 0) {
... |
TERMINAL_INPUT = 0
TERMINAL_OUTPUT = 1
DOOR_CONTROL = 2
main:
.correct_pin = 0
.main_loop:
call ask_and_verify_code
test al, al
jz .invalid
call open_door
jmp .main_loop
.invalid:
; Show denied message
mov esi, invalid
mov ecx, end_invalid - invalid
mov dx, TERMINAL_OUTPUT
rep outsb
call sleep
jmp .ma... |
; A229281: Number of ascending runs in {1,...,7}^n.
; Submitted by Jon Maiga
; 0,7,77,735,6517,55223,453789,3647119,28824005,224827239,1735205101,13276336703,100843663893,761270796055,5716451614013,42728053589487,318086621166181,2359538070441671,17447288549040525,128644674234925471,946108300385970869,694192716789224408... |
; A120184: a(1)=8; a(n)=floor((48+sum(a(1) to a(n-1)))/6).
; 8,9,10,12,14,16,19,22,26,30,35,41,48,56,65,76,89,104,121,141,165,192,224,261,305,356,415,484,565,659,769,897,1047,1221,1425,1662,1939,2262,2639,3079,3592,4191,4889,5704,6655,7764,9058,10568,12329,14384,16781,19578,22841,26648,31089,36271,42316,49369,57597,671... |
//-----------------------------------------------------------------------------
// luna2d engine
// Copyright 2014-2017 Stepan Prokofjev
//
// 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 ... |
Name: zel_rmdt099.asm
Type: file
Size: 170960
Last-Modified: '2016-05-13T04:20:48Z'
SHA-1: F9FC23177A9179E139A563E165996450EA941F86
Description: null
|
; A192973: Constant term of the reduction by x^2 -> x+1 of the polynomial p(n,x) defined at Comments.
; 1,3,10,23,47,88,157,271,458,763,1259,2064,3369,5483,8906,14447,23415,37928,61413,99415,160906,260403,421395,681888,1103377,1785363,2888842,4674311,7563263,12237688,19801069,32038879,51840074,83879083
add $0,1
mov $3... |
; A113048: Binomial(4n,n)/(3n+1) mod 4.
; 1,1,0,2,0,1,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,2,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,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0
mov $2,$0
mul $0,4
add $0,1
bin $0,$2
mod $0,4
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r14
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x15318, %r13
nop
nop
nop
and %rcx, %rcx
mov $0x6162636465666768, %rbx
movq %rbx, (%r13)
nop
nop
inc %r14
lea addresses_UC_ht+0xd762, %rbx
cmp $21626, %r11
movb $0x61, (%r... |
#include <algorithm>
#include <cmath>
using namespace std;
class Solution
{
public:
int racecar(int target)
{
if (dp[target] > 0)
return dp[target];
int n = floor(log2(target)) + 1;
if ((1 << n) - 1 == target)
dp[target] = n; //一直加速正好到达终点
else
{
dp[target] = racecar(((1 << n) - 1) - target) + n + ... |
[bits 32]
[section .text]
INT_VECTOR_SYS_CALL equ 0x80
_NR_CHDIR EQU 23
global chdir
chdir:
mov eax, _NR_CHDIR
mov ebx, [esp + 4]
int INT_VECTOR_SYS_CALL
ret |
#include "EditorLayer/EditorLayer.h"
#include <Finite/Scene/SceneSerializer.h>
#include <Finite/Math/Math.h>
#include <glm/gtc/type_ptr.hpp>
#include <imgui/imgui.h>
#include <ImGuizmo.h>
namespace Finite {
EditorLayer::EditorLayer()
: Layer("EditorLayer")
{
}
void EditorLayer::OnAttach() {
FN_PROFILE_FUN... |
copyright zengfr site:http://github.com/zengfr/romhack
00042A move.l D1, (A0)+
00042C dbra D0, $42a
004D1E move.l D0, (A4)+
004D20 move.l D0, (A4)+
0AAACA move.l (A0), D2
0AAACC move.w D0, (A0) [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, enemy+BC, enemy... |
SECTION .data
msg db 'Hello world! :)',0Ah
SECTION .text
global _start
_start:
mov ebx,msg ; move msg into ebx
mov eax,ebx ; move address in ebx to eax
nextchar:
cmp byte [eax],0 ; compare byte against 0
jz finished ; if 0 jmp to finished
inc eax
jmp nextchar
finished:
sub eax,ebx ; sub... |
SENDBUFFAsm:
push {r4,r5,r6,r7,lr}
mov r4, r0 ; save buff
mov r6, r1 ; save pin
mov r0, r4
bl BufferMethods::length
mov r5, r0
mov r0, r4
bl BufferMethods::getBytes
mov r4, r0
; setup pin as digital
mov r0, r6
movs r1, #0
bl pins::digitalWritePin
... |
SECTION code_fp_math48
PUBLIC fmod
EXTERN cm48_sccz80_fmod
defc fmod = cm48_sccz80_fmod
|
; A051495: Expansion of (1 + x + 2*x^2 - x^3 + x^4)/(1 - 3*x^3 + 3*x^6 - x^9).
; 1,1,2,2,4,6,3,9,12,4,16,20,5,25,30,6,36,42,7,49,56,8,64,72,9,81,90,10,100,110,11,121,132,12,144,156,13,169,182,14,196,210,15,225,240,16,256,272,17,289,306,18,324,342,19,361,380,20,400,420
mov $5,$0
mov $7,2
lpb $7
clr $0,5
mov $0,$5
... |
_kill: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
int
main(int argc, char **argv)
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 57 push %edi
4: 56 push %esi... |
; ===============================================================
; Mar 2014
; ===============================================================
;
; size_t bv_stack_capacity(bv_stack_t *s)
;
; Return current capacity of the stack.
;
; ===============================================================
SECTION code_adt_bv_... |
//===- ELFAsmParser.cpp - ELF Assembly Parser -----------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
; A177454: ( binomial(2*p,p) - 2)/p where p = prime(n).
; 2,6,50,490,64130,800046,137270954,1860277042,357975249026,1036802293087622,15013817846943906,47192717955016924590,10360599532897359064118,154361699651715243559786,34589385964790856394651394,118349529407778329236413352406,412825418773807104132857739017402,6283474... |
;
; Sharp OZ family functions
;
; ported from the OZ-7xx SDK by by Alexander R. Pruss
; by Stefano Bodrato - Oct. 2003
;
; Alternate sprite library
;
; void ozputsprite (byte x,byte y,byte height,byte *sprite)
;
; except for C wrappers, code (c) 2001 Benjamin Green
;
;
;
; ------
; $Id: ozputsprite.asm,v 1.2 2015/01/19... |
; A158068: Period 6: repeat [1, 2, 2, 1, 5, 5].
; 1,2,2,1,5,5,1,2,2,1,5,5,1,2,2,1,5,5,1,2,2,1,5,5,1,2,2,1,5,5,1,2,2,1,5,5,1,2,2,1,5,5,1,2,2,1,5,5,1,2,2,1,5,5,1,2,2,1,5,5,1,2,2,1,5,5,1,2,2,1,5,5,1,2,2,1,5,5,1,2,2,1,5,5,1,2,2,1,5,5,1,2,2,1,5,5,1,2,2,1
dif $0,2
mod $0,3
pow $0,2
add $0,1
|
RESULTS_START EQU $c000
RESULTS_N_ROWS EQU 2
include "base.inc"
; This test verifies the value read from PCM34 and value read from the
; wave RAM are synced
CorrectResults:
db $00, $00, $00, $02, $02, $02, $02, $03
db $12, $12, $12, $12, $12, $12, $12, $34
SubTest: MACRO
xor a
ldh [rNR52], a
cpl
ld... |
#include "Runtime/Audio/CStreamAudioManager.hpp"
#include "Runtime/Audio/CAudioSys.hpp"
#include "Runtime/CDvdFile.hpp"
#include "Runtime/CDvdRequest.hpp"
#include "Runtime/CStringExtras.hpp"
#include <algorithm>
#include <array>
#include <cstdlib>
#include <cstring>
#include <memory>
#include <amuse/DSPCodec.hpp>
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.