text stringlengths 1 1.05M |
|---|
%include "Fibers/State.asminc"
ExternLabel fibers_msabi_store
ExternLabel fibers_msabi_restore
ExternLabel fibers_sysvabi_store
ExternLabel fibers_sysvabi_restore
%if BUILD_IS_SYSTEM_WINDOWS
GlobalLabel fibers_storerestore ; RCX => storeState, RDX => returnAddress, R8 => restoreState, R9 => entry
cmp rdx, 0h
jne .... |
.global s_prepare_buffers
s_prepare_buffers:
push %r9
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x6813, %r9
nop
nop
nop
nop
and $28997, %rdi
mov (%r9), %eax
nop
nop
inc %rdi
lea addresses_normal_ht+0x1e79b, %rsi
lea addresses_WC_ht+0x314b, %rdi
clflush (%rsi)
nop
nop
cmp ... |
title "Abios Support Assembly Routines"
;++
;
; Copyright (c) 1989 Microsoft Corporation
;
; Module Name:
;
; abiosa.asm
;
; Abstract:
;
; This module implements assembley code for ABIOS support.
;
; Author:
;
; Shie-Lin Tzong (shielint) 25-May-1991
;
; Environment:
;
; Kernel m... |
#include "stdafx.h"
#include "Headers/Sun.h"
namespace Divide {
namespace {
constexpr D64 g_numSecondsUpdateInterval = 30;
constexpr D64 SunDia = 0.53; // Sun radius degrees
constexpr D64 AirRefr = 34.0 / 60.0; // Atmospheric refraction degrees
constexpr D64 TwoPi = 2 * M_PI;
// Sun comp... |
/*
* IRremote
* Version 0.11 August, 2009
* Copyright 2009 Ken Shirriff
* For details, see http://arcfn.com/2009/08/multi-protocol-infrared-remote-library.html
*
* Modified by Paul Stoffregen <paul@pjrc.com> to support other boards and timers
* Modified by Mitra Ardron <mitra@mitra.biz>
* Added Sanyo and Mits... |
db "ARMOR@" ; species name
dw 607, 4450 ; height, weight
db "In just one of its"
next "mighty hands, it"
next "has the power to"
page "make the ground"
next "shake and moun-"
next "tains crumble.@"
|
; A095665: Tenth column (m=9) of (1,3)-Pascal triangle A095660.
; 3,28,145,550,1705,4576,11011,24310,50050,97240,179894,319124,545870,904400,1456730,2288132,3513917,5287700,7811375,11347050,16231215,22891440,31865925,43826250,59603700,80219568,106919868,141214920
lpb $0,1
mov $3,$0
cal $3,95664 ; Ninth column (m=8... |
; A007917: Version 1 of the "previous prime" function: largest prime <= n.
; 2,3,3,5,5,7,7,7,7,11,11,13,13,13,13,17,17,19,19,19,19,23,23,23,23,23,23,29,29,31,31,31,31,31,31,37,37,37,37,41,41,43,43,43,43,47,47,47,47,47,47,53,53,53,53,53,53,59,59,61,61,61,61,61,61,67,67,67,67,71,71,73,73,73,73,73,73,79,79,79,79,83,83,83,... |
;------------------------------------------------------------------------------
;
; 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... |
; A169611: Number of prime divisors of n that are not greater than 3, counted with multiplicity.
; 0,1,1,2,0,2,0,3,2,1,0,3,0,1,1,4,0,3,0,2,1,1,0,4,0,1,3,2,0,2,0,5,1,1,0,4,0,1,1,3,0,2,0,2,2,1,0,5,0,1,1,2,0,4,0,3,1,1,0,3,0,1,2,6,0,2,0,2,1,1,0,5,0,1,1,2,0,2,0,4,4,1,0,3,0,1,1,3,0,3,0,2,1,1,0,6,0,1,2,2,0,2,0,3,1,1,0,5,0,1,1... |
;===============================================================================
; Copyright 2015-2020 Intel 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.apa... |
ORG #6E9C
INCBIN "NETH#"
ORG #7437
CALL INS_
ORG #B2F7
INS_ ;PUSH BC
LD A,#FB
IN A,(#FE)
AND 1+2+4+8+16
CP 1+2
JR NZ,NOSKIP
XOR A
LD (#7C6C),A
INC A
LD (#FF8E),A
NOSKIP LD A,(#FF8E)
;POP BC
... |
#pragma once
#include <cstdint>
#include <memory>
#include <vector>
#include "abstract_operator.hpp"
#include "concurrency/transaction_context.hpp"
#include "storage/table.hpp"
#include "utils/assert.hpp"
namespace opossum {
enum class ReadWriteOperatorState {
Pending, // The operator has been instantiated.... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r15
push %r8
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x15970, %rax
nop
cmp %r11, %r11
mov $0x6162636465666768, %rbx
movq %rbx, %xmm5
movups %xmm5, (%rax)
nop
cmp %r15, %r15
lea addresses_UC_ht+0x97c0, %rsi
lea addresses_A_ht+0x19b... |
// Generated from /POI/java/org/apache/poi/ss/formula/functions/Var2or3ArgFunction.java
#include <org/apache/poi/ss/formula/functions/Var2or3ArgFunction.hpp>
#include <java/lang/ArrayStoreException.hpp>
#include <java/lang/NullPointerException.hpp>
#include <org/apache/poi/ss/formula/eval/ErrorEval.hpp>
#include <org/... |
;;****************************************************************************
;;++
;; Name : $RCSfile: isr.asm,v $
;; Title :
;; ASM Author : Jim Page
;; Created : 19/11/96
;;
;; Copyright : 1995-2022 Imagination Technologies (c)
;; License : MIT
;;
;; Description : Bi-modal ISRs f... |
/*
Copyright (C) 2011-2011 Bacula Systems(R) SA
Copyright (C) 2011-2012 Planets Communications B.V.
Copyright (C) 2013-2017 Bareos GmbH & Co. KG
This program is Free Software; you can modify it under the terms of
version three of the GNU Affero General Public License as published by the
Free Software... |
; ===============================================================
; Jan 2014
; ===============================================================
;
; int vscanf_unlocked(const char *format, void *arg)
;
; See C11 specification.
;
; ===============================================================
SECTION code_stdio
PUBL... |
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 4.0.0 #11528 (Linux)
;--------------------------------------------------------
; Processed by Z88DK
;--------------------------------------------------------
EXTERN __divschar
EXTERN __divsc... |
_missionary1: file format elf32-i386
Disassembly of section .text:
00001000 <main>:
struct{
lock_t lock;
}mutex;
int numBoat = 0;
int main() {
1000: 55 push %ebp
1001: 89 e5 mov %esp,%ebp
1003: 83 e4 f0 and $0xfffffff0,%esp
1006: 83... |
; A022278: a(n) = n*(21*n-1)/2.
; 0,10,41,93,166,260,375,511,668,846,1045,1265,1506,1768,2051,2355,2680,3026,3393,3781,4190,4620,5071,5543,6036,6550,7085,7641,8218,8816,9435,10075,10736,11418,12121,12845,13590,14356,15143,15951,16780,17630,18501,19393,20306,21240,22195,23171,24168,25186,26225,27285,28366,29468,30591,31... |
dnl Alpha ev6 nails mpn_add_n and mpn_sub_n.
dnl Copyright 2002, 2006 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 published... |
;/************************************************************************************
;Thu Mar 31 15:04:03 2016
;
;MIT License
;Copyright (c) 2016 zhuzuolang
;
;Permission is hereby granted, free of charge, to any person obtaining a copy
;of this software and associated documentation files (the "Software"), to deal
;i... |
/*
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
* (C) 2000 Simon Hausmann <hausmann@kde.org>
* Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
* reserved.
* (C) 2006 Graham Dennis (graham.dennis@gmail.com)
*
* T... |
# Scrivere un programma in linguaggio assembly MIPS che legga una stringa introdotta da tastiera. La stringa contiene sia caratteri maiuscoli che caratteri minuscoli,
# e complessivamente al più 255 caratteri. Il programma deve svolgere le seguenti operazioni:
# - visualizzare la stringa inserita
# - stampare a video ... |
; A183866: n+floor(2*sqrt(n-1)); complement of A035106.
; 1,4,5,7,9,10,11,13,14,16,17,18,19,21,22,23,25,26,27,28,29,31,32,33,34,36,37,38,39,40,41,43,44,45,46,47,49,50,51,52,53,54,55,57,58,59,60,61,62,64,65,66,67,68,69,70,71,73,74,75,76,77,78,79,81,82,83,84,85,86,87,88,89,91,92,93,94,95,96,97,98,100,101,102,103,104,105,... |
/*
* Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) a... |
; A081009: a(n) = Fibonacci(4n+3) - 1, or Fibonacci(2n+2)*Lucas(2n+1).
; 1,12,88,609,4180,28656,196417,1346268,9227464,63245985,433494436,2971215072,20365011073,139583862444,956722026040,6557470319841,44945570212852,308061521170128,2111485077978049,14472334024676220,99194853094755496,679891637638612257,4660046610375530... |
; A010972: a(n) = binomial(n,19).
; 1,20,210,1540,8855,42504,177100,657800,2220075,6906900,20030010,54627300,141120525,347373600,818809200,1855967520,4059928950,8597496600,17672631900,35345263800,68923264410,131282408400,244662670200,446775310800,800472431850,1408831480056,2438362177020,4154246671960,6973199770790,1154... |
object_const_def ; object_event constants
const BURNEDTOWERB1F_BOULDER
const BURNEDTOWERB1F_RAIKOU1
const BURNEDTOWERB1F_ENTEI1
const BURNEDTOWERB1F_SUICUNE1
const BURNEDTOWERB1F_RAIKOU2
const BURNEDTOWERB1F_ENTEI2
const BURNEDTOWERB1F_SUICUNE2
const BURNEDTOWERB1F_POKE_BALL
const BURNEDTOWERB1F_EUSINE
Burne... |
.data
msg0: .asciiz "Input total no of points you want to compute in the graph -- "#asks for no of points on the graph
msg1: .asciiz "Input X - coordinate " #asks for x coordinate
msg2: .asciiz "Input Y - coordinate " #asks for y coordinate
msg3: .asciiz "Area= " # gives the final answer
msg4: .... |
dict:
%define link 1 ; indicates end of list
; we'll later check this when updating pointers
%macro start_def 3
%strlen namelen %3
global code_%2
def_%2: dq link
%assign link def_%2 - core
db %1
dd end_%2 - code_%2
dd code_%2 - def_%2
db namelen
name_%2:
db %3 ; name as ASCII
code_%2: ... |
#include "taichi/gui/gui.h"
#if defined(TI_GUI_X11)
#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include <X11/Xutil.h>
#include <cstdlib>
// Undo terrible unprefixed macros in X.h
#ifdef None
#undef None
#endif
#ifdef Success
#undef Success
#endif
TI_NAMESPACE_BEGIN
class CXImage {
public:
XImage *image;
std:... |
%ifdef CONFIG
{
"RegData": {
"XMM0": ["0x7861626364656667", "0x4871727374757677"],
"XMM2": ["0x7861626364656667", "0x4871727374757677"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
mov rdx, 0xe0000000
mov rax, 0x4142434445464748
mov [rdx + 8 * 0], rax
mov rax, 0x5152535455565758
mov [rdx... |
[CPU 486]
[BITS 32]
GLOBAL api_putstr0
section .text
api_putstr0: ; void api_putstr0(char *s)
PUSH EBX
MOV EDX, 2
MOV EBX, [ESP + 8] ; s
INT 0x40
POP EBX
RET |
; A269620: Number of length-4 0..n arrays with no repeated value differing from the previous repeated value by other than plus two, zero or minus 1.
; 15,78,249,612,1275,2370,4053,6504,9927,14550,20625,28428,38259,50442,65325,83280,104703,130014,159657,194100,233835,279378,331269,390072,456375,530790,613953,706524,8091... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
;;; Microsoft Research Singularity
;;;
;;; Copyright (c) Microsoft Corporation. All rights reserved.
;;;
;;; This file contains ARM-specific assembly code.
;;;
GBLL except_s
GET except.asm
END
|
#define NDEBUG
#define RAPIDJSON_HAS_STDSTRING 1
#include "rapidjson/reader.h"
#include "rapidjson/document.h"
#include "rapidjson/prettywriter.h"
#include "rapidjson/filereadstream.h"
#include "rapidjson/filewritestream.h"
#include "rapidjson/encodedstream.h"
#include "rapidjson/error/en.h"
#include <stdio.h>
#inclu... |
; void *p_forward_list_pop_back_fastcall(p_forward_list_t *list)
SECTION code_adt_p_forward_list
PUBLIC _p_forward_list_pop_back_fastcall
_p_forward_list_pop_back_fastcall:
INCLUDE "adt/p_forward_list/z80/asm_p_forward_list_pop_back.asm"
|
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r8
push %r9
push %rax
push %rdi
push %rdx
// Store
lea addresses_UC+0x19f1a, %rdi
nop
nop
nop
nop
nop
add %r8, %r8
mov $0x5152535455565758, %rax
movq %rax, %xmm1
and $0xffffffffffffffc0, %rdi
movaps %xm... |
; 8 x 8 to 16 bit multiplication
; In: B, C multiplicands
; Out: HL product
; Pollutes: AF, F', BC, DE
INCLUDE "config_rc2014_private.inc"
SECTION code_user
PUBLIC MUL8
MUL8:
ld l,c ; 4
ld c,__IO_LUT_OPERAND_LATCH ; 7 operand latch address
out (c),l ; ... |
// Copyright 2012 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#if V8_TARGET_ARCH_IA32
#include "src/base/bits.h"
#include "src/base/division-by-constant.h"
#include "src/bootstrapper.h"
#include "src/codegen.h"
#i... |
; A037578: Base 6 digits are, in order, the first n terms of the periodic sequence with initial period 1,3.
; 1,9,55,333,1999,11997,71983,431901,2591407,15548445,93290671,559744029,3358464175,20150785053,120904710319,725428261917,4352569571503,26115417429021,156692504574127,940155027444765,5640930164668591,338455809880... |
;******************************************************************************
;* FD_ADD32.ASM - 32 BIT STATE - *
;* *
;* Copyright (c) 1996 Texas Instruments Incorporated *
... |
#include "decrypt.h"
#include "dfa.h"
#include "encrypt.h"
#include <algorithm>
#include <chrono>
#include <fstream>
#include <iostream>
#include <optional>
#include <string>
#include <vector>
namespace
{
enum class Mode
{
Encrypt,
Decrypt
};
enum class Type
{
Round8,
... |
; A264129: Number of (n+1) X (4+1) arrays of permutations of 0..n*5+4 with each element having index change +-(.,.) 0,0 0,2 or 1,2.
; 80,1040,13600,178000,2330000,30500000,399250000,5226250000,68412500000,895531250000,11722656250000,153451562500000,2008707031250000,26294316406250000,344197070312500000,45055981445312500... |
// AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from yaml-test.djinni
#pragma once
#include "djinni_wasm.hpp"
#include "extern_interface_2.hpp"
namespace djinni_generated {
struct NativeExternInterface2 : ::djinni::JsInterface<::ExternInterface2, NativeExternInterface2> {
using CppType =... |
bits 16 ; 16 bit mode
org 0x7c00 ;get output at offset 0x7c00
boot:
mov si, hello ;point si register to hello label memory location
mov ah, 0x0e ;0x0e means 'Write Character in TTY mode';
.loop:
lodsb
or al, al ; al == 0 ?
jz halt ; if al==0 jump halt label
int 0x10 ;runs BIOS interrupt 0... |
; A241678: 2^p - 5 where p is prime.
; -1,3,27,123,2043,8187,131067,524283,8388603,536870907,2147483643,137438953467,2199023255547,8796093022203,140737488355323,9007199254740987,576460752303423483,2305843009213693947,147573952589676412923,2361183241434822606843,9444732965739290427387,604462909807314587353083,9671406556... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23506.0
include listing.inc
INCLUDELIB MSVCRT
INCLUDELIB OLDNAMES
PUBLIC __local_stdio_printf_options
PUBLIC _vfprintf_l
PUBLIC printf
PUBLIC func
PUBLIC main
PUBLIC ??_C@_0BA@NNIFAFEJ@?$CFd?5?$CFd?5?$CFd?5?$CFd?5?$CFs?6?$AA@ ; `stri... |
#include <cstdio>
#include <vector>
#include <cstring>
#define MAXV 1000
using namespace std;
typedef vector <int> vi;
// Assuming vertices are labeled 0...V-1
vi G[MAXV], Grev[MAXV];
bool explored[MAXV];
int leader[MAXV], finish[MAXV], order[MAXV], t = -1, parent = 0, V, E;
// running DFS on the reverse graph
void ... |
/* this file has been autogenerated by vtkNodeJsWrap */
/* editing this might proof futile */
#define VTK_WRAPPING_CXX
#define VTK_STREAMS_FWD_ONLY
#include <nan.h>
#include "vtkUnstructuredGridAlgorithmWrap.h"
#include "vtkThresholdWrap.h"
#include "vtkObjectBaseWrap.h"
#include "../../plus/plus.h"
using namespace ... |
; mmu-pages.asm
MMUTemp16 equ $
; PAGE 18 - BANK18.BIN - Daybreak Layer 2 (1/6)
org 0
dispto zeusmmu(18)
import_bin "..\banks\Bank18.bin"
; PAGE 19 - BANK19.BIN - Daybreak Layer 2 (2/6)
org 0
dispto zeusmmu(19)
import_bin "..\banks\Bank19.bin"
; PAGE 20 - BANK20.BIN - Daybreak Layer 2 (3/6)
org 0
di... |
lc r4, 0x00000000
lc r5, 0x0000101f
lc r6, 0x00000000
tlbse r6, r4
lc r8, 0x40000000
lc r9, 0x0000101f
lc r10, 0x00000001
tlbse r10, r8
lc r11, 0xdeadbeef
lc r12, 0x00000002
lc r13, 0x00000002
st1 r11, r13, 0
halt
#@expected values
#r4 = 0x00000000
#r5 = 0x0000101f
#... |
; WARNING: THIS CODE IS EXTREMELY FRAGILE
macro copybin(source, length)
!copycount #= 0
while !copycount+3 < <length>
dd read4(pctosnes(<source>+!copycount))
!copycount #= !copycount+4
endif
while !copycount < <length>
db read1(pctosnes(<source>+!copycount))
... |
// Fill out your copyright notice in the Description page of Project Settings.
#include "CmdBlockedConstraint.h"
#include "UEPrototype.h"
bool UCmdBlockedConstraint::CheckConstraint(FActorConstraintInfo TargetInfo)
{
/* 제약 조건을 검사하기 위한 액터의 유효성을 검사합니다 */
if (IsValid(TargetInfo.Target) == false)
{
VP_LOG(Warning... |
_sh: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
return 0;
}
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 push %ebp
... |
; A078042: Expansion of (1-x)/(1+x-x^2+x^3).
; Submitted by Jon Maiga
; 1,-2,3,-6,11,-20,37,-68,125,-230,423,-778,1431,-2632,4841,-8904,16377,-30122,55403,-101902,187427,-344732,634061,-1166220,2145013,-3945294,7256527,-13346834,24548655,-45152016,83047505,-152748176,280947697,-516743378,950439251,-1748130326,321531295... |
;
; Sharp OZ family functions
;
; ported from the OZ-7xx SDK by by Alexander R. Pruss
; by Stefano Bodrato - Oct. 2003
;
;
; display contrast control functions
;
; ------
; $Id: ozgetcontrast.asm,v 1.3 2016/06/28 14:48:17 dom Exp $
;
SECTION code_clib
PUBLIC ozgetcontrast
PUBLIC _ozgetcontrast
EXTERN ozco... |
ViridianPokecenterObject:
db $0 ; border block
db $2 ; warps
db $7, $3, $0, $ff
db $7, $4, $0, $ff
db $0 ; signs
db $4 ; objects
object SPRITE_NURSE, $3, $1, STAY, DOWN, $1 ; person
object SPRITE_GENTLEMAN, $a, $5, WALK, $1, $2 ; person
object SPRITE_BLACK_HAIR_BOY_1, $4, $3, STAY, NONE, $3 ; person
object... |
/*
RandomDiffusionOrder.hpp
process pixels in a diffusion order starting from constraints
but randomized otherwise
Li-Yi Wei
August 27, 2014
*/
#ifndef _RANDOM_DIFFUSION_SEQUENCER_HPP
#define _RANDOM_DIFFUSION_SEQUENCER_HPP
#include <vector>
using namespace std;
#include "Sequencer.hpp"
#include "Neighb... |
; A047592: Numbers that are congruent to {1, 2, 3, 4, 5, 6, 7} mod 8.
; 1,2,3,4,5,6,7,9,10,11,12,13,14,15,17,18,19,20,21,22,23,25,26,27,28,29,30,31,33,34,35,36,37,38,39,41,42,43,44,45,46,47,49,50,51,52,53,54,55,57,58,59,60,61,62,63,65,66,67,68,69,70,71,73,74,75,76,77,78,79,81,82,83,84,85,86,87,89,90,91,92,93,94,95,97,9... |
; A170153: Number of reduced words of length n in Coxeter group on 48 generators S_i with relations (S_i)^2 = (S_i S_j)^38 = I.
; 1,48,2256,106032,4983504,234224688,11008560336,517402335792,24317909782224,1142941759764528,53718262708932816,2524758347319842352,118663642324032590544,5577191189229531755568,262127985893787... |
; A258650: Tenth arithmetic derivative of n.
; 0,0,0,0,4,0,0,0,8592,0,0,0,20096,0,0,3424,70464,0,0,0,16304,0,0,0,32624,0,1520,27,70464,0,0,0,235072,0,0,8592,47872,0,0,20096,24640,0,0,0,65264,8592,0,0,130544,0,3424,8144,47872,0,57996,20096,198656,0,0,0,198656,0,0,3120,1012858880,0,0,0,84608,752,0,0,296256,0,8592,8592,23... |
; A198401: 8^n+n^8.
; 1,9,320,7073,69632,423393,1941760,7861953,33554432,177264449,1173741824,8804293473,69149458432,550571544609,4399522300160,35186934979457,281479271677952,2251806789442689,18014409529442560,144115205059418913,1152921530206846976,9223372074677635169,73786976349714080000,590295810437016636993,47223664... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r14
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x7aa4, %rsi
lea addresses_UC_ht+0xfd24, %rdi
clflush (%rdi)
nop
and %r14, %r14
mov $80, %rcx
rep movsw
nop
xor $43404, %r10
lea addresses_WC_ht+0x1a164, %rax
clflush (%rax)
sub $50674, ... |
; A069226: a(n) = gcd(n, 2^n + 1).
; 1,1,3,1,1,1,1,1,9,5,1,1,1,1,3,1,1,1,1,1,3,1,1,1,1,1,27,1,1,5,1,1,3,1,1,1,1,1,3,1,1,1,1,1,9,1,1,1,1,25,3,1,1,1,11,1,3,1,1,1,1,1,9,1,1,1,1,17,3,5,1,1,1,1,3,1,1,13,1,1,81,1,1,1,1,1,3,1,1,5,1,1,3,1,1,1,1,1,9,1
add $0,1
mov $1,2
pow $1,$0
add $1,1
gcd $0,$1
|
/*
* 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... |
; A304616: a(n) = 81*n^2 - 69*n + 24.
; 24,36,210,546,1044,1704,2526,3510,4656,5964,7434,9066,10860,12816,14934,17214,19656,22260,25026,27954,31044,34296,37710,41286,45024,48924,52986,57210,61596,66144,70854,75726,80760,85956,91314,96834,102516,108360,114366,120534,126864,133356,140010,146826,153804,160944,168246,17571... |
;
; jcphuff-sse2.asm - prepare data for progressive Huffman encoding (SSE2)
;
; Copyright (C) 2016, 2018, Matthieu Darbois
;
; 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 jsimdext.inc
;
; This file sho... |
;
; jidctint.asm - accurate integer IDCT (SSE2)
;
; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
; Copyright (C) 2016, D. R. Commander.
;
; 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 ... |
; A048479: a(n) = T(7,n), array T given by A048472.
; 1,9,33,97,257,641,1537,3585,8193,18433,40961,90113,196609,425985,917505,1966081,4194305,8912897,18874369,39845889,83886081,176160769,369098753,771751937,1610612737,3355443201,6979321857,14495514625,30064771073,62277025793,128849018881,266287972353,549755813889,11338... |
; ===== Makefile Headers =====
; MBC 0x00
; RAM 0x00
INCLUDE "hardware.inc"
SECTION "Header", ROM0[0]
ds $100 - @
SECTION "Test", ROM0[$100]
EntryPoint::
jr Main
ds $150 - @
;----------------------------------------------------------------------------
; This Test ROM simply loads a few basic tiles and arra... |
db DEX_PIDGEOTTO ; pokedex id
db 63 ; base hp
db 60 ; base attack
db 55 ; base defense
db 71 ; base speed
db 50 ; base special
db NORMAL ; species type 1
db FLYING ; species type 2
db 120 ; catch rate
db 113 ; base exp yield
INCBIN "pic/ymon/pidgeotto.pic",0,1 ; 66, sprite dimensions
dw PidgeottoPicFront
dw PidgeottoPi... |
<%
from pwnlib.shellcraft.i386.linux import syscall
%>
<%page args="mqdes, msg_ptr, msg_len, msg_prio, abs_timeout"/>
<%docstring>
Invokes the syscall mq_timedsend. See 'man 2 mq_timedsend' for more information.
Arguments:
mqdes(mqd_t): mqdes
msg_ptr(char): msg_ptr
msg_len(size_t): msg_len
msg_pr... |
; A175833: Periodic sequence: repeat 4,7,11.
; 4,7,11,4,7,11,4,7,11,4,7,11,4,7,11,4,7,11,4,7,11,4,7,11,4,7,11,4,7,11,4,7,11,4,7,11,4,7,11,4,7,11,4,7,11,4,7,11,4,7,11,4,7,11,4,7,11,4,7,11,4,7,11,4,7,11,4,7,11,4,7,11,4,7,11,4,7,11,4,7,11,4,7,11,4,7,11
mod $0,3
mov $1,$0
mul $1,4
trn $1,1
add $1,4
|
Music_DancingHall:
musicheader 3, 1, Music_DancingHall_Ch1
musicheader 1, 2, Music_DancingHall_Ch2
musicheader 1, 3, Music_DancingHall_Ch3
db $3
Music_DancingHall_Ch1:
tempo 208
volume $77
stereopanning $f
notetype $6, $b7
note __, 3
dutycycle $0
Music_DancingHall_branch_ef9d3:
notetype $c, $b7
callchanne... |
timekeeper_hours equ $7FFB
timekeeper_minutes equ $7FFA
timekeeper_seconds equ $7FF9
entrypoint clock
.block
LD A, 71
OUT gaddr_l, A
LD A, 29
OUT gaddr_h, A
LD A, (timekeeper_hours)
CALL ROM_PRINT_BYTE
LD A, ':'
OUT chars_io, A
LD A, (timekeeper_minutes)
CALL ROM_PRINT_BYTE
LD A, ':'
OUT chars_io, A
LD ... |
; A090042: a(n) = 2*a(n-1) + 11*a(n-2) for n > 1, a(0) = a(1) = 1.
; Submitted by Jon Maiga
; 1,1,13,37,217,841,4069,17389,79537,350353,1575613,7005109,31341961,139740121,624241813,2785624957,12437909857,55517694241,247852396909,1106399430469,4939175226937,22048744189033,98428415874373,439393017828109,1961498610274321,... |
#ROM *
#Uses v2_18g3.inc
;*******************************************************************************
#DATA
;*******************************************************************************
ready fcb 0
FLEET fcb ... |
#include<vector>
#include<iostream>
#include<string>
#include<cstdlib>
#include<ctime>
#include<algorithm>
using namespace std;
// assume data is a not decrease order.
/**
* binary search target
* return: index, if not found return -1
*/
int normal_bin_search(vector<int> &data, int target) {
int left = 0;
int... |
// Copyright 2017 The Fuchsia 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 <assert.h>
#include <lib/zx/timer.h>
#include <stdio.h>
#include <threads.h>
#include <unistd.h>
#include <zxtest/zxtest.h>
namespace {
TEST(Tim... |
; A086090: 2^n+n3^n.
; Submitted by Jamie Morken(s3)
; 1,5,22,89,340,1247,4438,15437,52744,177659,591514,1950665,6381388,20734391,66977950,215266373,688813072,2195513843,6973830946,22083492161,69736736596,219669514415,690387505702,2165301501629
mov $1,2
pow $1,$0
add $1,1
mov $2,3
pow $2,$0
mul $2,$0
add $1,$2
mov $0,... |
#include "Mcu.inc"
#include "FarCalls.inc"
#include "Door.inc"
#include "TestFixture.inc"
#include "../InitialiseAfterDoorMock.inc"
radix decimal
InitialisationChainTest code
global testArrange
testArrange:
fcall initialiseInitialiseAfterDoorMock
testAct:
fcall initialiseDoor
testAssert:
banksel calledIn... |
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2013, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * R... |
#include <data_transfer.h>
DataTransfer::DataTransfer(const String &connection_string): connection_string(connection_string){
interval_counter = 0;
send_data = true;
}
bool DataTransfer::senData(struct sendData *ptr){
bool retValue = false;
if (send_data){
client.begin(wifi_client, this->conne... |
#include "pch-cpp.hpp"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
IL2CPP_EXTERN_C_BEGIN
IL2CPP_EXTERN_C_END
IL2CPP_EXTERN_C void DelegatePInvokeWrapper_Action_tAF41423D285AE0862865348CF6CE51CD085ABBA6();
IL2CPP_EXTERN_C_CONST RuntimeType Action_tAF41423D285AE0862865348CF6CE51C... |
; A316569: a(n) = Jacobi (or Kronecker) symbol (n, 15).
; 0,1,1,0,1,0,0,-1,1,0,0,-1,0,-1,-1,0,1,1,0,1,0,0,-1,1,0,0,-1,0,-1,-1,0,1,1,0,1,0,0,-1,1,0,0,-1,0,-1,-1,0,1,1,0,1,0,0,-1,1,0,0,-1,0,-1,-1,0,1,1,0,1,0,0,-1,1,0,0,-1,0,-1,-1,0
mov $1,$0
mod $0,3
mov $2,$1
mul $2,2
mul $0,$2
pow $0,2
lpb $0
sub $0,10
lpe
mov $1,$0... |
// Copyright 2020 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 "ash/assistant/model/ui/assistant_error_element.h"
#include "ash/assistant/ui/assistant_ui_constants.h"
#include "ui/base/l10n/l10n_util.h"
nam... |
/*
Copyright (c) 2011 Arduino. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This ... |
PIC_WIDTH = 320
PIC_HEIGHT equ 256
bsr init
bsr main
bsr exit
rts
init move.w #PIC_WIDTH,d0
move.w #PIC_HEIGHT,d1
rts
main moveq.l #0,d0
rts
exit illegal
rts |
; A017031: a(n) = (7*n + 4)^3.
; 64,1331,5832,15625,32768,59319,97336,148877,216000,300763,405224,531441,681472,857375,1061208,1295029,1560896,1860867,2197000,2571353,2985984,3442951,3944312,4492125,5088448,5735339,6434856,7189057,8000000,8869743,9800344,10793861,11852352,12977875,14172488,15438249,16777216,18191447,19... |
; A307371: Numbers k such that the digits of sqrt(k) begin with k.
; 0,1,98,99,100,9998,9999,10000,999998,999999,1000000,99999998,99999999,100000000,9999999998,9999999999,10000000000,999999999998,999999999999,1000000000000,99999999999998,99999999999999,100000000000000,9999999999999998,9999999999999999
mov $2,1
lpb $0,... |
; unsigned char esx_ide_bank_reserve(unsigned char banktype,unsigned char page)
SECTION code_esxdos
PUBLIC _esx_ide_bank_reserve_callee
PUBLIC l0_esx_ide_bank_reserve_callee
EXTERN asm_esx_ide_bank_reserve
_esx_ide_bank_reserve_callee:
pop hl
ex (sp),hl
l0_esx_ide_bank_reserve_callee:
push ix
push iy... |
/*!
* \author Ruben Martins - rubenm@andrew.cmu.edu
*
* @section LICENSE
*
* Open-WBO, Copyright (c) 2013-2022, Ruben Martins, Vasco Manquinho, Ines Lynce
* UpMax, Copyright (c) 2022, Pedro Orvalho, Vasco Manquinho, Ruben Martins
*
* Permission is hereby granted, free of charge, to any person obtaining a cop... |
; A242412: a(n) = (2n-1)^2 + 14.
; 15,23,39,63,95,135,183,239,303,375,455,543,639,743,855,975,1103,1239,1383,1535,1695,1863,2039,2223,2415,2615,2823,3039,3263,3495,3735,3983,4239,4503,4775,5055,5343,5639,5943,6255,6575,6903,7239,7583,7935,8295,8663,9039,9423,9815
sub $1,$0
bin $1,2
mul $1,8
add $1,15
|
https://practice.geeksforgeeks.org/problems/minimum-swaps-required-to-bring-all-elements-less-than-or-equal-to-k-together4847/1#
sliding window tec:
int minSwap(int *arr, int n, int k) {
// Complet the function
int c=0;
for(int i=0;i<n;i++)
{
if(arr[i]<=k)
c++;
}
int gr... |
foo: macro
endm
foo |
SECTION code_clib
SECTION code_fp_math48
PUBLIC _isgreaterequal
EXTERN cm48_sdcciy_isgreaterequal
defc _isgreaterequal = cm48_sdcciy_isgreaterequal
|
;/*
; * FreeRTOS Kernel <DEVELOPMENT BRANCH>
; * Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
; *
; * SPDX-License-Identifier: MIT
; *
; * Permission is hereby granted, free of charge, to any person obtaining a copy of
; * this software and associated documentation files (the "Softw... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.