text stringlengths 1 1.05M |
|---|
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
}
//--------------------------------------------------------------
void ofApp::update(){
}
//--------------------------------------------------------------
void ofApp::draw(){
ImGui::ShowDemoWindow();
}
//... |
include "../../../src/common/struct.inc"
// should error on nested fields
namespace test {
struct()
namespace nest {
struct() // ERROR
endstruct()
}
endstruct()
}
|
/*
Copyright (c) 2009-2013, 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
*/
#pragma once
#ifndef BLAS_TWOSIDEDTRSM_LVAR3_HPP
#defin... |
; A couple of routines for +3 library
; Routine to call +3DOS Routines. Located in startup
; code to ensure we don't get paged out
; (These routines have to be below 49152)
;
; djm 17/3/2000 (after the manual!)
;
; $Id: dodos.asm,v 1.3 2016-03-07 13:44:48 dom Exp $
SECTION code_driver
PUBLIC dodos
EXTERN... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2011-2018 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... |
#include <bits/stdc++.h>
using namespace std;
typedef long double ld;
typedef long long int ll;
vector<vector<ll>> adjlist;
ll max(ll x, ll y) { return (x > y) ? x : y; }
ll min(ll x, ll y) { return (x > y) ? y : x; }
#define sfor(a, n, i) for (ll i = a; i < n; i++)
#define rfor(n, a, i) for (ll i = n; i >= a; i--)
#d... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 The Kori Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <base58.h>
#include <chain.h>
#include <clientversion.h>
#include <core_io.h>
#i... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "pch.h"
#include "WorkflowBase.h"
#include "ExecutionContext.h"
#include "ManifestComparator.h"
#include <winget/UserSettings.h>
using namespace AppInstaller::CLI;
using namespace AppInstaller::Manifest;
std::ostream& opera... |
; A155167: (L)-sieve transform of A004767 = {3,7,11,15,...,4n-1,...}.
; 1,2,3,5,7,10,14,19,26,35,47,63,85,114,153,205,274,366,489,653,871,1162,1550,2067,2757,3677,4903,6538,8718,11625,15501,20669,27559,36746,48995,65327,87103,116138,154851,206469
add $0,1
mov $1,1
mov $2,$0
lpb $2,1
lpb $0,1
sub $0,1
lpe
add... |
/////////////////////////////////////////////////////////////////////////////
// Name: src/generic/icon.cpp
// Purpose: wxIcon implementation for ports where it's same as wxBitmap
// Author: Julian Smart
// Modified by:
// Created: 17/09/98
// Copyright: (c) Julian Smart
// Licence: wxWindows ... |
; int fputc(int c, FILE *stream)
INCLUDE "config_private.inc"
SECTION code_clib
SECTION code_stdio
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $02
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC fputc
EXTERN asm_fputc
fputc:
pop af
pop ix
pop de
push de
push hl
push af
jp asm... |
;================================================================================
; Item Tables
;--------------------------------------------------------------------------------
org $400000 ; bank #$30 ; PC 0x180000 - 0x180006
HeartPieceIndoorValues:
HeartPiece_Forest_Thieves:
db #$17 ; #$17 = Heart Piece
HeartPiece_L... |
; float tan(float x)
SECTION code_fp_math48
PUBLIC cm48_sdccix_tan
EXTERN cm48_sdccix_tan_fastcall
cm48_sdccix_tan:
pop af
pop hl
pop de
push de
push hl
push af
jp cm48_sdccix_tan_fastcall
|
PrepareOAMData::
; Determine OAM data for currently visible
; sprites and write it to wOAMBuffer.
ld a, [wUpdateSpritesEnabled]
dec a
jr z, .updateEnabled
cp -1
ret nz
ld [wUpdateSpritesEnabled], a
jp HideSprites
.updateEnabled
xor a
ldh [hOAMBufferOffset], a
.spriteLoop
ldh [hSpriteOffset2], a
ld d, HI... |
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007-2010, Image Engine Design Inc. All rights reserved.
//
// Copyright 2010 Dr D Studios Pty Limited (ACN 127 184 954) (Dr. D Studios),
// its affiliates and/or its licensors.
//
// Redistribution and use in source and ... |
#pragma once
namespace lux
{
namespace concepts
{
///Returns at compile-time if T and U types share a bitwise and assignment 't &= t' or 't &= u' operator overloading
template<class T, class U = T> concept has_and_assignment = requires(T t, U u) {t &= u;};
}
}
/** @example concepts/has_and_... |
org 0
JMPADDR start
org 100
semaforo db 0
org 110
sevenseg db 0
org 120
asciidisp1 db 0
asciidisp2 db 0
org 130
keyb db 0
org 10
start:
LOADIM R5,#0A8
STORE semaforo,R5
LOADIM R5,#0FF
STORE semaforo,R5
LOADIM R5,#0F2
STORE sevenseg,R5
LOADIM R5,#0B7
STORE sevenseg,R5
LOAD R5... |
; A011656: A binary m-sequence: expansion of reciprocal of x^3 + x^2 + 1 (mod 2), shifted by 2 initial 0's.
; 0,0,1,0,1,1,1,0,0,1,0,1,1,1,0,0,1,0,1,1,1,0,0,1,0,1,1,1,0,0,1,0,1,1,1,0,0,1,0,1,1,1,0,0,1,0,1,1,1,0,0,1,0,1,1,1,0,0,1,0,1,1,1,0,0,1,0,1,1,1,0,0,1,0,1,1,1,0,0,1,0,1,1,1,0,0,1,0,1,1,1,0,0,1,0,1,1,1,0,0,1,0,1,1,1
... |
; ---------------------------------------------------------------------------
; Sprite mappings - doors (SBZ)
; ---------------------------------------------------------------------------
Map_ADoor_internal:
dc.w @closed-Map_ADoor_internal
dc.w @01-Map_ADoor_internal
dc.w @02-Map_ADoor_internal
dc.w @03-Map_ADo... |
SECTION code_fp_math48
PUBLIC asm_fma
EXTERN am48_fma
defc asm_fma = am48_fma
|
; Ejercicio 12 del TP 12.
; Incrementea el contenido de la posicion 1900h
; hasta que se active el flag de carry
aseg
org 1850h
start:
ld A, (1900h)
sigue: inc A
jp NC,sigue
rst 38h
end start
|
class Coms() {
const byte cmd_clear_address = 30;
const byte cmd_read_sensor = 31;
const byte flag_unknown_address =250;
const byte flag_unknown_position = 251;
Coms::Coms(byte floors, byte sdaPin, byte sclPin) {
byte noOfFloors = floors;
byte addressCounter = noOfFloors + 8;
pinMode(sdaPin, ... |
frame 1, 08
frame 2, 08
frame 3, 08
frame 4, 08
frame 0, 05
frame 1, 05
frame 2, 05
frame 3, 05
frame 4, 05
endanim
|
;This is a cleanroom recreation of Agner Fog's ReadTSC function. See http://agner.org for futher information!
;Copyright (c) 2008 Uli Koehler
;Compatible with nasm: http://nasm.sourceforge.net
section .txt
global _ReadTSC
_ReadTSC:
rdtsc ;Read timestep counter
ret
|
BattleCore:
; These are move effects (second value from the Moves table in bank $E).
ResidualEffects1:
; most non-side effects
db CONVERSION_EFFECT
db HAZE_EFFECT
db SWITCH_AND_TELEPORT_EFFECT
db MIST_EFFECT
db FOCUS_ENERGY_EFFECT
db CONFUSION_EFFECT
db HEAL_EFFECT
db TRANSFORM_EFFECT
db LIGHT_SCREEN_EFFECT
... |
; A262490: The index of the first of two consecutive positive triangular numbers (A000217) the sum of which is equal to the sum of four consecutive positive triangular numbers.
; Submitted by Jamie Morken(s1)
; 9,57,337,1969,11481,66921,390049,2273377,13250217,77227929,450117361,2623476241,15290740089,89120964297,51943... |
/*=========================================================================
*
* 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... |
PRESERVE8
THUMB
AREA |.text|,CODE,READONLY
EXPORT __main
__main
MOVS R0,#5
MOVS R1,#5
MOVS R2,#2
MUL R1,R1,R0
MUL R1,R2,R1
ADDS R1,R1,R0
ADDS R1,R1,#3
stop B stop
END
|
; A099545: Odd part of n, modulo 4.
; 1,1,3,1,1,3,3,1,1,1,3,3,1,3,3,1,1,1,3,1,1,3,3,3,1,1,3,3,1,3,3,1,1,1,3,1,1,3,3,1,1,1,3,3,1,3,3,3,1,1,3,1,1,3,3,3,1,1,3,3,1,3,3,1,1,1,3,1,1,3,3,1,1,1,3,3,1,3,3,1,1,1,3,1,1,3,3,3,1,1,3,3,1,3,3,3,1,1,3,1,1,3,3,1,1,1,3,3,1,3,3,3,1,1,3,1,1,3,3,3,1,1,3,3,1,3,3,1,1,1,3,1,1,3,3,1,1,1,3,3,1,... |
; A092292: a(n) = 3*n + A053838(n).
; Submitted by Jon Maiga
; 0,4,8,10,14,15,20,21,25,28,32,33,38,39,43,45,49,53,56,57,61,63,67,71,73,77,78,82,86,87,92,93,97,99,103,107,110,111,115,117,121,125,127,131,132,135,139,143,145,149,150
mul $0,2
mov $2,$0
lpb $2,2
add $2,$0
mod $3,3
add $3,$2
div $2,3
lpe
mov $0,$3
|
; A146084: Expansion of 1/(1-x(1-12x)).
; 1,1,-11,-23,109,385,-923,-5543,5533,72049,5653,-858935,-926771,9380449,20501701,-92063687,-338084099,766680145,4823689333,-4376472407,-62260744403,-9743075519,737385857317,854302763545,-7994327524259,-18245960686799,77685969604309,296637497845897,-635594137405811,-4195244111556... |
#include "FordFulkerson.h"
FordFulkerson::FordFulkerson(const Graph& graph):G(graph){
//solve();
}
FordFulkerson::~FordFulkerson(){}
// No funciona :'(
bool FordFulkerson::findPath(int src, std::vector<int>& parent, std::vector<bool>& visited){
if (src == G.getSink())
{
return true;
}
else
... |
; definition for serial protocol and piccodes.ini
.equ FamilyAVR=0x31 ; AVR Family
.equ IdTypeAVR=0x16 ; must exists in "piccodes.ini"
; don't modify - bwait and bwait2 instructions are hard-wired for
; these constants... (1/BAUD)*XTAL
.equ XTAL = 8000000
;XXX:.equ XTAL = 1000000
.equ BAUD = ... |
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/core/css/css_property_value_set.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/rendere... |
; A181718: a(n) = (1/9)*(10^(2*n) + 10^n - 2).
; 0,12,1122,111222,11112222,1111122222,111111222222,11111112222222,1111111122222222,111111111222222222,11111111112222222222,1111111111122222222222,111111111111222222222222,11111111111112222222222222,1111111111111122222222222222,111111111111111222222222222222,11111111111111... |
#include <bits/stdc++.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
long long int n;
cin >> n;
int a[n];
int b[100] = {0};
for (int i = 0; i < n; i++)
{
cin >> a[i];
b[a[i]]++;
}
for (int i = 1; i <= 99;... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r15
push %r8
push %rbp
push %rbx
push %rdi
lea addresses_WC_ht+0x1a947, %r12
xor $3545, %rdi
mov $0x6162636465666768, %rbx
movq %rbx, %xmm2
and $0xffffffffffffffc0, %r12
vmovaps %ymm2, (%r12)
nop
nop
nop
nop
and %r15, %r15
lea addresses_WC_ht+0x107d... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r15
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x1e3a8, %rsi
lea addresses_WT_ht+0x1c128, %rdi
nop
nop
and %r15, %r15
mov $22, %rcx
rep movsb
nop
nop
nop
sub $22644, %r15
lea addresses_normal_ht+0x131ac, %r13
sub $52572, %r... |
; A107283: E.g.f. exp(x)*(x^2+x+2)/(1-x).
; 2,5,16,59,254,1297,7820,54791,438394,3945629,39456392,434020435,5208245366,67707189929,947900659204,14218509888287,227496158212850,3867434689618741,69613824413137664,1322662663849615979,26453253276992319982,555518318816838720065,12221403013970451841916,28109226932132039236459... |
###############################################################################
# Copyright 2018 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... |
; A084266: Binomial transform of A084265.
; 1,3,11,34,96,256,656,1632,3968,9472,22272,51712,118784,270336,610304,1368064,3047424,6750208,14876672,32636928,71303168,155189248,336592896,727711744,1568669696,3372220416,7230980096,15468593152,33017561088,70330089472,149518548992,317290708992,672162381824,1421634174976,3002... |
; A155853: Numbers n such that 13*n + 3 is a prime.
; Submitted by Christian Krause
; 0,2,8,16,20,28,32,40,46,50,58,62,68,76,82,98,100,106,110,112,116,128,130,140,146,152,160,166,170,172,188,190,196,208,218,232,250,256,266,272,278,280,296,298,302,308,316,326,338,340,358,368,370,380,382,386,392,406,410,418,442,446,448,4... |
;******************************************************************************
;* FD_TOI_T2.ASM - THUMB-2 STATE - *
;* *
;* Copyright (c) 1996 Texas Instruments Incorporated *
... |
/**
* Copyright (C) 2014 MongoDB Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be usef... |
; A011919: a(n) = floor(n*(n-1)*(n-2)*(n-3)/9).
; 0,0,0,0,2,13,40,93,186,336,560,880,1320,1906,2669,3640,4853,6346,8160,10336,12920,15960,19506,23613,28336,33733,39866,46800,54600,63336,73080,83906,95893,109120,123669,139626,157080,176120,196840,219336,243706,270053,298480
bin $0,4
mul $0,8
div $0,3
|
10 ORG 100H
20 JP MAIN
30GPF EQU 0BFD0H
40MAIN: LD HL,L0
50 LD B,144
60 LD DE,0
70 CALL GPF
80 LD HL,L1
90 LD B,144
100 LD DE,0100H
110 CALL GPF
120 LD HL,L2
130 LD B,144
140 LD DE,0200H
150 CALL GPF
160 LD HL,L3
170 LD B,144
180 LD DE,0300H
190 CALL GPF
200 LD HL,L4
210 LD B,144
220 LD DE,0400H
230 CALL GPF
240 LD HL,... |
.section "Open Resource Routine" free
;===========================================================
; Opens a stream for reading
; hl : Resource number
; de : Resource table base address (must be on bank 0)
; b : Slot number
; Return:
; hl : Resource pointer
; bc : Resource size
;=======================================... |
; A132710: Infinitesimal generator for a diagonally-shifted Lah matrix, unsigned A105278, related to n! Laguerre(n,-x,1).
; 0,2,0,0,6,0,0,0,12,0,0,0,0,20,0,0,0,0,0,30,0,0,0,0,0,0,42,0,0,0,0,0,0,0,56,0,0,0,0,0,0,0,0,72,0,0,0,0,0,0,0,0,0,90,0,0,0,0,0,0,0,0,0,0,110,0,0,0,0,0,0,0,0,0,0,0,132,0
mov $6,2
mov $7,$0
lpb $6,1
... |
%define BE(a) ( ((((a)>>24)&0xFF) << 0) + ((((a)>>16)&0xFF) << 8) + ((((a)>>8)&0xFF) << 16) + ((((a)>>0)&0xFF) << 24) )
ftyp_start:
dd BE(ftyp_end - ftyp_start)
db "ftyp"
db "isom"
dd BE(0x00)
db "mif1", "miaf"
ftyp_end:
meta_start:
dd BE(meta_end - meta_start)
db "meta"
dd BE(0)
hdlr_start:
dd BE(hdlr_end - hdlr... |
// Copyright 2020 The Chromium OS 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 <algorithm>
#include <iostream>
#include <optional>
#include <string>
#include <utility>
#include <vector>
#include <base/callback.h>
#includ... |
;*
;* Copyright (c) 2004-2012, Dennis Kuschel.
;* 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 copyright
;* notice... |
/**
* --------------------------------------------------------------------------------------------------------------------
* <copyright company="Aspose" file="ApiClient.cpp">
* Copyright (c) 2020 Aspose.HTML for Cloud
* </copyright>
* <summary>
* Permission is hereby granted, free of charge, to any person obtaining a... |
/****************************************************************************
* audio_recognizer/worker_preprocess/userproc/src/rcfilter.cpp
*
* Copyright 2018 Sony Semiconductor Solutions Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided t... |
; 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 main
EXTRN __imp___acrt_iob_func:PROC
EXTRN __imp___stdio_common_vfprintf:PROC
EXTRN gets:... |
; Pacman-x86: a Pacman implementation in pure x86 assembly.
; @file The game's entry point file.
; @author Rodrigo Siqueira <rodriados@gmail.com>
; @copyright 2021-present Rodrigo Siqueira
bits 64
%include "debug.inc"
%include "color.inc"
%include "opengl.inc"
%include "window.inc"
extern canvas.RenderCallback
extern... |
INCL "../inc/1802.inc"
INCL "../inc/i2c_io.inc"
ORG $4000
;------------------------------------------------------------------------
;This library contains routines to implement the i2c protocol using two
;bits of a parallel port. The two bits should be connected to open-
;c... |
; WAP to show the working of SHORT JMP.
; PAGE 194 example 6.1
; NEAR JMP - pg 195 example 6.2 |
; A021574: Decimal expansion of 1/570.
; 0,0,1,7,5,4,3,8,5,9,6,4,9,1,2,2,8,0,7,0,1,7,5,4,3,8,5,9,6,4,9,1,2,2,8,0,7,0,1,7,5,4,3,8,5,9,6,4,9,1,2,2,8,0,7,0,1,7,5,4,3,8,5,9,6,4,9,1,2,2,8,0,7,0,1,7,5,4,3,8,5,9,6,4,9,1,2,2,8,0,7,0,1,7,5,4,3,8,5
add $0,1
mov $1,10
pow $1,$0
mul $1,7
div $1,3990
mod $1,10
mov $0,$1
|
bits 64
%%CEXTERNS%%
%%MACROTEXT%%
section .data align=8
%%CONSTANTS%%
section .bss align=8
%%HEAP%%
section .init align=%%ALIGN%%
__cbbuiltin_initheader:
%%INIT%%
section .fini align=%%ALIGN%%
__cbbuiltin_finifooter:
%%FINI%%
section .text align=%%ALIGN%%
global main
%%TEXT%%
|
SECTION code_l_sccz80
PUBLIC l_i64_u64_toi32
PUBLIC l_i64_s64_toi32
EXTERN __i64_acc
; Entry: acc = value
; Exit: dehl = long truncated value
;
l_i64_u64_toi32:
l_i64_s64_toi32:
ld hl,__i64_acc
ld e,(hl)
inc hl
ld d,(hl)
inc hl
ld a,(hl)
inc hl
ld h,(hl)
ld l,a
ex de,hl
ret
|
; A103872: a(n) = 3*trinomial(n+1,0) - trinomial(n+2,0).
; Submitted by Christian Krause
; 0,2,2,6,12,30,72,182,464,1206,3170,8426,22596,61074,166194,454950,1251984,3461574,9611190,26787378,74916660,210178458,591347988,1668172842,4717282752,13369522250,37970114702,108045430902
add $0,2
mov $1,1
mov $3,$0
mov $4,1
lpb ... |
// 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 "../precomp.hpp"
#include "detail/tracker_mil_model.hpp"
#include "detail/tracker_feature_haar.impl.hpp"
namespace... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: uiFormatControl.asm
AUTHOR: Jon Witort
REVISION HISTORY:
Name Date Description
---- ---- -----------
jon 24 feb 1992 Initial ver... |
#include "odkfw_plugin_base.h"
#include "odkapi_utils.h"
#include "odkbase_basic_values.h"
#include "odkbase_if_host.h"
#include "odkbase_message_return_value_holder.h"
std::uint64_t PLUGIN_API odk::framework::PluginBase::pluginMessage(odk::PluginMessageId id, std::uint64_t key, const odk::IfValue* param, const odk::... |
<%
from pwnlib.shellcraft.arm.linux import syscall
%>
<%page args=""/>
<%docstring>
Invokes the syscall getpid. See 'man 2 getpid' for more information.
Arguments:
</%docstring>
${syscall('SYS_getpid')}
|
// Copyright 2016 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 "ui/events/blink/web_input_event_builders_win.h"
#include <windowsx.h>
#include "ui/display/win/screen_win.h"
#include "ui/events/blink/blink_e... |
; process
; int bind(int sockfd, const struct sockaddr *my_addr, socklen_t addrlen);
; Bind a name to a local address
; This is simplified compared to the full BSD implementation; the Spectranet
; only uses the port address (and sockaddr_in is the only type of struct
; sockaddr that's actually defined).
PUBLIC bind_ca... |
;*
;* CW : Character Windows Drivers
;*
;* fx_data.asm : Fixed driver data (linked in)
;*****************************************************************************
sBegin DATA
assumes DS,DGROUP
assumes CS,DGROUP
IFDEF DUALOS2
;* * default characters (tracks INCH strucure)
;* * NOT NEEDED FOR DUALOS2 - SUP... |
/******************************************************************************
*
* Project: OGR/DODS Interface
* Purpose: Implements OGRDODSFieldDefn class. This is a small class used
* to encapsulate information about a referenced field.
* Author: Frank Warmerdam, warmerdam@pobox.com
*
*********... |
#include<iostream>
int search(int n){
int lower=0;
int upper=n;
int mid;
while(mid<=upper){
mid=(lower+upper)/2;
if(mid>=lower)
upper=mid;
if(mid< )
}
}
|
_echo: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
int
main(int argc, char *argv[])
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 57 push %edi
4: 56 push %es... |
; A099976: Bisection of A000984.
; 2,20,252,3432,48620,705432,10400600,155117520,2333606220,35345263800,538257874440,8233430727600,126410606437752,1946939425648112,30067266499541040,465428353255261088,7219428434016265740,112186277816662845432,1746130564335626209832,27217014869199032015600,424784580848791721628840,66375... |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsXBLSerialize.h"
#inclu... |
;[]-----------------------------------------------------------------[]
;| QSTRCHR.ASM -- scans a string for a character (quick version) |
;[]-----------------------------------------------------------------[]
DWALIGN equ 1 ; set to 1 to enable dword-aligning of string
;
; C/C++ Run Time Li... |
srl $0,$3,4
nor $1,$4,$3
srl $4,$4,7
xor $6,$6,$3
lw $5,12($0)
addu $3,$5,$3
lb $3,11($0)
xori $1,$5,46242
srlv $4,$3,$3
addiu $1,$6,-28248
sra $3,$3,9
sw $4,8($0)
lh $3,4($0)
sll $3,$4,25
addiu $5,$5,4415
subu $0,$5,$3
lh $5,12($0)
srav $5,$1,$3
addu $4,$3,$3
addu $3,$4,$3
lhu $3,6($0)
sltiu $4,$5,-17349
sra $0,$5,4
o... |
LIST P = 16F84A
#include "p16f84A.inc"
__CONFIG _FOSC_XT & _WDTE_OFF & _PWRTE_ON & _CP_OFF
;*******************************************************************************
; INICIO DEL PROGRAMA
;*******************************************************************************
ORG 0X00
GOTO START
;****************... |
; A267808: a(0) = a(1) = 1; for n>1, a(n) = (a(n-1) mod 4) + a(n-2).
; 1,1,2,3,5,4,5,5,6,7,9,8,9,9,10,11,13,12,13,13,14,15,17,16,17,17,18,19,21,20,21,21,22,23,25,24,25,25,26,27,29,28,29,29,30,31,33,32,33,33,34,35,37,36,37,37,38,39,41,40,41,41,42,43,45,44,45,45,46,47,49
mov $3,2
mov $5,$0
lpb $3,1
mov $0,$5
sub $3,... |
; test for the new DIV assembly instruction
start:
LODD div1:
PUSH
LODD dnd1:
PUSH ; dnd1 / div1
DIV ; AC has status, quotient and remainder on stack
HALT
INSP 2
LODD div2:
PUSH
LODD dnd2:
PUSH ; dnd2 / div2
DIV ; AC has status, quotient and remainder on st... |
/* /////////////////////////////////////////////////////////////////////////////
* File: Delayed_delete_allocator_adaptor_test.cpp
*
* Purpose: Implementation file for the delayed_delete_allocator_adaptor_test project.
*
* Created: 2nd May 2003
* Updated: 30th May 2004
*
* Status: ... |
#include "SeatSelectionForm.h"
#include "Tickets.h"
using namespace DataManager;
using namespace UserInterface;
SeatSelectionForm::SeatSelectionForm()
{
InitializeComponent();
}
SeatSelectionForm::~SeatSelectionForm()
{
if (components)
delete components;
}
static std::vector<int> seatNumbers;
void SeatSelectio... |
#include <algorithm>
#include <cassert>
#include <iostream>
#include <regex>
#include <set>
#include <string>
enum class Action { TurnOn, Toggle, TurnOff };
using Point = std::pair<unsigned, unsigned>;
struct Command {
Command(std::string const &s) {
const char *re =
"(turn on|toggle|turn off)\\s(\\d+),(... |
dnl AMD K6-2 mpn_and_n, mpn_andn_n, mpn_nand_n, mpn_ior_n, mpn_iorn_n,
dnl mpn_nior_n, mpn_xor_n, mpn_xnor_n -- mpn bitwise logical operations.
dnl Copyright 1999, 2000, 2001, 2002 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 ... |
_grep: file format elf32-i386
Disassembly of section .text:
00001000 <grep>:
char buf[1024];
int match(char*, char*);
void
grep(char *pattern, int fd)
{
1000: 55 push %ebp
1001: 89 e5 mov %esp,%ebp
1003: 83 ec 28 sub $0x28,%esp
int n, m;
c... |
; A046175: Indices of triangular numbers which are also pentagonal.
; Submitted by Jamie Morken(w2)
; 0,1,20,285,3976,55385,771420,10744501,149651600,2084377905,29031639076,404358569165,5631988329240,78443478040201,1092576704233580,15217630381229925,211954248632985376,2952141850480565345,41118031658094929460,5727003013... |
INTERRUPTS SEGMENT AT 0H ;This is where the keyboard interrupt
ORG 9H*4 ;holds the address of its service routine
KEYBOARD_INT LABEL DWORD
INTERRUPTS ENDS
SCREEN SEGMENT AT 0B000H ;A dummy segment to use as the
SCREEN ENDS ;Extra Segment
ROM_BIOS_D... |
;
; Copyright (c) 2010 The WebM 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 in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing proje... |
.MACRO LKS_DMA_PORTX
lda #1
sta LKS_DMA.Enable,x
lda \1
sta LKS_DMA.Bank,x
rep #$20
lda #\2
sta LKS_DMA.SrcR,x
lda \3
sta LKS_DMA.Src1,x
lda #\4
sta LKS_DMA.Dst1,x
sep #$20
lda #\5
sta LKS_DMA.Type1,x
.ENDM
.MACRO LKS_DMA_VRAM2
lda LKS_DMA_SEND.Enable+\1
cmp #0
beq +
rep ... |
; A111282: Number of permutations avoiding the patterns {1432,2431,3412,3421,4132,4231,4312,4321}; number of strong sorting class based on 1432.
; 1,2,6,16,42,110,288,754,1974,5168,13530,35422,92736,242786,635622,1664080,4356618,11405774,29860704,78176338,204668310,535828592,1402817466,3672623806,9615053952,25172538050... |
/*
* ----------------- BEGIN LICENSE BLOCK ---------------------------------
*
* Copyright (C) 2018-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
* ----------------- END LICENSE BLOCK -----------------------------------
*/
/**
* Generated file
* @file
*
* Generator Version : 11.0.0-1988
*/
#p... |
;================================================================================
;
; "Sixty/5o2"
; _________
;
; v1.0
;
; Sixty/5o2 - minimal bootloader and monitor (r/o) w/ serial connection support
;
; Writt... |
; PEPE gerado por 'lcc' (IST: prs 2005)
; 'rl' serve como frame-pointer e 'r0' como acumulador
; os registos 'r1' a 'r10' sao preservados nas chamadas
PLACE 0
CALL main
SWE 240 ; exit(code in r0)
; global printf
; TEXT
printf: ; ncalls=5
PUSH r9
PUSH r10
PUSH rl
MOV rl, sp
; P_fmt EQU 8
SUB sp, 2
MOV r10, -2
ADD r10, r... |
; malicious.asm
.386
.model flat, stdcall
assume fs:nothing
option casemap:none
include \masm32\include\windows.inc
include \masm32\include\user32.inc
include \masm32\include\kernel32.inc
include \masm32\include\msvcrt.inc
include macro.asm
.code
toInject:
include padding_patch.asm
include private_data.asm... |
; Substitute for z80 rrd instruction
; aralbrec 06.2007
SECTION code_crt0_sccz80
PUBLIC __z80asm__rrd
.__z80asm__rrd
jr nc, dorrd
call dorrd
scf
ret
.dorrd
srl a
rr (hl)
rra
rr (hl)
rra
rr (hl)
rra
rr (hl) ; a = [bits(HL):210, 0, bits(A):7654]... |
BITS 64
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
;TEST_BEGIN_RECORDING
FLDL2E
;TEST_END_RECORDING
|
// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (C) 1992-1997 Microsoft Corporation
// All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and related
// electronic documentation provided with the library.
// See t... |
/***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2018, Alliance for Sustainable Energy, LLC. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitt... |
SECTION code_driver
PUBLIC lcd_putchar
PUBLIC _lcd_putchar
PUBLIC asm_lcd_putchar
EXTERN __console_x
EXTERN asm_lcd_get_ddram_addr
EXTERN asm_lcd_get_vram_addr
EXTERN asm_lcd_write_control
EXTERN asm_lcd_write_data
INCLUDE "hd44780.def"
lcd_putchar:
_lcd_putchar:
pop bc
pop hl
push hl
push bc
ld bc,(__conso... |
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SampleCode.h"
#include "SkView.h"
#include "SkCanvas.h"
#include "SkData.h"
#include "SkDecodingImageGenerator.h"
#include "SkGradientShader.h"
#include "SkGraphics.... |
; ZX Spectrum emulator
; Psion screen drawing
; (c) Freeman, August 2000, Prague
; -----------------------------------------------------------------------------
DrawInkBytes MACRO
lodsw
xlat cs:BitSwapTable
xchg al, ah
xlat cs:BitSwapTable
xchg al, ah
stosw
ENDM
; --------------------------... |
; A017365: a(n) = 10n + 8.
; 8,18,28,38,48,58,68,78,88,98,108,118,128,138,148,158,168,178,188,198,208,218,228,238,248,258,268,278,288,298,308,318,328,338,348,358,368,378,388,398,408,418,428,438,448,458,468,478,488,498,508,518,528,538,548,558,568,578,588,598,608,618,628,638,648,658,668,678,688,698,708,718,728,738,748,75... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.