text stringlengths 1 1.05M |
|---|
/*
Is Subsequence
--------------
Given a string s and a string t, check if s is subsequence of t.
A subsequence of a string is a new string which is formed from the original string by deleting some (can be none) of the characters without disturbing the relative positions of the remaining characters. (ie, "ace" is a ... |
SinglyLinkedListNode* removeDuplicates(SinglyLinkedListNode* head) {
auto cursor = head;
auto temp = head;
vector<int> vec;
while (cursor)
{
vec.push_back(cursor->data);
cursor = cursor->next;
}
std::sort(vec.begin(),vec.end());
auto index = std::unique(vec.begin(),vec.end())... |
Predef::
; Call predefined function a.
; To preserve other registers, have the
; destination call GetPredefRegisters.
; Save the predef id for GetPredefPointer.
ld [wPredefID], a
; A hack for LoadDestinationWarpPosition.
; See LoadTilesetHeader (predef $19).
ld a, [H_LOADEDROMBANK]
ld [wPredefParentBank], a
p... |
.data
fc1:
.byte 0x00
.byte 0x00
.byte 0x53
.byte 0x40
global_volume:
.byte 0x00
.byte 0x00
.byte 0x80
.byte 0x3f
end_fade:
.byte 0x00
.byte 0xfe
.byte 0x7f
.byte 0x3f
delay_dry:
.byte 0x00
.byte 0xcc
.byte 0xcc
.byte 0x3e
stereo_mod:
.byte 0x00
.byte 0x62
.byte 0x80
.byte 0x3f
main_tune:
.byte 0x00
.byte 0x65
.byte 0x... |
; 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 "third_party/x86inc/x86inc.asm"
;
; This file uses MMX instructions.
;
SECTION_TEXT
CPU MMX
; Use movq to save the output.
%define M... |
;
; $projectname$.asm
;
; Created: $date$
; Author : $user$
;
; Replace with your application code
start:
inc r16
rjmp start
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x7d1a, %r9
nop
nop
nop
nop
and %rsi, %rsi
mov (%r9), %r11w
dec %r9
lea addresses_A_ht+0x166a2, %rsi
lea addresses_UC_ht+0x1045a, %rdi
nop
nop
nop
cmp $22241, %r12
mov $48, %rcx
rep movs... |
// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2019 Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <cmath>
#include <iostream>
#include "progressBar.hpp"
#include "display.hpp"
#include "spiFlash.hpp"... |
; char *strchr(const char *s, int c)
SECTION code_clib
SECTION code_string
PUBLIC strchr
EXTERN asm_strchr
strchr:
pop af
pop bc
pop hl
push hl
push bc
push af
jp asm_strchr
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _strchr
defc _strchr = strchr
ENDIF
|
; A017465: a(n) = (11*n + 6)^5.
; 7776,1419857,17210368,90224199,312500000,844596301,1934917632,3939040643,7339040224,12762815625,21003416576,33038369407,50049003168,73439775749,104857600000,146211169851,199690286432,267785184193,353305857024,459401384375,589579257376,747724704957,938120019968,1165463885299,14348907000... |
; A165372: Number of slanted n X 3 (i=1..n) X (j=i..3+i-1) 1..4 arrays with all 1s connected, all 2s connected, all 3s connected, all 4s connected, 1 in the upper left corner, 2 in the upper right corner, 3 in the lower left corner, and 4 in the lower right corner.
; 9,40,104,168,232,296,360,424,488,552,616,680,744,808... |
MODULE generic_console_ioctl
PUBLIC generic_console_ioctl
SECTION code_clib
EXTERN generic_console_cls
EXTERN __console_h
EXTERN __console_w
EXTERN __sv8000_mode
EXTERN generic_console_font32
EXTERN generic_console_udg32
INCLUDE "target/sv8000/def/sv8000.def"
INCLUDE "ioctl.def"
EXTERN generic_console_... |
; A257292: Numbers whose square can be written as the sum of two consecutive nonsquares.
; 5,9,11,13,15,19,21,23,25,27,29,31,33,35,37,39,43,45,47,49,51,53,55,57,59,61,63,65,67,69,71,73,75,77,79,81,83,85,87,89,91,93,95,97,101,103,105,107,109,111,113,115,117,119,121,123,125,127,129,131
mul $0,2
add $0,5
mov $1,$0
mov $2... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x3000, %rsi
lea addresses_WC_ht+0x17f00, %rdi
nop
nop
nop
nop
nop
and $35210, %rax
mov $125, %rcx
rep movsw
nop
nop
nop
nop
nop
xor $26907, %r9
lea addresses_WC_ht+0x14e00, %rsi
nop
nop... |
; A053764: a(n) = 3^(n^2 - n).
; 1,1,9,729,531441,3486784401,205891132094649,109418989131512359209,523347633027360537213511521,22528399544939174411840147874772641
bin $0,2
mov $1,9
pow $1,$0
mov $0,$1
|
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r8
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0xdd80, %rax
nop
add %r8, %r8
movw $0x6162, (%rax)
cmp $43786, %rcx
lea addresses_normal_ht+0x1b4da, %r8
nop
nop
nop
nop
xor %rax, %rax
mov $0x6162636465666768, %rcx
mo... |
; A166060: 4*3^n - 3*2^n.
; 1,6,24,84,276,876,2724,8364,25476,77196,233124,702444,2113476,6352716,19082724,57297324,171990276,516167436,1548895524,4647473004,13943991876,41835121356,125511655524,376547549484,1129667814276,3389053774476,10167261986724,30501987286764,91506364513476,274519898846796,823561307153124,2470687... |
#include "vrclient_private.h"
#include "vrclient_defs.h"
#include "openvr_v1.6.10/ivrclientcore.h"
using namespace vr;
extern "C" {
#include "struct_converters.h"
}
#include "cppIVRIOBuffer_IVRIOBuffer_002.h"
#ifdef __cplusplus
extern "C" {
#endif
vr::EIOBufferError cppIVRIOBuffer_IVRIOBuffer_002_Open(void *linux_side,... |
10 ORG 100H
20 JP MAIN
30PUTSTR EQU 0BFF1H
40PUTCHR EQU 0BE62H
50WAITK EQU 0BFCDH
60RPTCHR EQU 0BFEEH
70BUFFER: DEFS 128
80 DB 0
90MAIN: CALL CLS
140 LD HL,BUFFER
150 LD DE,8000H
160 CALL STRLN
170 CALL RAMON
180 LD HL,8000H
190 LD DE,BUFFER
200 CALL STRLN
210MAIN2: LD A,(HL)
220 LD (DE),A
230 CP 0
240 JP Z,MAIN3
25... |
////////////////////////////////////////////////////////////////////////////
// Module : object_handler_planner_missile.cpp
// Created : 11.03.2004
// Modified : 01.12.2004
// Author : Dmitriy Iassenev
// Description : Object handler action planner missile handling
////////////////////////////////////////////////... |
; Z80 test - officially documented flags, flags only version.
;
; Copyright (C) 2012-2022 Patrik Rak (patrik@raxoft.cz)
;
; This source code is released under the MIT license, see included license.txt.
macro testname
db "doc flags"
endm
maskflags equ 1
only... |
#pragma once
#include <mbgl/style/image_impl.hpp>
#include <mbgl/util/rect.hpp>
#include <mapbox/shelf-pack.hpp>
#include <array>
namespace mbgl {
namespace gfx {
class Texture;
class Context;
} // namespace gfx
class ImageManager;
class ImagePosition {
public:
ImagePosition(const mapbox::Bin&, const... |
; A083096: Numbers n such that 3 divides sum(k=1,n, C(2k,k) ).
; Submitted by Jamie Morken(s1)
; 0,12,30,36,84,90,108,120,246,252,270,282,324,336,354,360,732,738,756,768,810,822,840,846,972,984,1002,1008,1056,1062,1080,1092,2190,2196,2214,2226,2268,2280,2298,2304,2430,2442,2460,2466,2514,2520,2538,2550
mov $2,$0
div $... |
;
; Copyright (C) 2021 by Intel Corporation
;
; Permission to use, copy, modify, and/or distribute this software for any
; purpose with or without fee is hereby granted.
;
; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHA... |
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, i... |
; A248592: Denominators of the (simplified) rational numbers n*2^(n - 1)/(n - 1)! .
; Submitted by Jon Maiga
; 1,1,1,3,3,5,45,315,35,567,14175,51975,467775,868725,2837835,638512875,638512875,1206079875,97692469875,371231385525,441942125625,17717861581875,2143861251406875,16436269594119375,5917057053882975,2844738968212... |
/*
* fEulerSB_PL_TC.cpp
*
* Created on: Mar 3, 2011
* Author: Leonard Harris
*/
#include "fEuler.hh"
/*
fEulerSB_TC_PL::fEulerSB_TC_PL() : preCalc(true), ptc(){
if (MoMMA::debug)
cout << "fEulerSB_TC_PL constructor called." << endl;
}
*/
fEulerSB_TC_PL::fEulerSB_TC_PL(double eps, double p, double pp, dou... |
; A177456: a(n) = binomial(n^2,n+1)/n.
; 2,42,1092,35420,1391280,64425438,3442573064,208710267480,14162980464360,1063958304188780,87677864005521636,7865449972066576656,763126447532235966816,79629871834780293333510
add $0,2
mov $1,$0
pow $1,2
mov $2,$0
add $0,1
bin $1,$0
div $1,$2
mov $0,$1
|
TITLE DVSTMT - Device Independent I/O Statements
page 56,132
;***
; DVSTMT - Device Independent I/O Statements
;
; Copyright <C> 1986, Microsoft Corporation
;
;Purpose:
;
; BASIC Syntax mapping to included runtime entry points:
;
; - EOF Function:
;
; EOF(file number)
; |
; I2 B$FEOF
;
; - LOC Function:
;... |
; BEGIN_LEGAL
; Intel Open Source License
;
; Copyright (c) 2002-2016 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 source code must reta... |
.file "test_hd.c"
.section .debug_abbrev,"",@progbits
.Ldebug_abbrev0:
.section .debug_info,"",@progbits
.Ldebug_info0:
.section .debug_line,"",@progbits
.Ldebug_line0:
.text
.Ltext0:
.section .rodata.str1.1,"aMS",@progbits,1
.LC0:
.string "Usage: %s <file>\n"
.LC1:
.string "rb"
.LC2:
.string "Could not open `... |
INCLUDE "config_private.inc"
SECTION code_clib
SECTION code_l
PUBLIC l_btoul
; ascii binary string to unsigned long
; whitespace is not skipped
; char consumption stops on overflow
;
; enter : de = char *buffer
;
; exit : bc = & next char to interpret in buffer
; dehl = unsigned res... |
/*************************************************************************/
/* environment.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
// Copyright 2019 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/modules/webgpu/gpu_swap_chain.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_swap_chain_descript... |
;
; CPC fcntl Library
;
; Donated by **_warp6_** <kbaccam@free.fr>
;
; $Id: cpc_closeout.asm,v 1.6 2017/01/02 21:02:22 aralbrec Exp $
SECTION code_clib
PUBLIC cpc_closeout
PUBLIC _cpc_closeout
INCLUDE "cpcfirm.def"
.cpc_closeout
._cpc_closeout
call firmware
defw cas... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r8
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x11cec, %rdx
nop
nop
cmp $20567, %r9
movb (%rdx), %r8b
nop
nop
xor $49356, %r9
lea addresses_D_ht+0x14bfb, %r13
nop
nop
nop
cmp %rsi, %rsi
movb $0x61, (%r13)
nop
nop
nop
cm... |
%rbx = p
%rdx = q
leaq 9(%rdx), %rax q + 9
leaq (%rdx,%rbx), %rax q + p
leaq (%rdx,%rbx,3), %rax q + 3p
leaq 2(%rbx,%rbx,7), %rax 8p + 2
leaq 0xE(,%rdx,3), %rax 3q + 14
leaq 6(%rbx,%rdx,7), %rax 7q + p + 6 |
global long_mode_start
extern kernel_main
section .text
bits 64
long_mode_start:
mov ax, 0
mov ss, ax
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
call kernel_main
hlt
|
; Draw a rectangular block 16 bit colour v2.00 1998 Tony Tebby
; QPC accelerated version 2001 Marcel Kilgus
;
; The block size and origin are assumed to have been adjusted for
; correct position within the area to be set.
;
; Registers:
; Entry Exit
; D0 smashed
; D1 block size smashed
; D2 block ori... |
// File : rijndael.cpp
// Creation date : Sun Nov 5 2000 03:22:10 CEST
// Author : Szymon Stefanek (stefanek@tin.it)
//
// Another implementation of the Rijndael cipher.
// This is intended to be an easily usable library file.
// This code is public domain.
// Based on the Vincent Rijmen and K.U.Leuven implementation 2... |
UnknownText_0x1b6b39:
text "Hello, this is"
line "@"
text_ram wStringBuffer3
text "…"
para "Oh, Good morning,"
line "<PLAY_G>."
done
UnknownText_0x1b6b65:
text "Hello, this is"
line "@"
text_ram wStringBuffer3
text "…"
para "That voice…"
line "<PLAY_G>, right?"
done
UnknownText_0x1b6b92:
text "Hello,... |
; A049853: a(n) = a(n-1) + Sum_{k=0..n-3} a(k) for n >= 2, a(0)=1, a(1)=2.
; 1,2,2,3,6,11,19,33,58,102,179,314,551,967,1697,2978,5226,9171,16094,28243,49563,86977,152634,267854,470051,824882,1447567,2540303,4457921,7823106,13728594,24092003,42278518,74193627,130200739,228486369,400965626,703645622,1234811987,2166943978... |
CGADiamond6 label byte
word C_BLACK
Bitmap <67,41,BMC_PACKBITS,BMF_MONO>
db 0xf8, 0x00
db 0xf8, 0x00
db 0x08, 0x0f, 0xe0, 0x1c, 0x00, 0x00, 0x07, 0x00,
0x1c, 0x00
db 0x08, 0x18, 0x30, 0x6b, 0x00, 0x00, 0x1a, 0xc0,
0x6b, 0x00
db 0x08, 0x18, 0x00, 0xd5, 0x80, 0x00, 0x35, 0x60,
0xd5, 0x80
db 0x... |
// 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 "chrome/browser/sync/test/integration/sync_test.h"
#include <stddef.h>
#include <stdint.h>
#include <limits>
#include "base/bind.h"
#inclu... |
; A347191: Number of divisors of n^2-1.
; Submitted by Jon Maiga
; 2,4,4,8,4,10,6,10,6,16,4,16,8,12,8,18,4,24,8,16,8,20,6,20,12,16,8,32,4,28,8,14,16,24,8,24,8,20,8,40,4,32,12,16,12,24,6,36,12,24,8,32,8,40,16,20,8,32,4,32,12,16,24,32,8,32,8,32,8,60,4,30,12,16,24,32,8,48,10,24
add $0,1
mov $2,$0
pow $2,2
lpb $0
mov $3... |
Marts:
; entries correspond to MART_* constants
dw MartCherrygrove
dw MartCherrygroveDex
dw MartViolet
dw MartAzalea
dw MartCianwood
dw MartGoldenrod2F1
dw MartGoldenrod2F2
dw MartGoldenrod3F
dw MartGoldenrod4F
dw MartGoldenrod5F1
dw MartGoldenrod5F2
dw MartGoldenrod5F3
dw MartGoldenrod5F4
dw MartOlivine
... |
/* Copyright 2017 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 DEX_BEEDRILL ; pokedex id
db 65, 80, 40, 75, 45
; hp atk def spd spc
db BUG, POISON ; type
db 45 ; catch rate
db 159 ; base exp
INCBIN "gfx/pokemon/front/beedrill.pic", 0, 1 ; sprite dimensions
dw BeedrillPicFront, BeedrillPicBack
db FURY_ATTACK, NO_MOVE, NO_MOVE, NO_MOVE ; level 1 learnset
... |
; A314096: Coordination sequence Gal.4.73.4 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,5,11,16,20,25,31,36,41,47,52,56,61,67,72,77,83,88,92,97,103,108,113,119,124,128,133,139,144,149,155,160,164,169,175,180,185,191,196,200,205... |
;
; TEXAS INSTRUMENTS TEXT FILE LICENSE
;
; Copyright (c) 2017-2018 Texas Instruments Incorporated
;
; All rights reserved not granted herein.
;
; Limited License.
;
; Texas Instruments Incorporated grants a world-wide, royalty-free, non-exclusive
; license under copyrights and patents it now or hereafter... |
#include "papertrail.h"
///Local port to be used by the socket.
const uint16_t PapertrailLogHandler::kLocalPort = 8888;
PapertrailLogHandler::PapertrailLogHandler(String host, uint16_t port, String app, String system, LogLevel level,
const LogCategoryFilters &filters) : LogHandler(level, filters), m_host(host), m... |
#include "../test_helpers.hxx"
namespace
{
void test_result_iteration()
{
pqxx::connection conn;
pqxx::work tx{conn};
pqxx::result r{tx.exec("SELECT generate_series(1, 3)")};
PQXX_CHECK(r.end() != r.begin(), "Broken begin/end.");
PQXX_CHECK(r.rend() != r.rbegin(), "Broken rbegin/rend.");
PQXX_CHECK(r.cbe... |
/*
* definitions.asm
*
* Created: 5/12/2018 9:29:05 PM
* Author: ROTP
*/
.DEF AR = R2
.DEF XR = R3
.DEF YR = R4
.DEF INSTRUCTION = R6
.DEF TEMPPCL = R20
.DEF TEMPPCH = R21
/*
SR Flags (bit 7 to bit 0):
N .... Negative
V .... Overflow
- .... ignored
B .... Break
D .... Decimal (use BCD for arithmetic... |
*= $0801
.byte $4c,$16,$08,$00,$97,$32
.byte $2c,$30,$3a,$9e,$32,$30
.byte $37,$30,$00,$00,$00,$a9
.byte $01,$85,$02
jsr print
.byte 13
.text "(up)andz"
.byte 0
lda #%00011011
sta db
lda #%11000110
st... |
; A080957: Expansion of (5 - 9*x + 6*x^2)/(1-x)^4.
; 5,11,20,34,55,85,126,180,249,335,440,566,715,889,1090,1320,1581,1875,2204,2570,2975,3421,3910,4444,5025,5655,6336,7070,7859,8705,9610,10576,11605,12699,13860,15090,16391,17765,19214,20740,22345,24031,25800,27654,29595,31625,33746,35960,38269,40675,43180,45786,48495,5... |
; A177944: Array T(n,m) = 1/Beta(n+1, m+1) - n - m read by antidiagonals.
; Submitted by Jon Maiga
; 1,1,1,1,4,1,1,9,9,1,1,16,26,16,1,1,25,55,55,25,1,1,36,99,134,99,36,1,1,49,161,273,273,161,49,1,1,64,244,496,622,496,244,64,1,1,81,351,831,1251,1251,831,351,81,1
lpb $0
add $2,1
sub $0,$2
mov $1,$2
bin $1,$0
s... |
; A192961: Coefficient of x in the reduction by x^2 -> x+1 of the polynomial p(n,x) defined at Comments.
; 0,1,4,11,26,55,108,201,360,627,1070,1799,2992,4937,8100,13235,21562,35055,56908,92289,149560,242251,392254,634991,1027776,1663345,2691748,4355771,7048250,11404807,18453900,29859609,48314472,78175107,126490670,2046... |
; A010992: Binomial coefficient C(n,39).
; 1,40,820,11480,123410,1086008,8145060,53524680,314457495,1677106640,8217822536,37353738800,158753389900,635013559600,2403979904200,8654327655120,29749251314475,97997533741800,310325523515700,947309492837400,2794563003870330,7984465725343800,22138745874816900,59678358445158600,... |
/// @copyright
/// Copyright (C) 2020 Assured Information Security, Inc.
///
/// @copyright
/// 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 limita... |
;******************************************************************************
; MSP430x24x Demo - Basic Clock, Implement Cont. SW FLL with Auto RSEL
;
; Description: Set DCO clock to (Delta)*(4096) using software FLL. DCO clock
; is output on P1.4 as SMCLK. DCO clock, which is the selected SMCLK source
; fo... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
+---------... |
; Testing ReadKey (TestReadkey.asm)
INCLUDE Irvine32.inc
INCLUDE Macros.inc
.code
main PROC
L1: mov eax,10 ; delay for msg processing
call Delay
call ReadKey ; wait for a keypress
jz L1
test ebx,CAPSLOCK_ON
jz L2
mWrite <"CapsLock is ON",0dh,0ah>
jmp L3
L2: mWrite <"CapsLock... |
// Copyright (c) 2018 The MBMB developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <primitives/deterministicmint.h>
#include "zmbmbtracker.h"
#include "util.h"
#include "sync.h"
#include "main.h"
#include "txdb.h... |
; Copyright © 2018, VideoLAN and dav1d authors
; Copyright © 2018, Two Orioles, LLC
; 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 copy... |
/*******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2019 Jean-David Gadina - www.xs-labs.com
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x5dca, %rsi
lea addresses_WC_ht+0xe922, %rdi
nop
nop
nop
nop
and $50374, %r9
mov $121, %rcx
rep movsb
lfence
lea addresses_D_ht+0x136aa, %rsi
lea addresses_D_ht+0x12e6a, %rdi
nop
nop
nop
nop
cmp ... |
.gba
.thumb
.open "rom.gba", "test.gba", 0x08000000
// -----------------------------------------------------------------------------
.org allocation
.area allocation_size
.importobj "build/linked.o"
.endarea
// -----------------------------------------------------------------------------
// CB2_DoHallOfFameScre... |
// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2020 Intel Corporation. All Rights Reserved.
#include <librealsense2/rs.hpp> // Include RealSense Cross Platform API
#include "example.hpp" // Include short list of convenience functions for rendering
#include <iostream>
#include "img... |
// Copyright (C) 2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "low_precision_transformations/mat_mul_transformation.hpp"
#include <memory>
#include <tuple>
#include <vector>
#include <string>
#include <queue>
#include <ie_core.hpp>
#include "ngraph/op/op.hpp"
#include <transformations/in... |
// Copyright (c) 2013 Vasili Baranau
// Distributed under the MIT software license
// See the accompanying file License.txt or http://opensource.org/licenses/MIT
#include "../Headers/InsertionRadiiGenerator.h"
#include <ctime>
#include <stdio.h>
#include "Generation/PackingServices/DistanceServices/Headers/DistanceSe... |
/*
Copyright (c) 2009-2015, Jack Poulson
All rights reserved.
This file is part of Elemental and is under the BSD 2-Clause License,
which can be found in the LICENSE file in the root directory, or at
http://opensource.org/licenses/BSD-2-Clause
*/
#include "El.hpp"
namespace El {
// Horizontally merg... |
// Copyright 2015 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 "components/favicon/content/content_favicon_driver.h"
#include "base/bind.h"
#include "base/memory/ptr_util.h"
#include "components/favicon/cont... |
; A036407: a(n) = ceiling(n^2/9).
; 0,1,1,1,2,3,4,6,8,9,12,14,16,19,22,25,29,33,36,41,45,49,54,59,64,70,76,81,88,94,100,107,114,121,129,137,144,153,161,169,178,187,196,206,216,225,236,246,256,267,278,289,301,313,324,337,349
pow $0,2
add $0,8
mov $1,$0
div $1,9
|
/*
* Gamedev Framework (gf)
* Copyright (C) 2016-2022 Julien Bernard
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software fo... |
; code_driver to ensure we don't page ourselves out
SECTION code_clib
PUBLIC vpeek_MODE1
PUBLIC vpeek_screendollar
EXTERN generic_console_font32
EXTERN generic_console_udg32
EXTERN screendollar
EXTERN screendollar_with_count
;Entry: c = x,
; b = y
; e = rawmode
;Exit: nc = suc... |
copyright zengfr site:http://github.com/zengfr/romhack
00042A move.l D1, (A0)+
00042C dbra D0, $42a
0018BC move.w D0, ($16,A6) [123p+ 1C, enemy+1C, item+1C]
0018C0 swap D0 [123p+ 16, base+752, enemy+16, etc+16, item+16]
004954 move.l D0, (A4)+
004956 move.l D0, (A4)+
004D3A move.l D0, (A4)+
004D... |
; A298375: Partial sums of A230584.
; 2,5,11,18,29,43,61,84,111,145,183,230,281,343,409,488,571,669,771,890,1013,1155,1301,1468,1639,1833,2031,2254,2481,2735,2993,3280,3571,3893,4219,4578,4941,5339,5741,6180,6623,7105,7591,8118,8649,9223,9801,10424,11051,11725,12403,13130,13861,14643,15429,16268,17111,18009,18911,19870... |
; A021892: Decimal expansion of 1/888.
; 0,0,1,1,2,6,1,2,6,1,2,6,1,2,6,1,2,6,1,2,6,1,2,6,1,2,6,1,2,6,1,2,6,1,2,6,1,2,6,1,2,6,1,2,6,1,2,6,1,2,6,1,2,6,1,2,6,1,2,6,1,2,6,1,2,6,1,2,6,1,2,6,1,2,6,1,2,6,1,2,6,1,2,6,1,2,6,1,2,6,1,2,6,1,2,6,1,2,6,1
mov $2,$0
lpb $0
mov $0,$2
sub $0,2
add $1,1
mul $1,2
mod $2,3
bin... |
#include <bits/stdc++.h>
using namespace std;
int LCS(string X, string Y, int n, int m) {
int dp[n + 1][m + 1]; // DP - matrix
// base case of recursion --> for initialization of dp - matrix
for (int i = 0; i <= n; i++)
for (int j = 0; j <= m; j++)
if (i == 0 || j == 0)
dp[i][j] = 0;
for (int i = 1; i <... |
; THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
; SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
; END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
; ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
; IN USING, DIS... |
; A130237: The 'lower' Fibonacci Inverse A130233(n) multiplied by n.
; 0,2,6,12,16,25,30,35,48,54,60,66,72,91,98,105,112,119,126,133,140,168,176,184,192,200,208,216,224,232,240,248,256,264,306,315,324,333,342,351,360,369,378,387,396,405,414,423,432,441,450,459,468,477,486,550
mov $2,$0
mov $3,$0
lpb $0
mul $0,5
ad... |
/*
Copyright 2013-present Barefoot Networks, 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 law or agreed to in w... |
#pragma once
#include "../Name.hpp"
#include <span>
template<typename T>
struct Ubpa::details::custom_type_name<std::span<T>> {
static constexpr auto get() noexcept {
return concat_seq(
TSTR("std::span<{"),
type_name<T>(),
TStrC_of<'}', '>'>{}
);
}
};
|
section .boot
%define FREE_SPACE 0x9000
[BITS 16]
; Main entry point where BIOS leaves us.
Main:
jmp 0x0000:.FlushCS ; Some BIOS' may load us at 0x0000:0x7C00 while other may load us at 0x07C0:0x0000.
; Do a far jump to fix this issue, and reload CS to 0x0000... |
; Get the player location
; Out: D = Y, E = X
get_player_location:
ld hl,(sheet_pointer)
ld de,SHEET.PLAYER
add hl,de
ld e,(hl)
inc hl
ld d,(hl)
ret
; Set the player location
; In: D = Y, E = X
set_player_location:
ld hl,(sheet_pointer)
ld bc,SH... |
; void p_forward_list_alt_clear(p_forward_list_alt_t *list)
SECTION code_clib
SECTION code_adt_p_forward_list_alt
PUBLIC p_forward_list_alt_clear
EXTERN asm_p_forward_list_alt_clear
defc p_forward_list_alt_clear = asm_p_forward_list_alt_clear
|
/*
* Copyright (c) 2017, 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 rights to use, copy, modify, merge, publi... |
; A062048: a(n) = Sum{k=1...n} floor(sqrt(prime(k))).
; 1,2,4,6,9,12,16,20,24,29,34,40,46,52,58,65,72,79,87,95,103,111,120,129,138,148,158,168,178,188,199,210,221,232,244,256,268,280,292,305,318,331,344,357,371,385,399,413,428,443,458,473,488,503,519,535,551,567,583,599,615,632,649,666,683,700,718,736,754,772,790,808,8... |
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
//
#include <string>... |
/*=========================================================================
Program: Image Guided Surgery Software Toolkit
Module: igstkTrackerController.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) ISC Insight Software Consortium. All rights reserved.
See IGSTKCopyrig... |
# =========================================================================
#
# NAME:
# DATE: June 06, 2001
# ASSIGNMENT: Homework #6, CSC-201-01
# OBJECTIVE: Find C^2. C^2 = A^2 + B^2. Use procedure calls.
#
# =========================================================================
.data
.align 2
# ==... |
.386
.MODEL FLAT
ExitProcess PROTO NEAR32 stdcall, dwExitCode:DWORD
include io.h
cr EQU 0dh ; carriage return character
Lf EQU 0ah ; line feed
... |
#include <iostream>
#include "real_dlsym.h"
#include "loaders/loader_glx.h"
glx_loader::glx_loader() : loaded_(false) {
}
glx_loader::~glx_loader() {
CleanUp(loaded_);
}
bool glx_loader::Load() {
if (loaded_) {
return true;
}
// Force load libGL
void *handle = real_dlopen("libGL.so.1", RTLD_LAZY);
i... |
// (C) Copyright Gennadiy Rozental 2001.
// 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)
// See http://www.boost.org/libs/test for the library home page.
//
// File : $RCSfile$
//
// Version : ... |
;
; Z88 Graphics Functions - Small C+ stubs
;
; Written around the Interlogic Standard Library
;
; Stubs Written by D Morris - 30/9/98
;
; Wide resolution (int type parameters) version by Stefano Bodrato
;
; $Id: w_xordrawto.asm $
;
; CALLER LINKAGE FOR FUNCTION POINTERS
SECTION code_graphics... |
;=======================================
;
; MSU-1 Enhanced Audio Patch
; ZeLDA no Densetsu - Kamigami no Triforce
; Modified for VT Randomizer
;
; Author: qwertymodo
;
; Modified for use with Enemizer
;=======================================
!REG_MSU_STATUS = $2000
!REG_MSU_ID_0 = $2002
!REG_MSU_ID_1 = $2003
!REG_M... |
/*
Copyright (c) 2012, The Cinder Project, All rights reserved.
This code is intended for use with the Cinder C++ library: http://libcinder.org
Redistribution and use in source and binary forms, with or without modification, are permitted provided that
the following conditions are met:
* Redistributi... |
; -------------------------------------------------------------------
; Set the Q bit and return to the Elf/OS
; Copyright 2021 by Gaston Williams
; -------------------------------------------------------------------
; Based on software written by Michael H Riley
; Thanks to the author for making this code available.
;... |
/* Copyright (c) 2000, 2001, 2002, 2003, 2004, 2022 Alexey Ozeritsky
* 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 copyrig... |
//
// Created by lionell on 22.02.16.
// Copyright (c) 2016 Ruslan Sakevych. All rights reserved.
//
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
multiset<int> s;
for (int i = 0; i < n; ++i) {
int x;
cin >> x;
s.insert(x);
}
int ans = 0;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.