text stringlengths 1 1.05M |
|---|
;###############################################################################
;# #
;# Copyright (C) 2020 by Sylwester Wysocki <sw143@wp.pl> #
;# ... |
; int fseek(FILE *stream, long offset, int whence)
INCLUDE "clib_cfg.asm"
SECTION code_stdio
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $02
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC _fseek
EXTERN l0_fseek_callee
_fseek:
pop af
exx
pop bc
exx
pop hl
pop de
pop bc
push bc... |
Route6WildMons:
def_grass_wildmons 15 ; encounter rate
db 23, PONYTA
db 23, MANKEY
db 25, MEOWTH
db 22, BEEDRILL
db 23, BUTTERFREE
db 25, ODDISH
db 26, VULPIX
db 26, PIDGEOTTO
db 24, DIGLETT
db 26, TAUROS
end_grass_wildmons
def_water_wildmons 0 ; encounter rate
end_water_wildmons
|
; A142643: Primes congruent to 5 mod 56.
; Submitted by Jon Maiga
; 5,61,173,229,397,509,677,733,1013,1069,1181,1237,1741,2357,2693,2749,2861,2917,3253,3533,3701,4093,4261,4373,4597,4877,4933,5101,5381,5437,5717,6053,6221,6277,6389,6781,6949,7229,7621,7789,7901,8069,8237,8293,8461,8573,8629,8741,9133,9413,9749,9973,101... |
SafariZoneEastRestHouse_Script:
call EnableAutoTextBoxDrawing
ret
SafariZoneEastRestHouse_TextPointers:
dw SafariZoneRestHouse3Text1
dw SafariZoneRestHouse3Text2
dw SafariZoneRestHouse3Text3
SafariZoneRestHouse3Text1:
text_far _SafariZoneRestHouse3Text1
text_end
SafariZoneRestHouse3Text2:
text_far _SafariZon... |
/*
* DO NOT EDIT THIS FILE! Automatically generated by SCons.
*/
#ifndef __DEBUG_VtoPhys_HH__
#define __DEBUG_VtoPhys_HH__
namespace Debug {
class SimpleFlag;
extern SimpleFlag VtoPhys;
}
#endif // __DEBUG_VtoPhys_HH__
|
extern m7_ippsHMAC_Message:function
extern n8_ippsHMAC_Message:function
extern y8_ippsHMAC_Message:function
extern e9_ippsHMAC_Message:function
extern l9_ippsHMAC_Message:function
extern n0_ippsHMAC_Message:function
extern k0_ippsHMAC_Message:function
extern ippcpJumpIndexForMergedLibs
extern ippcpSafeInit:function
s... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>sched_getscheduler(pid) -> str
Invokes the syscall sched_getscheduler.
See 'man 2 sched_getscheduler' for more information.
Arguments:
pid(pid_t): pid
Returns:
int
</%docstring>
<%page args="pid... |
// Copyright (C) 2010 Marc Duruflé
//
// This file is part of the linear-algebra library Seldon,
// http://seldon.sourceforge.net/.
//
// Seldon is free software; you can redistribute it and/or modify it under the
// terms of the GNU Lesser General Public License as published by the Free
// Software Foundation; either ... |
// This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems"
// by Nisan and Schocken, MIT Press.
// File name: projects/04/Mult.asm
// Multiplies R0 and R1 and stores the result in R2.
// (R0, R1, R2 refer to RAM[0], RAM[1], and RAM[2], respectively.)
// Put your code here.... |
/*
* This test verifies call and ret instructions
*/
lc r100, 0x10000000 // test result output pointer
lc r101, halt
lc r102, failure
lc sp, 0x00010000 // stack pointer
lc r0, 0x00008000
sw r0, 0
// Test simple procedure call
lc r1, testproc
call r1 // testproc
lw r0, r0
lc r1, 0x11223344
cjmp... |
/*
* 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 ma... |
; A309878: The real part of b(n) where b(n) = (n + b(n-1)) * (1 + i) with b(-1)=0; i = sqrt(-1).
; 0,1,2,1,-4,-13,-22,-23,-8,23,54,53,-12,-141,-270,-271,-16,495,1006,1005,-20,-2069,-4118,-4119,-24,8167,16358,16357,-28,-32797,-65566,-65567,-32,131039,262110,262109,-36,-524325,-1048614,-1048615,-40,2097111,4194262,419426... |
dnl AMD64 mpn_popcount, mpn_hamdist -- population count and hamming distance.
dnl Copyright 2004, 2005, 2007, 2010-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 either:
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x11af4, %r11
clflush (%r11)
nop
nop
nop
sub %rbx, %rbx
movw $0x6162, (%r11)
add %rsi, %rsi
lea addresses_normal_ht+0x134e4, %rdx
clflush (%rdx)
nop
xor $46830, %r9
movb (%rdx)... |
<%
from pwnlib.shellcraft.aarch64.linux import syscall
%>
<%page args="fd"/>
<%docstring>
Invokes the syscall close. See 'man 2 close' for more information.
Arguments:
fd(int): fd
</%docstring>
${syscall('SYS_close', fd)}
|
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1988 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: UserInterface/Gen
FILE: genContent.asm
ROUTINES:
Name Description
---- -----------
GLB GenContentClass Content object
REVISION HISTORY... |
#include "netlist_simulator/netlist_simulator.h"
#include "hal_core/netlist/netlist.h"
#include "hal_core/utilities/log.h"
#include <algorithm>
#include <chrono>
#include <ctime>
#include <fstream>
#include <iomanip>
#include <sstream>
template<typename T>
static T toggle(T v)
{
if (v == 0 || v == 1)
{
... |
;; ====================================================================
;; VECTOR-06C FPGA REPLICA
;;
;; Copyright (C) 2007,2008 Viacheslav Slavinsky
;;
;; This core is distributed under modified BSD license.
;; For complete licensing information see LICENSE.TXT.
;; -----------------... |
;===============================================================================
; Copyright 2014-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") co... |
; void insertion_sort(void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *))
SECTION code_clib
SECTION code_stdlib
PUBLIC __insertion_sort_
EXTERN l0__insertion_sort__callee
__insertion_sort_:
pop af
pop bc
pop hl
pop de
exx
pop bc
push bc
push de
push hl
... |
j Add;
j Output;
NOP
Add:
jal PC;
addiu $t0,$ze,64;
sw $t0,0($ze);
addiu $t0,$ze,121;
sw $t0,4($ze);
addiu $t0,$ze,36;
sw $t0,8($ze);
addiu $t0,$ze,48;
sw $t0,12($ze);
addiu $t0,$ze,25;
sw $t0,16($ze);
addiu $t0,$ze,18;
sw $t0,20($ze);
addiu $t0,$ze,2;
sw $t0,24($ze);
addiu $t0,$ze,120;
sw $t0,28($ze);
addiu $t0,$ze,0;... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/codedeploy/model/TargetLabel.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;... |
; A093041: Expansion of (1-4x+6x^2-3x^3)/(1-5x+9x^2-8x^3+4x^4).
; 1,1,2,6,16,38,86,192,426,938,2048,4438,9558,20480,43690,92842,196608,415062,873814,1835008,3844778,8039082,16777216,34952534,72701270,150994944,313174698,648719018,1342177280,2773833046,5726623062
mov $9,$0
mov $11,2
lpb $11
mov $0,$9
sub $11,1
ad... |
GLOBAL cpuVendor
GLOBAL getRTC
GLOBAL getSP
section .text
cpuVendor:
push rbp
mov rbp, rsp
push rbx
mov rax, 0
cpuid
mov [rdi], ebx
mov [rdi + 4], edx
mov [rdi + 8], ecx
mov byte [rdi+13], 0
mov rax, rdi
pop rbx
mov rsp, rbp
pop rbp
ret
getRTC:
mov rax, rdi ; recibimos por parámetro.
out 70h,... |
; A279437: Number of ways to place 3 points on an n X n square grid so that no more than 2 points are on a vertical or horizontal straight line.
; 0,4,78,528,2200,6900,17934,40768,83808,159300,284350,482064,782808,1225588,1859550,2745600,3958144,5586948,7739118,10541200,14141400,18711924,24451438,31587648,40380000,5112... |
#include <map>
#include <string>
#include <boost/test/unit_test.hpp>
#include "json/json_spirit_writer_template.h"
#include "main.h"
#include "wallet.h"
using namespace std;
using namespace json_spirit;
// In script_tests.cpp
extern Array read_json(const std::string& filename);
extern CScript ParseScript(string s);
... |
;;
;; Copyright (c) 2012-2018, 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... |
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++1z %s
template<typename T, T val> struct A {};
template<typename T, typename U> constexpr bool is_same = false; // expected-note +{{here}}
template<typename T> constexpr bool is_same<T, T> = true;
namespace String {
A<const char*, "test"> a; // expected-error {{does... |
; A177342: a(n) = (4*n^3-3*n^2+5*n-3)/3.
; 1,9,31,75,149,261,419,631,905,1249,1671,2179,2781,3485,4299,5231,6289,7481,8815,10299,11941,13749,15731,17895,20249,22801,25559,28531,31725,35149,38811,42719,46881,51305,55999,60971,66229,71781,77635,83799,90281,97089,104231,111715,119549,127741,136299,145231,154545,164249,174... |
// $Id: resource_limits_qos_test.cpp 89294 2010-03-04 08:35:13Z msmit $
#include "resource_limits_qos_test.h"
ResourceLimitsPolicyTest::ResourceLimitsPolicyTest ()
{
}
bool
ResourceLimitsPolicyTest::check (const ::DDS_ResourceLimitsQosPolicy & dds_qos,
const ::DDS::ResourceLimitsQos... |
; A290254: The viabin numbers of the self-conjugate integer partitions.
; 0,1,5,6,19,21,26,28,71,75,85,89,102,106,116,120,271,279,299,307,333,341,361,369,398,406,426,434,460,468,488,496,1055,1071,1111,1127,1179,1195,1235,1251,1309,1325,1365,1381,1433,1449,1489,1505,1566,1582,1622,1638,1690,1706,1746,1762,1820,1836,1876... |
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
80
.text@150
lbegin:
ld a, ff
ldff(45), a
ld b, 03
call lwaitly_b
ld a, 40
ldff(41), a
xor a, a
ldff(0f), a
ld a, 02
ldff(ff), a
ei
ld a, b
inc a
inc a
ldff(45), a
ld c, 0f
.text@1000
lstatint:
ld a, 08
ldff(41), a
xor a, a
ldff(0... |
default rel
%define XMMWORD
%define YMMWORD
%define ZMMWORD
section .text code align=64
EXTERN OPENSSL_ia32cap_P
global rsaz_512_sqr
ALIGN 32
rsaz_512_sqr:
mov QWORD[8+rsp],rdi ;WIN64 prologue
mov QWORD[16+rsp],rsi
mov rax,rsp
$L$SEH_begin_rsaz_512_sqr:
mov rdi,rcx
mov rsi,rdx
mov rdx,r8
mov rcx,r9
mov r8,Q... |
// Copyright (c) 2010 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/sync/glue/theme_change_processor.h"
#include "base/logging.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/... |
//*****************************************************************************
// Copyright 2017-2020 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://w... |
//============================================================================
// 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... |
; A082135: Expansion of e.g.f. x*exp(4*x)*cosh(x).
; Submitted by Jon Maiga
; 0,1,8,51,304,1765,10104,57239,321248,1787337,9864040,54035707,294031632,1590368429,8556082136,45812239455,244255416256,1297362967441,6867617339592,36243304518083,190746485895920,1001394643462773,5245323804119608,27418497478865191,143052277179... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <cmath>
#include <ngraph/op/topk.hpp>
#include "ie_parallel.hpp"
#include "mkldnn_topk_node.h"
#include "utils/general_utils.h"
#if defined(HAVE_SSE) || defined(HAVE_AVX2) || defined(HAVE_AVX512F)
#include <immintrin.h>
#... |
; A270870: a(n) = n^6 + 5*n^5 + 19*n^4 + 44*n^3 + 72*n^2 + 69*n + 5.
; 5,215,1311,5531,18329,50775,122675,266411,531501,989879,1741895,2923035,4711361,7335671,11084379,16315115,23465045,33061911,45735791,62231579,83422185,110322455,144103811,186109611,237871229,301124855,377829015,470182811,580644881,711953079,86714487... |
; A083457: Smallest nontrivial k such that k^n - 1 is a palindrome (k >1 for n>1).
; 1,2,2,10,3,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10
dif $0,2
mov $1,$0
mov $2... |
;
; Copyright (c) 2011 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... |
.386
.model flat,C
PUBLIC __disallowDPMI32onWin32
.code
; We don't disallow nothing even on Win32
__disallowDPMI32onWin32 proc near
ret
__disallowDPMI32onWin32 endp
end
|
/*
SoLoud audio engine
Copyright (c) 2013-2018 Jari Komppa
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including comm... |
; A031359: Bisection of A001615.
; Submitted by Jon Maiga
; 1,4,6,8,12,12,14,24,18,20,32,24,30,36,30,32,48,48,38,56,42,44,72,48,56,72,54,72,80,60,62,96,84,68,96,72,74,120,96,80,108,84,108,120,90,112,128,120,98,144,102,104,192,108,110,152,114,144,168,144,132,168,150,128,176,132,160,216,138,140,192,168,180,224,150,152,21... |
// stdafx.cpp : source file that includes just the standard includes
// uninformedsearches.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
// TODO: reference any additional headers you need in STDAFX.H
// and not in this file
|
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r15
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x8edc, %rsi
lea addresses_A_ht+0xc78c, %rdi
nop
xor $35816, %r15
mov $87, %rcx
rep movsw
cmp $16638, %r9
lea addresses_WC_ht+0x19d3c, %r12
nop
nop
cmp %rcx, %rcx
mov $0x6162636465666768, %rsi
mov... |
; A074087: Coefficient of q^1 in nu(n), where nu(0)=1, nu(1)=b and, for n>=2, nu(n)=b*nu(n-1)+lambda*(1+q+q^2+...+q^(n-2))*nu(n-2) with (b,lambda)=(2,3).
; Submitted by Jon Maiga
; 0,0,0,6,33,144,570,2118,7587,26448,90420,304470,1013061,3338112,10911150,35423862,114342855,367242336,1174368360,3741029094,11876859369,375... |
#include <iostream>
#include <cstdlib>
#include <cmath>
bool almost_equal(float x, float gold, float tol) {
return gold * (1-tol) <= x && x <= gold * (1 + tol);
}
void test_target__parallel_for_simd() {
const int N0 { 262144 };
const float expected_value { N0 };
float counter_N0{};
#pragma omp target map(tofr... |
; A152098: Quartic product sequence: m = 4; p = 4^3; a(n) = Product_{k=1..(n-1)/2} ( 1 + m*cos(k*Pi/n)^2 + p*cos(k*Pi/n)^4 ).
; Submitted by Christian Krause
; 1,1,1,6,19,61,240,769,2869,9774,34831,121969,428640,1509301,5297641,18644406,65502139,230343541,809678160,2846468089,10006911469,35178340254,123671565271,434760... |
/**
* @file
* @copyright defined in dfc/LICENSE
*/
#pragma once
#include <dfcio/chain/types.hpp>
#include <dfcio/wallet_plugin/wallet_api.hpp>
#include <fc/real128.hpp>
#include <fc/crypto/base58.hpp>
using namespace std;
using namespace dfcio::chain;
namespace dfcio { namespace wallet {
typedef uint16_t tran... |
; A247194: a(n) = ceiling(Pi*n^3).
; 0,4,26,85,202,393,679,1078,1609,2291,3142,4182,5429,6903,8621,10603,12868,15435,18322,21549,25133,29095,33452,38224,43430,49088,55217,61836,68965,76621,84824,93592,102944,112900,123478,134696,146575,159132,172386,186357,201062,216522,232755
pow $0,3
add $0,1
cal $0,327136 ; a(n) = ... |
; A326690: Denominator of the fraction (Sum_{prime p | n} 1/p - 1/n).
; 1,1,1,4,1,3,1,8,9,5,1,4,1,7,15,16,1,9,1,20,7,11,1,24,25,13,27,28,1,1,1,32,33,17,35,36,1,19,13,40,1,21,1,44,45,23,1,16,49,25,51,52,1,27,11,8,19,29,1,60,1,31,63,64,65,11,1,68,69,35,1,72,1,37,25,76,77,39,1,16,81,41,1,28,85,43,87,88,1,45,91,92,31,47,95... |
//
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2022
//
// 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)
//
#include "td/telegram/logevent/LogEventHelper.h"
#include "t... |
Name: zel_endz.asm
Type: file
Size: 25
Last-Modified: '2016-05-13T04:27:09Z'
SHA-1: E758FE70B96333E454AD956E7FFFE3AED717464F
Description: null
|
;******************************************************************************
; MSP430x24x Demo - SVS, POR @ 2.5V Vcc
;
; Description: The SVS POR feature is used to disable normal operation that
; toggles P1.0 by xor'ing P1.0 inside of a software loop.
; In the example, when VCC is above 2.5V, the MSP43... |
// Copyright (c) 2013 Jeroen Habraken
//
// 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)
#include <hpx/components/security/certificate_authority_base.hpp>
#include <hpx/components/security/server/subordinate_cer... |
kernel: file format elf32-i386
Disassembly of section .text:
80100000 <multiboot_header>:
80100000: 02 b0 ad 1b 00 00 add 0x1bad(%eax),%dh
80100006: 00 00 add %al,(%eax)
80100008: fe 4f 52 decb 0x52(%edi)
8010000b: e4 .byte 0xe4
8010000c <entry>:
# E... |
#!/usr/local/bin/zasm -o original/
;***********************************
;* Z80 Assembler program *
;* Thomas Scherrer *
;* scherrer@hotmail.com *
;* 4/9 97 *
;***********************************
#target rom
#data ram,$8000
; .ORG $8000 ... |
; A000537: Sum of first n cubes; or n-th triangular number squared.
; 0,1,9,36,100,225,441,784,1296,2025,3025,4356,6084,8281,11025,14400,18496,23409,29241,36100,44100,53361,64009,76176,90000,105625,123201,142884,164836,189225,216225,246016,278784,314721,354025,396900,443556,494209,549081,608400,672400,741321,815409,894... |
PAGE ,132
TITLE IOCTL - IOCTL system call
NAME IOCTL
;** IOCTL system call.
;
; $IOCTL
;
; Summary of DOS IOCTL support on NT:
;
; 0 IOCTL_GET_DEVICE_INFO Supported Truely
; 1 IOCTL_SET_DEVICE_INFO Supported Truely
; 2 IOCTL_READ_HANDLE Supported Truely
; 3 IOCTL_WRITE_HANDLE Supported True... |
include ksamd64.inc
EXTERNDEF ?Te@rdtable@CryptoPP@@3PA_KA:FAR
EXTERNDEF ?g_cacheLineSize@CryptoPP@@3IA:FAR
EXTERNDEF ?SHA256_K@CryptoPP@@3QBIB:FAR
.CODE
ALIGN 8
Baseline_Add PROC
lea rdx, [rdx+8*rcx]
lea r8, [r8+8*rcx]
lea r9, [r9+8*rcx]
neg rcx ; rcx is negative index
jz $1@Baseline_Add
mov rax... |
; int ba_stack_push(ba_stack_t *s, int c)
SECTION code_clib
SECTION code_adt_ba_stack
PUBLIC ba_stack_push
EXTERN b_array_append
defc ba_stack_push = b_array_append
|
;
; Plotting in tilemap mode
;
IF FORzxn
SECTION code_graphics
PUBLIC xor_MODE64
xor_MODE64:
defc NEEDxor = 1
INCLUDE "pixel_MODE64.inc"
ENDIF
|
_schedulingTest10: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
int executeForever(int timeToSleep,char* debugString);
int executeTimes(int timeToSleep,int numberOfLoops,int isDetach,char* debugString);
int executePriority(int thePriority,long long times,char* debugString);
int main(i... |
; A054477: A Pellian-related sequence.
; 1,13,64,307,1471,7048,33769,161797,775216,3714283,17796199,85266712,408537361,1957420093,9378563104,44935395427,215298414031,1031556674728,4942484959609,23680868123317,113461855656976,543628410161563,2604680195150839,12479772565592632,59794182632812321,286491140598468973,1372661... |
;;
;; Copyright (c) 2021-2022, 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... |
#include <cmath>
#include <iomanip>
#include <limits>
#include <iostream>
#include <cstdlib>
using namespace std;
bool almost_equal(float x, float y, int ulp) {
return std::fabs(x-y) <= std::numeric_limits<float>::epsilon() * std::fabs(x+y) * ulp || std::fabs(x-y) < std::numeric_limits<float>::min();
}
void test_... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r8
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x1e20d, %rsi
lea addresses_A_ht+0x1d798, %rdi
nop
nop
nop
xor %r8, %r8
mov $10, %rcx
rep movsb
nop
nop
nop
nop
nop
add $3160, %rdi
lea addresses_A_ht+0x1ca48, %rsi
lea add... |
; $Id: deps.asm $
;; @file
; Solaris kernel module dependency
;
;
; Copyright (C) 2012-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 terms of the GNU
... |
; Classic Memory map and section setup
;
; This layout suits all the classic machines. Memory placement is
; affected by:
;
; CRT_MODEL: RAM/ROM configuration
; CRT_ORG_CODE: Where code starts executing from
; CRT_ORG_BSS: Where uninitialised global variables are placed
; CRT_ORG_GRAPHICS: Where graphics routines + v... |
map_header Route7Gate, ROUTE_7_GATE, GATE, 0
end_map_header
|
// Copyright (c) 2013 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "xwalk/runtime/browser/xwalk_runner.h"
#include <string>
#include <vector>
#include "base/command_line.h"
#include "base/logging.h"
#include "c... |
; Copyright (c) 2004 - 2012, 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 ... |
BITS 32
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
; convert 1 to a double precision float and store in xmm0
mov ecx, 1
cvtsi2ss xmm0, ecx
;TEST_BEGIN_RECORDING
; load 1.5 (in double precision float form)
lea ecx, [esp-4]
mov DWORD [ecx], 0x3fc00000
addss xmm0, [ecx]
mov ecx, [ecx... |
//////////////////////////////////////////////////////////////////////////////
/// 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
/// ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x7147, %r14
clflush (%r14)
nop
nop
add %r13, %r13
mov $0x6162636465666768, %rax
movq %rax, %xmm5
movups %xmm5, (%r14)
cmp $46817, %r8
lea addresses_UC_ht+0x1ce02, %rdx... |
//------------------------------------------------------------------------------
// File: Schedule.cpp
//
// Desc: DirectShow base classes.
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------------------------
#include <streams.h>
// DbgLog ... |
; A053807: a(n) = Sum_{k=1..n, n mod k = 1} k^2.
; 0,0,4,9,20,25,49,49,84,90,129,121,209,169,249,259,340,289,454,361,545,499,609,529,849,650,849,819,1049,841,1299,961,1364,1219,1449,1299,1910,1369,1809,1699,2209,1681,2499,1849,2561,2365,2649,2209,3409,2450,3254,2899,3569,2809,4099,3171,4249,3619,4209,3481,5459,3721,480... |
;modified version of Program 8.1: Linear search of an integer array
;in this program, input is assumed to be given in a sorted manner (ascending order)
global _start
extern ExitProcess
%include "lib.h"
MAX_SIZE EQU 100
section .data
input_prompt db "Please enter input array in ascending order (negative number t... |
//Implement the function included in net.h
#include"../include/Net.h"
namespace liu
{
//Activation function
cv::Mat Net::activationFunction(cv::Mat &x, std::string func_type)
{
activation_function = func_type;
cv::Mat fx;
if (func_type == "sigmoid")
{
fx = sigmoid(x);
}
if (func_type == "tanh")
{
... |
; A162720: A014499 represented in binary.
; Submitted by Christian Krause
; 1,10,10,11,11,11,10,11,100,100,101,11,11,100,101,100,101,101,11,100,11,101,100,100,11,100,101,101,101,100,111,11,11,100,100,101,101,100,101,101,101,101,111,11,100,101,101,111,101,101,101,111,101,111,10,100,100,101,100,100,101,100,101,110,101,11... |
/* Copyright 2013 10gen Inc.
*
* 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 in writi... |
; ASM source file created by SevenuP v1.21
; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain
;GRAPHIC DATA:
;Pixel Size: ( 24, 32)
;Char Size: ( 3, 4)
;Frames: 6
;Sort Priorities: X char, Char line, Y char, Frame number
;Data Outputted: Gfx
;Interleave: Sprite
;M... |
/*
Copyright (c) 2010 Aldo J. Nunez
Licensed under the Apache License, Version 2.0.
See the LICENSE text file for details.
*/
#include "Common.h"
#include "DataElement.h"
bool FindDeclaration( const wchar_t* namePath, MagoEE::ITypeEnv* typeEnv, IScope* topScope, MagoEE::Declaration*& outDecl );
... |
#ifndef CMD_HPP_INCLUDED
#define CMD_HPP_INCLUDED
#include <array>
#include <charconv>
#include <optional>
#include <span>
#include <string>
#include <string_view>
#include <tuple>
#include <unordered_map>
#include <utility>
#include <vector>
namespace cmd
{
using std::size_t;
namespace det... |
include xlibproc.inc
include Wintab.inc
PROC_TEMPLATE WTMgrDefContext, 2, Wintab, -, 122
|
; A092770: Cubes of A006450: a(n) = prime(prime(n))^3.
; 27,125,1331,4913,29791,68921,205379,300763,571787,1295029,2048383,3869893,5735339,6967871,9393931,13997521,21253933,22665187,36264691,43986977,49430863,64481201,80062991,97972181,131872229,163667323,178453547,202262003,214921799,234885113,356400829,403583419,4618... |
[extern isr_handler] ; c function
[extern irq_handler]
; isr code
isr_common_stub:
; save CPU state
pusha
mov ax, ds
push eax
mov ax, 0x10
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
; call c handler
call isr_handler
; restore CPU state
pop eax
mov ds, ax
... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.16.27026.1
TITLE z:\sources\lunor\repos\rougemeilland\palmtree.math.core.sint\palmtree.math.core.sint\pmc_memory.c
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB OLDNAMES
EXTRN __imp__HeapDestroy@4:PROC
EXTRN __imp__HeapAlloc@12:PROC
EX... |
// 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... |
INCLUDE "hardware.inc"
INCLUDE "header.inc"
SECTION "var",BSS
repeat_loop: DS 1
SECTION "Main",HOME
;--------------------------------------------------------------------------
;- Main() -
;------------------------------------------------------... |
SaffronPokecenterScript:
call Serial_TryEstablishingExternallyClockedConnection
jp EnableAutoTextBoxDrawing
SaffronPokecenterTextPointers:
dw SaffronHealNurseText
dw SaffronPokecenterText2
dw SaffronPokecenterText3
dw SaffronTradeNurseText
dw SaffronPokecenterText5
SaffronHealNurseText:
TX_POKECENTER_NURSE
S... |
.target "6502"
EEPROM .equ $2000
.org $2000
reset:
lda EEPROM
lda EEPROM + 32
lda EEPROM + 33
lda EEPROM + 34
jmp reset
// .org $fffc
// .word reset
// .word $0000
|
;
; Spectravideo SVI specific routines
; by Stefano Bodrato
; MSX emulation layer
;
; FILVRM
;
;
; $Id: svi_filvrm.asm,v 1.4 2016-06-16 19:30:25 dom Exp $
;
SECTION code_clib
PUBLIC FILVRM
INCLUDE "target/svi/def/svi.def"
FILVRM:
push af
call $373C ;SETWRT
loop: pop af
IF VDP_DATA < 0
ld (VDP... |
//Implement Code to Check Whether a Number is Neon or Not (Issue #21)
//https://github.com/sukritishah15/DS-Algo-Point/issues/21
//Contributed by @tauseefmohammed2 : https://github.com/tauseefmohammed2
#include<iostream>
using namespace std;
//Function to Check Neon Numbers
bool NeonNumber(int num){
int squareNum... |
/*
Copyright 2020 Esri
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 in writing, software distributed
unde... |
; A096111: If n = 2^k - 1, then a(n) = k+1, otherwise a(n) = (A000523(n)+1)*a(A053645(n)).
; Submitted by Jon Maiga
; 1,2,2,3,3,6,6,4,4,8,8,12,12,24,24,5,5,10,10,15,15,30,30,20,20,40,40,60,60,120,120,6,6,12,12,18,18,36,36,24,24,48,48,72,72,144,144,30,30,60,60,90,90,180,180,120,120,240,240,360,360,720,720,7,7,14,14,21,2... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2011-2016 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... |
; A166250: a(n) = n-1 plus the largest proper divisor of n.
; 2,3,5,5,8,7,11,11,14,11,17,13,20,19,23,17,26,19,29,27,32,23,35,29,38,35,41,29,44,31,47,43,50,41,53,37,56,51,59,41,62,43,65,59,68,47,71,55,74,67,77,53,80,65,83,75,86,59,89,61,92,83,95,77,98,67,101,91,104,71,107,73,110,99,113,87,116,79,119,107,122,83,125,101,1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.