text stringlengths 1 1.05M |
|---|
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/autofill/android/personal_data_manager_android.h"
#include <stddef.h>
#include <algorithm>
#include <memory>
#include <utility>
... |
;=================================================================
;
; Copyright (c) 2014, Teriks
;
; All rights reserved.
;
; libasm_io is distributed under the following BSD 3-Clause License
;
; Redistribution and use in source and binary forms, with or without modification, are permitted provided that the followin... |
/*
* ***** BEGIN GPL LICENSE BLOCK *****
*
* 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 d... |
#pragma once
#include "Vertex.hpp"
#include <span>
namespace oeng
{
inline namespace rhi
{
class RHITexture;
class RHIMesh;
class RHIShader;
class RHIWindow;
class RHI_API DynamicRHI
{
public:
virtual ~DynamicRHI() = default;
[[nodiscard]] static DynamicRHI& Get() noexcept;
[[nodiscard]] virtual RHITex... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r14
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x5489, %r14
nop
nop
nop
cmp %rax, %rax
mov $0x6162636465666768, %r9
movq %r9, (%r14)
nop
nop
nop
nop
nop
inc %rbx
lea addresses_WC_ht+0x1a699, %r14
nop
nop... |
; A118948: n-th (starting from the right) decimal digit of 13^n.
; Submitted by Jon Maiga
; 3,6,1,8,7,8,2,1,6,7,9,2,2,3,1,5,5,4,1,0,0,1,5,8,6,3,5,2,3,9,9,7,1,9,8,2,0,1,7,8,5,8,1,0,8,8,5,6,4,2,9,3,5,6,3,2,0,6,1,1,3,4,6,6,9,5,7,4,4,4,9,6,7,8,5,2,7,4,9,0,5,6,9,5,7,5,8,1,3,9,6,3,8,1,2,9,3,7,9
mov $1,10
pow $1,$0
add $0,1
... |
#include "pch.h"
#include "ColumnSet.h"
#include "Column.h"
#include "ParseUtil.h"
#include "Image.h"
#include "TextBlock.h"
using namespace AdaptiveSharedNamespace;
ColumnSet::ColumnSet() :
BaseCardElement(CardElementType::ColumnSet), m_style(ContainerStyle::None)
{
PopulateKnownPropertiesSet();
}
const std... |
//the radar is 128 pixels wide and it should cover $a00 (2560) possible x positions.
//We are working with fat pixels, which means that we reall have 64 possible x offsets in the radar.
//Therefore each fat pixel corresponds to 40 pixels on the map.
//We must divide by 40: that's like divided by 8 (three shifts) and... |
; A201920: a(n) = 2^n mod 125.
; 1,2,4,8,16,32,64,3,6,12,24,48,96,67,9,18,36,72,19,38,76,27,54,108,91,57,114,103,81,37,74,23,46,92,59,118,111,97,69,13,26,52,104,83,41,82,39,78,31,62,124,123,121,117,109,93,61,122,119,113,101,77,29,58,116,107,89,53,106,87,49,98,71,17,34,68,11,22,44,88,51,102,79,33,66,7,14,28,56,112,99,73... |
// Copyright (c) 2019-2020 The TrumpCoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "qt/trumpcoin/patriotnodewizarddialog.h"
#include "qt/trumpcoin/forms/ui_patriotnodewizarddialog.h"
#include "activepa... |
#include <iostream>
#include <vector>
std::vector<bool> binary(long x){
std::vector<bool> res;
while(x > 0){res.push_back(x % 2); x /= 2;}
return res;
}
int main(){
const long double m = 1.000000011;
long n, t; std::cin >> n >> t;
std::vector<bool> bin = binary(t);
long double y(m), to... |
/******************************************************************************
* Copyright © 2014-2018 The SuperNET Developers. *
* *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
... |
//
// Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include "NeonBaseWorkload.hpp"
#include <arm_compute/core/Error.h>
#include <arm_compute/runtime/NEON/functions/NELogical.h>
namespace armnn
{
arm_compute::Status NeonLogicalOrWorkloadValidate(con... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1993 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: PostScript driver
FILE: pscriptgenerf35Info.asm
AUTHOR: Dave Durran 13 April 1993
REVISION HISTORY:
Name Date Description
---- ---... |
{ 'abc_class': 'AbcFile'
, 'minor_version': 16
, 'major_version': 46
, 'int_pool': [ undefined ]
, 'uint_pool': [ undefined ]
, 'double_pool': [ undefined
, '10.1'
, '3.14' ]
, 'utf8_pool': [ undefined
, ''
, 'Object'
, 'Array'
... |
; A003269: a(n) = a(n-1) + a(n-4) with a(0) = 0, a(1) = a(2) = a(3) = 1.
; 0,1,1,1,1,2,3,4,5,7,10,14,19,26,36,50,69,95,131,181,250,345,476,657,907,1252,1728,2385,3292,4544,6272,8657,11949,16493,22765,31422,43371,59864,82629,114051,157422,217286,299915,413966,571388,788674,1088589,1502555,2073943,2862617,3951206,5453761... |
.global s_prepare_buffers
s_prepare_buffers:
push %r8
push %r9
push %rax
push %rbp
push %rbx
push %rdx
push %rsi
lea addresses_WT_ht+0x1cd2f, %rsi
dec %r8
movl $0x61626364, (%rsi)
nop
nop
nop
nop
nop
cmp %rax, %rax
lea addresses_WT_ht+0x1be97, %rbp
nop
nop
add $51434, %r9
movw $0x6162, (%rbp)
nop
cmp $28232, %rdx
pop %... |
; A157447: a(n) = 512*n - 16.
; 496,1008,1520,2032,2544,3056,3568,4080,4592,5104,5616,6128,6640,7152,7664,8176,8688,9200,9712,10224,10736,11248,11760,12272,12784,13296,13808,14320,14832,15344,15856,16368,16880,17392,17904,18416,18928,19440,19952,20464,20976,21488,22000,22512,23024,23536,24048,24560,25072,25584,26096,26... |
COMMENT @-----------------------------------------------------------------------
Copyright (c) Geoworks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: sharedFile.asm
AUTHOR: Cheng, 10/92
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
... |
// Generated from /POI/java/org/apache/poi/hssf/usermodel/HSSFHyperlink.java
#include <org/apache/poi/hssf/usermodel/HSSFHyperlink.hpp>
#include <java/lang/ClassCastException.hpp>
#include <java/lang/IllegalArgumentException.hpp>
#include <java/lang/NullPointerException.hpp>
#include <java/lang/Object.hpp>
#include <j... |
// Copyright (c) 2017-2019 The Talkcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <chainparams.h>
#include <index/txindex.h>
#include <script/standard.h>
#include <test/setup_common.h>
#include <ut... |
%include "boot.inc"
[bits 16]
xor ax, ax ; eax = 0
; 初始化段寄存器, 段地址全部设为0
mov ds, ax
mov ss, ax
mov es, ax
mov fs, ax
mov gs, ax
; 初始化栈指针
mov sp, 0x7c00
mov ax, LOADER_START_SECTOR
mov cx, LOADER_SECTOR_COUNT
mov bx, LOADER_START_ADDRESS
load_bootloader:
push ax
push bx
call asm_read_hard_disk ; 读... |
SECTION code_fp_am9511
PUBLIC _cos_fastcall
EXTERN asm_am9511_cos_fastcall
defc _cos_fastcall = asm_am9511_cos_fastcall
|
//==================================================================================================
/*
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
*/
//==================================================================================================
#pr... |
; A029744: Numbers of the form 2^n or 3*2^n.
; 1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576,32768,49152,65536,98304,131072,196608,262144,393216,524288,786432,1048576,1572864,2097152,3145728,4194304,6291456,8388608,12582912,16777216,25165824,33554432,50331... |
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 3.6.0 #9615 (MINGW64)
;--------------------------------------------------------
.module lab1_1
.optsdcc -mmcs51 --model-small
;--------------------------------------------------------
; Publ... |
#ifndef BOOST_ARCHIVE_DETAIL_BASIC_CONFIG_HPP
#define BOOST_ARCHIVE_DETAIL_BASIC_CONFIG_HPP
// MS compatible compilers support #pragma once
#if defined(_MSC_VER)
# pragma once
#endif
// basic_config.hpp ---------------------------------------------//
// (c) Copyright Robert Ramey 2004
// Use, modifica... |
; A099076: a(n) = A000960(n) mod 3.
; 1,0,1,1,1,0,0,1,0,1,1,1,1,0,1,0,1,1,1,1,1,0,0,0,1,1,0,1,1,1,1,0,0,0,1,1,1,1,1,1,1,0,1,1,1,1,0,1,0,1,1,1,0,1,0,1,1,0,0,0,0,1,0,1,0,1,1,1,0,1,1,0,0,1,0,1,0,1,1,0,0,1,1,0,0,1,1,1,0,0,1,1,1,0,1,1,1,1,1,1
seq $0,960 ; Flavius Josephus's sieve: Start with the natural numbers; at the k-t... |
INCLUDE "graphics/grafix.inc"
XLIB w_xorpixel
LIB l_cmp
LIB w_pixeladdress
XREF COORDS
;
; $Id: w_xorpixl.asm,v 1.1 2008/07/17 15:39:56 stefano Exp $
;
; ******************************************************************
;
; XOR pixel at (x,y) coordinate.... |
; A142993: Crystal ball sequence for the lattice C_4.
; 1,33,225,833,2241,4961,9633,17025,28033,43681,65121,93633,130625,177633,236321,308481,396033,501025,625633,772161,943041,1140833,1368225,1628033,1923201,2256801,2632033,3052225,3520833,4041441,4617761,5253633,5953025,6720033,7558881,8473921,9469633,10550625,117216... |
;------------------------------------------------------------------------------ ;
; Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
; Module Name:
;
; SmiEntry.nasm
;
; Abstract:
;
; Code template of the SMI handler for a particular p... |
dnl AMD K6 mpn_lshift -- mpn left shift.
dnl
dnl K6: 3.0 cycles/limb
dnl Copyright (C) 1999, 2000 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... |
; A171781: Numbers for which the second bit of the binary expansion is equal to the last bit.
; 2,3,4,7,8,10,13,15,16,18,20,22,25,27,29,31,32,34,36,38,40,42,44,46,49,51,53,55,57,59,61,63,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,97,99,101,103,105,107,109,111,113,115,117,119,121,123,125,127,128,130,132,134,136,138... |
;*****************************************************************************
;* dct-a.asm: h264 encoder library
;*****************************************************************************
;* Copyright (C) 2003-2008 x264 project
;*
;* Authors: Holger Lubitz <holger@lubitz.org>
;* Loren Merritt <lorenm@u.wa... |
#include <iostream>
#include <string>
using namespace std;
int main(){
string alunni[10], alunno;
int eta[10], etalu;
int contarray = 0;
for (int i = 0; i<10; i++){
cout<< "Inserire il cognome e l'eta' dell'alunno numero " <<i+1 <<endl;
cin>>alunno;
cin>>etalu;
if (etalu >= 18){
alunni[contarray] = alun... |
; A142672: Primes congruent to 11 mod 57.
; Submitted by Jon Maiga
; 11,239,353,467,809,1151,1493,1607,1721,1949,2063,2633,2861,3089,3203,3659,4001,4229,4457,4799,5483,5711,5939,6053,6737,7079,7193,7307,7649,7877,8219,8447,9473,9587,9929,10271,10499,10613,11069,11411,11867,11981,12323,12437,12893,13007,13121,13463,1357... |
INCLUDE "hardware.inc"
INCLUDE "header.inc"
;--------------------------------------------------------------------------
;- RESTART VECTORS -
;--------------------------------------------------------------------------
SECTION "RST_00",HOME[$0000]
ret
SEC... |
; A050452: a(n) = Sum_{d|n, d=3 mod 4} d.
; 0,0,3,0,0,3,7,0,3,0,11,3,0,7,18,0,0,3,19,0,10,11,23,3,0,0,30,7,0,18,31,0,14,0,42,3,0,19,42,0,0,10,43,11,18,23,47,3,7,0,54,0,0,30,66,7,22,0,59,18,0,31,73,0,0,14,67,0,26,42,71,3,0,0,93,19,18,42,79,0,30,0,83,10,0,43,90,11,0,18,98,23,34,47,114,3,0,7,113,0
add $0,1
mov $2,$0
lpb ... |
/*=============================================================================
Copyright (c) 2001-2006 Joel de Guzman
Copyright (c) 2005-2006 Dan Marsden
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)
=... |
; A082543: Take a string of n x's and insert n-1 ^'s and n-1 pairs of parentheses in all possible ways. Sequence gives number of distinct integer values when x=sqrt(2).
; 0,0,1,1,2,2,3,4,5,7
pow $0,2
sub $0,93
mov $2,$0
div $2,13
mov $0,$2
add $0,7
mod $0,10
|
; void funlockfile(FILE *file)
SECTION code_clib
SECTION code_stdio
PUBLIC _funlockfile
EXTERN asm_funlockfile
_funlockfile:
pop af
pop ix
push hl
push af
jp asm_funlockfile
|
.global s_prepare_buffers
s_prepare_buffers:
push %r15
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x100a0, %rsi
lea addresses_WC_ht+0x84b0, %rdi
nop
nop
nop
nop
xor %r15, %r15
mov $97, %rcx
rep movsq
dec %rbp
lea addresses_normal_ht+0x11a82, %rsi
lea addresses_WC_ht+0xf5d0, ... |
//
// Oric.cpp
// Clock Signal
//
// Created by Thomas Harte on 06/11/2016.
// Copyright 2016 Thomas Harte. All rights reserved.
//
#include "Oric.hpp"
using namespace Storage::Tape::Oric;
int Parser::get_next_byte(const std::shared_ptr<Storage::Tape::Tape> &tape, bool use_fast_encoding) {
detection_mode_ = use... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r9
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0xa0dd, %rax
nop
nop
nop
nop
nop
dec %rsi
movb (%rax), %r12b
nop
nop
nop
nop
and %rbp, %rbp
lea addresses_WT_ht+0x15453, %rsi
lea addresses_normal_ht+0xe30b, %rdi
nop
nop
n... |
; A135448: Period 5: repeat [1, 5, 3, 4, -2].
; Submitted by Christian Krause
; 1,5,3,4,-2,1,5,3,4,-2,1,5,3,4,-2,1,5,3,4,-2,1,5,3,4,-2,1,5,3,4,-2,1,5,3,4,-2,1,5,3,4,-2,1,5,3,4,-2,1,5,3,4,-2,1,5,3,4,-2,1,5,3,4,-2,1,5,3,4,-2,1,5,3,4,-2,1,5,3,4,-2,1,5,3,4,-2,1,5,3,4,-2,1,5,3,4,-2,1,5,3,4,-2,1
mov $1,5
pow $1,$0
add $1,14... |
; This program Sums content of a 16 bit array
;Author: MBadry
org 100h
include 'emu8086.inc'
.data
array DW 0001h,0002h,0003h
arrayCount = ($-array)/2
.code
main PROC
lea si,array
mov cx, arrayCount
call ArraySum
call PRINT_NUM_UNS
JMP Exit
main ENDP
;---... |
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... |
#include <iostream>
#include <cstdio>
#include <algorithm>
#include <cmath>
#include <string>
#include <cstring>
#include <iomanip>
#include <climits>
#include <stack>
#include <queue>
#include <vector>
#include <set>
#include <map>
#include <functional>
#include <iterator>
using namespace std;
#define SIZE 200010
pa... |
SeafoamIslandsB1F_Script:
call EnableAutoTextBoxDrawing
ld hl, wFlags_0xcd60
bit 7, [hl]
res 7, [hl]
jr z, .asm_46362
ld hl, Seafoam2HolesCoords
call CheckBoulderCoords
ret nc
EventFlagAddress hl, EVENT_SEAFOAM2_BOULDER1_DOWN_HOLE
ld a, [wCoordIndex]
cp $1
jr nz, .asm_46340
SetEventReuseHL EVENT_SEAFOAM2_B... |
include mpcp.inc
;; declaracoes de dados (variaveis globais)
.data
seq SWORD 1, 2, 3
msg BYTE "%d", 13, 10, 0
;; seccao de codigo principal
.code
poly2 PROTO coefs:PTR SWORD, x:SWORD
main PROC C
invoke poly2, OFFSET seq, 2
invoke printf, OFFSET msg, eax
invoke _getch
invoke ExitProcess, 0
main ENDP
;; ---------... |
; A267541: Expansion of (2 + 4*x + x^2 + x^3 + 2*x^4 + x^5)/(1 - x - x^5 + x^6).
; 2,6,7,8,10,13,17,18,19,21,24,28,29,30,32,35,39,40,41,43,46,50,51,52,54,57,61,62,63,65,68,72,73,74,76,79,83,84,85,87,90,94,95,96,98,101,105,106,107,109,112,116,117,118,120,123,127,128,129,131,134,138,139,140,142,145,149,150,151,153,156,16... |
map_header Museum2F, MUSEUM_2F, MUSEUM, 0
end_map_header
|
;
; Copyright (c) 2014-2018, Linaro Limited. All rights reserved.
;
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
AREA IoLibMmio, CODE, READONLY
EXPORT MmioRead8Internal
EXPORT MmioWrite8Internal
EXPORT MmioRead16Internal
EXPORT MmioWrite16Internal
EXPORT MmioRead32Internal
EXPORT MmioWrite32Inter... |
; A188511: Floor(7n/10).
; 0,0,1,2,2,3,4,4,5,6,7,7,8,9,9,10,11,11,12,13,14,14,15,16,16,17,18,18,19,20,21,21,22,23,23,24,25,25,26,27,28,28,29,30,30,31,32,32,33,34,35,35,36,37,37,38,39,39,40,41,42,42,43,44,44,45,46,46,47,48,49,49,50,51,51,52,53,53,54,55,56,56,57,58,58,59,60,60,61,62,63
mul $0,7
div $0,10
|
<%
from pwnlib.shellcraft.aarch64.linux import syscall
%>
<%page args="clock_id, res"/>
<%docstring>
Invokes the syscall clock_getres. See 'man 2 clock_getres' for more information.
Arguments:
clock_id(clockid_t): clock_id
res(timespec): res
</%docstring>
${syscall('SYS_clock_getres', clock_id, res)... |
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2017-2019 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... |
;/*!
; @file
;
; @brief BvsScrollRt DOS wrapper
;
; (c) osFree Project 2008-2022, <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.prokushe... |
; A161946: Odd part of sum of unitary divisors of n.
; Submitted by Jon Maiga
; 1,3,1,5,3,3,1,9,5,9,3,5,7,3,3,17,9,15,5,15,1,9,3,9,13,21,7,5,15,9,1,33,3,27,3,25,19,15,7,27,21,3,11,15,15,9,3,17,25,39,9,35,27,21,9,9,5,45,15,15,31,3,5,65,21,9,17,45,3,9,9,45,37,57,13,25,3,21,5,51,41,63,21,5,27,33,15,27,45,45,7,15,1,9,15,33... |
#include <DRV_CANINterface.h>
#include <joint_control_global_def.h>
#include <FreeRTOS.h>
CANInterface::CANInterface() {
CAN.setPins(CAN_RX, CAN_TX);
if (!CAN.begin(1000E3)) {
Serial.println("Starting CAN failed!");
running = true;
}
else {
Serial.println("Starting CAN successfu... |
#include <iostream>
#include <string>
using namespace std;
string trim(const string &str)
{
size_t first = str.find_first_not_of(' ');
if (string::npos == first)
{
return str;
}
size_t last = str.find_last_not_of(' ');
return str.substr(first, (last - first + 1));
}
int main()
{
in... |
// C:\diabpsx\PSXSRC\TONY.CPP
#include "types.h"
// address: 0x80090F5C
// line start: 93
// line end: 94
void stub__FPcPv_addr_80090F5C(char *e, void *argptr) {
}
// address: 0x80090F64
// line start: 97
// line end: 99
void new_eprint__FPcT0i(char *Text, char *File, int Line) {
}
// address: 0x80090F98
// l... |
//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
// Helmet Software Framework
//
// Copyright (C) 2018 Hat Boy Software, Inc.
//
// @author Matthew Alan Gray - <mgray@hatboysoftware.com>
// @author Tony Richards - <trichards@indiezen.com>
//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-... |
; A079208: Number of isomorphism classes of associative non-commutative non-anti-associative anti-commutative closed binary operations on a set of order n, listed by class size.
; 0,2,0,2,0,0,0,2,0,0,0,1,0,0,0
mov $2,5
lpb $0
add $0,1
div $2,$0
dif $0,2
add $1,$2
mov $2,$0
sub $0,1
lpe
mov $0,$1
|
/* 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... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r14
push %rax
push %rbx
push %rcx
lea addresses_WC_ht+0x122c9, %rax
nop
add $47020, %r14
vmovups (%rax), %ymm0
vextracti128 $1, %ymm0, %xmm0
vpextrq $0, %xmm0, %r11
nop
nop
add %r10, %r10
lea addresses_D_ht+0x9619, %rcx
nop
nop
sub $17508, %rbx
mov ... |
class Solution {
public:
int calPoints(vector<string>& ops)
{
int value1;
int value2;
int ans = 0;
stack<int>stk;
for(string i:ops)
{
if(i == "C")
{
stk.pop();
}
else if(i == "D")
... |
; NASM code style
; Prototype when used in C: int asm_strcasecmp(const char *s1, const char *s2)
bits 64
section .text ; Code section
global asm_strcasecmp ; Exporting the function name
asm_strcasecmp:
push rbp ; prologue
mov rbp, rsp
push rdx ; save rdx value in stack
push r11 ; save r11 value in ... |
_BasementKey:
ret
|
Snd_PresSega_Header:
smpsHeaderStartSong 3
smpsHeaderVoice Snd_PresSega_Voices
smpsHeaderChan $06, $03
smpsHeaderTempo $01, $08
smpsHeaderDAC Snd_PresSega_DAC
smpsHeaderFM Snd_PresSega_FM1, $01, $12
smpsHeaderFM Snd_PresSega_FM2, $0D, $04
smpsHeaderFM Snd_PresSega_FM3, $... |
;******************************************************************************
;
; source.asm
; IKForth
;
; Unlicense since 1999 by Illya Kysil
;
;******************************************************************************
;
;******************************************************************************
; 6.1.... |
/*
* Copyright 2009-2017 Alibaba Cloud 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... |
; CRT0 for the Mattel Aquarius
;
; Stefano Bodrato Dec. 2000
;
; If an error occurs eg break we just drop back to BASIC
;
; $Id: aquarius_crt0.asm,v 1.21 2016/07/15 21:03:25 dom Exp $
;
MODULE aquarius_crt0
;--------
; Include zcc_opt.def to find out some info
;--------
... |
CinnabarLabTradeRoom_Script:
jp EnableAutoTextBoxDrawing
CinnabarLabTradeRoom_TextPointers:
dw Lab2Text1
dw Lab2Text2
dw Lab2Text3
Lab2Text1:
text_far _Lab2Text1
text_end
Lab2Text2:
text_asm
ld a, TRADE_FOR_DORIS
ld [wWhichTrade], a
jr Lab2DoTrade
Lab2Text3:
text_asm
ld a, TRADE_FOR_CRINKLES
ld [wWhich... |
kernel: file format elf32-i386
Disassembly of section .text:
80100000 <multiboot_header>:
80100000: 02 b0 ad 1b 00 00 add 0x1bad(%eax),%dh
80100006: 00 00 add %al,(%eax)
80100008: fe 4f 52 decb 0x52(%edi)
8010000b: e4 .byte 0xe4
8010000c <entry>:
# E... |
#define BOOST_TEST_MODULE "test_unlimited_cell_list"
#ifdef BOOST_TEST_DYN_LINK
#include <boost/test/unit_test.hpp>
#else
#include <boost/test/included/unit_test.hpp>
#endif
#include <mjolnir/util/empty.hpp>
#include <mjolnir/util/logger.hpp>
#include <mjolnir/util/range.hpp>
#include <mjolnir/core/SimulatorTraits.hp... |
; float tanh(float x) __z88dk_fastcall
SECTION code_fp_math48
PUBLIC cm48_sdcciy_tanh_fastcall
EXTERN cm48_sdcciyp_dx2m48, am48_tanh, cm48_sdcciyp_m482d
cm48_sdcciy_tanh_fastcall:
call cm48_sdcciyp_dx2m48
call am48_tanh
jp cm48_sdcciyp_m482d
|
; A295513: a(n) = n*bil(n) - 2^bil(n) where bil(0) = 0 and bil(n) = floor(log_2(n)) + 1 for n>0.
; Submitted by Christian Krause
; -1,-1,0,2,4,7,10,13,16,20,24,28,32,36,40,44,48,53,58,63,68,73,78,83,88,93,98,103,108,113,118,123,128,134,140,146,152,158,164,170,176,182,188,194,200,206,212,218,224,230,236,242,248,254,260,... |
; Z88 Small C+ Run Time Library
; Long functions
;
SECTION code_crt0_sccz80
PUBLIC l_long_ne
;
; DEHL != secondary
; set carry if result true
; stack = secondary MSW, secondary LSW, ret
.l_long_ne
pop ix ; return address
pop bc ;... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution... |
; A028213: Expansion of 1/((1-6x)(1-8x)(1-10x)(1-11x)).
; Submitted by Christian Krause
; 1,35,773,13783,216909,3146703,43129381,567128471,7227535997,89900761951,1097000610069,13181200344039,156403487677165,1836701044549679,21383695384607237,247159815109688887
mov $1,1
mov $2,$0
mov $3,$0
lpb $2
mov $0,$3
sub $2,1... |
lw 0 1 five
lw 1 2 3
start add 1 2 1
beq 0 1 2
beq 0 0 start
noop
done halt
five .fill 5
neg1 .fill -1
stAddr .fill start
|
#include <iostream>
#include <list>
using namespace std;
class Graph
{
int numVertices;
list<int> *adjLists;
bool* visited;
public:
Graph(int vertices);
void addEdge(int src, int dest);
void BFS(int startVertex);
};
Graph::Graph(int vertices)
{
numVertices = vertices;
... |
; A109500: Number of closed walks of length n on the complete graph on 6 nodes from a given node.
; 1,0,5,20,105,520,2605,13020,65105,325520,1627605,8138020,40690105,203450520,1017252605,5086263020,25431315105,127156575520,635782877605,3178914388020,15894571940105,79472859700520,397364298502605,1986821492513020,9934107... |
; A110523: Expansion of (1 + x)/(1 + x + 3*x^2).
; Submitted by Christian Krause
; 1,0,-3,3,6,-15,-3,48,-39,-105,222,93,-759,480,1797,-3237,-2154,11865,-5403,-30192,46401,44175,-183378,50853,499281,-651840,-846003,2801523,-263514,-8141055,8931597,15491568,-42286359,-4188345,131047422,-118482387,-274659879,630107040,193... |
dnl AMD K6 mpn_divexact_1 -- mpn by limb exact division.
dnl Copyright 2000-2002, 2007 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of either:
dnl
dnl * the GNU Lesser Gener... |
; A266912: Numbers n which are anagrams of n+18.
; Submitted by Jamie Morken(s1)
; 13,24,35,46,57,68,79,102,113,124,135,146,157,168,179,202,213,224,235,246,257,268,279,302,313,324,335,346,357,368,379,402,413,424,435,446,457,468,479,502,513,524,535,546,557,568,579,602,613,624,635,646,657
add $0,1
mov $1,$0
mul $0,2
div... |
; 10 SYS (2304)
*=$0801
BYTE $0E, $08, $0A, $00, $9E, $20, $28
BYTE $32, $33, $30, $34, $29, $00, $00, $00
;*******************************************************************************
;* Tutorial Ten (LDA, STA, ADC ) Fibonacii Series Generator *
;* ... |
; int wa_stack_empty(wa_stack_t *s)
SECTION code_adt_wa_stack
PUBLIC wa_stack_empty
defc wa_stack_empty = asm_wa_stack_empty
INCLUDE "adt/wa_stack/z80/asm_wa_stack_empty.asm"
|
AREA |.text|,CODE,ALIGN=8,ARM64
EXPORT |mul_mont_sparse_256|[FUNC]
ALIGN 32
|mul_mont_sparse_256| PROC
stp x29,x30,[sp,#-64]!
add x29,sp,#0
stp x19,x20,[sp,#16]
stp x21,x22,[sp,#32]
stp x23,x24,[sp,#48]
ldp x10,x11,[x1]
ldr x9, [x2]
ldp x12,x13,[x1,#16]
mul x19,x10,x9
ldp x5,x6,[x3]
mul x20,x1... |
; A155461: a(n) = n^2 + 52*n + 30.
; 30,83,138,195,254,315,378,443,510,579,650,723,798,875,954,1035,1118,1203,1290,1379,1470,1563,1658,1755,1854,1955,2058,2163,2270,2379,2490,2603,2718,2835,2954,3075,3198,3323,3450,3579,3710,3843,3978,4115,4254,4395,4538,4683,4830,4979,5130,5283,5438,5595,5754,5915,6078,6243,6410,6579,... |
SECTION .text
global MD4_x64
align 10h
MD4_x64:
push rbp
push rbx
push r12
push r13
push r14
push r15
push rsi
push rdi
; parameter 1 in rcx, param 2 in rdx , param 3 in r8
; see http://weblogs.asp.net/oldnewthing/archive/2004/01/14/58579.aspx and
; http://msdn.m... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0xdbec, %r14
clflush (%r14)
nop
nop
nop
nop
and $18273, %rbp
movb $0x61, (%r14)
nop
nop
nop
dec %rbp
lea addresses_normal_ht+0x1e1ec, %rsi
lea addresses_normal_ht+0x14d2c, %rdi
nop
nop
xor %r... |
; /*****************************************************************************
; * ugBASIC - an isomorphic BASIC language compiler for retrocomputers *
; *****************************************************************************
; * Copyright 2021-2022 Marco Spedaletti (asimov@mclink.it)
; *
; * Licens... |
; A116166: a(n) = 8^n * n*(n+1).
; 0,16,384,6144,81920,983040,11010048,117440512,1207959552,12079595520,118111600640,1133871366144,10720238370816,100055558127616,923589767331840,8444249301319680,76561193665298432,689050742987685888,6160924290242838528,54763771468825231360,484227031934875729920,4261197881026906423296,37... |
;
; Include code from halx86
; This is a cpp style symbolic link
include ..\..\halx86\i386\ixprofil.asm
|
.open "sys/main.dol"
.org 0x803FCFA8
.global init_save_with_tweaks
init_save_with_tweaks:
; Function start stuff
stwu sp, -0x10 (sp)
mflr r0
stw r0, 0x14 (sp)
bl init__10dSv_save_cFv ; To call this custom func we overwrote a call to init__10dSv_save_cFv, so call that now.
; lis r5, sword_mode@ha
; addi r5, r5, sw... |
; A193390: The hyper-Wiener index of a benzenoid consisting of a straight-line chain of n hexagons (s=2; see the Gutman et al. reference).
; Submitted by Jamie Morken(s2)
; 42,215,680,1661,3446,6387,10900,17465,26626,38991,55232,76085,102350,134891,174636,222577,279770,347335,426456,518381,624422,745955,884420,1041321,... |
/*
*
* Copyright 2018 gRPC 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
; 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... |
/**
* @author Moe_Sakiya sakiya@tun.moe
* @date 2019-03-13 15:09:53
*
*/
#include <iostream>
#include <string>
#include <algorithm>
#include <set>
#include <map>
#include <vector>
#include <stack>
#include <queue>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <cmath>
using namespace std;
int ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.