text stringlengths 1 1.05M |
|---|
;;
;; Copyright (c) 2012-2020, 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... |
dnl Alpha EV5 __gmpn_add_n -- Add two limb vectors of the same length > 0 and
dnl store sum in a third limb vector.
dnl Copyright (C) 1995, 1999, 2000 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl i... |
;**********************************************************************
; P R O G R A M M MPPTnG *
; *
; Traking program for MPPT new generation *
;*******************************... |
;**************************************************************************
; arch/z80/src/ez80/ez80f91_init.asm
;
; Copyright (C) 2008 Gregory Nutt. All rights reserved.
; Author: Gregory Nutt <gnutt@nuttx.org>
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted pro... |
%macro sbrk 1
mov ebx, %1
add ebx, [ptr_bss_end]
mov eax, 0x2d
int 0x80
add dword [ptr_bss_end], %1
%endmacro
%macro get_free_space 1
mov %1, [ptr_bss_end] ; get end of program break
sub %1, [ptr_wilderness] ; total space - used space = available space
%endmacro
%macro link_free 1
mo... |
; A063757: G.f.: (1+3*x+2*x^2)/((1-x)*(1-2*x^2)).
; 1,4,8,14,22,34,50,74,106,154,218,314,442,634,890,1274,1786,2554,3578,5114,7162,10234,14330,20474,28666,40954,57338,81914,114682,163834,229370,327674,458746,655354,917498,1310714,1835002,2621434
add $0,1
lpb $0
sub $0,1
add $2,3
add $4,1
mov $1,$4
mov $3,$4
... |
PAGE ,132
TITLE C library emulation, not relying on MS-DOS.
;*****************************************************************************;
; ;
; FILE NAME: KBHIT.ASM ;
; ;
; DESCRIPTION: C library emulation routines in assembly language ;
; ;
; ... |
/////////////////////////////////////////////////////////////////////////////////////////////////
//
// Tencent is pleased to support the open source community by making libpag available.
//
// Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the Apache License, Versio... |
; A190999: a(n) = 2^(n^2)*(2^(2*n+1) - 1).
; Submitted by Jon Maiga
; 1,14,496,65024,33488896,68685922304,562881233944576,18446181123756130304,2417833192485184639860736,1267648182376590172238353793024,2658454723919231517578212623857483776,22300742540074631571703972465034240945291264,748288816012677095589663492815018633... |
//define LOG_SP_INT()
begin_bss()
rsp_interrupt_wait:; db 0
rsp_shutdown_requested:; db 0
align(4)
end_bss()
scope RSP {
Init:
// Halt anything that was running
lui t0, SP_BASE
lli t1, SET_HLT
sw t1, SP_STATUS (t0)
// Wait for halt
-
lw t1, SP_STATUS (t0)
andi t1, RSP_HLT
beqz t1,-
nop
// Wait for ... |
// 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.
#include "chrome/browser/extensions/crx_installer.h"
#include "base/at_exit.h"
#include "base/files/file_path.h"
#include "base/memory/ref_counted.h"... |
/**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* 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... |
// https://leetcode-cn.com/problems/max-area-of-island/
#include "extern.h"
class S0695 {
int maxAreaOfIslandInner(vector<vector<int>>& grid, int r0, int c0) {
int r_size = grid.size(), c_size = grid.front().size();
vector<pair<int, int>> vec_prev{ { r0, c0 } }, vec_next;
int result = 0;
... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23506.0
TITLE D:\Projects\TaintAnalysis\AntiTaint\Epilog\src\func-alloca.c
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB MSVCRT
INCLUDELIB OLDNAMES
PUBLIC ___local_stdio_printf_options
PUBLIC ___local_stdio_scanf_options... |
/*
//@HEADER
// ************************************************************************
//
// Kokkos v. 2.0
// Copyright (2019) Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the U.S. Government retains certain rights in this softw... |
Name: zel_sut1.asm
Type: file
Size: 67193
Last-Modified: '2016-05-13T04:23:03Z'
SHA-1: EF043CD786562D57632FE6B15ED55F43056ED4CC
Description: null
|
; char *getenv_ex(const char *filename, const char *name)
SECTION code_env
PUBLIC _getenv_ex_callee
PUBLIC l0_getenv_ex_callee
EXTERN asm_getenv_ex
_getenv_ex_callee:
pop hl
pop de
ex (sp),hl
l0_getenv_ex_callee:
push ix
push iy
call asm_getenv_ex
pop iy
pop ix
ret
|
; SP1IntersectRect
; 05.2006 aralbrec, Sprite Pack v3.0
; sinclair spectrum version
; uses rectangles library
XLIB SP1IntersectRect
LIB RIntersectRect8
; Returns the result of intersecting two 8-bit rectangles.
;
; enter : de = & sp1_Rect #1
; hl = & sp1_Rect #2
; exit : carry flag set = overlap detected an... |
; Test case:
counter:=1
repeat 2
repeat 2
db @@# * 10 + @#, counter
counter:=counter+1
endrepeat
endrepeat
loop:
jp loop
|
// Copyright (c) 1994-2006 Sun Microsystems 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:
//
// - Redistributions of source code must retain the above copyright notice,
// this list ... |
TITLE cast-586.asm
IF @Version LT 800
ECHO MASM version 8.00 or later is strongly recommended.
ENDIF
.586
.MODEL FLAT
OPTION DOTNAME
IF @Version LT 800
.text$ SEGMENT PAGE 'CODE'
ELSE
.text$ SEGMENT ALIGN(64) 'CODE'
ENDIF
EXTERN _CAST_S_table0:NEAR
EXTERN _CAST_S_table1:NEAR
EXTERN _CAST_S_table2:NEAR
EXTERN _CAST_S_ta... |
// Author: Mario Sieg
// Project: Nominax
//
// Apache License
// Version 2.0, January 2004
// http://www.apache.org/licenses/
//
// TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
//
// 1. Definitions.
//
// ... |
#include "libImmCore/src/libBasics/piLog.h"
#include "libImmCore/src/libBasics/piFile.h"
#include "libImmCore/src/libBasics/piStr.h"
#include "libImmCore/src/libBasics/piStreamO.h"
#include "../document/layer.h"
#include "../document/layerSpawnArea.h"
#include "toImmersiveUtils.h"
#include "toImmersiveLayerSpawnArea.... |
; A284838: Number of edges in the n-Keller graph.
; Submitted by Christian Krause
; 0,40,1088,21888,397312,6883328,116244480,1932230656,31778668544,518791888896,8424565768192,136279337467904,2198302774788096,35386835907641344,568757233463066624,9130929873047519232,146464646890277306368,2347871574175904694272,3761919186... |
// Copyright (C) 2015-2017 Internet Systems Consortium, Inc. ("ISC")
//
// 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 <config.h>
#include <dhcpsrv/client_... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r15
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0xbd5b, %rbp
nop
nop
nop
nop
cmp $57504, %rcx
movb (%rbp), %r12b
and $31057, %rsi
lea addresses_WT_ht+0x19876, %r15
nop
nop
nop
nop
dec %r14
and $0xffffffffffffffc0, %r15
... |
////////////////////////////////////////////////////////////
//
// SFML - Simple and Fast Multimedia Library
// Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org)
//
// This software is provided 'as-is', without any express or implied warranty.
// In no event will the authors be held liable for any damages a... |
; A168193: a(n) = a(n-1) + a(n-2) + 4, with a(0)=0, a(1)=2.
; 0,2,6,12,22,38,64,106,174,284,462,750,1216,1970,3190,5164,8358,13526,21888,35418,57310,92732,150046,242782,392832,635618,1028454,1664076,2692534,4356614,7049152,11405770,18454926,29860700,48315630,78176334,126491968,204668306,331160278,535828588,866988870,14... |
; void __CALLEE__ sp1_PutTilesInv_callee(struct sp1_Rect *r, struct sp1_tp *src)
; 02.2008 aralbrec, Sprite Pack v3.0
; zx81 hi-res version
SECTION code_sprite_sp1
PUBLIC sp1_PutTilesInv_callee
PUBLIC ASMDISP_SP1_PUTTILESINV_CALLEE
EXTERN sp1_GetUpdateStruct_callee
EXTERN ASMDISP_SP1_GETUPDATESTRUCT_CALLEE
EXTERN SP1... |
#include "Plane.h"
#include "Gizmos.h"
#include "glm/ext.hpp"
#include "RigidBody.h"
Plane::Plane(glm::vec2 normal, float distance, glm::vec4 color) : PhysicsObject(ShapeType::PLANE)
{
m_normal = glm::normalize(normal);
m_distance = distance;
m_color = color;
}
Plane::~Plane()
{
}
void Plane::fixedUpdate(glm::vec2... |
; A011543: Decimal expansion of e truncated to n places.
; Submitted by Christian Krause
; 2,27,271,2718,27182,271828,2718281,27182818,271828182,2718281828,27182818284,271828182845,2718281828459,27182818284590,271828182845904,2718281828459045,27182818284590452,271828182845904523,2718281828459045235,27182818284590452353... |
lda #0
sta {m1}
lda {m2}
sta {m1}+1
lda {m2}+1
sta {m1}+2
lda {m2}+2
sta {m1}+3
|
; float __fssqr (float number)
SECTION code_clib
SECTION code_math
PUBLIC cm32_sdcc_fssqr
EXTERN cm32_sdcc_fsreadl, m32_fssqr_fastcall
.cm32_sdcc_fssqr
; square (^2) sdcc floats
;
; enter : stack = sdcc_float number, ret
;
; exit : DEHL = sdcc_float(number^2)
;
; uses : af, bc, de, h... |
/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty o... |
// 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 may... |
; A314250: Coordination sequence Gal.4.137.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,17,23,29,35,41,46,51,57,63,69,75,81,87,92,97,103,109,115,121,127,133,138,143,149,155,161,167,173,179,184,189,195,201,207,213,219,225,... |
######
# This code tests all supported instructions
# If test passes, all registers should store either 42 or 0
######
#Add, addi
addi t0, zero, 18 # t0 = 18 + 0
addi t1, zero, 24 # t1 = 24 + 0
add t3, t1, t0 # t3 = 18 + 24 = 42
mv a0,t3 # a0 = t3 = 42
#Addi, Sub
addi t0, zero, 93
addi t1, zero, 51
sub t0, t0, t1... |
; A198644: 8*3^n-1.
; 7,23,71,215,647,1943,5831,17495,52487,157463,472391,1417175,4251527,12754583,38263751,114791255,344373767,1033121303,3099363911,9298091735,27894275207,83682825623,251048476871,753145430615,2259436291847,6778308875543,20334926626631,61004779879895,183014339639687,549043018919063,1647129056757191,49... |
/*
Copyright (c) 2013 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include <memory>
#include <string>
#include "util/sstream.h"
#include "util/sexpr/options.h"
#include "util/sexpr/option_declarations.h"
#include "util/sex... |
icl '../os/symbols.asm'
org BOOTADDR
mva #0 ROS7
lda #9
ldx #OS_SET_VIDEO_MODE
jsr OS_CALL
mwa SUBPAL_START VRAM_TO_RAM
jsr lib_vram_to_ram
ldy #0
lda #$9A
sta (RAM_TO_VRAM), y
iny
lda #$9F
sta (RAM_TO_VRAM), y
iny
lda #$C8
sta (RAM_TO_VRAM), y
iny
... |
###############################################################################
# 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... |
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chromeos/network/proxy/proxy_config_handler.h"
#include <memory>
#include <utility>
#include "base/bind.h"
#include "base/json/json_writer... |
.text
li $28, 0
li $29, 0
lw $1, 1($0)
lh $1, 1($0)
lhu $1, 1($0)
lh $1, 0x7f00($0)
lhu $1, 0x7f04($0)
lb $1, 0x7f08($0)
lbu $1, 0x7f10($0)
lb $1, 0x7f14($0)
lb $1, 0x7f18($0)
li $2, 0x7fffffff
lw $1, 1($2)
lh $1, 1($2)
lhu $1, 1($2)
lb $1, 1($2)
lbu $1, 1($2)
lw $1, 0x3000($0)
lh $1, 0x4000($0)
lhu $1, 0x6000($0)... |
global _start
section .text
_start:
; socket syscall
xor rax, rax
add rax, 41
xor rdi, rdi
add rdi, 2
xor rsi, rsi
inc rsi
xor rdx, rdx
syscall
; save the sockfd in the RDI register
mov rdi, rax
; creating the structure
xor rax, rax
; 192.168.141.1 reversed
push dwor... |
// Copyright (c) 2015-2017 Francisco Jose Tapia
// Copyright (c) 2020 Hartmut Kaiser
//
// SPDX-License-Identifier: BSL-1.0
// 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)
#pragma once
#include <pika/local/co... |
; A017578: (12n+4)^10.
; 1048576,1099511627776,296196766695424,10485760000000000,144555105949057024,1152921504606846976,6428888932339941376,27850097600940212224,100000000000000000000,310584820834420916224
mul $0,12
add $0,4
pow $0,10
|
; Original address was $AF00
; World 7 second fortress
.word W7F2_AltL ; Alternate level layout
.word W7F2_AltO ; Alternate object layout
.byte LEVEL1_SIZE_09 | LEVEL1_YSTART_140
.byte LEVEL2_BGPAL_04 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18
.byte LEVEL3_TILESET_02 | LEVEL3_VSCROLL_LOCKLOW | LEVEL3_PIPENOTEXIT
.byte... |
#include <iostream>
#include <imageplayer.h>
int main()
{
ImagePlayer player( "IMAGEPLAYER" );
player.setInputFile( "input3.list");
player.enableLoop( true );
player.start();
player.join();
return 0;
}
|
;;#############################################################################
;;! \file source/RFFT32_win.asm
;;!
;;! \brief Real FFT Windowing Function
;;!
;;! \date Apr 26, 2001
;;!
;;
;; Group: C2000
;; Target Family: C28x
;;
;;####################################################################... |
/*
* Copyright 2021 The DAPHNE 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... |
; void sp1_ClearRect(struct sp1_Rect *r, uchar colour, uchar tile, uchar rflag)
; 03.2006 aralbrec, Sprite Pack v3.0
; sinclair spectrum version
INCLUDE "config_private.inc"
SECTION code_clib
SECTION code_temp_sp1
PUBLIC asm_sp1_ClearRect
PUBLIC SP1CRSELECT
EXTERN asm_sp1_GetUpdateStruct, l_jpix
asm_sp1_ClearRect:... |
;;; docs design
; SAVENEX <command> <command arguments>
; Works only in ZXSPECTRUMNEXT device emulation mode. See DEVICE.
;
; For file format details, check https://specnext.dev/wiki/NEX_file_format
;
; As the file is designed for self-contained distribution of whole applications/games,
; its configuration and a... |
/**
* @license this file is a part of libchef. more info see https://github.com/q191201771/libchef
* @tag v1.10.17
* @file chef_crypto_hmac_sha256.hpp
* @deps chef_crypto_sha256_op.hpp
* @platform linux | macos | xxx
*
* @author
* chef <191201771@qq.com>
* -initial release xxxx-xx-xx
*
* ... |
; this sample shows the use of keyboard functions.
; try typing something into emulator screen.
;
; keyboard buffer is used, when someone types too fast.
;
; for realistic emulation, run this example at maximum speed
;
; this code will loop until you press esc key,
; all other keys will be printed.
name "keybrd"
org... |
; A044291: Numbers n such that string 4,4 occurs in the base 9 representation of n but not of n-1.
; 40,121,202,283,360,445,526,607,688,769,850,931,1012,1089,1174,1255,1336,1417,1498,1579,1660,1741,1818,1903,1984,2065,2146,2227,2308,2389,2470,2547,2632,2713,2794,2875,2956,3037,3118
mov $3,$0
add $0,5
mod $0,9
lpb $0
... |
/**
* Copyright 2021 Huawei Technologies Co., Ltd
*
* 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... |
; A057682: a(n) = Sum_{j=0..floor(n/3)} (-1)^j*binomial(n,3*j+1).
; 0,1,2,3,3,0,-9,-27,-54,-81,-81,0,243,729,1458,2187,2187,0,-6561,-19683,-39366,-59049,-59049,0,177147,531441,1062882,1594323,1594323,0,-4782969,-14348907,-28697814,-43046721,-43046721,0,129140163,387420489,774840978,1162261467,1162261467,0,-3486784401,-... |
// Fill out your copyright notice in the Description page of Project Settings.
#include "MLGameStateBase.h"
#include "Player Core/MLMasterPlayerController.h"
#include "Units/AI Types/PlayerChampion.h"
#include "Ability Core/MLAbilitySystemComponent.h"
float AMLGameStateBase::GetPlayerRespawnDelay(AController* Contro... |
//============================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURP... |
; size_t strxfrm(char * restrict s1, const char * restrict s2, size_t n)
SECTION code_string
PUBLIC _strxfrm
EXTERN asm_strxfrm
_strxfrm:
pop af
pop de
pop hl
pop bc
push bc
push hl
push de
push af
jp asm_strxfrm
|
//////////////////////////////////////////////////////////////////////////////
/// Copyright 2003 and onward LASMEA UMR 6602 CNRS/U.B.P Clermont-Ferrand
/// Copyright 2009 and onward LRI UMR 8623 CNRS/Univ Paris Sud XI
///
/// Distributed under the Boost Software License, Version 1.0
/// ... |
; A011683: A binary m-sequence: expansion of reciprocal of x^7+x^5+x^4+x^3+x^2+x+1.
; Submitted by Jamie Morken(w4)
; 0,0,0,0,0,0,1,1,0,0,0,0,1,0,0,1,0,0,1,1,1,1,1,1,1,0,1,1,1,1,1,0,0,0,1,1,1,0,1,0,1,0,1,0,0,1,0,1,0,1,1,1,1,0,1,0,0,1,1,0,0,1,1,1,0,0,1,1,0,1,0,1,1,0,0,0,1,0,0,0,1,0,1,1,1,0,1,1,0,0,1,0,0,0,0,1,1,1,1,0
l... |
SECTION code_fp
PUBLIC frexp
EXTERN fa
EXTERN dload
; float frexpf (float x, int *pw2);
frexp:
ld hl,4
add hl,sp
call dload
pop bc ;Ret
pop de ;pw2
push de
push bc
ld hl,fa+5
ld a,(hl)
and a
ld (hl),0
jr z,zero
sub $80
ld (hl),128
zero:
ld (de),a
rlca
sbc a
inc de
ld (de),a... |
; A021136: Decimal expansion of 1/132.
; 0,0,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7
lpb $0,1
mod $0,2
add $1,1
mul $1,7
sub $1,$0
sub $1,$0
lpe
|
ZNAKI EQU 30H
LJMP START
ORG 100H
START:
MOV ZNAKI, #01011011B
MOV R3, #010101B
START2:
MOV R2, #0
WYSW:
SETB P1.6
MOV R0, #CSDS
MOV A, R3
MOVX @R0, A
MOV R0, #CSDB
;MOV R1, #ZNAKI
MOV A, ZNAKI
MOVX @R0, A
CLR P1.6
... |
#pragma once
#include <RF24.h>
#include "../../include/pinout.hpp"
/*
Class used to communicate with rover
*/
class Communicator {
public:
void initialize();
bool initialized() const;
void send_data(char const* data);
void print_debug_data();
private:
bool m_initialized{false};
RF24 m_radio{Pin::RF... |
; this is almost empty ASM to test the CI build script "test_folder_tests.sh" with:
; # filenames containing spaces
; # .options file provided
; # .lst file provided
; # --zxnext option test
OUTPUT "option zxnext.bin"
nextreg $4C,a
|
[bits 16]
[org 0x7c00]
KERNEL_OFFSET equ 0x9c00
jmp main16
main16:
xor ax, ax
mov ds, ax
mov ss, ax
mov es, ax
mov bp, 0x9c00 ; set stack position
mov sp, bp
mov [BOOT_DRIVE], dl ; boto drive
mov bx, KERNEL_OFFSET
mov dh, 2
mov dl, [BOOT_DRIVE]
call loadDisk
mov ax, KERNEL_OFFSE... |
; A246697: Row sums of the triangular array A246696.
; 1,5,16,34,67,111,178,260,373,505,676,870,1111,1379,1702,2056,2473,2925,3448,4010,4651,5335,6106,6924,7837,8801,9868,10990,12223,13515,14926,16400,18001,19669,21472,23346,25363,27455,29698,32020,34501,37065,39796
mov $2,$0
add $2,1
mov $4,$0
lpb $2
mov $0,$4
su... |
;/*!
; @file
;
; @ingroup fapi
;
; @brief BmsGetDevStatus DOS wrapper
;
; (c) osFree Project 2018, <http://www.osFree.org>
; for licence see licence.txt in root directory, or project website
;
; This is Family API implementation for DOS, used with BIND tools
; to link required API
;
; @author Yuri Proku... |
; A035013: One third of 9-factorial numbers.
; 1,12,252,7560,294840,14152320,806682240,53241027840,3993077088000,335418475392000,31193918211456000,3181779657568512000,353177541990104832000,42381305038812579840000
mov $1,1
mov $2,3
lpb $0
sub $0,1
add $2,9
mul $1,$2
lpe
mov $0,$1
|
ARCH_ARM equ 0
ARCH_MIPS equ 0
ARCH_X86 equ 1
ARCH_X86_64 equ 0
ARCH_PPC32 equ 0
ARCH_PPC64 equ 0
HAVE_EDSP equ 0
HAVE_MEDIA equ 0
HAVE_NEON equ 0
HAVE_MIPS32 equ 0
HAVE_DSPR2 equ 0
HAVE_MMX equ 1
HAVE_SSE equ 1
HAVE_SSE2 equ 1
HAVE_SSE3 equ 1
HAVE_SSSE3 equ 1
HAVE_SSE4_1 equ 1
HAVE_AVX equ 1
HAVE_AVX2 equ 0
HAVE_ALTIV... |
/*
* Copyright (c) 2013, Peter Thorson. 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 must retain the above copyright
* notice, this list of cond... |
SECTION rodata_user
PUBLIC _ctiles
_ctiles:
BINARY "bifrost2.ctile"
|
/***************************************************************************************
* Original Author: Gabriele Giuseppini
* Created: 2019-03-20
* Copyright: Gabriele Giuseppini (https://github.com/GabrieleGiuseppini)
******************************************************************... |
; A004448: Nimsum n + 7.
; 7,6,5,4,3,2,1,0,15,14,13,12,11,10,9,8,23,22,21,20,19,18,17,16,31,30,29,28,27,26,25,24,39,38,37,36,35,34,33,32,47,46,45,44,43,42,41,40,55,54,53,52,51,50,49,48,63,62,61,60,59,58,57,56,71,70,69,68,67,66,65,64,79,78,77,76,75,74,73,72,87,86,85,84,83,82,81,80,95,94,93,92,91,90,89,88,103,102,101,100... |
; A006119: Sum of Gaussian binomial coefficients [ n,k ] for q=5.
; Submitted by Stefano Spezia
; 1,2,8,64,1120,42176,3583232,666124288,281268665344,260766671206400,549874114073747456,2547649010961476288512,26854416724405008878829568,622038328102566471056281370624,32782514465335246512577103683911680,3796686219329783401... |
; A011946: Number of Barlow packings with group P63/mmc(S) that repeat after 4n layers.
; 1,2,3,8,15,30,63,128,252,510,1023,2040
mov $1,2
mov $2,2
pow $2,$0
add $0,1
div $2,$0
lpb $0
sub $0,1
add $1,$2
add $1,$2
lpe
div $1,2
sub $1,1
mov $0,$1
|
// CopyThread.cpp : implementation file
//
#include "stdafx.h"
#include "NBrowser.h"
#include "CopyThread.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCopyThread
IM... |
AudioProc:
pushad
mov edx,[sample_position]
;DEBUG "buffering audio at 0x%08x",edx
mov edi,[esp+5*4+ad_size]
; struct AudioBufferList { UInt32 mNumberBuffers; AudioBuffer mBuffers[1]; }
; struct AudioBuffer { UInt32 mNumberChannels; UInt32 mDataByteSize; void *mData; }
mov ecx,[byte edi+4+4]
shr ecx,3
mov ebp,e... |
// Copyright 2019 The libgav1 Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agre... |
RockTunnel1F_Script:
call EnableAutoTextBoxDrawing
ld hl, RockTunnel1TrainerHeaders
ld de, RockTunnel1F_ScriptPointers
ld a, [wRockTunnel1FCurScript]
call ExecuteCurMapScriptInTable
ld [wRockTunnel1FCurScript], a
ret
RockTunnel1F_ScriptPointers:
dw CheckFightingMapTrainers
dw DisplayEnemyTrainerTextAndStartBa... |
;
; Calculate the number of grains of wheat on a chessboard given that the number
; on each square doubles.
;
; Parameters:
; rdi - number
; Returns:
; rax - number of grains on the square
;
section .text
global square
square:
xor eax, eax ; Initialize number of grains
test edi, edi ; Compare input numb... |
_usertests: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
return randstate;
}
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... |
;******************************************************************************
; H i m e m X
;******************************************************************************
; derived from FreeDOS Himem.
;
; original work by Till Gerken.
; major rework by tom ehlert.
; modified for >64M support, Michael De... |
/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2011 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person obta... |
; A228603: a(1) = 9, a(2) = 44, a(n) = 4*(a(n-1) + a(n-2)) (n >=3).
; 9,44,212,1024,4944,23872,115264,556544,2687232,12975104,62649344,302497792,1460588544,7052345344,34051735552,164416323584,793872236544,3833154240512,18508105908224,89365040594944,431492586012672,2083430506430464,10059692369772544
add $0,1
mov $1,2
m... |
; A211280: Numerator of prime(n+1) - prime(n)/2.
; Submitted by Jon Maiga
; 2,7,9,15,15,21,21,27,35,33,43,45,45,51,59,65,63,73,75,75,85,87,95,105,105,105,111,111,117,141,135,143,141,159,153,163,169,171,179,185,183,201,195,201,201,223,235,231,231,237,245,243,261,263,269,275,273,283,285,285,303,321,315,315,321,345,343,35... |
#pragma once
#include <Defines.hpp>
namespace Poly
{
//wondering(vuko): proposed names: Object (Object::Create, Object::Destroy), ???
namespace ObjectLifetimeHelper //todo(vuko/muniu): better naming + documentation
{
//note: functions are parametrized by trivial-constructibleness (wew, what a mouthful), so futur... |
/**
* Name: Chenying Wang
* Email: chenying.wang@usc.edu
* USC ID: ****-****-**
* Date: Friday, February 14, 2020
**/
#include <iostream>
#include <cstring>
#include <chrono>
#include "ImageHalftoning.h"
#include "common/Common.h"
#include "common/ImageConverter.h"
#include "common/ImageIO.h"
#include "common/Uti... |
; A314133: Coordination sequence Gal.6.623.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.
; Submitted by Jamie Morken(s3)
; 1,5,11,16,21,27,33,39,44,49,55,60,65,71,76,81,87,93,99,104,109,115,120,125,131,136,141,147,153,159,164,169,1... |
; A348287: Arrange nonzero digits of n in increasing order then append the zeros.
; Submitted by Simon Strandgaard
; 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,12,22,23,24,25,26,27,28,29,30,13,23,33,34,35,36,37,38,39
mov $1,$0
seq $0,4185 ; Arrange digits of n in increasing order, then (for n>0) omit the zer... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r15
push %r8
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x12e13, %rsi
lea addresses_D_ht+0x4e17, %rdi
clflush (%rsi)
clflush (%rdi)
inc %r13
mov $28, %rcx
rep movsw
nop
nop
and $9888, %r13
lea addresses_normal_ht+0x132d7, %r8
nop
nop
... |
BITS 64
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
;TEST_BEGIN_RECORDING
FCLEX
;TEST_END_RECORDING
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r15
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x142d5, %rsi
lea addresses_WC_ht+0x763d, %rdi
and %r10, %r10
mov $17, %rcx
rep movsw
nop
nop
nop
nop
and %rdi, %rdi
lea addresses_A_ht+0x1983d, %rbx
nop
nop
nop
nop
nop
cmp %... |
; A299913: a(n) = a(n-1) + 2*a(n-2) if n even, or 3*a(n-1) + 4*a(n-2) if n odd, starting with 0, 1.
; 0,1,1,7,9,55,73,439,585,3511,4681,28087,37449,224695,299593,1797559,2396745,14380471,19173961,115043767,153391689,920350135,1227133513,7362801079,9817068105,58902408631,78536544841,471219269047,628292358729,37697541523... |
#include "dicom_pch.h"
#include "dicom/data/UR.h"
#include "dicom/data/detail/DefaultCharacterRepertoire.h"
#include "dicom/data/detail/string_trim.h"
namespace dicom::data {
UR::UR()
: UR(std::string())
{}
//-----------------------------------------------------------------------------... |
#include "../../common/testbench.h"
void applyCrc(uint32_t& crc, int data)
{
crc = crc ^ data;
for (int j = 7; j >= 0; j--)
{
uint32_t mask = -(crc & 1);
crc = (crc >> 1) ^ (0xEDB88320 & mask);
}
}
bool verify()
{
CFpgaTestBench test;
int count = 512;
uint32_t crc = 0xff... |
; A332698: a(n) = (8*n^3 + 15*n^2 + 13*n)/6.
; 0,6,25,65,134,240,391,595,860,1194,1605,2101,2690,3380,4179,5095,6136,7310,8625,10089,11710,13496,15455,17595,19924,22450,25181,28125,31290,34684,38315,42191,46320,50710,55369,60305,65526,71040,76855,82979,89420,96186
mul $0,4
add $0,1
mov $2,1
lpb $0
add $1,$2
add $2... |
Sound_D8_Header:
smpsHeaderStartSong 3
smpsHeaderVoice Sound_D8_Voices
smpsHeaderTempoSFX $01
smpsHeaderChanSFX $01
smpsHeaderSFXChannel cFM3, Sound_D8_FM3, $00, $05
; FM3 Data
Sound_D8_FM3:
smpsSetvoice $00
smpsModSet $01, $01, $01, $83
dc.b nFs2, $16
Sound_D8_Loop00:
dc.b smpsNoAtta... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.