text stringlengths 1 1.05M |
|---|
#ifndef CHEMICALITE_MOL_STANDARDIZE_INCLUDED
#define CHEMICALITE_MOL_STANDARDIZE_INCLUDED
int chemicalite_init_mol_standardize(sqlite3 *db);
#endif
|
; ===============================================================
; Jan 2014
; ===============================================================
;
; char *_memstrcpy(void *p, char *s, size_t n)
;
; At most n chars from string s are copied to p. The terminating
; '\0' in s is not copied.
;
; ===========================... |
; ---------------------------------------------------------------------------
; Object 69 - spinning platforms and trapdoors (SBZ)
; ---------------------------------------------------------------------------
SpinPlatform:
moveq #0,d0
move.b obRoutine(a0),d0
move.w Spin_Index(pc,d0.w),d1
jmp Spin_Index(pc,d1.w... |
lda {c1}+1,y
bne !+
lda {c1},y
cmp #{c2}
bcc {la1}
!:
|
.MODEL SMALL
.STACK 100H
.DATA
PROMPT_1 DB 'Enter the binary value: $'
PROMPT_2 DB 0DH, 0AH, 'SHR by 4 bits: $'
.CODE
MAIN PROC
MOV AX, @DATA
MOV DS, AX
LEA DX, PROMPT_1
MOV AH, 9
INT 21H
XOR BL, BL
MOV CX, 8
MOV AH, 1
@INPUT:
INT 21H
CMP AL, 0DH
... |
; A265160: a(n) = 2^n + prime(n).
; Submitted by Jon Maiga
; 4,7,13,23,43,77,145,275,535,1053,2079,4133,8233,16427,32815,65589,131131,262205,524355,1048647,2097225,4194383,8388691,16777305,33554529,67108965,134217831,268435563,536871021,1073741937,2147483775,4294967427,8589934729
mov $1,2
pow $1,$0
seq $0,40 ; The pri... |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/ozone/platform/dri/chromeos/native_display_delegate_dri.h"
#include "base/bind.h"
#include "third_party/skia/include/core/SkCanvas.h"
#inclu... |
* Character Type conversion V2.01 1986 Tony Tebby QJUMP
* Apr 1988 J.R.Oakley QJUMP
*
* 2020-08-24 2.01 Moved table to own file to save space when code not needed (MK)
section cv
*
xdef cv_ctype
xref cv_cttab
*
include dev8_keys_k
*+++
* Convert a character into its type. The type returned will b... |
; int getchar(void)
INCLUDE "clib_cfg.asm"
SECTION code_stdio
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $02
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC getchar
EXTERN asm_getchar
defc getchar = asm_getchar
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
ELSE
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC getchar
EXTERN ... |
class Solution {
public:
static vector<int> searchRange(const vector<int>& nums, int target);
};
vector<int> Solution::searchRange(const vector<int>& nums, const int target)
{
const auto beg = cbegin(nums);
vector<int>::const_iterator left, right;
tie(left, right) = equal_range(beg, cend(nums), target... |
/*
____ _ __ ____ __ ____
/ __/___(_) / ___ ____/ __ \__ _____ ___ / /_ / _/__ ____
_\ \/ __/ / _ \/ -_) __/ /_/ / // / -_|_-</ __/ _/ // _ \/ __/
/___/\__/_/_.__/\__/_/ \___\_\_,_/\__/___/\__/ /___/_//_/\__(_)
Copyright 2012 SciberQuest Inc.
*/
#ifndef __Tuple_h
#define __Tup... |
db "DISCHARGE@" ; species name
db "Its nest can be"
next "found where a bolt"
next "of lightning hits."
page "It discharges"
next "electricity stored"
next "in its mane.@"
|
; A017416: (11n+2)^4.
; 16,28561,331776,1500625,4477456,10556001,21381376,38950081,65610000,104060401,157351936,228886641,322417936,442050625,592240896,777796321,1003875856,1275989841,1600000000,1982119441
mul $0,11
add $0,2
pow $0,4
mov $1,$0
|
/*
* 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 ... |
;
; Copyright (c) 2016, Alliance for Open Media. All rights reserved
;
; This source code is subject to the terms of the BSD 2 Clause License and
; the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
; was not distributed with this source code in the LICENSE file, you can
; obtain it at www.aome... |
/*
* METISGraphWriter.cpp
*
* Created on: 30.01.2013
* Author: Christian Staudt (christian.staudt@kit.edu)
*/
#include "METISGraphWriter.h"
#include "../graph/GraphTools.h"
#include "../auxiliary/Enforce.h"
namespace NetworKit {
void METISGraphWriter::write(const Graph& G, const std::string& path) {
thi... |
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
//
// Copyright (c) ... |
; A316256: Decimal expansion of the middle x such that 1/x + 1/(x+2) + 1/(x+4) = 3.
; Submitted by Christian Krause
; 1,6,8,3,7,6,1,8,3,6,6,7,8,0,3,4,3,1,2,9,0,6,6,5,2,5,9,4,2,5,1,7,0,2,6,1,6,4,7,6,3,3,7,0,8,9,7,9,4,2,7,6,1,5,3,6,1,4,9,2,7,3,0,0,2,9,0,8,2,1,5,3,6,3,3,6,9,2,6,8,6,1,0,2,3,9
mov $1,1
mov $3,$0
mul $3,4
l... |
//
// Created by patrick on 10.02.19.
//
#ifndef LAS_VEGAS_GROWINGCELLSTRUCTURE_HPP
#define LAS_VEGAS_GROWINGCELLSTRUCTURE_HPP
#include "lvr2/attrmaps/HashMap.hpp"
#include "lvr2/config/BaseOption.hpp"
#include "lvr2/geometry/HalfEdgeMesh.hpp"
#include "lvr2/reconstruction/PointsetSurface.hpp"
#include "lvr2/reconstr... |
; ClearLines (LL155)
; y = 0
; XX20 = UbnkEdgeHeapSize
; exit if XX20 < 4
; ++y
; do
; X1 = XX19(Y) ; Y1 = XX19(++Y) ; X2 = XX19(++Y); Y2 = XX19(++Y)
; call DrawLine (x1,y1 to x2,y2) two's compliment (we will do 0)
; ++y
; until Y > XX20
clearLines:
layer2_clearLines:
LL155cl: ... |
#include "examples/ace/ttcp/common.h"
#include "muduo/base/Logging.h"
#include <boost/asio.hpp>
#include <stdio.h>
using boost::asio::ip::tcp;
void transmit(const Options& opt)
{
try
{
}
catch (std::exception& e)
{
LOG_ERROR << e.what();
}
}
class TtcpServerConnection : public std::enable_shared_fro... |
/*
---------------------------------------------------------------------------
Open Asset Import Library (assimp)
---------------------------------------------------------------------------
Copyright (c) 2006-2018, assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms,... |
.include "defaults_mod.asm"
table_file_jp equ "exe5-utf8.tbl"
table_file_en equ "bn5-utf8.tbl"
game_code_len equ 3
game_code equ 0x4252424A // BRBJ
game_code_2 equ 0x42524245 // BRBE
game_code_3 equ 0x42524250 // BRBP
card_type equ 1
card_id equ 75
card_no equ "075"
card_sub equ "Mod Card 075"
card_sub_x ... |
// Copyright (C) 2014, Pawel Tomulik <ptomulik@meil.pw.edu.pl>
//
// 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)
// yaul/tml/aux_/bitor.hpp
/** // doc: yaul/tml/aux_/bitor.hpp {{{
* \file yaul/tml/aux_/bitor... |
class Solution {
public:
vector<int> twoSum(vector<int>& nums, int target) {
//num,index
unordered_map<int, int> map;
vector<int> result;
for(int i = 0; i< nums.size();++i)
{
if(map.count(target - nums[i]) )
{
result.push_back(map[targe... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Geoworks 1994 -- All Rights Reserved
PROJECT: PC/GEOS
MODULE: Power Drivers
FILE: apmpwrManager.asm
AUTHOR: Todd Stumpf, Jul 28, 1994
REVISION HISTORY:
Name Date Description
---- ---- -----------
TS 7... |
; A236773: a(n) = n + floor( n^2/2 + n^3/3 ).
; 0,1,6,16,33,59,96,145,210,292,393,515,660,829,1026,1252,1509,1799,2124,2485,2886,3328,3813,4343,4920,5545,6222,6952,7737,8579,9480,10441,11466,12556,13713,14939,16236,17605,19050,20572,22173,23855,25620,27469,29406,31432,33549,35759,38064,40465,42966,45568,48273,51083,540... |
; A017200: a(n) = (9*n+3)^4.
; 81,20736,194481,810000,2313441,5308416,10556001,18974736,31640625,49787136,74805201,108243216,151807041,207360000,276922881,362673936,466948881,592240896,741200625,916636176,1121513121,1358954496,1632240801,1944810000,2300257521,2702336256,3154956561,3662186256,4228250625,4857532416,55545... |
; A157681: Fibonacci sequence beginning 29, 31.
; 29,31,60,91,151,242,393,635,1028,1663,2691,4354,7045,11399,18444,29843,48287,78130,126417,204547,330964,535511,866475,1401986,2268461,3670447,5938908,9609355,15548263,25157618,40705881,65863499,106569380,172432879,279002259,451435138,730437397,1181872535,1912309932,3094... |
; A010707: Period 2: repeat (3,9).
; 3,9,3,9,3,9,3,9,3,9,3,9,3,9,3,9,3,9,3,9,3,9,3,9,3,9,3,9,3,9,3,9,3,9,3,9,3,9,3,9,3,9,3,9,3,9,3,9,3,9,3,9,3,9,3,9,3,9,3,9,3,9,3,9,3,9,3,9,3,9,3,9,3,9,3,9,3,9,3,9,3
add $0,3
gcd $0,2
mov $1,3
pow $1,$0
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r9
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x154c0, %r9
nop
nop
add $3457, %r11
movw $0x6162, (%r9)
nop
inc %rdx
lea addresses_UC_ht+0xd928, %r10
nop
nop
nop
cmp $50134, %r9
movl $0x61626364, (%r10)
dec %rdi
le... |
global _my_m_prefetchw
segment .text align=16
_my_m_prefetchw:
mov eax, [esp + 4]
prefetchw [eax]
ret |
; A008734: Molien series for 3-dimensional group [2+,n ] = 2*(n/2).
; 1,0,2,0,3,1,4,2,6,3,8,4,10,6,12,8,15,10,18,12,21,15,24,18,28,21,32,24,36,28,40,32,45,36,50,40,55,45,60,50,66,55,72,60,78,66,84,72,91,78,98,84,105,91,112,98,120,105,128,112,136,120,144,128,153,136,162,144,171,153,180,162,190,171,200,180,210,190,220,20... |
div16_16:
CLR C ;Clear carry initially
MOV R4,#00h ;Clear R4 working variable initially
MOV R5,#00h ;CLear R5 working variable initially
MOV B,#00h ;Clear B since B will count the number of left-shifted bits
div1:
INC B ;Increment counter for each left shift
MOV A,R2 ;Move the current... |
; char __fseq (float left, float right)
SECTION code_fp_math48
PUBLIC cm48_sdccixp_dseq
EXTERN cm48_sdccixp_dread2, am48_deq
cm48_sdccixp_dseq:
; (left == right)
;
; enter : sdcc_float right, sdcc_float left, ret
;
; exit : HL = 0 and carry reset if false
; HL = 1 and carry set if true
... |
#include "rachelScene.h"
void rachelScene::setup(){
posX.set("posX", 0.001, -0.01, 0.01);
parameters.add(posX);
posY.set("posY", 0.002, -0.01, 0.01);
parameters.add(posY);
time.set("time", 0.1, 0, 2*PI);
parameters.add(time);
shader.load("scenes/rachelScene/shader");
setAuthor("R... |
copyright zengfr site:http://github.com/zengfr/romhack
001706 move.b ($1f9,A5), ($a9,A0) [base+1F9]
00170C rts [123p+ A9]
008A58 beq $89ae [123p+ A9]
0099FC cmp.b ($a9,A1), D6 [123p+ A9]
copyright zengfr site:http://github.com/zengfr/romhack
|
//
// @author raver119@gmail.com
//
#include <op_boilerplate.h>
#if NOT_EXCLUDED(OP_relu)
#include <ops/declarable/CustomOperations.h>
namespace nd4j {
namespace ops {
CONFIGURABLE_OP_IMPL(relu, 1, 1, true, 1, 0) {
NDArray<T> *first = INPUT_VARIABLE(0);
auto z = this->getZ(block)... |
;*****************************************************************************
;* x86-optimized Float DSP functions
;*
;* Copyright 2006 Loren Merritt
;*
;* 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 Public
;... |
.386P
.model FLAT
;
; d_scana.s
; x86 assembly-language turbulent texture mapping code
;
include qasm.inc
include d_if.inc
if id386
_DATA SEGMENT
_DATA ENDS
_TEXT SEGMENT
;----------------------------------------------------------------------
; turbulent texture mapping code
;---------------... |
; void zx_visit_wc_pix(struct r_Rect8 *r, void *function)
SECTION code_clib
SECTION code_arch
PUBLIC zx_visit_wc_pix_callee
EXTERN asm_zx_visit_wc_pix
zx_visit_wc_pix_callee:
pop af
pop de
pop ix
push af
jp asm_zx_visit_wc_pix
|
; Hook for "TradeCenter_DrawPartyLists" in engine/cable_club.asm.
; For some reason it doesn't have its own "palette command" that it calls, so this is the
; equivalent of that.
TradeCenter_DrawPartyLists_ColorHook:
call LoadCableClubTextPaletteAndMap
; Opcode removed for hook
coord hl,0,0
ret
; Called when the... |
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_ChibiVectorMaterialProperties_parameters.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Functions
//----------------------------------------------------... |
SECTION code_clib
PUBLIC respixel
EXTERN sety
EXTERN setx
EXTERN getpat
EXTERN last_pos
; in: hl=(x,y)
respixel:
push af
push bc
push hl
ld (last_pos),hl
call sety
call getpat
ld a,b
cpl
ld b,a
call setx
in a,(0x41... |
// Copyright 2022 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... |
********************************************************************************
* *
* (c) 2018 Max Apodaca *
* This code is licensed under MIT license (see LICENSE for details) ... |
;jump operations
;org 100h
;
;mov ax,00044h
;mov bx,0007h
;
;cmp ax,bx
;jl lower
;jg upper
;mov dx,0002h
;jmp done
;
;lower:
;mov dx,0001h
;jmp done
;
;upper:
;mov dx,0003h
;
;done:ret
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
org 100h
mov ax,0044h ;0004h is stored in ax
mo... |
section .data
section .text
global _start
_start:
call .getNumberOfArgs ; expects return value in $rax
mov rdi, rax
mov rbx, rdi ; rbx is preserved reg
call .printNumberOfArgs ; expects value to be in 1st argument, i.e. $rdi
call .printAllArgs ; expect rdi to have number of args
call ... |
.nds
.relativeinclude on
.erroronwarning on
; This patch renders the map markers that the player can position to the top screen map.
@Overlay86Start equ 0x022EB1A0
@FreeSpace equ @Overlay86Start + 0x420
.open "ftc/arm9.bin", 02000000h
; In the function for rendering OAM objects to the top screen for the map, specif... |
#include "execution/sql/storage_interface.h"
#include <algorithm>
#include <vector>
#include "catalog/catalog_accessor.h"
#include "execution/exec/execution_context.h"
#include "execution/util/execution_common.h"
#include "storage/index/index.h"
#include "storage/sql_table.h"
namespace noisepage::execution::sql {
S... |
; A077912: Expansion of 1/(1+x^2-2*x^3).
; 1,0,-1,2,1,-4,3,6,-11,0,23,-22,-23,68,-21,-114,157,72,-385,242,529,-1012,-45,2070,-1979,-2160,6119,-1798,-10439,14036,6843,-34914,21229,48600,-91057,-6142,188257,-175972,-200541,552486,-151403,-953568,1256375,650762,-3163511,1861988,4465035,-8189010,-741059,17119080,-15636961,... |
; A140576: Numbers of the form i*9^j-1 (i=1..8, j >= 0).
; 0,1,2,3,4,5,6,7,8,17,26,35,44,53,62,71,80,161,242,323,404,485,566,647,728,1457,2186,2915,3644,4373,5102,5831,6560,13121,19682,26243,32804,39365,45926,52487,59048,118097,177146,236195,295244,354293,413342,472391,531440,1062881
mov $22,$0
mov $24,$0
lpb $24
cl... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x709, %rbp
nop
and $13591, %rsi
mov $0x6162636465666768, %rdi
movq %rdi, %xmm0
movups %xmm0, (%rbp)
nop
nop
nop
add %r10, %r10
lea addresses_A_ht+0x11809, %r11
nop
nop
sub %r... |
// online/onlinebin-util.cc
// Copyright 2012 Cisco Systems (author: Matthias Paulik)
// Modifications to the original contribution by Cisco Systems made by:
// Vassil Panayotov
// See ../../COPYING for clarification regarding multiple authors
//
// Licensed under the Apache License, Version 2.0 (the "License");... |
code SEGMENT para public 'CODE'
ASSUME cs:code
LOCALS
.386
PUBLIC lblt_table
include lineblit.inc
code ENDS
END
|
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license belo... |
/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtCore module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees... |
class Solution {
public:
string longestCommonPrefix(vector<string> &strs) {
if(strs.empty()){
return "";
}
string prefix = strs[0];
for(int i=1; i<strs.size(); i++){
if(strs[i].size() ==0 || prefix.size()==0){
return "";
... |
;++
;
; Copyright (c) Microsoft Corporation. All rights reserved.
;
; Licensed under the MIT License.
;
; Module Name:
;
; LogisticKernelFma3.asm
;
; Abstract:
;
; This module implements a kernel for computing the logistic function for a
; buffer of elements.
;
; This implementation uses AVX fused multiply/add ... |
.model flat, c
;Simple Advance Vector Extension example note that variables are aligned.
;Implementation for this Assembly File
;extern "C" void AVXPackedInteger_16_Add_Multiply(Ymm * a, Ymm * b, Ymm * c, Ymm * result);
;c++ file below commented
.code
AVXPackedInteger_16_Add_Multiply proc
push ebp ;push the 32 bit b... |
#include <iostream>
using namespace std;
void merge(int a[], int b[], int m, int n)
{
int i = 0, j = 0;
while(i < m && j < n)
{
if(a[i] < b[j])
cout << a[i++] << " ";
else
cout << b[j++] << " ";
}
while(i < m)
cout << a[i++] << " ";
while(j < ... |
; A220657: Partial sums of A084558+1.
; 0,1,3,6,9,12,15,19,23,27,31,35,39,43,47,51,55,59,63,67,71,75,79,83,87,92,97,102,107,112,117,122,127,132,137,142,147,152,157,162,167,172,177,182,187,192,197,202,207,212,217,222,227,232,237,242,247,252,257
mov $1,$0
mov $2,$0
mov $3,$0
lpb $1
add $2,1
trn $4,$1
sub $1,1
ad... |
#include "server_sctp_helper_one_to_many.hpp"
#include "common.hpp"
#include "common_sctp.hpp"
extern "C" {
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <netinet/in.h>
#include <netinet/sctp.h>
#include <sys/un.h>
#include <arpa/inet.h>
}
extern "C" {
#inc... |
;--------------------------------------------------------------
; ZX81 HRG library for the G007 expansion
; by Stefano Bodrato, Fall 2014
;--------------------------------------------------------------
;
; Exit from HRG mode
;
; $Id: g007_hrg_off.asm,v 1.4 2016/06/27 20:26:33 dom Exp $
;
SECTION code_clib
P... |
;;
;; Copyright (c) 2020-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... |
// Copyright (c) 2019, Ryo Currency Project
// Portions copyright (c) 2014-2018, The Monero Project
//
// Portions of this file are available under BSD-3 license. Please see ORIGINAL-LICENSE for details
// All rights reserved.
//
// Authors and copyright holders give permission for following:
//
// 1. Redistribution an... |
; A024892: Numbers k such that 3*k+1 is prime.
; 2,4,6,10,12,14,20,22,24,26,32,34,36,42,46,50,52,54,60,64,66,70,74,76,80,90,92,94,102,104,110,112,116,122,124,126,132,136,140,144,146,152,154,162,166,174,180,182,190,192,200,202,204,206,210,214,220,224,230,236,242,244,246,250,252,256,262,270,274,276,284,286,292,294,302,30... |
.386
.model flat, stdcall
.code
foo PROC
nop
RET
foo ENDP
END
|
; void zxn_write_mmu_state(uint8_t *src)
SECTION code_clib
SECTION code_arch
PUBLIC _zxn_write_mmu_state_fastcall
EXTERN asm_zxn_write_mmu_state
defc _zxn_write_mmu_state_fastcall = asm_zxn_write_mmu_state
|
; A247000: Maximal number of palindromes in a circular binary word of length n.
; 1,2,4,6,7,9,10,12,13,15,16,18,19,21,23,24,26,28,29,31,33,34,36,38,39,41,43,44,46,48
mov $1,$0
mov $2,$0
mov $3,$0
lpb $2,1
add $2,$5
add $4,1
mov $0,$4
lpb $0,1
mov $0,$2
add $1,$2
lpe
sub $1,1
mov $2,$1
sub $2,1
... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/core/utils/Outcome.h>
#include <aws/core/auth/AWSAuthSigner.h>
#include <aws/core/client/CoreErrors.h>
#include <aws/core/client/RetryStrategy.h>
#include <aws/core/http/HttpClient.h>
#i... |
############################################################################
# Lab 3
# EC413
#
# Assembly Language Lab -- Programming with Loops.
#
############################################################################
# DATA
######################################... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r8
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x446c, %rbx
nop
nop
nop
nop
sub %r10, %r10
mov $0x6162636465666768, %r8
movq %r8, (%rbx)
nop
nop
dec %rsi
lea addresses_A_ht+0x16f64, %rsi
lea addresses_D_ht+0x3dec, %rdi
nop
x... |
; A074109: Smallest n-digit squarefree number.
; Submitted by Christian Krause
; 2,10,101,1001,10001,100001,1000001,10000001,100000001,1000000001,10000000001,100000000002,1000000000001,10000000000001,100000000000001,1000000000000001,10000000000000001,100000000000000001
mov $1,1
mov $2,1
mov $3,$0
mul $3,3
lpb $3
add... |
# Sample assembly code
# (augment as the assember and loader are built out)
.class Sample:Obj
.field x # This is in addition to inherited fields
.field y
.method added forward
.method $constructor
enter
call $:added
const "Scrabble: The game\n"
call String:print
pop
const 418
const 383... |
;
; High Resolution library for the MicroBee
; Version for the 8x11 PCG paged font (640x275)
;
; Written by Stefano Bodrato, November 2016
;
;
; Divide by five lookup table
; useful to switch the PCG bank every 5 columns (port $1C)
;
;
; $Id: div5.asm,v 1.1 2016/11/21 11:18:38 stefano Exp $
;
SECTION ... |
db "SUPERPOWER@" ; species name
db "It trains by"
next "lifting rocks in"
next "the mountains. It"
page "can even pick up a"
next "GRAVELER with"
next "ease.@"
|
; A021933: Decimal expansion of 1/929.
; Submitted by Jon Maiga
; 0,0,1,0,7,6,4,2,6,2,6,4,8,0,0,8,6,1,1,4,1,0,1,1,8,4,0,6,8,8,9,1,2,8,0,9,4,7,2,5,5,1,1,3,0,2,4,7,5,7,8,0,4,0,9,0,4,1,9,8,0,6,2,4,3,2,7,2,3,3,5,8,4,4,9,9,4,6,1,7,8,6,8,6,7,5,9,9,5,6,9,4,2,9,4,9,4,0,7
add $0,1
mov $2,10
pow $2,$0
div $2,929
mov $0,$2
mod $... |
; char *stpcpy(char * restrict s1, const char * restrict s2)
SECTION code_string
PUBLIC stpcpy_callee
EXTERN asm_stpcpy
stpcpy_callee:
pop af
pop hl
pop de
push af
jp asm_stpcpy
|
; TK2 version
section version
xdef tk2_vers
tk2_vers equ '2.35'
end
|
BITS 32
section .text
foo:
shld bx, ax, 9
shrd [ebx], ax, 9
shld ebx, eax, 9
shrd [ebx], eax, 9
shld bx, ax, cl
shrd [ebx], ax, cl
shld ebx, eax, cl
shrd [ebx], eax, cl
|
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 4.1.6 #12419 (Linux)
;--------------------------------------------------------
; Processed by Z88DK
;--------------------------------------------------------
EXTERN __divschar
EXTERN __divsc... |
CeladonMansion2Script:
call EnableAutoTextBoxDrawing
ret
CeladonMansion2TextPointers:
dw CeladonMansion2Text1
dw CelMansion2Text2
CeladonMansion2Text1:
TX_ASM
ld a, $4
ld [wWhichTrade], a
predef DoInGameTradeDialogue
jp TextScriptEnd
; TX_FAR _CeladonMansion2Text1
; db "@"
CelMansion2Text2:
TX_ASM
ld a, $... |
; A299645: Numbers of the form m*(8*m + 5), where m is an integer.
; 0,3,13,22,42,57,87,108,148,175,225,258,318,357,427,472,552,603,693,750,850,913,1023,1092,1212,1287,1417,1498,1638,1725,1875,1968,2128,2227,2397,2502,2682,2793,2983,3100,3300,3423,3633,3762,3982,4117,4347,4488,4728,4875,5125,5278,5538,5697,5967,6132,64... |
Music_TCGMedal:
musicheader 4, 1, Music_TCGMedal_Ch1
musicheader 1, 2, Music_TCGMedal_Ch2
musicheader 1, 3, Music_TCGMedal_Ch3
musicheader 1, 4, Music_TCGMedal_Ch4
Music_TCGMedal_Ch1:
vibrato 20, $33
intensity $f0+8
octave 2
dutycycle 1
intensity 10*16
notetype 1, $a0
note ... |
; SPIR-V
; Version: 1.0
; Generator: Khronos Glslang Reference Front End; 10
; Bound: 55
; Schema: 0
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %4 "main" %36
OpExecutionMode %4 OriginUp... |
###############################################################################
# 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... |
; 10 SYS (2304)
*=$0801
BYTE $0E, $08, $0A, $00, $9E, $20, $28
BYTE $32, $33, $30, $34, $29, $00, $00, $00
*=$0900
;*************************************************
;* Variables
;*************************************************
SCREEN_Start_Location$ = $0400
VAR_BINARY = %01010101
VAR_HEX = $1F
VAR_OCTA... |
/* Copyright 2016 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... |
; A070580: a(n) = n^4 mod 37.
; 0,1,16,7,34,33,1,33,26,12,10,26,16,34,10,9,9,12,7,7,12,9,9,10,34,16,26,10,12,26,33,1,33,34,7,16,1,0,1,16,7,34,33,1,33,26,12,10,26,16,34,10,9,9,12,7,7,12,9,9,10,34,16,26,10,12,26,33,1,33,34,7,16,1,0,1,16,7,34,33,1,33,26,12,10,26,16,34,10,9,9,12,7,7,12,9,9,10,34,16
pow $0,4
mod $0,37
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; 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... |
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r8
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x10f1e, %rsi
lea addresses_WC_ht+0x191dd, %rdi
sub $22977, %rdx
mov $9, %rcx
rep movsw
nop
nop
nop
nop
nop
sub %rbp, %rbp
lea addresses_D_ht+0x1dd1e, %rax
clflush (%rax)
and %r... |
; ===============================================================
; 2014
; ===============================================================
;
; void bit_beep_raw_di(uint_16t num_cycles, uint16_t tone_period_T)
;
; As bit_beep_raw() but interrupts are disabled around the tone.
; Proper interrupt status is restored prior... |
#include "_core.h"
namespace autowig {
}
void wrapper_36823ab42b0c57b48d903606aa743329(pybind11::module& module)
{
pybind11::class_<struct ::statiskit::PoissonDistributionMLEstimation, autowig::HolderType< struct ::statiskit::PoissonDistributionMLEstimation >::Type, class ::statiskit::ActiveEstimation< class ::... |
; A107871: Column 0 of triangle A107870; a(n) = C( n*(n-1)/2 + n+2, n).
; 1,3,10,56,495,6188,100947,2035800,48903492,1362649145,43183019880,1533058025824,60246643120300,2595612872743443,121623751733457400,6156937298378625264,334817778672726215400,19463553270556728904725
sub $1,$0
bin $1,2
add $1,2
bin $1,$0
mov $0,$1
|
dnl mpn_subadd
dnl Copyright 2011 The Code Cavern
dnl This file is part of the MPIR Library.
dnl The MPIR Library is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU Lesser General Public License as published
dnl by the Free Software Foundation; either version 2.1 of the L... |
; A262139: The first of eight consecutive positive integers the sum of the squares of which is equal to the sum of the squares of nine consecutive positive integers.
; Submitted by Christian Krause
; 22,145,862,5041,29398,171361,998782,5821345,33929302,197754481,1152597598,6717831121,39154389142,228208503745,1330096633... |
; int adt_ListAdd(struct adt_List *list, void *item)
; 02.2003, 06.2005 aralbrec
; CALLER linkage for function pointers
SECTION code_clib
PUBLIC adt_ListAdd
PUBLIC _adt_ListAdd
EXTERN adt_ListAdd_callee
EXTERN ASMDISP_ADT_LISTADD_CALLEE
.adt_ListAdd
._adt_ListAdd
pop hl
pop bc
pop de
push de
push bc... |
_dedup_writer: file format elf64-x86-64
Disassembly of section .text:
0000000000001000 <main>:
#include "types.h"
#include "stat.h"
#include "user.h"
int
main(int argc, char *argv[]) {
1000: f3 0f 1e fa endbr64
1004: 55 push %rbp
1005: 48 89 e5 mov %r... |
; A183199: Least integer k such that Floor(k*f(n+1)>k*f(n), where f(n)=(n^2)/(1+n^2).
; 3,6,11,18,27,38,51,66,83,102,123,146,171,198,227,258,291,326,363,402,443,486,531,578,627,678,731,786,843,902,963,1026,1091,1158,1227,1298,1371,1446,1523,1602,1683,1766,1851,1938,2027,2118,2211,2306,2403,2502
mov $1,$0
add $1,1
pow ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.