text stringlengths 1 1.05M |
|---|
; uchar *zx_cyx2aaddr(uchar row, uchar col)
; CALLER linkage for function pointers
SECTION code_clib
PUBLIC zx_cyx2aaddr
PUBLIC _zx_cyx2aaddr
EXTERN zx_cyx2aaddr_callee
EXTERN ASMDISP_ZX_CYX2AADDR_CALLEE
.zx_cyx2aaddr
._zx_cyx2aaddr
pop af
pop hl
pop de
push de
push hl
push af
ld h,e
jp ... |
; A001534: (9n+1)(9n+8).
; 8,170,494,980,1628,2438,3410,4544,5840,7298,8918,10700,12644,14750,17018,19448,22040,24794,27710,30788,34028,37430,40994,44720,48608,52658,56870,61244,65780,70478,75338,80360,85544,90890,96398,102068,107900,113894,120050,126368,132848,139490,146294,153260,160388,167678,175130,182744,190520,19... |
dnl IA-64 mpn_popcount -- mpn population count.
dnl Contributed to the GNU project by Torbjorn Granlund.
dnl Copyright 2000-2005 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 ... |
;; Licensed to the .NET Foundation under one or more agreements.
;; The .NET Foundation licenses this file to you under the MIT license.
;; See the LICENSE file in the project root for more information.
include asmmacros.inc
extern RhpReversePInvokeBadTransition : proc
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;... |
; int sprintf(char *s, const char *format, ...)
SECTION code_stdio
PUBLIC _sprintf
EXTERN asm_sprintf
_sprintf:
push ix
call asm_sprintf
pop ix
ret
|
.byte $01 ; Unknown purpose
.byte OBJ_CHEEPCHEEPPOOL2POOL2, $10, $18
.byte OBJ_CHEEPCHEEPPOOL2POOL2, $17, $18
.byte OBJ_REDPIRANHA_FLIPPED, $18, $14
.byte OBJ_SPIKE, $18, $0E
.byte OBJ_CHEEPCHEEPPOOL2POOL, $22, $0B
.byte OBJ_SPIKE, $23, $17
.byte OBJ_GREENPIRANHA_FIRE, $2C, $18
.byte OBJ_SPIKE, $2F, $09
.byt... |
; A138782: a(n) = n*(3*n-1)*n!/2.
; Submitted by Jamie Morken(s2)
; 1,10,72,528,4200,36720,352800,3709440,42456960,526176000,7025356800,100590336000,1538074137600,25020169574400,431532541440000,7866968997888000,151167156940800000,3053932257632256000
mov $1,$0
add $0,1
mul $0,3
bin $0,2
add $1,1
lpb $1
mul $0,$1
su... |
#include <iostream>
#include <vector>
int main() {
//INitializing vector
std::vector< std::vector<int> > board;
board = {{0, 1, 0, 0, 0, 0},
{0, 1, 0, 0, 0, 0},
{0, 1, 0, 0, 0, 0},
{0, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 0}};
// Printing the size of the 2Dvector
std::cout << board.size() ... |
/* Copyright (C) 2018-2019 Thomas Jespersen, TKJ Electronics. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the MIT License
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the impli... |
#include <engine/e_client_interface.h>
#include <base/math.hpp>
#include <game/collision.hpp>
#include <game/client/gameclient.hpp>
#include <game/client/component.hpp>
#include <game/client/components/chat.hpp>
#include <game/client/components/menus.hpp>
#include "controls.hpp"
CONTROLS::CONTROLS()
{
}
static void ... |
; A307872: Sum of the smallest parts in the partitions of n into 3 parts.
; 0,0,1,1,2,4,5,7,11,13,17,23,27,33,42,48,57,69,78,90,106,118,134,154,170,190,215,235,260,290,315,345,381,411,447,489,525,567,616,658,707,763,812,868,932,988,1052,1124,1188,1260,1341,1413,1494,1584,1665
mov $3,$0
mov $4,$0
lpb $4
mov $0,$3
s... |
; A086603: a(n) = n^3*3^(n-1).
; 0,1,24,243,1728,10125,52488,250047,1119744,4782969,19683000,78594219,306110016,1167575877,4374822312,16142520375,58773123072,211488540273,753145430616,2657317134051,9298091736000,32291110337661,111381840905544,381813352262703,1301435304104448,4412961507515625,14891944599570168,500315450... |
// OOP244 Workshop 5: Classes with resources
// File: w5_in_lab.cpp
// Version: 1.0
// Date: 2016/02/15
// Author: Fardad Soleimanloo
// Description:
// This file tests in-lab section of your workshp
/////////////////////////////////////////////
#include <iostream>
using namespace std;
#include "Contact.h"
using name... |
; A028841: Iterated sum of digits of n is a Fibonacci number.
; 1,2,3,5,8,10,11,12,14,17,19,20,21,23,26,28,29,30,32,35,37,38,39,41,44,46,47,48,50,53,55,56,57,59,62,64,65,66,68,71,73,74,75,77,80,82,83,84,86,89,91,92,93,95,98,100,101,102,104,107,109,110,111,113,116,118,119,120,122,125,127,128,129,131,134,136,137,138,140,... |
RocketHideoutB3F_Script:
call EnableAutoTextBoxDrawing
ld hl, RocketHideout3TrainerHeader0
ld de, RocketHideoutB3F_ScriptPointers
ld a, [wRocketHideoutB3FCurScript]
call ExecuteCurMapScriptInTable
ld [wRocketHideoutB3FCurScript], a
ret
RocketHideoutB3F_ScriptPointers:
dw RocketHideout3Script0
dw DisplayEnemyT... |
class Solution {
public:
int maxProfit(vector<int> &v) {
int len = v.size();
int dp = 0;
int ans = 0;
for(int i=1;i<len;i++) {
if(dp<0)
dp = v[i] - v[i-1];
else
dp = dp + v[i] - v[i-1];
if(dp > ans)
a... |
/*
* Copyright 2011 Leiden University. 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, this li... |
#include <Neon.h>
using namespace Neon;
using namespace Neon::World;
using namespace Neon::Component;
/* The game class. This is the place where the game code must be written */
class MyApp : public Neon::Application::Application
{
public:
MyApp() : camera(glm::vec3(0.0f, 0.0f, -6.0f)), orthoCamera(-1.6f, 1.6f, -1.2... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>fcntl(fd, cmd, vararg_0, vararg_1, vararg_2, vararg_3, vararg_4) -> str
Invokes the syscall fcntl.
See 'man 2 fcntl' for more information.
Arguments:
fd(int): fd
cmd(int): cmd
vararg(int): v... |
// Nova project - Gwennaël Arbona
#include "NovaGameTypes.h"
#include "Nova/Actor/NovaCaptureActor.h"
#include "Nova/System/NovaAssetManager.h"
#include "Nova/Nova.h"
#include "Engine/Engine.h"
#include "Engine/StaticMeshActor.h"
#include "Dom/JsonObject.h"
/*----------------------------------------------------
... |
; A033762: Product t2(q^d); d | 3, where t2 = theta2(q) / (2 * q^(1/4)).
; 1,1,0,2,1,0,2,0,0,2,2,0,1,1,0,2,0,0,2,2,0,2,0,0,3,0,0,0,2,0,2,2,0,2,0,0,2,1,0,2,1,0,0,0,0,4,2,0,2,0,0,2,0,0,2,2,0,0,2,0,1,0,0,2,2,0,4,0,0,2,0,0,0,3,0,2,0,0,2,0,0,2,0,0,3,2,0,2,0,0,2,2,0,0,2,0,2,0,0,2
mul $0,2
seq $0,1158 ; sigma_3(n): sum of cu... |
/*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... |
; A047319: Numbers that are congruent to {5, 6} mod 7.
; 5,6,12,13,19,20,26,27,33,34,40,41,47,48,54,55,61,62,68,69,75,76,82,83,89,90,96,97,103,104,110,111,117,118,124,125,131,132,138,139,145,146,152,153,159,160,166,167,173
mov $1,$0
div $0,2
mul $0,5
add $1,$0
add $1,5
|
#include "common/config/grpc_mux_impl.h"
#include "envoy/service/discovery/v3/discovery.pb.h"
#include "common/config/decoded_resource_impl.h"
#include "common/config/utility.h"
#include "common/config/version_converter.h"
#include "common/memory/utils.h"
#include "common/protobuf/protobuf.h"
#include "absl/containe... |
/* Copyright 2019 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... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2018 The PIVX developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-licens... |
; void *tshc_aaddrpleft(void *aaddr, uchar bitmask)
SECTION code_clib
SECTION code_arch
PUBLIC tshc_aaddrpleft_callee
EXTERN zx_saddrpleft_callee
defc tshc_aaddrpleft_callee = zx_saddrpleft_callee
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _tshc_aaddrpleft_callee
defc _tshc_aaddrpleft_callee = tshc_aaddrpleft_c... |
; A192831: Molecular topological indices of the hypercube graphs.
; 4,48,360,2304,13600,76032,407680,2113536,10658304,52531200,254003200,1208549376,5672083456,26309885952,120803328000,549772591104,2482528976896,11132640165888,49615651471360,219902744985600,969770180542464,4257311052791808
mov $2,$0
add $0,1
mov $3,$0
... |
; ---------------------------------------------------------------------------
; Sprite mappings - SLZ swinging platforms
; ---------------------------------------------------------------------------
dc.w byte_7C6C-Map_obj15a
dc.w byte_7C95-Map_obj15a
dc.w byte_7C9B-Map_obj15a
byte_7C6C: dc.b 8
dc.b $F0, ... |
; A284237: Decimal representation of the x-axis, from the left edge to the origin, of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 833", based on the 5-celled von Neumann neighborhood.
; 1,0,3,5,10,21,42,85,170,341,682,1365,2730,5461,10922,21845,43690,87381,174762,349525,699050,13... |
; A165518: Perfect squares (A000290) that can be expressed as the sum of four consecutive triangular numbers (A000217).
; 4,100,3364,114244,3880900,131836324,4478554084,152139002500,5168247530884,175568277047524,5964153172084900,202605639573839044,6882627592338442564,233806732499933208100,7942546277405390632804,2698127... |
#tests leh by forcing an exception and jumpin
#tests leh
#first, we have to generate an exception
#and then make the program try to junp to an
#illegal instruction
leh 0
cle
lcl r3, 54
div r0, r3, r0 #oops!
stop
|
section .multiboot_header
header_start:
; magic number
dd 0xe85250d6 ; multiboot2
; architecture
dd 0 ; protected mode i386
; header length
dd header_end - header_start
; checksum
dd 0x100000000 - (0xe85250d6 + 0 + header_end - header_start)
; end tag
dw 0
dw 0
dd 8
header_end: |
.686p ;enable instructions
.xmm ;enable instructions
.model flat, stdcall ;use C naming convention (stdcall is default)
.data ;initialized data
.data?
.stack 4096 ;stack (optional, linker will... |
; A040755: Continued fraction for sqrt(783).
; 27,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54
mov $1,$0
cmp $0,0
sub $1,$0
gcd $1,2
add $1,25
add $0,$1
mul $0,$1
sub $0,675
|
; A081895: Second binomial transform of binomial(n+3, 3).
; Submitted by Jon Maiga
; 1,6,30,136,579,2358,9288,35640,133893,494262,1797714,6456024,22930695,80660934,281309436,973599912,3346483977,11431295910,38828142342,131206405608,441271936971,1477621745046,4927988620080,16373939547096,54216010651149,178934801890518,5... |
; A156709: For all numbers k(n) congruent to -1 or +1 (mod 6) starting with k(n) = {5,7,11,13,...}, a(k(n)) is incremented by the congruence (mod 6) if k(n) is prime and by 0 if k(n) is composite.
; -1,0,-1,0,-1,0,-1,-1,-2,-1,-1,0,-1,0,-1,-1,-2,-2,-3,-2,-2,-1,-2,-1,-1,0,-1,-1,-2,-2,-2,-1,-2,-1,-2,-1,-2,-2,-2,-2,-2,-1,-... |
mov ah, 0x0e ;tty mode
; attempt 1
; Fails because it tries to print the memory address(i.e pointer)
; not its actual contents
mov al, "1"
int 0x10
mov al, the_secret
int 0x10
mov al, '2'
int 0x10
mov al, [the_secret]
mov al, "3"
int 0x10
mov bx, the_secret
add bx, 0x7c00
mov al, [bx]
int 0x10
mov al, '4'
int 0x10... |
// Copyright Carl Philipp Reh 2006 - 2019.
// 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)
#ifndef SGE_SPRITE_ROLES_TEXTURE_COORDINATES0_HPP_INCLUDED
#define SGE_SPRITE_ROLES_TEXTURE_COORDIN... |
; A232746: n occurs A030124(n) times; a(n) = one less than the least k such that A005228(k) > n.
; 1,1,2,2,2,2,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10
add $0,4
mul $0,7
mov $2,7
mov $3,4
lpb $0... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r15
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x3e75, %r9
nop
nop
nop
dec %rdi
mov $0x6162636465666768, %r11
movq %r11, %xmm4
movups %xmm4, (%r9)
nop
nop
nop
lfence
lea addresses_UC_ht+0x2c95, %rdi
and $20257, %rcx
movw $0x... |
// Test assigning address of inline string to pointer
// The result should be an labelled .text in the ASM
// Erroneously tries to inline the string completely leading to a CompileError
// Commodore 64 PRG executable file
.file [name="inline-string-3.prg", type="prg", segments="Program"]
.segmentdef Program [segments... |
bits 64
mov rax,11223344h
mov rax,dword 11223344h
mov eax,11223344h
mov [rax],dword 11223344h ; 32-bit operation
mov qword [rax],11223344h
mov qword [rax],dword 11223344h
mov rax,0_ffffffff_8899aabbh
mov rax,dword 0_ffffffff_8899aabbh
mov eax,0_ffffffff_8899aabbh
mov [rax],dword 0_ffffffff_8899aabbh ; 32-b... |
object_const_def ; object_event constants
const ROUTE33_POKEFAN_M
const ROUTE33_LASS
const ROUTE33_FRUIT_TREE
Route33_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
Route33LassScript:
jumptextfaceplayer Route33LassText
TrainerHikerAnthony:
trainer HIKER, ANTHONY2, EVENT_BEAT_HIKER_ANTHONY, HikerAnthony2S... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkExtractSelection.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This softw... |
.686p
.mmx
random PROTO ptrOut:DWORD, lenByte:DWORD
.data?
hexTable db 4*20 dup (?)
randHash db 20 dup (?)
_randCount dd ?
random_data_len equ $ - offset hexTable
rc4keytable db 256 dup (?)
_temp_buffer db 128 dup(?)
_hash_0 dd ?
_hash_1 dd ?
_hash_2 dd ?
_hash_3 dd ?
_hash_4 dd ?
old_esp dd ?
_size dd ?... |
;--- Html2Txt.asm
;--- very simple html to (ascii) text converter. Public Domain.
;--- it's a sample for a mixed-language application (uses CRT)
;--- Win32 binary:
;--- assemble: jwasm -coff html2txt.asm crtexe.asm
;--- link: link html2txt.obj crtexe.obj msvcrt.lib
;--- Linux binary:
;--- assemble: jwasm -zcw -e... |
; A349858: Expansion of Sum_{k>=0} x^k/(1 + k^4 * x).
; Submitted by Jon Maiga
; 1,1,0,-14,175,2211,-400994,25610260,582496701,-666933657755,166042332973276,-14222991979095594,-14297382182023795925,12622343477815735821511,-5840589387156997753180230,-443718496524920696265166664,5189349322544398120691167482361,-774613022... |
#include <iostream>
#include "include/main.h"
using namespace std;
int main()
{
// declare and initialize variables
int number1 = 1
, number2 = 2
, *pnumber1
, *pnumber2;
// initialize ptr's
pnumber1 = &number1; // pnumber1 now equals the address block of number1
pnumber2 = &number2; // pnumber... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r8
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x35d0, %rcx
nop
nop
nop
nop
and $21104, %rdx
movups (%rcx), %xmm4
vpextrq $1, %xmm4, %rbx
nop
nop
nop
nop
cmp $54030, %rbp
lea addresses_WT_ht+0x28e5, %rbx
nop
cmp %r8, %r8
mov... |
; A022411: a(n) = a(n-1) + a(n-2) + 1, with a(0)=3, a(1)=12.
; 3,12,16,29,46,76,123,200,324,525,850,1376,2227,3604,5832,9437,15270,24708,39979,64688,104668,169357,274026,443384,717411,1160796,1878208,3039005,4917214,7956220,12873435,20829656,33703092,54532749,88235842,142768592,231004435,373773028,604777464,978550493,1... |
/*
Copyright [2017-2020] [IBM 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.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... |
SECTION code_driver
PUBLIC _disk_ioctl_callee
EXTERN asm_disk_ioctl
;------------------------------------------------------------------------------
; Routines that talk with the IDE drive, these should be called from diskio.h
; extern DRESULT disk_ioctl (BYTE pdrv, BYTE cmd, void* buff) __z88dk_callee;
;
; entry
; ... |
PUBLIC asm_longest_palindromic_substring
.386
.model flat, c
.data
firstArrayPtr DWORD ?
strSize DWORD ?
.code
;--------------------------------------------------------
asm_longest_palindromic_substring PROC
;
; Function that finds the length of the longest palindrome
; in a string. The function will only work in... |
#include "material.h"
#include "log.h"
#include <iostream>
// Instantiaion of static material list
std::map<std::string, Material*> MaterialFactory::_materialMap;
std::map<unsigned int, Material*> MaterialFactory::_materialID;
/// Multigroup constructor
Material::Material(unsigned int G, unsigned int N) :
scatteri... |
global _remove_file
_remove_file:
push bp
mov bp, sp
mov ax, word [bp+4]
call os_remove_file
jc .error
mov word [_ioerr], 0
jmp .skip
.error:
mov word [_ioerr], 1
.skip:
pop bp
ret
|
<%
from pwnlib.shellcraft.arm.linux import syscall
%>
<%page args="resource, rlimits"/>
<%docstring>
Invokes the syscall getrlimit. See 'man 2 getrlimit' for more information.
Arguments:
resource(rlimit_resource_t): resource
rlimits(rlimit): rlimits
</%docstring>
${syscall('SYS_getrlimit', resource, ... |
#include <qt/test/addressbooktests.h>
#include <qt/test/util.h>
#include <test/test_bitcoin.h>
#include <interfaces/chain.h>
#include <interfaces/node.h>
#include <qt/addressbookpage.h>
#include <qt/addresstablemodel.h>
#include <qt/editaddressdialog.h>
#include <qt/optionsmodel.h>
#include <qt/platformstyle.h>
#inclu... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006 - 2008, 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 distr... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r14
push %r9
push %rax
push %rcx
push %rdx
lea addresses_A_ht+0x1729d, %rcx
nop
and $24866, %rax
mov $0x6162636465666768, %r11
movq %r11, %xmm4
vmovups %ymm4, (%rcx)
nop
nop
nop
nop
nop
cmp %r10, %r10
lea addresses_A_ht+0x5776, %r9
cmp %r11, %r11
mo... |
SFX_Cry15_1_Ch5:
duty_cycle_pattern 3, 3, 0, 0
square_note 4, 15, 3, 1920
square_note 15, 14, 7, 1792
square_note 8, 13, 3, 1808
square_note 4, 12, 2, 1792
square_note 4, 13, 2, 1776
square_note 8, 12, 1, 1760
sound_ret
SFX_Cry15_1_Ch6:
duty_cycle_pattern 1, 1, 2, 2
square_note 6, 12, 3, 1793
square_note 1... |
; A330592: a(n) is the number of subsets of {1,2,...,n} that contain exactly two odd numbers.
; Submitted by Jon Maiga
; 0,0,2,4,12,24,48,96,160,320,480,960,1344,2688,3584,7168,9216,18432,23040,46080,56320,112640,135168,270336,319488,638976,745472,1490944,1720320,3440640,3932160,7864320,8912896,17825792,20054016,401080... |
; A239138: The sequence S = a(1), a(2), ... is defined by a(1)=1, if d,e,f are consecutive digits then we do not have d <= e > f, and S is always extended with the smallest integer not yet present in S.
; 1,2,3,4,5,6,7,8,9,99,999,9999,99999,999999,9999999,99999999,999999999,9999999999,99999999999,999999999999,999999999... |
#include "testApp.h"
//--------------------------------------------------------------
void testApp::setup(){
ofBackground(200, 200, 200);
ofSetVerticalSync(false);
ofSetFrameRate(90);
ofSetDataPathRoot("../Resources/data/");
//Connect to Port
// myTuio.start(7001);
// myTuio.start(7001);
// ... |
; $Id: bit_close.asm,v 1.5 2016/04/23 21:06:32 dom Exp $
;
; Z88 1 bit sound functions
;
; void bit_close();
;
; Stefano Bodrato - 28/9/2001
; Based on the Dominic Morris' code
;
SECTION code_clib
PUBLIC bit_close
PUBLIC _bit_close
INCLUDE "interrpt.def"
EXTERN snd_asave
.bit_close... |
.686p
.model flat, stdcall
option casemap: none
ExitProcess PROTO STDCALL :DWORD
MessageBoxA PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
wsprintfA PROTO C :VARARG
.data
TitleMsg db '1 задание',0
buffer db 128 dup(0); указываем буфер для форматированного вывода
format db '(%d * %d) + ((%d - %d) / %d) + %d = %d', 0 ; ... |
#include "../bits/stdc++.h"
// http://kazuma8128.hatenablog.com/entry/2018/05/06/022654
// verified(insert, erase, k-th element): https://atcoder.jp/contests/arc033/submissions/4648138
// verified(xor minimum): https://codeforces.com/contest/947/submission/51609141
class BinaryTrie
{
using T = unsigned;
... |
///////////////////////////////////////////////////////////////////////////////////////////////////
// OpenGL Mathematics Copyright (c) 2005 - 2009 G-Truc Creation (www.g-truc.net)
///////////////////////////////////////////////////////////////////////////////////////////////////
// Created : 2005-12-21
// Updated : 20... |
dnl AMD64 mpn_addmul_2 optimised for Intel Haswell.
dnl Contributed to the GNU project by Torbjörn Granlund.
dnl Copyright 2013 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 o... |
COMMENT @-----------------------------------------------------------------------
Copyright (c) GeoWorks 1989 -- All Rights Reserved
PROJECT: PC/GEOS
MODULE: Kernel/Initfile
FILE: initfileConstruct.asm
AUTHOR: Cheng, 11/89
ROUTINES:
Name Description
---- -----------
INT BuildEntryFromData ... |
; void *p_forward_list_alt_remove(p_forward_list_alt_t *list, void *item)
SECTION code_clib
SECTION code_adt_p_forward_list_alt
PUBLIC p_forward_list_alt_remove_callee
EXTERN asm_p_forward_list_alt_remove
p_forward_list_alt_remove_callee:
pop hl
pop bc
ex (sp),hl
jp asm_p_forward_list_alt_remove
|
#include <ctime>
#include <iostream>
#include "core/engine.h"
#include "components/simple_scene.h"
#if defined(WITH_LAB_M1)
# include "lab_m1/lab_list.h"
#endif
#if defined(WITH_LAB_M2)
# include "lab_m2/lab_list.h"
#endif
#if defined(WITH_LAB_EXTRA)
# include "lab_extra/lab_list.h"
#endif
#ifdef _WIN32
... |
; A111314: a(n) = a(n-1) + a(n-2) + 2 where a(0) = a(1) = 1.
; Submitted by Jamie Morken(s2)
; 1,1,4,7,13,22,37,61,100,163,265,430,697,1129,1828,2959,4789,7750,12541,20293,32836,53131,85969,139102,225073,364177,589252,953431,1542685,2496118,4038805,6534925,10573732,17108659,27682393,44791054,72473449,117264505,18973795... |
;;*****************************************************************************
;;! \file source/vcu2/reed_solomon/vcu2_reedsolomon_calcsyndrome.asm
;;!
;;! \brief Calculate the syndromes of the received code using
;;! Horner's method
;;
;; \date Oct 29, 2013
;;!
;;
;; Group: C2000
;; Target Family: F... |
#include<iostream>
#include<climits>
#include<random>
#include<chrono>
#include<fstream>
#include<vector>
#include<cmath>
#include<string>
#include "dijkstra.h"
#include "floyd_warshall.h"
#include "file.h"
#include "graph_gen.h"
int main()
{
std::vector<std::vector<int> > graph;
int choice;
int N, weight;
std::... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r15
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x3f88, %rsi
lea addresses_A_ht+0x4a2e, %rdi
nop
add $45227, %r9
mov $88, %rcx
rep movsb
nop
nop
nop
add $57988, %r12
lea addresses_normal_ht+0x1ab9e, %r15
nop
nop
nop
nop
nop
cmp $5... |
;*********************************************************************
;* Title: COCOIODRV-4C.asm
;*********************************************************************
;* Author: R. Allen Murphey, & MarkO
;*
;* License: Contributed 2021 by R. Allen Murphey to CoCoIO Development
;*
;* Description: CoCoIO with WIZnet W5... |
#ifndef SERVER_API_ROUTE_PARAMETERS_PARSER_HPP
#define SERVER_API_ROUTE_PARAMETERS_PARSER_HPP
#include "engine/api/base_parameters.hpp"
#include "engine/api/tile_parameters.hpp"
#include <boost/optional/optional.hpp>
#include <type_traits>
namespace osrm
{
namespace server
{
namespace api
{
// Note: this file prov... |
/home/weihuan/Documents/testsuits-for-oskernel-preliminary/riscv-syscalls-testing/user/build/riscv64/mmap: file format elf64-littleriscv
Disassembly of section .text:
0000000000001000 <_start>:
.section .text.entry
.globl _start
_start:
mv a0, sp
1000: 850a mv a0,sp
tail __start_main... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
/*
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Copyright(C) 2014 Abinash Panda
* Written (W) 2014 Abinash Panda
*/
#include <shogun/features/DotFeatures.h>
#include <shogun/mathematics/Math.h>
#include <shogun/mathematics/linalg/LinalgNamespace.h>
#include <shogun/structure/M... |
; A143025: Period length 4: repeat [1, 8, 2, 8].
; 1,8,2,8,1,8,2,8,1,8,2,8,1,8,2,8,1,8,2,8,1,8,2,8,1,8,2,8,1,8,2,8,1,8,2,8,1,8,2,8,1,8,2,8,1,8,2,8,1,8,2,8,1,8,2,8,1,8,2,8,1,8,2,8,1,8,2,8,1,8,2,8,1,8,2,8,1,8,2,8,1,8,2,8,1,8
pow $0,2
gcd $0,8
mov $1,8
div $1,$0
|
// Copyright (c) 2014-2017, The Superior Project
//
// 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, this list of... |
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 3.9.0 #11195 (MINGW32)
;--------------------------------------------------------
.module ____hi0
.optsdcc -mmcs51 --model-small
;--------------------------------------------------------
; Pu... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; SOURCE NAME: source_name.asm
; CREATED ON: yyyymmdd
; LAST UPDATED ON: yyyymmdd
; VERSION: 0.01
; AUTHOR: Author
; CREATED BY: DevilRay
; OTHER: Assembly program source
; FASM assembler
; Intel assembly syntax
; i386 platform, 32-bit
... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: os2Strings.asm
AUTHOR: Adam de Boor, Mar 11, 1992
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date D... |
/*--------------------------------------------------------------------
Copyright (c) 2021 Alorium Technology. All right reserved.
This file is part of the Alorium Technology Evo evo_servo library.
Written by Bryan Craker (support@aloriumtech.com) of
Alorium Technology (info@aloriumtech.com) using the same interf... |
; A214078: a(n) = (ceiling (sqrt(n)))!.
; 1,1,2,2,2,6,6,6,6,6,24,24,24,24,24,24,24,120,120,120,120,120,120,120,120,120,720,720,720,720,720,720,720,720,720,720,720,5040,5040,5040,5040,5040,5040,5040,5040,5040,5040,5040,5040,5040,40320,40320,40320,40320,40320,40320,40320,40320,40320,40320,40320,40320,40320,40320,40320,36... |
; ------- ANIMATION COMMANDS ---------
enum_start
enum_elem END_ANIM
enum_elem DELAY_AND_PAUSE
enum_elem ANIM_JUMP_TO
enum_elem START_NEW_ANIM
enum_elem ANIM_CALL
enum_elem ANIM_CALL_SECTION
enum_elem ANIM_COPY_TILES
enum_elem ANIM_COPY_SPRITES
enum_elem ANIM_MOVE_SPRITES
enum_elem ANIM_MOVE_P... |
;***** COMPILATION MESSAGES & WARNINGS *****
ERRORLEVEL -207 ; Found label after column 1.
ERRORLEVEL -302 ; Register in operand not in bank 0.
#include "p16f876a.inc"
global FXM1616U
global b2bcd
global bcd2a
;-------------------------------------------------
; STATUS bit definit... |
;
; fdef_369asm.asm Assembler code for large integer arithmetic in the default data format
;
; This file contains alternative routines that pretend that each digit is only 3 words.
; This gets used if the number is 1, 2, 3, 5, 6, or 9 digits long.
; The immediate advantage is that it improves EC performance on ... |
/* The following routines implement all of the fitting formulae in
Eisenstein \& Hu (1997) */
/* There are two sets of routines here. The first set,
TFfit_hmpc(), TFset_parameters(), and TFfit_onek(),
calculate the transfer function for an arbitrary CDM+baryon universe using
the fitting formula in Section 3 of th... |
// Copyright 2015 The Bazel 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 appl... |
; A195585: sigma(2*n^2) - sigma(n^2).
; 2,8,26,32,62,104,114,128,242,248,266,416,366,456,806,512,614,968,762,992,1482,1064,1106,1664,1562,1464,2186,1824,1742,3224,1986,2048,3458,2456,3534,3872,2814,3048,4758,3968,3446,5928,3786,4256,7502,4424,4514,6656,5602,6248,7982,5856,5726,8744,8246,7296,9906,6968,7082,12896,7566,7... |
;*****************************************************************************
;* x86-optimized functions for atadenoise filter
;*
;* Copyright (C) 2019 Paul B Mahol
;*
;* This file is part of FFmpeg.
;*
;* FFmpeg is free software; you can redistribute it and/or
;* modify it under the terms of the GNU Lesser General Pu... |
Name: zel_sub1.asm
Type: file
Size: 5398
Last-Modified: '2016-05-13T04:36:32Z'
SHA-1: 68A2E065DA397D2A274DF7C25C42FFCE6D0F4D4E
Description: null
|
/*
* bmp_formatter.cpp
*
* Author: Ming Tsang
* Copyright (c) 2014 Ming Tsang
* Refer to LICENSE for details
*/
#include <cassert>
#include <cstring>
#include <vector>
#include "libutils/bitmap/bitmap.h"
#include "libutils/bitmap/bmp_formatter.h"
#include "libutils/platform/endian_utils.h"
#include "libutils/ty... |
; A176981: Expansion of 1+(1-2*x)/(-1+2*x+x^2).
; 1,0,-1,-2,-5,-12,-29,-70,-169,-408,-985,-2378,-5741,-13860,-33461,-80782,-195025,-470832,-1136689,-2744210,-6625109,-15994428,-38613965,-93222358,-225058681,-543339720,-1311738121,-3166815962,-7645370045,-18457556052,-44560482149,-107578520350,-259717522849,-62701356604... |
;;
;; Copyright (c) 2012-2021, Intel Corporation
;;
;; Redistribution and use in source and binary forms, with or without
;; modification, are permitted provided that the following conditions are met:
;;
;; * Redistributions of source code must retain the above copyright notice,
;; this list of conditions and... |
; A004274: 0, 2 and the odd numbers.
; 0,1,2,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59,61,63,65,67,69,71,73,75,77,79,81,83,85,87,89,91,93,95,97,99,101,103,105,107,109,111,113,115,117,119,121,123,125,127,129,131
mov $1,$0
trn $0,3
add $1,$0
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.