text stringlengths 1 1.05M |
|---|
; A142301: Primes congruent to 21 mod 44.
; Submitted by Jon Maiga
; 109,197,241,373,461,593,769,857,1033,1297,1429,1693,1913,2089,2221,2309,2441,2617,2749,2837,2969,3541,3673,3761,4157,4201,4289,4421,4597,4729,4817,4861,4993,5081,5477,5521,5653,5741,6269,6577,6709,6841,7193,7237,7369,7457,7589,7853,8117,8161,8293,8513... |
; CALLER LINKAGE FOR FUNCTION POINTERS
SECTION code_clib
PUBLIC vz_plot
PUBLIC _vz_plot
PUBLIC cplot
PUBLIC _cplot
EXTERN vz_plot_callee
EXTERN ASMDISP_VZ_PLOT_CALLEE
.vz_plot
._vz_plot
.cplot
._cplot
pop af
pop bc
pop de
pop hl
push hl
push de
push bc
push af
ld h,e
jp vz_plot_callee ... |
#include "mgos.h"
#include <RHReliableDatagram.h>
#include <RH_Serial.h>
extern "C" {
enum mgos_app_init_result mgos_app_init(void);
}
#define CLIENT_ADDRESS 1
#define SERVER_ADDRESS 255 //Broadcast address
#define BROADCAST_PERIOD_MS 1000
//!!! Dont put these on the stack:
uint8_t data[] = "Hello World!";
uint8... |
; A010036: Sum of 2^n, ..., 2^(n+1) - 1.
; 1,5,22,92,376,1520,6112,24512,98176,392960,1572352,6290432,25163776,100659200,402644992,1610596352,6442418176,25769738240,103079084032,412316598272,1649266917376,6597068718080,26388276969472,105553112072192,422212456677376,1688849843486720,6755399407501312,27021597697114112,10... |
;******************************************************************************
;* V210 SIMD pack
;* Copyright (c) 2014 Kieran Kunhya <kierank@obe.tv>
;*
;* This file is part of Libav.
;*
;* Libav is free software; you can redistribute it and/or
;* modify it under the terms of the GNU Lesser General Public
;* License a... |
#include <precompiled.h>
///
/// MIT License
/// Copyright (c) 2018-2019 Jongmin Yun
///
/// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
/// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL... |
; CRT0 stub for high RAM
defc CLIB_SAM_IS_BASIC = 0
defc CRT_ORG_CODE = 0x8000
defc TAR__register_sp = 0xfd00
defc TAR__clib_exit_stack_size = 4
defc TAR__fputc_cons_generic = 1
defc CLIB_KBHIT_NOSTORE = 1
; Where the screen is located
defc SCREEN_BASE = 0x0000
... |
; A158396: 729n^2 + 2n.
; 731,2920,6567,11672,18235,26256,35735,46672,59067,72920,88231,105000,123227,142912,164055,186656,210715,236232,263207,291640,321531,352880,385687,419952,455675,492856,531495,571592,613147,656160,700631,746560,793947,842792,893095,944856,998075,1052752,1108887,1166480,1225531,1286040,1348007,14... |
; A170243: Number of reduced words of length n in Coxeter group on 42 generators S_i with relations (S_i)^2 = (S_i S_j)^40 = I.
; 1,42,1722,70602,2894682,118681962,4865960442,199504378122,8179679503002,335366859623082,13750041244546362,563751691026400842,23113819332082434522,947666592615379815402,3885433029723057243148... |
; /*****************************************************************************
; * ugBASIC - an isomorphic BASIC language compiler for retrocomputers *
; *****************************************************************************
; * Copyright 2021 Marco Spedaletti (asimov@mclink.it)
; *
; * Licensed un... |
// Copyright 2020 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 "ash/capture_mode/video_recording_watcher.h"
#include <memory>
#include "ash/capture_mode/capture_mode_constants.h"
#include "ash/capture_mode/... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "intro.h"
#include "ui_... |
.include "defaults_mod.asm"
table_file_jp equ "exe6-utf8.tbl"
table_file_en equ "bn6-utf8.tbl"
game_code_len equ 3
game_code equ 0x4252354A // BR5J
game_code_2 equ 0x42523545 // BR5E
game_code_3 equ 0x42523550 // BR5P
card_type equ 1
card_id equ 6
card_no equ "006"
card_sub equ "Mod Card 006"
card_sub_x ... |
; A077163: n-th power of next n numbers.
; 1,4,9,64,125,216,2401,4096,6561,10000,161051,248832,371293,537824,759375,16777216,24137569,34012224,47045881,64000000,85766121,2494357888,3404825447,4586471424,6103515625,8031810176,10460353203
mov $2,7
lpb $2
add $0,1
mov $4,$0
add $5,1
lpb $4
mov $1,$0
pow $... |
; A169391: Number of reduced words of length n in Coxeter group on 42 generators S_i with relations (S_i)^2 = (S_i S_j)^31 = I.
; 1,42,1722,70602,2894682,118681962,4865960442,199504378122,8179679503002,335366859623082,13750041244546362,563751691026400842,23113819332082434522,947666592615379815402,3885433029723057243148... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1989 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Text/TextAttr
FILE: taStyleDesc.asm
AUTHOR: Tony
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
... |
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QtCore/QJsonDocument>
#include <QtCore/QTimer>
#include <QtRestClient/RestReply>
#include <QtRestClient/RestClass>
using namespace QtRestClient;
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow),
client(new RestClient(... |
ORG $8000
PUBLIC HIGHPAGEADDR, SIO_INT, SIO_RCVBUF, SIO_CNT, SIO_RTS, ORG_H_KEYI
include "sio.inc"
HIGHPAGEADDR: EQU $
SIO_RCVBUF:
SIO_CNT: DB 0 ; CHARACTERS IN RING BUFFER
SIO_HD: DW SIO_BUF ; BUFFER HEAD POINTER
SIO_TL: DW SIO_BUF ; BUFFER TAIL POINTER
SIO_BUF: DS SIO_BUFSZ, $00 ; RECEIVE RING BUFFER
SI... |
;
; char *asm_strncpy(char *dest, char *src, size_t num);
;
BITS 64
SECTION .text
GLOBAL asm_strncpy
asm_strncpy:
PUSH RCX
MOV RCX, -1
_loop:
INC RCX
CMP RCX, RDX
JGE _end
MOV AL, BYTE [RSI + RCX]
MOV BYTE [RDI + RCX], AL
CMP BYTE [RSI + RCX], 0
JNE _loop
_end:
M... |
//******************************************************************************************************
//**** PROJECT HEADER FILES
//******************************************************************************************************
#include "Cursors.h"
//*********************************************************... |
; A114003: Rows sums of triangle A114002.
; 1,3,3,5,3,7,3,7,5,7,3,11,3,7,7,9,3,11,3,11,7,7,3,15,5,7,7,11,3,15,3,11,7,7,7,17,3,7,7,15,3,15,3,11,11,7,3,19,5,11,7,11,3,15,7,15,7,7,3,23,3,7,11,13,7,15,3,11,7,15,3,23,3,7,11,11,7,15,3,19,9,7,3,23,7,7,7,15,3,23,7,11,7,7,7,23,3,11,11,17,3,15,3,15,15,7,3,23,3,15,7,19,3,15,7,11,... |
;
;--------------------------------
; BUZZKICK
; ------------------------------
;#define defb db
;#define defw dw
;#define db db
;#define dw dw
;#define end end
;#define org org
;#define DEFB db
;#define DEFW dw
;#define DB db
;#define DW dw
;#define END end
;#define ORG org
;#define equ equ
;#de... |
; A230658: Number of nX3 0..2 black square subarrays x(i,j) with each element diagonally or antidiagonally next to at least one element with value 2-x(i,j)
; Submitted by Jamie Morken(s3)
; 0,3,15,21,135,177,1155,1509,9855,12873,84075,109821,717255,936897,6118995,7992789,52201935,68187513,445341435,581716461,3799265175... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.Linq.Enumerable
#include "Sy... |
; A040037: Continued fraction for sqrt(44).
; 6,1,1,1,2,1,1,1,12,1,1,1,2,1,1,1,12,1,1,1,2,1,1,1,12,1,1,1,2,1,1,1,12,1,1,1,2,1,1,1,12,1,1,1,2,1,1,1,12,1,1,1,2,1,1,1,12,1,1,1,2,1,1,1,12,1,1,1,2,1,1,1,12,1,1,1,2,1,1,1,12,1,1,1,2,1,1,1,12,1,1,1,2,1,1,1,12,1,1,1
seq $0,40329 ; Continued fraction for sqrt(348).
div $0,3
trn... |
; float __sint2fs_callee(signed int si)
SECTION code_fp_math48
PUBLIC cm48_sdccixp_sint2ds_callee
EXTERN am48_double16, cm48_sdccixp_m482d
cm48_sdccixp_sint2ds_callee:
; signed int to double
;
; enter : stack = signed int si, ret
;
; exit : dehl = sdcc_float(si)
;
; uses : af, bc, de, hl, b... |
/*
This file is a part of: Lina Engine
https://github.com/inanevin/LinaEngine
Author: Inan Evin
http://www.inanevin.com
Copyright (c) [2018-2020] [Inan Evin]
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 t... |
; A137512: The number of nodes visible from underneath a binary tree, where the nodes are placed such that the innermost of the two sprouting nodes should be underneath the mother.
; 1,1,2,3,3,3,4,5,5,6,6,6,7,7,8,9,9,10,10,11,11,12,12,12,13,13,14,14,15,15,16
mov $2,$0
add $0,4
lpb $2
div $2,2
mov $1,$2
trn $2,1
... |
; struct astar_path __FASTCALL__ *astar_SearchResume(struct astar_path *p)
; resume a search previously stopped
; 01.2007 aralbrec
XLIB astar_SearchResume
LIB astar_Search
XREF ASMDISP_ASTAR_SEARCH_RESUME_SUCCESS, ASMDISP_ASTAR_SEARCH_RESUME_FAIL
; enter : hl = path to start search with
; if 0, search no... |
; $Id: VMMRC99.asm $
;; @file
; VMMRC99 - The last object module in the link.
;
; Copyright (C) 2006-2015 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 ter... |
#include "gtest/gtest.h"
#include <vector>
#include "cfdcore/cfdcore_common.h"
#include "cfdcore/cfdcore_logger.h"
using cfd::core::logger::IsEnableLogLevel;
using cfd::core::logger::WriteLog;
using cfd::core::logger::CfdLogLevel;
using cfd::core::logger::CfdLogger;
using cfd::core::logger::CfdSourceLocation;
using c... |
db 0 ; species ID placeholder
db 35, 40, 40, 35, 25, 45
; hp atk def spd sat sdf
db BUG, POISON ; type
db 255 ; catch rate
db 52 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F50 ; gender ratio
db 100 ; unknown 1
db 15 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/weedle/fron... |
; A032797: Numbers n such that n(n+1)(n+2)...(n+10) /(n+(n+1)+(n+2)+...+(n+10)) is a multiple of n.
; 1,2,3,4,5,7,8,9,10,12,13,14,15,16,18,19,20,21,23,24,25,26,27,29,30,31,32,34,35,36,37,38,40,41,42,43,45,46,47,48,49,51,52,53,54,56,57,58,59,60,62,63,64,65,67,68,69,70,71,73,74,75,76,78,79,80,81,82,84,85,86
mov $1,11
mu... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r14
push %r9
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x1a9ae, %r14
nop
nop
nop
nop
sub %r9, %r9
mov $0x6162636465666768, %rbp
movq %rbp, %xmm4
movups %xmm4, (%r14)
sub $46328, %rdx
lea addresses_WT_ht+0x11fae, %r11
nop
... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2015 Microsoft Corporation
*
* -=- Robust Distributed System Nucleus (rDSN) -=-
*
* 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 withou... |
SECTION code_driver
SECTION code_driver_terminal_output
PUBLIC rc_01_output_hbios1_iterm_msg_bell
EXTERN rc_01_output_hbios1_oterm_msg_bell_0
rc_01_output_hbios1_iterm_msg_bell:
; can use: af, bc, de, hl
bit 1,(ix+7)
ret z ; if signal bell is disabled
jp rc_01_output_hbios1_ot... |
.data
message: .asciiz "Fim da Execução"
space: .asciiz " "
.text
main:
addi $t0,$zero,0
addi $t1,$zero,0
addi $t2,$zero,0
loop:
bgt $t0,9,exit
add $t0,$t0,1
li $v0, 5 # chama função para ler
syscall
la $t7, ($v0) # carrega o inteiro lido em $t7
bgt $t1... |
#include <syntax_tree.hpp>
|
#ifndef SPROUT_WEED_CONTEXT_PARSE_CONTEXT_TERMINAL_OPERATOR_UNARY_PLUS_HPP
#define SPROUT_WEED_CONTEXT_PARSE_CONTEXT_TERMINAL_OPERATOR_UNARY_PLUS_HPP
#include <type_traits>
#include <sprout/config.hpp>
#include <sprout/tuple/tuple.hpp>
#include <sprout/weed/eval_result.hpp>
#include <sprout/weed/limited.hpp>
#... |
GLOBAL set_interrupts
GLOBAL int_21_hand
GLOBAL int_20_hand
GLOBAL int_80_hand
GLOBAL mascaraPIC1,mascaraPIC2
GLOBAL write_byte_to_port_0x70
GLOBAL write_byte_to_port_0x71
GLOBAL read_byte_from_port_0x71
GLOBAL play_sound_asm
GLOBAL stop_sound_asm
GLOBAL yield
GLOBAL outb
GLOBAL inb
GLOBAL clear_interrupts
GLOBAL userT... |
;main source code
;@author strawberrylin
.386
data segment use16
bufc db '1:Input the name and score',0ah,0dh,
'2:Figure the sum and the average score',0ah,0dh,
'3:Sort the score',0ah,0dh,
'4:Output the score from high to low',0ah,0dh,
'Enter your choose:','$'
... |
_kill: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
int
main(int argc, char **argv)
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 e4 f0 and $0xfffffff0,%esp
6: 83 ec 20 ... |
/* ************************************************************************************************************* */
/* */
/* GLIP-LIB ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r8
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0xc49, %rsi
lea addresses_A_ht+0x9749, %rdi
nop
and %r8, %r8
mov $89, %rcx
rep movsl
add %r8, %r8
pop %rsi
pop %rdi
pop %rcx
pop %r8
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
push %r15
pus... |
/*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "GrVkDescriptorPool.h"
#include "GrVkGpu.h"
#include "SkTemplates.h"
GrVkDescriptorPool::GrVkDescriptorPool(const GrVkGpu* gpu, VkDescriptorType type, uint32_t count)
... |
/*
* Copyright 2002-2014 the original author or 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
*
* CC/LICENSE
*
* Unless required by applicable law or agreed to in wri... |
; Copyright Terence J. Boldt (c)2020-2022
; Use of this source code is governed by an MIT
; license that can be found in the LICENSE file.
; This file contains the source for the firmware
; that was formerly used to act as a pseudo-shell
;ProDOS Zero Page
Command = $42 ;ProDOS Command
Unit = $43 ;ProDOS unit (SDDD000... |
/* Copyright 2018 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... |
SFX_Cry0C_1_Ch4:
dutycycle 204
squarenote 8, 15, 5, 1536
squarenote 2, 13, 2, 1592
squarenote 2, 12, 2, 1584
squarenote 2, 12, 2, 1576
squarenote 2, 11, 2, 1568
squarenote 2, 11, 2, 1552
squarenote 2, 10, 2, 1560
squarenote 2, 11, 2, 1552
squarenote 8, 12, 1, 1568
endchannel
SFX_Cry0C_1_Ch5:
dutycycle 68
... |
; file descriptors
%define STDIN 0
%define STDOUT 1
; syscalls
%define SYS_READ 0
%define SYS_WRITE 1
%define SYS_MMAP 9
%define SYS_MUNMAP 11
%define SYS_EXIT 60
; dedicating a register to the buffer
%define buffer r15
%define max_buffer_len 5000h
%define ANSWERED 88
%define UNANSWERED 111
%define L... |
; Kill current job
section utility
xdef ut_kill,gu_die
include win1_keys_qdos_sms
;+++
; Kill current job
;---
ut_kill
gu_die
moveq #0,d3
moveq #-1,d1
moveq #sms.frjb,d0
trap #do.sms2
end
|
; A221882: Number of order-preserving or order-reversing full contraction mappings of an n-chain.
; 1,4,13,36,91,218,505,1144,2551,5622,12277,26612,57331,122866,262129,557040,1179631,2490350,5242861,11010028,23068651,48234474,100663273,209715176,436207591,905969638,1879048165,3892314084,8053063651,16642998242,343597383... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2021, 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 source... |
add $t0, $s1, $s2
# i = N*N + 3*N
1_Unoptimized:
lw $t0, 4($gp) # fetch N
mult $t0, $t0, $t0 # N*N
lw $t1, 4($gp) # fetch N
ori $t2, $zero, 3 # 3
mult $t1, $t1, $t2 # 3*N
add $t2, $t0, $t1 # N*N + 3*N
sw $t2, 0($gp) # i = ...
1_Optim... |
#include <iostream>
#include <stack>
#include <map>
#include <string>
namespace briqsvm {
struct Briq {
char annot;
char sub_annot;
short bucket_index_L;
short bucket_index_G;
int briq_index_L;
int briq_index_G;
Briq(char an1, char an2) {
set_def... |
// Copyright 2016 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 "quiche/http2/decoder/payload_decoders/ping_payload_decoder.h"
#include <stddef.h>
#include "quiche/http2/decoder/http2_frame_decoder_listener.... |
.data
tam: .word 14
datos: .word 2, 4, 2, 8, -2, 4, 2, -7, 8, 43, -5, -45, 3, 4
min: .word 0
.text
main: lw $11, tam($0)
lw $12, min($0)
addi $13, $0, 0
ini: beq $11, $0, fin
addi $11, $11, -1
sll $15, $13, 2
lw $14, datos($15)
addi $13, $13, 1
ble $12, $14, no
addi $12, $14, 0
no: j ini
fin: sw $12, min($0... |
###############################################################################
# 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... |
#include "pch.h"
#include "pb.h"
#include "control.h"
#include "fullscrn.h"
#include "high_score.h"
#include "pinball.h"
#include "proj.h"
#include "render.h"
#include "loader.h"
#include "midi.h"
#include "nudge.h"
#include "options.h"
#include "timer.h"
#include "winmain.h"
#include "Sound.h"
#include "TBall.h"
#inc... |
; A145610: Denominator of the polynomial A_l(x) = Sum_{d=1..l-1} x^(l-d)/d for index l=2n+1 evaluated at x=1.
; Submitted by Jon Maiga
; 2,12,20,280,2520,27720,360360,720720,4084080,15519504,5173168,356948592,8923714800,80313433200,2329089562800,144403552893600,13127595717600,13127595717600,485721041551200,485721041551... |
COMMENT @/********************************************************
Copyright (C) Dirk Lausecker -- All Rights Reserved
PROJECT: BestSound Treiber
DATEI: bsnwav.asm
AUTOR: Dirk Lausecker
REVISION HISTORY:
Name Datum Beschreibung
---- ----- ------------
DL 06.10.98 Init
DL 20.02.2000 Ab... |
// Copyright 2018 The Beam Team
//
// 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... |
<%
from pwnlib.shellcraft.amd64.linux import syscall
%>
<%page args="fd, file, tvp"/>
<%docstring>
Invokes the syscall futimesat. See 'man 2 futimesat' for more information.
Arguments:
fd(int): fd
file(char): file
tvp(timeval): tvp
</%docstring>
${syscall('SYS_futimesat', fd, file, tvp)}
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; 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... |
Name: zel_sub0.asm
Type: file
Size: 21959
Last-Modified: '2016-05-13T04:23:03Z'
SHA-1: 88302E91DCF659A4785D0E7B8B19920E5A0E6245
Description: null
|
; A065113: Sum of the squares of the n-th and the (n+1)st triangular numbers (A000217) is a perfect square.
; 6,40,238,1392,8118,47320,275806,1607520,9369318,54608392,318281038,1855077840,10812186006,63018038200,367296043198,2140758220992,12477253282758,72722761475560,423859315570606,2470433131948080,14398739476117878,... |
<%
from pwnlib.shellcraft.aarch64.linux import syscall
%>
<%page args="which, who, prio"/>
<%docstring>
Invokes the syscall setpriority. See 'man 2 setpriority' for more information.
Arguments:
which(priority_which_t): which
who(id_t): who
prio(int): prio
</%docstring>
${syscall('SYS_setpriority'... |
// Copyright (c) 2018 Microsoft Corporation
// Licensed under the MIT license.
// Author: Paul Koch <code@koch.ninja>
#include "precompiled_header_cpp.hpp"
// TODO: use noexcept throughout our codebase (exception extern "C" functions) ! The compiler can optimize functions better if it knows there are no exceptions
/... |
// Problem Code: 1269B
#include <iostream>
#include <vector>
#include <limits>
#include <algorithm>
using namespace std;
int modulo_equality(int n, int m, vector<int>& a, vector<int>& b) {
int i, j, d, min_d = numeric_limits<int>::max();
sort(a.begin(), a.end());
sort(b.begin(), b.end());
for (int k = 0; k < n;... |
/* * Copyright (c) 2016 Regents of the University of California. 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, ... |
;
; 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... |
/**
* @file exces/any/manager_intf.hpp
* @brief Interface of manager type erasure implementation
*
* Copyright 2012-2014 Matus Chochlik. Distributed under the Boost
* Software License, Version 1.0. (See accompanying file
* LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
#ifndef EXCES_AN... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23506.0
include listing.inc
INCLUDELIB MSVCRT
INCLUDELIB OLDNAMES
PUBLIC __local_stdio_printf_options
PUBLIC _vfprintf_l
PUBLIC printf
PUBLIC func
PUBLIC main
PUBLIC ??_C@_0BA@NNIFAFEJ@?$CFd?5?$CFd?5?$CFd?5?$CFd?5?$CFs?6?$AA@ ; `stri... |
; A069459: a(n) = prime(n)^n - 1.
; 1,8,124,2400,161050,4826808,410338672,16983563040,1801152661462,420707233300200,25408476896404830,6582952005840035280,925103102315013629320,73885357344138503765448,12063348350820368238715342,3876269050118516845397872320,1271991467017507741703714391418,13675305284054800589534973520788... |
; ===============================================================
; 2014
; ===============================================================
;
; void zx_cls(uchar attr)
;
; Clear screen using attibute.
;
; ===============================================================
SECTION code_arch
PUBLIC asm_zx_cls
EXTERN asm_... |
_CeruleanHouse1Text1::
text "My husband likes"
line "trading #MON."
para "If you are a"
line "collector, would"
cont "you please trade"
cont "with him?"
done
|
; /*****************************************************************************
; * ugBASIC - an isomorphic BASIC language compiler for retrocomputers *
; *****************************************************************************
; * Copyright 2021-2022 Marco Spedaletti (asimov@mclink.it)
; *
; * Licens... |
; BIOS Parameter Block
bpbBytesPerSector: dw 512 ; Bytes per sector
bpbSectorsPerCluster: db 1 ; Sectors per cluster
bpbReservedSectors: dw 1 ; Number of reserved sectors
bpbNumberOfFATs: db 2 ; Number of copies of the file allocation table
bpbRootEntries: dw 224 ; Size of root directory
bpbTot... |
/********************************************************************
* Copyright (c) 2013 - 2014, Pivotal Inc.
* All rights reserved.
*
* Author: Zhanwei Wang
********************************************************************/
/********************************************************************
* 2014 -
* op... |
/****************************************************************************
*
* Copyright (c) 2020 PX4 Development Team. 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. Redistri... |
; A128919: Numbers simultaneously heptagonal and centered heptagonal.
; Submitted by Christian Krause
; 1,148,21022,2984983,423846571,60183228106,8545594544488,1213414242089197,172296276782121493,24464857888819162816,3473837523935538998386
mov $3,1
lpb $0
sub $0,1
mov $1,$3
mul $1,10
add $2,$1
add $3,$2
lpe
... |
BITS 64
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=FLAG_CF|FLAG_OF|FLAG_PF|FLAG_SF|FLAG_AF
;TEST_FILE_META_END
; BSR32rr
mov eax, 0x08000000
;TEST_BEGIN_RECORDING
bsr ebx, eax
;TEST_END_RECORDING
|
<%
from pwnlib.shellcraft.aarch64.linux import syscall
%>
<%page args="rgid, egid, sgid"/>
<%docstring>
Invokes the syscall setresgid. See 'man 2 setresgid' for more information.
Arguments:
rgid(gid_t): rgid
egid(gid_t): egid
sgid(gid_t): sgid
</%docstring>
${syscall('SYS_setresgid', rgid, egid,... |
/* Copyright (c) 2010-2019, Delft University of Technology
* All rigths reserved
*
* This file is part of the Tudat. Redistribution and use in source and
* binary forms, with or without modification, are permitted exclusively
* under the terms of the Modified BSD license. You should have received
*... |
.global s_prepare_buffers
s_prepare_buffers:
push %r15
push %r8
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x1fb0, %rax
and $50495, %r8
mov $0x6162636465666768, %rbx
movq %rbx, %xmm1
vmovups %ymm1, (%rax)
nop
nop
nop
nop
nop
cmp %r15, %r15
lea addresses_normal_ht+0x199b0, %rsi
l... |
SECTION code_fp_math48
PUBLIC am48_dconst_1_3
EXTERN mm48__ac1_3
; set AC = 1/3
;
; uses : bc, de, hl
defc am48_dconst_1_3 = mm48__ac1_3
|
#pragma once
#include <GLFW/glfw3.h>
#include <spdlog/spdlog.h>
#include <vulkan/vulkan.h>
#include <cassert>
namespace inexor::vulkan_renderer::wrapper {
class WindowSurface {
private:
VkInstance m_instance;
VkSurfaceKHR m_surface;
public:
/// @brief Creates a new window surface.
/// @param instan... |
/****************************************************************************
*
* Copyright (c) 2012-2018 PX4 Development Team. 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. Red... |
; A033567: a(n) = (2*n-1)*(4*n-1).
; 1,3,21,55,105,171,253,351,465,595,741,903,1081,1275,1485,1711,1953,2211,2485,2775,3081,3403,3741,4095,4465,4851,5253,5671,6105,6555,7021,7503,8001,8515,9045,9591,10153,10731,11325,11935,12561,13203,13861,14535,15225,15931,16653,17391,18145,18915,19701,20503,21321,22155,23005,23871,2... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r15
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0xc480, %r15
nop
nop
nop
cmp %rdx, %rdx
mov $0x6162636465666768, %r14
movq %r14, %xmm1
vmovups %ymm1, (%r15)
nop
sub %rcx, %rcx
lea addresses_UC_ht+0x1b9c0, %r11
nop
... |
.intel_syntax noprefix
MFENCE
MOV rax, [r14]
MOV rax, [r14 + 4096]
MOV rax, [r14 + 8192]
MOV rax, [r14 + 12288]
MOV rax, [r14 + 16384]
MOV rax, [r14 + 20480]
MOV rax, [r14 + 24576]
MOV rax, [r14 + 28672]
MOV rax, [r14 + 32768]
MOV rax, [r14 + 512]
MOV rax, [r14 + 512 + 4096]
MOV rax, [r14 + 512 + 8192]
MOV rax, [r14 +... |
; A182619: Number of vertices that are connected to two edges in a spiral without holes constructed with n hexagons.
; 6,8,9,10,11,12,12,13,14,14,15,15,16,16,17,17,18,18,18,19,19,20,20,20,21,21,21,22,22,22,23,23,23,24,24,24,24
mov $2,$0
add $2,$0
mul $0,4
mul $2,4
add $2,4
add $0,$2
lpb $0
sub $0,3
add $1,1
add ... |
; void zx_scroll_up_attr(uchar rows, uchar attr)
SECTION code_clib
SECTION code_arch
PUBLIC zx_scroll_up_attr
EXTERN asm0_zx_scroll_up_attr
zx_scroll_up_attr:
pop af
pop hl
pop de
push de
push hl
push af
jp asm0_zx_scroll_up_attr
|
/*
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include <vector>
#include "util/test.h"
#include "shell/lean_js.h"
using namespace lean;
int main() {
save_stack_info();
initialize_emscripten();
... |
#include "ModelEncoder.h"
#include <regex>
namespace Ingenuity {
ModelEncoder::Loader::~Loader()
{
for(unsigned i = 0; i < models.size(); ++i)
{
delete models[i].mesh;
}
}
void ModelEncoder::Loader::Respond()
{
if(buffer)
{
models = DecodeModels(buffer, bufferLength);
int directoryIndex = path.find_last... |
; char *_memupr_(void *p, size_t n)
SECTION code_string
PUBLIC _memupr__callee
EXTERN asm__memupr
_memupr__callee:
pop hl
pop bc
ex (sp),hl
jp asm__memupr
|
; A099841: Expansion of (1-16*x)/(1-20*x+80*x^2).
; Submitted by Christian Krause
; 1,4,0,-320,-6400,-102400,-1536000,-22528000,-327680000,-4751360000,-68812800000,-996147200000,-14417920000000,-208666624000000,-3019898880000000,-43704647680000000,-632501043200000000,-9153649049600000000,-132472897536000000000
add $0,... |
; A288834: a(n) = (n+1) * 3^(n-1).
; 2,9,36,135,486,1701,5832,19683,65610,216513,708588,2302911,7440174,23914845,76527504,243931419,774840978,2453663097,7748409780,24407490807,76709256822,240588123669,753145430616,2353579470675,7343167948506,22876792454961
mov $1,3
pow $1,$0
add $0,2
mul $1,$0
mov $0,$1
|
/*
* Copyright (C) Volition, Inc. 1999. All rights reserved.
*
* All source code herein is the property of Volition, Inc. You may not sell
* or otherwise commercially exploit the source or things you created based on
* the source.
*/
/*
* $Logfile: /Freespace2/code/Graphics/TmapScanTiled32x32.cpp $
* $Revisi... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT:
MODULE:
FILE: blackholepref.asm
AUTHOR: Adam de Boor, Dec 3, 1992
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Descr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.