text stringlengths 1 1.05M |
|---|
/*
* 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... |
###############################################################################
# Copyright 2019 Intel Corporation
# All Rights Reserved.
#
# If this software was obtained under the Intel Simplified Software License,
# the following terms apply:
#
# The source code, information and material ("Material") containe... |
//code by Nikhil Nagrale
//nikhilnagrale2 on EveryPlatform
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin >> n;
int maxindex=0;
int minindex=0;
int maxvalue=INT_MIN;
int minvalue=INT_MAX;
for (int i = 0; i < n; i++)
{
int temp;
cin >> temp;
... |
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... |
;my stackoverflow answer_link : https://stackoverflow.com/a/67801034/13939591
;Day 35 date-02 June,2021
;problem - convert lower case letter to upper case letter or upper case letter to lower case letter
; - without using subtraction , addition (using just bit manipulation)
; Here at first, @ indicating s... |
; A282232: a(n) = ((3*n + 1)^6 - 1)/9.
; 0,455,13072,111111,536312,1864135,5227320,12597767,27126736,53543367,98611520,171644935,285080712,455111111,702373672,1052699655,1537920800,2196734407,3075626736,4229854727,5724486040,7635497415,10050931352,13072111111,16814914032,21411103175,27009717280
mul $0,3
add $0,1
pow $... |
; A054586: Sum_{d|2n+1} phi(d)*mu(d).
; 1,-1,-3,-5,-1,-9,-11,3,-15,-17,5,-21,-3,-1,-27,-29,9,15,-35,11,-39,-41,3,-45,-5,15,-51,27,17,-57,-59,5,33,-65,21,-69,-71,3,45,-77,-1,-81,45,27,-87,55,29,51,-95,9,-99,-101,-15,-105,-107,35,-111,63,11,75,-9
mul $0,2
seq $0,276833 ; Sum of mu(d)*phi(d) over divisors d of n.
|
; A047586: Numbers that are congruent to {2, 3, 5, 6, 7} mod 8.
; 2,3,5,6,7,10,11,13,14,15,18,19,21,22,23,26,27,29,30,31,34,35,37,38,39,42,43,45,46,47,50,51,53,54,55,58,59,61,62,63,66,67,69,70,71,74,75,77,78,79,82,83,85,86,87,90,91,93,94,95,98,99,101,102,103
mov $1,$0
add $0,1
lpb $0,1
sub $0,1
trn $0,1
add $3,$... |
momitem: MACRO
; money to trigger, cost, kind, item
dt \1
dt \2
db \3, \4
ENDM
MomItems_1:
momitem 0, 600, MOM_ITEM, SUPER_POTION
momitem 0, 90, MOM_ITEM, ANTIDOTE
momitem 0, 180, MOM_ITEM, POKE_BALL
momitem 0, 450, MOM_ITEM, ESCAPE_ROPE
momitem 0, 500, MOM_ITEM, GREAT_BALL
... |
; $Id: bs3-mode-SwitchToPP16_32.asm $
;; @file
; BS3Kit - Bs3SwitchToPP16_32
;
;
; Copyright (C) 2007-2017 Oracle Corporation
;
; This file is part of VirtualBox Open Source Edition (OSE), as
; available from http://www.virtualbox.org. This file is free software;
; you can redistribute it and/or modify it under the te... |
; A201279: a(n) = 6n^2 + 10n + 5.
; 5,21,49,89,141,205,281,369,469,581,705,841,989,1149,1321,1505,1701,1909,2129,2361,2605,2861,3129,3409,3701,4005,4321,4649,4989,5341,5705,6081,6469,6869,7281,7705,8141,8589,9049,9521,10005,10501,11009,11529,12061,12605,13161,13729,14309,14901,15505,16121,16749,17389,18041,18705,19381,... |
// Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
#include <cstring>
#include <iostream>
#include "faodel-common/Debug.hh"
#include "SerdesParticleBundleObject.hh... |
; Assembly for keyscan-native.bas
; compiled with mcbasic -native
; Equates for MC-10 MICROCOLOR BASIC 1.0
;
; Direct page equates
DP_LNUM .equ $E2 ; current line in BASIC
DP_TABW .equ $E4 ; current tab width on console
DP_LPOS .equ $E6 ; current line position on console
DP_LWID .equ $E7 ; current line width of conso... |
icl '../../os/symbols.asm'
;
; MUSIC init & play
; example by Raster/C.P.U., 2003-2004
;
icl "rmtplayr.asm" ;include RMT player routine
MODUL equ $4000 ;address of RMT module
VLINE equ 16 ;screen line for synchronization
org BOOTADDR
start
lda #1
sta ROS7
lda #1
ldx #OS_SET_VIDEO_MODE
js... |
#line 1 "P:/Google/Universidad/2018_II/Microprocesamiento/Tercer Seguimiento/Rbot-explorer/PIC/RbotController/RbotController.c"
#line 15 "P:/Google/Universidad/2018_II/Microprocesamiento/Tercer Seguimiento/Rbot-explorer/PIC/RbotController/RbotController.c"
void servo();
void setup();
void motion();
void gira(unsig... |
// pointer
#include <iostream>
#include <conio.h>
using namespace std;
main()
{
int a=2;
int *pa=&a;
*pa=7;
cout<<*pa<<endl;
cout<<a<<endl;
int b=3;
const int *pb=&b;
//*pb=8; //error
pb=&a;
cout<<*pb<<endl;
int c=4;
int * const p... |
#include "boost/lexical_cast.hpp"
#include "StandardSaveManager.hpp"
#include "DataContainer.hpp"
#include "DataContainerSerializeUtility.hpp"
#include "FileManipulator.hpp"
#include "LogUtility.hpp"
#include "planeta/buildin/RCsv.hpp"
namespace {
constexpr char* CommonSaveDataFileName("common_save_data");
constexp... |
#include <Rcpp.h>
using namespace Rcpp;
#include "inclusion_probabilities_rcpp.h"
//' Sverchkov and Pfeffermann \ifelse{html}{\out{π}}{\eqn{\pi}}PS bootstrap
//'
//' The function generates bootstrap samples using Sverchkov and Pfeffermann
//' (2004, p. 85) bootstrap \ifelse{html}{\out{π}}{\eqn{\pi}}PS samplin... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2018 The Helmin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http:... |
; Copyright © 2018, VideoLAN and dav1d authors
; Copyright © 2018, Two Orioles, LLC
; Copyright © 2018, VideoLabs
; 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 c... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r15
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x185c0, %r12
nop
nop
nop
nop
nop
xor $34700, %rcx
movl $0x61626364, (%r12)
nop
add %r10, %r10
lea addresses_A_ht+0x15c0, %rsi
lea addresses_UC_ht+0x4900, %rdi
clflush (%rsi)
n... |
; A116525: a(0)=1, a(1)=1, a(n) = 11*a(n/2) for even n, and a(n) = 10*a((n-1)/2) + a((n+1)/2) for odd n >= 3.
; 0,1,11,21,121,131,231,331,1331,1341,1441,1541,2541,2641,3641,4641,14641,14651,14751,14851,15851,15951,16951,17951,27951,28051,29051,30051,40051,41051,51051,61051,161051,161061,161161,161261,162261,162361,1633... |
; A164120: Partial sums of A162396.
; 5,7,17,21,41,49,89,105,185,217,377,441,761,889,1529,1785,3065,3577,6137,7161,12281,14329,24569,28665,49145,57337,98297,114681,196601,229369,393209,458745,786425,917497,1572857,1835001,3145721,3670009,6291449,7340025,12582905,14680057,25165817,29360121,50331641,58720249,100663289,11... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r8
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x12581, %rsi
lea addresses_normal_ht+0x1c181, %rdi
nop
nop
nop
cmp %rbp, %rbp
mov $83, %rcx
rep movsq
nop
nop
nop
xor $25855, %rbx
lea addresses_normal_ht+0x3381, %r10
clflush ... |
/*------------------------------------------------------------------------
* Vulkan Conformance Tests
* ------------------------
*
* Copyright (c) 2016 The Khronos Group Inc.
* Copyright (c) 2016 Imagination Technologies Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use ... |
.text
.globl main
main:
li $t0,-3
li $t1,2
div $t0,$t1
mflo $a0
li $v0,1
syscall
mfhi $a0
li $v0,1
syscall |
Name: zel_rmdt09.asm
Type: file
Size: 172147
Last-Modified: '2016-05-13T04:27:09Z'
SHA-1: 8D4C35677AC1F9EAABEEDDCE8B9DF9C00AF150E9
Description: null
|
dnl AMD64 mpn_mul_basecase.
dnl Contributed to the GNU project by Torbjorn Granlund and David Harvey.
dnl Copyright 2008, 2012 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... |
; A004998: a(n) = (6^n/n!) * Product_{k=0..n-1} ( 6*k + 11 ).
; Submitted by Christian Krause
; 1,66,3366,154836,6735366,282885372,11598300252,467245810152,18573020953542,730538824172652,28491014142733428,1103379274982221848,42480102086815541148,1627314679941087653208,62070431363467200486648,2358676391811753618492624,8... |
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
#include "test_precomp.hpp"
namespace opencv_test { namespace {
using namespace cv::img_hash;
/**
*The expected results o... |
; A242399: Write n and 3n in ternary representation and add all trits modulo 3.
; Coded manually 2021-04-21 by Simon Strandgaard, https://github.com/neoneye
; 0,4,8,12,16,11,24,19,23,36,40,44,48,52,47,33,28,32,72,76,80,57,61,56,69,64,68,108,112,116,120,124,119,132,127,131,144,148,152,156,160,155,141,136,140,99,103,107,... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r14
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x1b17e, %rdi
nop
dec %r10
mov $0x6162636465666768, %r14
movq %r14, (%rdi)
nop
inc %r9
lea addresses_WC_ht+0x1c50a, %r12
nop
add $58169, %rsi
mov (%r12), %r9
nop
add $40044, %r1... |
// (C) Copyright Gennadiy Rozental 2005-2008.
// Use, modification, and distribution are subject to 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 ... |
; A018207: Expansion of 1/((1-3x)(1-10x)(1-12x)).
; Submitted by Jon Maiga
; 1,25,439,6685,94471,1276405,16745119,215226205,2725568791,34135388485,423910350799,5229781276525,64185946519111,784517071831765,9557062002788479,116113315455883645,1407645499737869431,17034603139656230245,205843809104280154159,2484411423536578... |
; A066430: a(n) = 8^n mod n^8.
; 0,64,512,4096,32768,262144,2097152,0,5077565,73741824,15579352,352387072,769038655,195124224,1009588832,0,4384458125,2836131328,9009163584,7006846976,33653509289,41376995328,17808619293,26138902528,11605068943,200037316608,161669290688,88607293440,486559764369,544999124224,436466053263,... |
//===- MSP430InstrInfo.cpp - MSP430 Instruction Information ---------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
DEVICE ZXSPECTRUMNEXT
DEFINE DOUBLEBUFFER 1
CSPECTMAP testMaths.map
OPT --zxnext=cspect --syntax=a --reversepop
testStartup: ORG $8000
ld ix, TestCase1
.TestLoop: ... |
; A145825: a(n) is in A145818 such that (4n-1-a(n))/2 is in A145818 as well
; Submitted by Jamie Morken(s2)
; 1,5,1,5,17,21,17,21,1,5,1,5,17,21,17,21,65,69,65,69,81,85,81,85,65,69,65,69
mov $1,$0
seq $1,4451 ; Nimsum n + 10.
add $0,$1
mul $0,2
sub $0,19
|
; A032926: Numbers whose set of base 5 digits is {1,2}.
; 1,2,6,7,11,12,31,32,36,37,56,57,61,62,156,157,161,162,181,182,186,187,281,282,286,287,306,307,311,312,781,782,786,787,806,807,811,812,906,907,911,912,931,932,936,937,1406,1407,1411,1412,1431,1432,1436,1437,1531,1532,1536,1537,1556,1557,1561,1562,3906,3907,3911,3... |
; A281019: Partial products of A051953; a(1) = 1.
; Submitted by Christian Krause
; 1,1,1,2,2,8,8,32,96,576,576,4608,4608,36864,258048,2064384,2064384,24772608,24772608,297271296,2675441664,32105299968,32105299968,513684799488,2568423997440,35957935964160,323621423677440,5177942778839040,5177942778839040,11391474113445... |
; A036222: Expansion of 1/(1-3*x)^9; 9-fold convolution of A000244 (powers of 3).
; 1,27,405,4455,40095,312741,2189187,14073345,84440070,478493730,2583866142,13389124554,66945622770,324428787270,1529449997130,7035469986798,31659614940591,139674771796725,605257344452475,2580307626350025,10837292030670105,448973526984904... |
; A266072: Number of ON (black) cells in the n-th iteration of the "Rule 3" elementary cellular automaton starting with a single ON (black) cell.
; 1,1,1,5,1,9,1,13,1,17,1,21,1,25,1,29,1,33,1,37,1,41,1,45,1,49,1,53,1,57,1,61,1,65,1,69,1,73,1,77,1,81,1,85,1,89,1,93,1,97,1,101,1,105,1,109,1,113,1,117,1,121,1,125,1,129,1,... |
#include <bits/stdc++.h>
using namespace std;
int main()
{
int arr[] = {-1, 150, 190, 170, -1, -1, 160, 180};
int n = sizeof(arr)/sizeof(arr[0]);
vector <int> brr;
for(int i = 0; i < n; i++)
{
if(arr[i] != -1)
{
brr.push_back(arr[i]);
}
... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2011-2015 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 so... |
; ########################################################################################
; # Generated by the active disassembly feature of the Exodus emulation platform
; #
; # Creation Date: 2020-11-26 11:22:26
; # Analysis Region: 0x00003A70 - 0x00003B0A
; # script parser, control code handler
; ################... |
_ls: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
close(fd);
}
int
main(int argc, char *argv[])
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: ff 71 fc pushl -0x4(%ecx)
a: 55 push %eb... |
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 4.0.7 #12017 (Linux)
;--------------------------------------------------------
; Processed by Z88DK
;--------------------------------------------------------
EXTERN __divschar
EXTERN __divsc... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Printer/Fax/CCom
FILE: ccomSetup.asm
AUTHOR: Don Reeves, May 2, 1991
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
... |
setrepeat 4
frame 3, 02
frame 1, 01
frame 2, 01
frame 1, 02
dorepeat 1
frame 0, 25
frame 3, 10
endanim
|
#ifndef _CORE_NEW_INLINE_
#define _CORE_NEW_INLINE_
namespace gsystem { // gsystem
template<typename ClassT> GINLINE
gptr GNewT<ClassT>::operator new(gsize size) GNOEXCEPT
{
gptr ptr = GMalloc(size);
if (GNULL == ptr)
{
throw std::bad_alloc();
}
return ptr;
}
template<typename ClassT>
GINLINE gvoid GNewT<Cla... |
; A213585: Principal diagonal of the convolution array A213584.
; 1,7,22,54,116,232,443,821,1490,2664,4710,8256,14373,24883,42878,73594,125880,214664,365087,619425,1048666,1771852,2988362,5031744,8459401,14201887,23811238,39873726,66695420,111440104,186016835,310209101,516859298,860453808,1431331758,2379189504,39519437... |
/* Copyright (c) 2020-2021 Arm Limited
* SPDX-License-Identifier: Apache-2.0
*
* 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
*
* Un... |
; A040319: Continued fraction for sqrt(338).
; Submitted by Jamie Morken(s3)
; 18,2,1,1,2,36,2,1,1,2,36,2,1,1,2,36,2,1,1,2,36,2,1,1,2,36,2,1,1,2,36,2,1,1,2,36,2,1,1,2,36,2,1,1,2,36,2,1,1,2,36,2,1,1,2,36,2,1,1,2,36,2,1,1,2,36,2,1,1,2,36,2,1,1,2,36,2,1,1,2,36,2,1,1,2
mul $0,2
pow $0,2
mov $2,54
mov $3,$2
mov $1,$3
mov $... |
; A314067: Coordination sequence Gal.3.53.1 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,15,22,26,33,37,43,48,53,59,63,70,74,81,85,91,96,101,107,111,118,122,129,133,139,144,149,155,159,166,170,177,181,187,192,197,203,207,21... |
/*
* Distributed under the OSI-approved Apache License, Version 2.0. See
* accompanying file Copyright.txt for details.
*
* reader.cpp
*
* Created on: Feb 13, 2017
* Author: pnorbert
*/
#include <iostream>
#include <vector>
#include <adios2.h>
#ifdef ADIOS2_HAVE_MPI
#include <mpi.h>
#endif
template <c... |
Animation_Circle_Q3:
push bp
mov bp, sp
sub sp, 6
push es
push di
push si
push ax
push cx
push dx
mov si, word [bp + circ_r] ; x = -r
neg si
mov [bp - x], si
mov [bp - y], word 0d ; y = 0
... |
[bits 16]
disk_read:
pusha
push dx
mov ah, 0x02
mov al, dh
mov ch, 0x00
mov dh, 0x00
mov cl, 0x02
int 0x13
jc disk_read_error
pop dx
cmp dh, al
jne disk_read_error
popa
jmp after_disk_read
ret
disk_read_error:
mov bx, DISK_READ_ERROR_MSG
call pri... |
/*This file is part of the FEBio source code and is licensed under the MIT license
listed below.
See Copyright-FEBio.txt for details.
Copyright (c) 2019 University of Utah, The Trustees of Columbia University in
the City of New York, and others.
Permission is hereby granted, free of charge, to any person obtaining ... |
SECTION code_clib
PUBLIC plotpixel
EXTERN __gfx_coords
;
; $Id: plotpixl.asm,v 1.14 2016/07/02 09:01:36 dom Exp $
;
; ******************************************************************
;
; Plot pixel at (x,y) coordinate.
;
; ZX 81 version.
; 64x48 dots.
;
;
.plotpixel
ld a,h
cp 64
ret nc
... |
;/**; HOT- ;; sart ;*/;NOTE: T=85;..\headers\hot.incmObject_var _v2_HOThome_data res 0;// PUP DSFLAG res 1 ; DSFLAG,0 - H-Init is successful ; DSFLAG,1 - H-Last cicle is start( ; DSFLAG,2 - H-Normal Work,L-first mal ; DSFLAG,3 - ; DSFLAG,4 - H- DS- DS (=85, CRC=CRC_DS) ; DSFLAG,5 - H- DS-... |
#include "guiutil.h"
#include "bitcoinaddressvalidator.h"
#include "walletmodel.h"
#include "bitcoinunits.h"
#include "util.h"
#include "init.h"
#include <QApplication>
#include <QDateTime>
#include <QDoubleValidator>
#include <QFont>
#include <QLineEdit>
#if QT_VERSION >= 0x050000
#include <QUrlQuery>
#else
#includ... |
;NeoGeo memory editor system ROM v1
;furrtek CC BY-NC 2017
cpu 68000
supmode on
INCLUDE "regdefs.asm"
INCLUDE "ram.asm"
INCLUDE "header.asm"
PHASE $C00000
INCLUDE "irq.asm"
ORG $500
Err:
rts
ORG $600
ErrG:
rte
ORG $1000
Start:
lea $10F300,a7
... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Video Drivers
FILE: vga8Chars.asm
AUTHOR: Jim DeFrisco, Oct 8, 1992
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
N... |
; A140236: Double tetrahedral numbers (or double pyramidal numbers): a(n) = k(k+1)(k+2)/6 where k = n(n+1)(n+2)/6.
; 0,1,20,220,1540,7770,30856,102340,295240,762355,1798940,3939936,8104460,15803060,29426320,52636760,90889616,152112005,247574180,392991060,609896980,927341646,1383960600,2030479100,2932714200,4175145975,5... |
MailItems:
db FLOWER_MAIL
db SURF_MAIL
db LITEBLUEMAIL
db PORTRAITMAIL
db LOVELY_MAIL
db EON_MAIL
db MORPH_MAIL
db BLUESKY_MAIL
db MUSIC_MAIL
db MIRAGE_MAIL
db -1
|
/* $Id: Class1.c++ 1024 2010-11-04 19:44:29Z faxguy $ */
/*
* Copyright (c) 1990-1996 Sam Leffler
* Copyright (c) 1991-1996 Silicon Graphics, Inc.
* HylaFAX is a trademark of Silicon Graphics
*
* Permission to use, copy, modify, distribute, and sell this software and
* its documentation for any purpose is hereby... |
/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2012, Southwest Research Institute
* 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 mu... |
// 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.
// Create a service process that uses a Mock to respond to the browser in order
// to test launching the browser using the cloud print policy check co... |
//
// Page2.xaml.cpp
// Implementation of the Page2 class
//
#include "pch.h"
#include "Page2.xaml.h"
using namespace SDKSample::PersonalityAnimations;
using namespace Platform;
using namespace Windows::Foundation;
using namespace Windows::Foundation::Collections;
using namespace Windows::UI::Xaml;
using namespace ... |
;
; Sharp OZ family functions
;
; ported from the OZ-7xx SDK by by Alexander R. Pruss
; by Stefano Bodrato - Oct. 2003
;
;
; Keyboard routines
;
; ------
; $Id: ozkeyhit.asm,v 1.2 2003/10/27 16:56:57 stefano Exp $
;
XLIB ozkeyhit2 ; renamed (will be redefined if used)
XREF KeyBufGetPos
XREF Enab... |
; Mugwump for the HP-35s
; This program is from Bob Albrecht and is used here by permission.
; http://www.vintage-basic.net/bcg/mugwump.bas
MODEL P35S
SEGMENT MUGWUMP CODE
LBL M
;1 PRINT TAB(33);"MUGWUMP"
SF 10
eqn 'MUGWUMP'
PSE
CF 10
;----------------... |
global idt_init_asm
global idt_load
extern interrupts_register_isr
extern idtr
extern panic
extern sched_switch
%macro register_isr 1
push isr_%1
push %1
call interrupts_register_isr
add esp, 8
%endmacro
%macro ack_irq 0
push ax
mov al, 0x20
out 0xa0, al
out 0x20, al
pop ax
%endmac... |
//
// _ _ ______ _ _ _ _ _ _ _
// | \ | | | ____| | (_) | (_) | | | |
// | \| | ___ | |__ __| |_| |_ _ _ __ __ _| | | |
// | . ` |/ _ \ | __| / _` | | __| | '_ \ / _` | | | |
// | |\ | (_) | | |___| (_| | | |_| | | | | (_| |_|_|_|
// |_| \_|\___/ |______\__,_|_|\... |
; A047308: Numbers that are congruent to {0, 3, 4, 5, 6} mod 7.
; 0,3,4,5,6,7,10,11,12,13,14,17,18,19,20,21,24,25,26,27,28,31,32,33,34,35,38,39,40,41,42,45,46,47,48,49,52,53,54,55,56,59,60,61,62,63,66,67,68,69,70,73,74,75,76,77
mov $1,$0
add $0,4
div $0,5
mul $0,2
add $0,$1
|
; A077840: Expansion of (1-x)/(1-2*x-3*x^2-3*x^3).
; Submitted by Jamie Morken(s4)
; 1,1,5,16,50,163,524,1687,5435,17503,56372,181558,584741,1883272,6065441,19534921,62915981,202633048,652618802,2101884691,6769524932,21802560343,70219349555,226154954935,728375639564,2345874192598,7555340168693,24333429833872
mov $2,1
... |
; Copyright (c) 2004, 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. The full text of the license may be found at ... |
; A330025: a(n) = (-1)^floor(n/5) * sign(mod(n, 5)).
; 0,1,1,1,1,0,-1,-1,-1,-1,0,1,1,1,1,0,-1,-1,-1,-1,0,1,1,1,1,0,-1,-1,-1,-1,0,1,1,1,1,0,-1,-1,-1,-1,0,1,1,1,1,0,-1,-1,-1,-1,0,1,1,1,1,0,-1,-1,-1,-1,0,1,1,1,1,0,-1,-1,-1,-1,0,1,1,1,1,0,-1
add $0,10
seq $0,163812 ; Expansion of (1 - x^5) * (1 - x^6) / ((1 - x) * (1 - x^... |
.MODEL small
.STACK
.DATA
n1 db 10
n2 db 10h
n3 db 10b
res db 0
.CODE
.STARTUP
mov al, n1
add al, n2
sub al, n3
mov res ,al
.EXIT
END |
; $Id: bs3-cmn-SelProtModeCodeToRealMode.asm 69111 2017-10-17 14:26:02Z vboxsync $
;; @file
; BS3Kit - Bs3SelProtModeCodeToRealMode.
;
;
; Copyright (C) 2007-2017 Oracle Corporation
;
; This file is part of VirtualBox Open Source Edition (OSE), as
; available from http://www.virtualbox.org. This file is free software;... |
; A053143: Smallest square divisible by n.
; 1,4,9,4,25,36,49,16,9,100,121,36,169,196,225,16,289,36,361,100,441,484,529,144,25,676,81,196,841,900,961,64,1089,1156,1225,36,1369,1444,1521,400,1681,1764,1849,484,225,2116,2209,144,49,100,2601,676,2809,324,3025,784,3249,3364,3481,900,3721,3844,441,64,4225,4356,4489,1156,476... |
;
; jdcolss2-64.asm - colorspace conversion (64-bit SSE2)
;
; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
; Copyright 2009 D. R. Commander
;
; Based on
; x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYASAKA Masaru.
; For conditions of distribution and use, see copyright notice i... |
#include "ModuleMSTimer.h"
#include "ModuleUI.h"
#include "SDL.h"
ModuleMSTimer::ModuleMSTimer(){}
ModuleMSTimer::~ModuleMSTimer(){}
bool ModuleMSTimer::Start() {
App->ui->my_log.AddLog("Init Timer\n");
currentTime = 0;
counting = true;
return true;
}
void ModuleMSTimer::Read() {
//In milliseconds
if(counti... |
%include "x86-helpers.asm"
nasm_util_assert_boilerplate
thunk_boilerplate
; branch notes
;
; The BTB seems to have a 32-byte granularity and only the first taken
; branch in a 32-byte region gets a "fast" back-to-back prediction, of
; 1 cycle
; the second branch in a 32-byte region appears to take at least 2 cycles
;... |
#include "Window.h"
#include "Platform/Windows/WinWindow.h"
namespace Tiger {
Scope<Window> Window::createWindow(const char* title, int width, int height)
{
#ifdef TG_PLATFORM_WINDOWS
return MakeScope<WinWindow>(title, width, height);
#endif
TG_ERROR("Tiger only supports Windows");
return nullptr;
}
} |
; A004197: Table of min(x,y), where (x,y) = (0,0),(0,1),(1,0),(0,2),(1,1),(2,0),...
; 0,0,0,0,1,0,0,1,1,0,0,1,2,1,0,0,1,2,2,1,0,0,1,2,3,2,1,0,0,1,2,3,3,2,1,0,0,1,2,3,4,3,2,1,0,0,1,2,3,4,4,3,2,1,0,0,1,2,3,4,5,4,3,2,1,0,0,1,2,3,4,5,5,4,3,2,1,0,0,1,2,3,4,5,6,5,4,3,2,1,0,0,1,2,3,4,5,6,6,5,4,3,2,1,0,0,1,2,3,4,5,6,7,6,5,4,3,... |
; A288835: a(n) = (1/2!)*3^n*(n+3)*(n).
; 6,45,243,1134,4860,19683,76545,288684,1062882,3838185,13640319,47829690,165809592,569173311,1937102445,6543101592,21953827710,73222472421,242912646603,801960412230,2636009007156,8629791392475,28148810469273,91507169819844
mov $2,$0
add $0,4
mov $1,1
add $2,1
mov $3,3
lpb $0,1
... |
#include <QtWidgets>
#include "vdeletenotebookdialog.h"
#include "vconfigmanager.h"
extern VConfigManager *g_config;
VDeleteNotebookDialog::VDeleteNotebookDialog(const QString &p_title,
const VNotebook *p_notebook,
QWidget *p_pa... |
%ifdef CONFIG
{
"Match": "All",
"RegData": {
"RAX": "0x20"
}
}
%endif
mov rax, 32
; patch mov rax,... to nops
mov byte [rel patched_op + 0], 0x90
mov byte [rel patched_op + 1], 0x90
mov byte [rel patched_op + 2], 0x90
mov byte [rel patched_op + 3], 0x90
mov byte [rel patched_op + 4], 0x90
mov byte [rel pat... |
db DEX_ELECTRODE ; pokedex id
db 60 ; base hp
db 50 ; base attack
db 70 ; base defense
db 150 ; base speed
db 80 ; base special
db ELECTRIC ; species type 1
db ELECTRIC ; species type 2
db 58 ; catch rate
db 150 ; base exp yield
INCBIN "pic/ymon/electrode.pic",0,1 ; 55, sprite dimensions
dw ElectrodePicFront
dw Electro... |
// Copyright 2017-2018 Chabloom LC
//
// 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 ... |
; A205136: Ordered differences of distinct pentagonal numbers.
; Submitted by Jon Maiga
; 4,11,7,21,17,10,34,30,23,13,50,46,39,29,16,69,65,58,48,35,19,91,87,80,70,57,41,22,116,112,105,95,82,66,47,25,144,140,133,123,110,94,75,53,28,175,171,164,154,141,125,106,84,59,31,209,205,198,188,175
lpb $0
add $1,1
sub $0,$1
l... |
; *******************************************************************************************
; *******************************************************************************************
;
; Name : inttostr.asm
; Purpose : Convert integer to string.
; Date : 13th August 2019
; Author : Paul Robson (paul@robson... |
; A034326: Hours struck by a clock.
; 1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9
mov $1,$0
mod $1,12
add $1,1
|
; A006368: The "amusical permutation" of the nonnegative numbers: a(2n)=3n, a(4n+1)=3n+1, a(4n-1)=3n-1.
; 0,1,3,2,6,4,9,5,12,7,15,8,18,10,21,11,24,13,27,14,30,16,33,17,36,19,39,20,42,22,45,23,48,25,51,26,54,28,57,29,60,31,63,32,66,34,69,35,72,37,75,38,78,40,81,41,84,43,87,44,90,46,93,47,96,49,99,50,102,52,105,53,108,55... |
; A175887: Numbers that are congruent to {1, 14} mod 15.
; 1,14,16,29,31,44,46,59,61,74,76,89,91,104,106,119,121,134,136,149,151,164,166,179,181,194,196,209,211,224,226,239,241,254,256,269,271,284,286,299,301,314,316,329,331,344,346,359,361,374,376,389,391,404,406,419,421,434,436,449,451,464,466,479,481,494,496,509,511... |
;------------------------------------------------------------------------------
;
; 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... |
#define BOOST_TEST_MODULE Amerios Test Suite
#include <boost/test/unit_test.hpp>
#include <boost/filesystem.hpp>
#include "db.h"
#include "txdb.h"
#include "main.h"
#include "wallet.h"
#include "util.h"
CWallet* pwalletMain;
CClientUIInterface uiInterface;
extern bool fPrintToConsole;
extern void noui_connect();
st... |
; A011853: [ binomial(n,7)/7 ].
; 0,0,0,0,0,0,0,0,1,5,17,47,113,245,490,919,1634,2778,4546,7198,11074,16611,24363,35022,49443,68671,93971,126861,169148,222968,290828,375653,480836,610292,768516,960645
bin $0,7
div $0,7
|
SECTION data_clib
PUBLIC __mc1000_mode
__mc1000_mode: defb 0x00 ; lores mode 0x9e ;hires mode
|
; New gets library function for the monitor: development testbed
; Works together with c/test_programs/gets_test.c and therefore
; starts at 0xE000. Load this program first, before executing gets_test.c
;
; gets_test.c expects the following 4 words as a "magic" at 0xE000:
; 0xFF90, 0x0016, 0x2309, 0x1976
; It further e... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.