text stringlengths 1 1.05M |
|---|
#include <assert.h>
#include <getopt.h>
#include <limits.h>
#include <pthread.h>
#include <signal.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/time.h>
#include <time.h>
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <sched.h>
#include <inttypes.h>
#include <sys/time.h... |
###############################################################################
# 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... |
#include "config.hpp"
#include "quality.hpp"
#include "include/cef_version.h"
#include <Poco/Net/HTTPServer.h>
const char* BrowserviceVersion = "0.9.1.0";
namespace {
#define CONF_OPT_TYPE(var) \
remove_const<remove_reference<decltype(declval<Config>().*(&Config::var))>::type>::type
template <typename T>
str... |
// --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>syncfs(fd) -> str
Invokes the syscall syncfs.
See 'man 2 syncfs' for more information.
Arguments:
fd(int): fd
Returns:
int
</%docstring>
<%page args="fd=0"/>
<%
abi = pwnlib.abi.ABI.syscall(... |
; A170391: Number of reduced words of length n in Coxeter group on 46 generators S_i with relations (S_i)^2 = (S_i S_j)^43 = I.
; Submitted by Jon Maiga
; 1,46,2070,93150,4191750,188628750,8488293750,381973218750,17188794843750,773495767968750,34807309558593750,1566328930136718750,70484801856152343750,31718160835268554... |
; A073612: Group the positive integers as (1, 2), (3, 4, 5), (6, 7, 8, 9, 10), (11, 12, 13, 14, 15, 16, 17), ... the n-th group containing prime(n) elements. Except the first, all groups contain an odd number of elements and hence have a middle term. Sequence gives the middle terms starting from group 2.
; Submitted by... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r15
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x17cb8, %r13
nop
add $49132, %r9
mov $0x6162636465666768, %r15
movq %r15, (%r13)
nop
nop
nop
nop
add $3056, %r13
lea addresses_D_ht+0x155f4, %rsi
lea addresses_WT_ht+0x12d34, %... |
// Copyright 2020 the V8 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.
#include <memory>
#include "include/cppgc/allocation.h"
#include "include/cppgc/explicit-management.h"
#include "include/cppgc/garbage-collected.h"
#in... |
//===- Value.cpp - MLIR Value Classes -------------------------------------===//
//
// Part of the MLIR Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
%ifdef CONFIG
{
"RegData": {
"MM0": "0x000000000003FFFC",
"MM1": "0x000000000003FFFC"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
mov rdx, 0xe0000000
mov rax, 0x414243440000FFFF
mov [rdx + 8 * 0], rax
mov rax, 0x5152535400007FFF
mov [rdx + 8 * 1], rax
mov rax, 0x6162636400000004
mov [r... |
segment .data
scfmt: dq "%s",0
palin: dq "the string is a Palindrome",10 , 0
nonPalin: dq "the string is not a pallindrome" , 10, 0
prr: dq "",10,0
fmt: dq "%lld" , 10 ,0
l: dq 0
r: dq 0
strlen: dq 0
cnt: dq 0
segment .bss
str: resb 100
proccon: resq 1
parameter: resq 1
print_con: resq 1
segment .text
gl... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
push %r14
push %rbp
push %rcx
push %rdi
push %rsi
// Store
lea addresses_PSE+0x17ddc, %r11
nop
nop
nop
add $19086, %rdi
movb $0x51, (%r11)
nop
nop
nop
dec %rdi
// Faulty Load
lea addresses_PSE+0x17ddc, %rcx
... |
; A004068: Number of atoms in a decahedron with n shells.
; 0,1,7,23,54,105,181,287,428,609,835,1111,1442,1833,2289,2815,3416,4097,4863,5719,6670,7721,8877,10143,11524,13025,14651,16407,18298,20329,22505,24831,27312,29953,32759,35735,38886,42217,45733,49439,53340,57441,61747,66263,70994,75945,81121,86527,92168,98049,10... |
; A336627: Coordination sequence for the Manhattan lattice.
; 1,2,4,8,11,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200,204,208,212,216,220,224
mov $2,$0
add $2,1
mov $8,$0
lpb $2
mov $0,$8
sub $... |
; A053834: Sum of digits of n written in base 14.
; 0,1,2,3,4,5,6,7,8,9,10,11,12,13,1,2,3,4,5,6,7,8,9,10,11,12,13,14,2,3,4,5,6,7,8,9,10,11,12,13,14,15,3,4,5,6,7,8,9,10,11,12,13,14,15,16,4,5,6,7,8,9,10,11,12,13,14,15,16,17,5,6,7,8,9,10,11,12,13,14,15,16,17,18
lpb $0
dif $0,14
sub $0,1
add $1,1
lpe
mov $0,$1
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x17304, %rdi
clflush (%rdi)
nop
nop
cmp %r13, %r13
mov $0x6162636465666768, %r10
movq %r10, %xmm5
vmovups %ymm5, (%rdi)
nop
add %rbx, %rbx
lea addresses_normal_ht+0x... |
copyright zengfr site:http://github.com/zengfr/romhack
0006C8 add.w D1, D0
0006CA move.w D0, $80010c.l
0006D0 move.l ($6c4,A5), ($85c,A5)
0006D6 move.w ($864,A5), D0
0006DA add.w D1, D0
0006DC move.w D0, $800110.l
0006E2 move.l ($744,A5), ($864,A5)
;--------
0AAACE move.w D0, ($2,A0)
0AAAD... |
_cs550_user: file format elf32-i386
Disassembly of section .text:
00000000 <test_date>:
#include "stat.h"
#include "user.h"
#include "date.h"
void test_date(){
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 57 push %edi
4: 56 ... |
//
// Created by Chengke Wong on 2020/5/9.
//
#include "file_descriptor.h"
#include <unistd.h>
#include "util/easylogging++.h"
#include "util/exception.h"
FileDescriptor::FileDescriptor(int fd) :
fd_(fd) {}
FileDescriptor::~FileDescriptor() {
close();
}
FileDescriptor::FileDescriptor(FileDescriptor &&... |
page ,132
title 87sqrt - square root - SQRT
;***
;87sqrt.asm - common square root support (80x87/emulator version)
;
; Copyright (c) 1984-2001, Microsoft Corporation. All rights reserved.
;
;Purpose:
; Common support for the sqrt function (80x87/emulator version)
;
;Revision History:
; 07-04-84 GFW init... |
; A142932: Primes congruent to 15 mod 64.
; Submitted by Jon Maiga
; 79,271,463,719,911,1039,1103,1231,1423,1487,1871,1999,2063,2383,2447,2767,3023,3343,3407,3727,3919,4111,4751,4943,5519,5647,5711,5839,5903,6287,6607,6863,6991,7247,7759,7823,7951,8527,8719,8783,9103,9551,9679,9743,9871,10639,10831,11087,11279,11471,12... |
/****************************************************************************************
* @author: kzvd4729 created: Dec/01/2017 14:57
* solution_verdict: Wrong answer on test 5 language: GNU C++14
* run... |
#include "table.h"
#include "ball.h"
#include <iostream>
void StageOneTable::render(QPainter &painter, const QVector2D& offset) {
// our table colour
painter.setBrush(m_brush);
// draw table
painter.drawRect(offset.x(), offset.y(), this->getWidth(), this->getHeight());
}
void StageTwoTable::render(QPa... |
; A266250: Total number of ON (black) cells after n iterations of the "Rule 9" elementary cellular automaton starting with a single ON (black) cell.
; 1,1,3,5,9,14,18,27,31,44,48,65,69,90,94,119,123,152,156,189,193,230,234,275,279,324,328,377,381,434,438,495,499,560,564,629,633,702,706,779,783,860,864,945,949,1034,1038... |
; A144603: Christoffel word of slope 5/11.
; 0,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,0,1,0,0,1,0,0
mod $0,16
sub $0,1
mod $0,3
mov $1,$0
div $1,2
|
// converted from BASIC from the Commodore 64 Programmer's reference guide page 198
.pc = $0801 "Basic Upstart Program"
:BasicUpstart($0810)
.pc = $0810 "Main Program"
.macro small_delay() {
.for (var i = 0; i < 3; i++) {
ldy #0
!l:
iny
bne !l-
}
}
// clear sid state
lda #0
ldx #0
!l:
sta $d400, x
inx
cpx... |
dnl SPARC mpn_rshift -- Shift a number right.
dnl Copyright 1995, 1996, 2000 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:
dnl
dnl * the GNU Lesser General Public ... |
; A084300: a(n) = phi(n) mod 6.
; 1,1,2,2,4,2,0,4,0,4,4,4,0,0,2,2,4,0,0,2,0,4,4,2,2,0,0,0,4,2,0,4,2,4,0,0,0,0,0,4,4,0,0,2,0,4,4,4,0,2,2,0,4,0,4,0,0,4,4,4,0,0,0,2,0,2,0,2,2,0,4,0,0,0,4,0,0,0,0,2,0,4,4,0,4,0,2,4,4,0,0,2,0,4,0,2,0,0,0,4
seq $0,10 ; Euler totient function phi(n): count numbers <= n and prime to n.
mod $0,... |
;----------------------------------------------------------;
; BOS kernel Christoffer Bubach, 2012-2015. ;
;----------------------------------------------------------;
; ;
; FAT12 driver. ;
; ... |
_cat: 文件格式 elf32-i386
Disassembly of section .text:
00000000 <main>:
}
}
int
main(int argc, char *argv[])
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: ff 71 fc pushl -0x4(%ecx)
a: 55 push %ebp
b: 89 e5 ... |
_main:
;DCMOTORDIRECTION.c,1 :: void main() {
;DCMOTORDIRECTION.c,2 :: TRISB=0;
CLRF TRISB+0
;DCMOTORDIRECTION.c,3 :: TRISC=1;
MOVLW 1
MOVWF TRISC+0
;DCMOTORDIRECTION.c,4 :: PORTB=0;
CLRF PORTB+0
;DCMOTORDIRECTION.c,5 :: while(1)
L_main0:
;DCMOTORDIRECTION.c,7 :: if(... |
-- HUMAN RESOURCE MACHINE PROGRAM --
-- 02-Busy-Mail-Room - SIZE 3/3 - SPEED 30/25 --
a:
INBOX
OUTBOX
JUMP a
|
// Copyright (c) 2003 Daniel Wallin and Arvid Norberg
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify,... |
double fb_fitInto(double v, double upper) {
if (v > upper) {
return upper;
} else if (v < 0.) {
return 0.;
} else {
return v;
}
}
|
; A173318: Partial sums of A005811.
; 0,1,3,4,6,9,11,12,14,17,21,24,26,29,31,32,34,37,41,44,48,53,57,60,62,65,69,72,74,77,79,80,82,85,89,92,96,101,105,108,112,117,123,128,132,137,141,144,146,149,153,156,160,165,169,172,174,177,181,184,186,189,191,192,194,197,201,204,208,213,217,220,224,229,235,240,244,249,253,256,260,2... |
/*=========================================================================
*
* Copyright NumFOCUS
*
* 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
*
* https://www.apache.o... |
#include "LedManager.hpp"
CRGB LedManager::leds[LED_NUM_LEDS];
void LedManager::setupLeds()
{
FastLED.addLeds<LED_CHIPSET, LED_PIN, LED_COLOR_ORDER>(leds, LED_NUM_LEDS);
FastLED.setBrightness(LED_BRIGHTNESS);
LedManager::debugDance();
}
void LedManager::setRGB(int R, int G, int B, unsigned int ledNum)
{
... |
;
; Fast background save
;
; Generic version (just a bit slow)
;
; $Id: bksave.asm,v 1.7 2016-07-02 09:01:35 dom Exp $
;
SECTION code_clib
PUBLIC bksave
PUBLIC _bksave
EXTERN pixeladdress
.bksave
._bksave
push ix
ld hl,4
add hl,sp
ld e,(hl)
inc hl
... |
SECTION code_stdio
PUBLIC __stdio_printf_a
EXTERN __dtoh__, __stdio_printf_float_tail
__stdio_printf_a:
; %a, %A converter called from vfprintf()
;
; enter : ix = FILE *
; hl = void *stack_param
; de = void *buffer_digits
; hl'= current output tally
; stack = bu... |
; A189151: Numbers n such that n < floor(sqrt(n)) * ceiling(sqrt(n)).
; 5,10,11,17,18,19,26,27,28,29,37,38,39,40,41,50,51,52,53,54,55,65,66,67,68,69,70,71,82,83,84,85,86,87,88,89,101,102,103,104,105,106,107,108,109,122,123,124,125,126,127,128,129,130,131,145,146,147,148,149,150,151,152,153,154,155,170,171,172,173,174,1... |
; unsigned long UNSTUFF_BITS(unsigned char *resp, unsigned int start, unsigned int size)
; CALLER linkage for function pointers
SECTION code_clib
PUBLIC extract_bits
PUBLIC _extract_bits
EXTERN extract_bits_callee
EXTERN ASMDISP_extract_bits_callee
.extract_bits
._extract_bits
pop af
pop bc
pop de
pop h... |
; size_t obstack_object_size(struct obstack *ob)
SECTION code_clib
SECTION code_alloc_obstack
PUBLIC _obstack_object_size
EXTERN asm_obstack_object_size
_obstack_object_size:
pop af
pop hl
push hl
push af
jp asm_obstack_object_size
|
; void *p_forward_list_remove_after(void *list_item)
SECTION code_adt_p_forward_list
PUBLIC p_forward_list_remove_after
p_forward_list_remove_after:
INCLUDE "adt/p_forward_list/z80/asm_p_forward_list_remove_after.asm"
|
//
// Copyright (c) 2012, ARM Limited. All rights reserved.
//
// This program and the accompanying materials
// are licensed and made available under the terms and conditions of the BSD License
// which accompanies this distribution. The full text of the license may be found at
// http://opensource.org/licenses/... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r15
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x14610, %rsi
lea addresses_WT_ht+0x18a7e, %rdi
nop
add %rbp, %rbp
mov $103, %rcx
rep movsq
nop
nop
nop
nop
nop
dec %r11
lea addresses_D_ht+0x3bce, %rbp
cmp %r13, %r13
mov (%rb... |
; void PSGSFXStop(void)
SECTION code_clib
SECTION code_PSGlib
PUBLIC PSGSFXStop
EXTERN asm_PSGlib_SFXStop
defc PSGSFXStop = asm_PSGlib_SFXStop
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _PSGSFXStop
defc _PSGSFXStop = PSGSFXStop
ENDIF
|
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r8
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0xf34d, %rsi
lea addresses_WT_ht+0x6a8b, %rdi
clflush (%rsi)
nop
nop
nop
nop
add $23428, %r8
mov $100, %rcx
rep movsq
nop
nop
nop
nop
sub %r13, %r13
lea addresses_D_ht+0xa54d, %r... |
;
; OSCA C Library
;
; ANSI Video handling
;
; Scrollup
;
; Stefano Bodrato - June 2012
;
; $Id: f_ansi_scrollup.asm,v 1.3 2016/06/12 16:06:43 dom Exp $
;
SECTION code_clib
PUBLIC ansi_SCROLLUP
INCLUDE "flos.def"
.ansi_SCROLLUP
jp kjt_scroll_up
|
.MODEL SMALL
.CODE
org 100h
START:
MOV CX, 5
L1:
PUSH CX
L2:
MOV AH,2H
MOV DL,2AH
INT 21H
LOOP L2
MOV DL,0Ah
INT 21H
MOV DL,0Dh
INT 21H
POP CX
LOOP L1
MOV CX,5
L3:
PUSH CX
L4:
MOV AH,2H
MOV DL,20H
INT 21H
LOOP L4
MOV DL,2AH
INT 21... |
##define BASE_ADDR_0 0x00000000 // (core 0)
##define BASE_ADDR_1 0x02000000 // (core 1)
##define BASE_ADDR_2 0x04000000 // (core 2)
##define BASE_ADDR_3 0x06000000 // (core 3)
#
#// thread 0 on core 0
#int main() {
#
# int *localArr = (int *) BASE_ADDR_0;
# int *remoteArr1 = (int *) BASE_ADDR_1;
# int *remoteArr2 = (... |
;**************************************************************************
; FILE: C:\PIC\freq_counter\counter1.asm *
; CONTENTS: Simple low-cost digital frequency meter using a PIC 16F628 *
; AUTHOR: Wolfgang Buescher, DL4YHF *
; (ba... |
; A262869: Number of squarefree numbers appearing among the smaller parts of the partitions of n into two parts.
; 0,1,1,2,2,3,3,3,3,4,4,5,5,6,6,6,6,6,6,7,7,8,8,8,8,9,9,10,10,11,11,11,11,12,12,12,12,13,13,13,13,14,14,15,15,16,16,16,16,16,16,17,17,17,17,17,17,18,18,19,19,20,20,20,20,21,21,22,22,23,23,23,23,24,24,25,25,2... |
/*
* BSD 3-Clause License
*
* Copyright (c) 2020, DebugBSD
* 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,... |
#include <iostream>
#include <cmath>
#include "Filter.h"
using namespace std;
int main (int argc, const char* argv[])
{
int sampleRate = 48000;
Filter filter(sampleRate);
ComplexVector signalIn;
ComplexVector signalOut;
ComplexVector response;
// responseSize is better to be a multiplication... |
// Mapper 7: AxROM
scope Mapper7: {
Init:
addi sp, 8
sw ra, -8(sp)
// 32K
jal TLB.AllocateVaddr
lui a0, 0x1'0000 >> 16 // align 64K to leave a 32k guard page unmapped
ls_gp(sw a0, mapper7_prgrom_vaddr)
ls_gp(sb a1, mapper7_prgrom_tlb_index)
// 0x8000-0x1'0000
addi t0, a0, -0x8000
la_gp(t1, Write)
... |
/*
* Copyright (c) 2021 Huawei Device 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 or a... |
; A094875: a(n)=1 if floor(Pi*10^n) is prime, otherwise a(n)=0.
; 1,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
mov $1,1
mov $4,4
mov $5,$0
lpb $0,1
sub $3,4
sub... |
#include "pch.h"
#include <wrl/wrappers/corewrappers.h>
#include <cassert>
#include <ktmw32.h>
#pragma comment(lib, "ktmw32.lib")
struct RegistryKeyTraits
{
using Type = HKEY;
static bool Close(Type h) noexcept
{
return RegCloseKey(h) == ERROR_SUCCESS;
}
static Type GetInvalidValue() noex... |
;code by unic0rn/Asm Force
org 100h
segment .code
mov al,13h
int 10h
xor ax,ax
mov dx,03C8h
out dx,al
inc dx
xor bx,bx
pal: mov al,bl
shr al,2
mov cl,bl
and cl,0Fh
cmp cl,0Fh
jne skip
out dx,al
out dx,al
jmp cont
skip... |
#include <bits/stdc++.h>
using namespace std;
void display(int ,int);
int main()
{
int x;
float y;
printf("enter values for x and y\n");
scanf("%d%f",&x,&y);
display(x,y);
reutrn 0;
}
void display(int a,int b)
{
printf("%d %d\n",a,b);
} |
/*=============================================================================
Copyright (c) 2001-2011 Joel de Guzman
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)
========================================... |
; void tshc_scroll_wc_up(struct r_Rect8 *r, uchar rows, uchar attr)
SECTION code_clib
SECTION code_arch
PUBLIC _tshc_scroll_wc_up_callee
PUBLIC l0_tshc_scroll_wc_up_callee
EXTERN asm0_tshc_scroll_wc_up
_tshc_scroll_wc_up_callee:
pop hl
pop bc
ex (sp),hl
ld e,l
ld l,h
l0_tshc_scroll_wc_up_callee... |
#include <eosio/eosio.hpp>
#include <eosio/multi_index.hpp>
#include <eosio/singleton.hpp>
#include "../../contract-shared-headers/dacdirectory_shared.hpp"
#include "../../contract-shared-headers/eosdactokens_shared.hpp"
using namespace eosio;
using namespace eosdac;
using namespace std;
CONTRACT stakevote : public ... |
.LC0:
.string "Guess the age."
.LC1:
.string "%d"
.LC2:
.string "Age is lower"
.LC3:
.string "Age is higher"
.LC4:
.string "YOU GOT IT"
main:
push rbx
sub rsp, 16
call rand
mov ebx, eax
cdqe
imul rax, rax, 137438953... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <vpu/middleend/pass_manager.hpp>
#include <vpu/stages/stub_stage.hpp>
#include <vpu/model/data_contents/priorbox_contents.hpp>
#include <precision_utils.h>
#include <cmath>
#include <algorithm>
#include <memory>
#includ... |
###############################################################################
# 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... |
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===---------------------------------... |
/*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkRRect.h"
#include "SkMatrix.h"
///////////////////////////////////////////////////////////////////////////////
void SkRRect::setRectXY(const SkRect& rect, SkScal... |
; A164487: Number of binary strings of length n with no substrings equal to 0001, 1010, or 1100.
; 1,2,4,8,13,20,30,44,64,93,135,196,285,415,605,883,1290,1886,2759,4038,5912,8658,12682,18579,27221,39886,58447,85649,125515,183941,269568,395060,578977,848520,1243554,1822504,2670996,3914521,5736995,8407960,12322449,180594... |
_cat: file format elf32-i386
Disassembly of section .text:
00001000 <main>:
}
}
int
main(int argc, char *argv[])
{
1000: 55 push %ebp
1001: 89 e5 mov %esp,%ebp
1003: 57 push %edi
1004: 56 push %esi
int fd, i;
... |
(SimpleFunction.test)
D=0
@SP
A=M
M=D
@SP
M=M+1
D=0
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@0
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@1
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
M=M-1
A=M
D=M
@SP
M=M-1
A=M
D=D+M
@SP
A=M
M=D
@SP
M=M+1
@SP
M=M-1
A=M
M=!M
@SP
M=M+1
@ARG
D=M
@0
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
M=M-1
A=M
D=M
@SP
M=M... |
#include <vector>
#include <string>
class Solution
{
public:
std::vector<std::string> fullJustify(std::vector<std::string> &words, int maxWidth)
{
int cur_pos = 0;
std::vector<std::string> res;
while (cur_pos < words.size())
{
std::string temp;
temp.rese... |
public mainChat
extrn FirstNameData:byte
extrn SecondNameData:byte
Displaychar macro str
mov ah,2
mov dl,str
int 21h
endm Displaychar
set MACRO ; work on dx ; L-> X H->Y
mov bh,0h
mov ah,2
int 10h
ENDM set
get MACRO
mov ah,3h
mov bh,0h
int 10h
ENDM get
include MACR.IN... |
; int islower_fastcall(int c)
SECTION code_clib
SECTION code_ctype
PUBLIC _islower_fastcall
EXTERN asm_islower, error_zc
_islower_fastcall:
inc h
dec h
jp nz, error_zc
ld a,l
call asm_islower
ld l,h
ret c
inc l
ret
|
// Copyright 2020 Shulman Egor
#include <mpi.h>
#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include "../../../modules/task_3/shulman_e_global_search_for_Strongin/global_search_for_Strongin.h"
double SequentialPart(const double x1, const double x2, double (*fcnPtr)(double),
... |
#include <stdio.h>
#include "Wire.h"
#include <stdlib.h>
#include <twi.h>
TwoWire Wire;
TwoWire::TwoWire() {}
void TwoWire::begin(void)
{
rxBufferIndex = 0;
rxBufferLength = 0;
txBufferIndex = 0;
txBufferLength = 0;
twi_init();
}
void TwoWire::begin(uint8_t address)
{
twi_setAddress(address);
//twi_attachS... |
.thumb
.org 0x0
.equ Item_Table, Growth_Options+4
.equ HolyBloodTable, Item_Table+4
.equ HolyBloodCharTable, HolyBloodTable+4
@r0=battle struct or char data ptr, r1 = growth so far (from char data), r2=index in stat booster pointer of growth
push {r4-r7,r14}
mov r7,r8
push {r7}
mov r4,r0
mov r5,r1 @growth
mov r8... |
; A209505: Half the number of (n+1) X 3 0..2 arrays with every 2 X 2 subblock having two or four distinct clockwise edge differences.
; 27,123,561,2559,11673,53247,242889,1107951,5053977,23053983,105161961,479701839,2188185273,9981522687,45531242889,207693169071,947403359577,4321630459743,19713345579561,89923466978319,... |
; A157201: Numbers k such that 66*k + 1 is prime.
; Submitted by Jon Maiga
; 1,3,5,6,7,10,11,13,15,17,20,22,27,32,33,35,36,41,45,46,48,50,52,53,55,56,61,62,63,66,67,70,75,80,81,82,83,87,91,92,95,96,98,102,106,108,112,113,115,117,118,122,126,130,131,132,133,137,138,140,143,148,150,151
mov $2,$0
add $2,6
pow $2,2
lpb $2... |
; void sp1_IterateUpdateRect(struct sp1_Rect *r, void *hook)
; CALLER linkage for function pointers
SECTION code_clib
SECTION code_temp_sp1
PUBLIC sp1_IterateUpdateRect
EXTERN asm0_sp1_IterateUpdateRect
sp1_IterateUpdateRect:
pop bc
pop ix
pop hl
push hl
push hl
push bc
jp asm0_sp1_Iterate... |
addi r1 r0 65
sw r1 80(r0)
addi r2 r0 80
lw r2 0(r2)
tty r2
halt
# Prints "A"
|
; A055225: a(n) = Sum_{k divides n} (n/k)^k.
; 1,3,4,9,6,24,8,41,37,68,12,258,14,192,384,593,18,1557,20,2794,2552,2192,24,16730,3151,8388,20440,35394,30,116474,32,135457,178512,131396,94968,1111035,38,524688,1596560,2530986,42,7280934,44,8403778,16364502,8389184,48,78568370,823593,43420733,129145128,134247018,54,532253... |
; A276952: Partial sums of A276950.
; 0,1,1,2,3,4,4,5,5,6,7,8,8,9,9,10,11,12,13,14,15,16,17,18,18,19,19,20,21,22,22,23,23,24,25,26,26,27,27,28,29,30,31,32,33,34,35,36,36,37,37,38,39,40,40,41,41,42,43,44,44,45,45,46,47,48,49,50,51,52,53,54,54,55,55,56,57,58,58,59,59,60,61,62,62,63,63,64,65,66,67,68,69,70,71,72,73,74,75,... |
; A077043: "Three-quarter squares": a(n) = n^2 - A002620(n).
; 0,1,3,7,12,19,27,37,48,61,75,91,108,127,147,169,192,217,243,271,300,331,363,397,432,469,507,547,588,631,675,721,768,817,867,919,972,1027,1083,1141,1200,1261,1323,1387,1452,1519,1587,1657,1728,1801,1875,1951,2028,2107,2187,2269,2352,2437,2523,2611,2700,2791,... |
dnl SPARC v9 mpn_rsblsh2_n for T1/T2.
dnl Copyright 2010 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:
dnl
dnl * the GNU Lesser General Public License as published... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r14
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x1ed2b, %rsi
lea addresses_D_ht+0x1723e, %rdi
nop
nop
nop
nop
inc %r12
mov $9, %rcx
rep movsq
nop
nop
and %rax, %rax
lea addresses_WC_ht+0x1423e, %r11
nop
and $27345, %r14
mov... |
;===============================================================================
; Copyright 2014-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") co... |
;
; This file is automatically generated
;
; Do not edit!!!
;
; djm 12/2/2000
;
; ZSock Lib function: device_online
XLIB deviceonline
LIB no_zsock
INCLUDE "#packages.def"
INCLUDE "#zsock.def"
.deviceonline
call_pkg(tcp_online)
ret nc
; We failed..are we installed?
cp rc_pnf
scf ;signal error
ret nz ;In... |
// Copyright 2010-2018 Google LLC
// 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... |
; A267985: Numbers congruent to {7, 13} mod 30.
; 7,13,37,43,67,73,97,103,127,133,157,163,187,193,217,223,247,253,277,283,307,313,337,343,367,373,397,403,427,433,457,463,487,493,517,523,547,553,577,583,607,613,637,643,667,673,697,703,727,733,757,763,787,793,817,823,847,853,877,883,907,913,937,943,967,973,997,1003,1027,... |
DefPalMode .byte 0
dodefaults
#scroff
lda #1
sta defpalmode
jsr printtop
jsr printpal
#prints defpalmenu
#scron
ldy #0
defmainmenuloop
lda 197
cmp #key_none
beq defmainmenuloop
cmp #key_1
beq defcomppal
cmp #key_2
beq defrgbspal
cmp #key_3
beq de... |
; A158874: a(n) = (n + 4)*(n + 3)*(n + 2)*(n + 1)*n / 5 = 24*A000389(n+4).
; 0,24,144,504,1344,3024,6048,11088,19008,30888,48048,72072,104832,148512,205632,279072,372096,488376,632016,807576,1020096,1275120,1578720,1937520,2358720,2850120,3420144,4077864,4833024,5696064,6678144,7791168,9047808,10461528,12046608,1381816... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Geoworks 1994 -- All Rights Reserved
PROJECT: GEOS
MODULE: Hyperlink Library
FILE: pageMain.asm
AUTHOR: Cassie Hartzog, Jun 2, 1994
ROUTINES:
Name Description
---- -----------
MSG_META_ATTACH Cause ... |
; A241235: a(n) = number of times n appears in A006949.
; 3,3,1,4,1,2,1,5,1,2,1,3,1,2,1,6,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1,7,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1,5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1,8,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1,5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1,6,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1,5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1,9,1,2,1,... |
; A115607: Sum of odd divisors of n times (-1)^(n+1).
; Submitted by Simon Strandgaard
; 1,-1,4,-1,6,-4,8,-1,13,-6,12,-4,14,-8,24,-1,18,-13,20,-6,32,-12,24,-4,31,-14,40,-8,30,-24,32,-1,48,-18,48,-13,38,-20,56,-6,42,-32,44,-12,78,-24,48,-4,57,-31,72,-14,54,-40,72,-8,80,-30,60,-24,62,-32,104,-1,84,-48,68,-18,96,-48,72,-1... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r15
push %r8
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x12d50, %rbx
clflush (%rbx)
nop
nop
nop
cmp %rsi, %rsi
mov (%rbx), %di
nop
nop
nop
nop
and $35274, %rdx
lea addresses_D_ht+0x3950, %rsi
lea addresses_WT_ht+0xaab0, %rdi
nop
no... |
; A123253: Sum of 7th powers of digits of n.
; 0,1,128,2187,16384,78125,279936,823543,2097152,4782969,1,2,129,2188,16385,78126,279937,823544,2097153,4782970,128,129,256,2315,16512,78253,280064,823671,2097280,4783097,2187,2188,2315,4374,18571,80312,282123,825730,2099339,4785156,16384,16385,16512,18571,32768,94509,296320... |
; The multiboot header, must be the first file linked into the binary
[BITS 32]
[SECTION .mbhdr]
[EXTERN loadStart]
[EXTERN loadEnd]
[EXTERN bssEnd]
[EXTERN EntryPoint]
[GLOBAL MbHdr]
ALIGN 8
MbHdr:
dd 0xE85250D6 ; magic
dd 0 ; architecture
dd HdrEnd - MbHdr ; length
dd -(0xE85250D6 + 0 + (HdrEnd - M... |
// MIT License
//
// Copyright (c) 2020, The Regents of the University of California,
// through Lawrence Berkeley National Laboratory (subject to receipt of any
// required approvals from the U.S. Dept. of Energy). All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.