max_stars_repo_path stringlengths 4 261 | max_stars_repo_name stringlengths 6 106 | max_stars_count int64 0 38.8k | id stringlengths 1 6 | text stringlengths 7 1.05M |
|---|---|---|---|---|
libsrc/_DEVELOPMENT/adt/w_array/c/sccz80/w_array_destroy.asm | jpoikela/z88dk | 640 | 80235 | <filename>libsrc/_DEVELOPMENT/adt/w_array/c/sccz80/w_array_destroy.asm
; void w_array_destroy(w_array_t *a)
SECTION code_clib
SECTION code_adt_w_array
PUBLIC w_array_destroy
EXTERN asm_w_array_destroy
defc w_array_destroy = asm_w_array_destroy
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _w_array_destroy
defc _w... |
libsrc/target/smc777/graphics/w_respixl_MODE4.asm | Frodevan/z88dk | 640 | 90438 | ;
; Reset pixel at (x,y) coordinate.
SECTION code_clib
PUBLIC w_respixel_MODE4
defc NEEDunplot = 1
.w_respixel_MODE4
INCLUDE "pixel_MODE4.inc"
|
data/baseStats/doduo.asm | etdv-thevoid/pokemon-rgb-enhanced | 1 | 8583 | db DODUO ; pokedex id
db 35 ; base hp
db 85 ; base attack
db 45 ; base defense
db 75 ; base speed
db 35 ; base special
db NORMAL ; species type 1
db FLYING ; species type 2
db 190 ; catch rate
db 96 ; base exp yield
INCBIN "pic/gsmon/doduo.pic",0,1 ; 55, sprite dimensions
dw DoduoPicFront
dw DoduoPicBack
; attacks know... |
final.asm | AbderrhmanAbdellatif/SysPro | 0 | 20943 | <filename>final.asm
segment .text
global final
; ebx,esi,edi,ebp,cs,ds,ss,es should remain unchanged
final:
push ebp
mov ebp,esp
push esi
sub esp,12 ;(max= -8 , count=-12 , 4=-16 )place
mov esi,4 ; esi = 4
mov [ebp-16],esi ; [ebp-16] = 4
mov eax,[ebp+8] ; ea... |
oeis/208/A208178.asm | neoneye/loda-programs | 11 | 243210 | ; A208178: Primes of the form 256*k + 1.
; Submitted by <NAME>
; 257,769,3329,7681,7937,9473,10753,11777,12289,13313,14081,14593,15361,17921,18433,19457,22273,23041,23297,25601,26113,26881,30977,31489,32257,36097,36353,37633,37889,39937,40193,40961,41729,43777,45569,46337,49409,49921,50177,51713,57089,57601,58369,59393... |
src/Prelude/Ord/Reasoning.agda | L-TChen/agda-prelude | 111 | 14970 | <filename>src/Prelude/Ord/Reasoning.agda
module Prelude.Ord.Reasoning where
open import Prelude.Equality
open import Prelude.Ord
open import Prelude.Function
module _ {a} {A : Set a} {{OrdA : Ord/Laws A}} where
private
lt/leq-trans : ∀ {x y z : A} → x < y → y ≤ z → x < z
lt/leq-trans x<y y≤z =
case ... |
Library/Text/TextLine/tlLargeOffset.asm | steakknife/pcgeos | 504 | 91643 | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: tlLargeOffset.asm
AUTHOR: <NAME>, Dec 26, 1991
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Descri... |
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_21829_454.asm | ljhsiun2/medusa | 9 | 83519 | <filename>Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_21829_454.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x6961, %r9
clflush (%r9)
nop
nop
nop
sub $58722, %r13
movw $0x6162, (%r9)
nop
nop
dec %rb... |
programs/oeis/131/A131406.asm | jmorken/loda | 1 | 84042 | ; A131406: 3*A128174 - 2*A000012(signed).
; 1,2,1,1,2,1,2,1,2,1,1,2,1,2,1,2,1,2,1,2,1,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1
mov $1,4
mov $2,5
lpb $0
sub $0,1
sub $0,$1
add $1,4
lpe
add $0,$2
gcd $0,2
mov $1,$0
|
oeis/317/A317487.asm | neoneye/loda-programs | 11 | 82852 | <filename>oeis/317/A317487.asm<gh_stars>10-100
; A317487: Number of 4-cycles in the n-Bruhat graph.
; Submitted by <NAME>(s2)
; 0,0,0,6,90,1080,12600,151200,1905120,25401600,359251200,5388768000,85621536000,1438441804800,25499650176000,475993469952000,9336794987520000,192071211171840000,4135933413900288000,930585018127... |
scripts/UndergroundPathRoute7.asm | opiter09/ASM-Machina | 1 | 172898 | <filename>scripts/UndergroundPathRoute7.asm
UndergroundPathRoute7_Script:
ld a, ROUTE_7
ld [wLastMap], a
jp EnableAutoTextBoxDrawing
UndergroundPathRoute7_TextPointers:
dw UndergroundPathEntranceRoute7Text1
UndergroundPathEntranceRoute7Text1:
text_far _UndergroundPathEntRoute7Text1
text_end
|
Cubical/Algebra/Group.agda | thomas-lamiaux/cubical | 1 | 7935 | {-# OPTIONS --safe #-}
module Cubical.Algebra.Group where
open import Cubical.Algebra.Group.Base public
open import Cubical.Algebra.Group.Properties public
|
kernel.asm | plane000/OwOS | 1 | 23915 | <reponame>plane000/OwOS
# OwOS
# Copyright <NAME> (c) 2019
# declare constants for the multiboot header
.set ALIGN, 1<<0 # align loaded modules on page boundaries
.set MEMINFO, 1<<1 # provide memory map
.set FLAGS, ALIGN | MEMINFO # this is the Multiboot 'flag' f... |
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2_notsx.log_19999_992.asm | ljhsiun2/medusa | 9 | 17945 | <reponame>ljhsiun2/medusa
.global s_prepare_buffers
s_prepare_buffers:
push %r15
push %rbp
push %rdx
lea addresses_WT_ht+0x10d29, %rdx
nop
nop
nop
add %r15, %r15
mov (%rdx), %rbp
nop
nop
sub $16976, %r15
pop %rdx
pop %rbp
pop %r15
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r14
push %rax
pus... |
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca_notsx.log_598_1874.asm | ljhsiun2/medusa | 9 | 1712 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %r15
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x109f9, %rsi
lea addresses_normal_ht+0x139e9, %rdi
nop
nop
nop
add %rdx, %rdx
mov $28, %rcx
rep movsl
nop
cmp $46839, %r15
lea addresses_normal_ht+0x2221, %rcx
nop
and %r... |
Task/Knuth-shuffle/Ada/knuth-shuffle-2.ada | LaudateCorpus1/RosettaCodeData | 1 | 28014 | with Ada.Numerics.Discrete_Random;
procedure Generic_Shuffle (List : in out Array_Type) is
package Discrete_Random is new Ada.Numerics.Discrete_Random(Result_Subtype => Integer);
use Discrete_Random;
K : Integer;
G : Generator;
T : Element_Type;
begin
Reset (G);
for I in reverse List'Range loop
... |
source/containers/a-colive.adb | ytomino/drake | 33 | 15331 | with Ada.Containers.Array_Sorting;
-- diff (Ada.Unchecked_Conversion)
with Ada.Unchecked_Deallocation;
with System.Address_To_Named_Access_Conversions;
with System.Growth;
with System.Long_Long_Integer_Types;
package body Ada.Containers.Limited_Vectors is
pragma Check_Policy (Validate => Ignore);
-- diff
use ty... |
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_2009_1649.asm | ljhsiun2/medusa | 9 | 164582 | <gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r15
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x4316, %rsi
lea addresses_UC_ht+0x14b16, %rdi
sub %rax, %rax
mov $111, %rcx
rep movsb
nop
nop
nop
xor $23071, %rcx
lea addresses_normal_ht+0x9e6, %rsi
lea addresses_D_ht+... |
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sccz80/cosh.asm | jpoikela/z88dk | 640 | 3457 |
SECTION code_clib
SECTION code_fp_math48
PUBLIC cosh
EXTERN cm48_sccz80_cosh
defc cosh = cm48_sccz80_cosh
|
tests/src/tests-device.adb | Fabien-Chouteau/usb_embedded | 14 | 2573 | <gh_stars>10-100
with AAA.Strings;
with HAL; use HAL;
with USB_Testing.UDC_Stub; use USB_Testing.UDC_Stub;
with USB_Testing.UDC_Scenarios;
with USB_Testing; use USB_Testing;
with USB.HAL.Device; use USB.HAL.Device;
with USB; use USB;
package body Tests.Device is
------------
-- Set_Up --
------------
o... |
hdr.asm | malayli/snes-bg3-text | 1 | 95966 | <gh_stars>1-10
;==LoRom== ; We'll get to HiRom some other time.
.MEMORYMAP ; Begin describing the system architecture.
SLOTSIZE $8000 ; The slot is $8000 bytes in size. More details on slots later.
DEFAULTSLOT 0 ; There's only 1 slot in S... |
oeis/131/A131935.asm | neoneye/loda-programs | 11 | 164501 | ; A131935: a(n) is the number of Khalimsky-continuous functions with four-point codomain and an n-point range.
; Submitted by <NAME>
; 4,7,15,31,65,136,285,597,1251,2621,5492,11507,24111,50519,105853
lpb $0
sub $0,1
sub $3,$4
add $1,$3
add $4,1
add $4,$2
add $2,$3
mov $5,$4
mov $4,$2
mov $2,$3
add ... |
asm_main.asm | JoseC1/Project_3 | 0 | 89493 | ;
; file: asm_main.asm
%include "asm_io.inc"
; initialized data is put in the .data segment
segment .data
;Greeting msg
Gmsg: db "Welcome to my program, my name is Jose",10,0
;Age messages
Amsg: db "I am currently ",0
Amsg_2: db " years old",10,0
;Age
num: dd 19;
;Favorite Letter Msg
Lmsg: db "And my favorite l... |
src/render-fonts.ads | docandrew/troodon | 5 | 22425 | with Freetype;
package Render.Fonts is
FONT_SIZE : constant := 14;
-- We reuse this object to store the current character glyph
face : Freetype.FT_Face;
emojiFace : Freetype.FT_Face;
--glyph : Freetype.FT_GlyphSlot;
function loadGlyph (c : Character; fontFace : Freetype.FT_Fac... |
programs/oeis/337/A337509.asm | karttu/loda | 1 | 16812 | ; A337509: Number of partitions of n into two distinct parts (s,t), such that (t-s) | n, and where n/(t-s) <= s < t.
; 0,0,0,0,0,0,0,1,1,0,0,2,0,0,2,2,0,1,0,2,2,0,0,4,1,0,2,2,0,2,0,3,2,0,2,4,0,0,2,4,0,2,0,2,4,0,0,6,1,1,2,2,0,2,2,4,2,0,0,6,0,0,4,4,2,2,0,2,2,2,0,7,0,0,4,2,2,2,0,6,3,0,0,6,2,0,2,4,0,4,2,2,2,0,2,8
cal $0,3... |
src/openapi.ads | mgrojo/swagger-ada | 0 | 4460 | <gh_stars>0
-----------------------------------------------------------------------
-- openapi -- Support library for OpenAPI code generator
-- Copyright (C) 2017, 2022 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in... |
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_16477_702.asm | ljhsiun2/medusa | 9 | 25632 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r14
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x1930f, %r13
nop
nop
nop
nop
xor $2564, %rdx
movl $0x61626364, (%r13)
nop
nop
dec %r8
lea addresses_WT_ht+0xfeff, %rsi
lea addresses_D_ht+0x2d6f, %rdi
nop
nop
nop
and $591... |
tools/xmodem/highpage.asm | vipoo/msxrc2014 | 1 | 177576 |
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... |
tier-1/xcb/source/thin/xcb-xcb_render_linefix_t.ads | charlie5/cBound | 2 | 7269 | <reponame>charlie5/cBound
-- This file is generated by SWIG. Please do not modify by hand.
--
with xcb.xcb_render_pointfix_t;
with Interfaces.C;
with Interfaces.C.Pointers;
package xcb.xcb_render_linefix_t is
-- Item
--
type Item is record
p1 : aliased xcb.xcb_render_pointfix_t.Item;
p2 : aliase... |
Monkeybrains.g4 | andytesti/mc2wasm | 4 | 5288 | <filename>Monkeybrains.g4
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
grammar Monkeybrains;
IfToken : 'if';
ElseToken : 'else';
WhileToken : 'while';
DoToken : 'do';
ForToken : 'for';
VarToken : 'var';
ConstToken: 'const';
ClassToken: 'class';
FunctionToken: 'fu... |
oeis/157/A157636.asm | neoneye/loda-programs | 11 | 84791 | <reponame>neoneye/loda-programs
; A157636: Triangle read by rows: T(n, k) = 1 if k=0 or k=n, otherwise = n*k*(n-k)/2.
; Submitted by <NAME>
; 1,1,1,1,1,1,1,3,3,1,1,6,8,6,1,1,10,15,15,10,1,1,15,24,27,24,15,1,1,21,35,42,42,35,21,1,1,28,48,60,64,60,48,28,1,1,36,63,81,90,90,81,63,36,1,1,45,80,105,120,125,120,105,80,45,1,1,... |
src/risi_script-types-patterns.ads | OneWingedShark/Risi | 1 | 23068 | Pragma Ada_2012;
Pragma Wide_Character_Encoding( UTF8 );
with
Risi_Script.Types.Implementation,
Ada.Characters.Handling;
Package Risi_Script.Types.Patterns is
Use Risi_Script.Types.Implementation;
---------------------
-- PATTERN TYPES --
---------------------
--#TODO: Implement the pattern-types;... |
programs/oeis/217/A217477.asm | neoneye/loda | 22 | 177606 | <reponame>neoneye/loda<filename>programs/oeis/217/A217477.asm
; A217477: Z-sequence for the Riordan triangle A111125;
; 3,-4,12,-40,140,-504,1848,-6864,25740,-97240,369512,-1410864,5408312,-20801200,80233200,-310235040,1202160780,-4667212440,18150270600,-70690527600,275693057640,-1076515748880,4208197927440,-1646686145... |
oeis/017/A017227.asm | neoneye/loda-programs | 11 | 163615 | ; A017227: a(n) = (9*n + 5)^7.
; 78125,105413504,3404825447,34359738368,194754273881,781250000000,2488651484819,6722988818432,16048523266853,34792782221696,69833729609375,131593177923584,235260548044817,402271083010688,662062621900811,1054135040000000,1630436461403549,2458100350228352,3622557586593623,5231047633534976,... |
Cubical/Structures/Relational/Auto.agda | Schippmunk/cubical | 0 | 10842 | <filename>Cubical/Structures/Relational/Auto.agda
{-
Macros (autoDesc, AutoStructure, AutoEquivStr, autoUnivalentStr) for automatically generating structure definitions.
For example:
autoDesc (λ (X : Type₀) → X → X × ℕ) ↦ function+ var (var , constant ℕ)
We prefer to use the constant structure whenever possib... |
BasicIPC/Semantics/KripkeConcreteGluedImplicit.agda | mietek/hilbert-gentzen | 29 | 10627 | -- Basic intuitionistic propositional calculus, without ∨ or ⊥.
-- Kripke-style semantics with contexts as concrete worlds, and glueing for α and ▻.
-- Implicit syntax.
module BasicIPC.Semantics.KripkeConcreteGluedImplicit where
open import BasicIPC.Syntax.Common public
open import Common.Semantics public
open Concr... |
lib/target/hemc/classic/hemc_crt0.asm | w5Mike/z88dk | 4 | 171008 | ;
; Startup for Hübler/Evert-MC
;
; https://hc-ddr.hucki.net/wiki/doku.php/homecomputer/huebler#hueblerevert-mc
;
module hemc_crt0
INCLUDE "target/hemc/def/hemc.def"
;--------
; Include zcc_opt.def to find out some info
;--------
defc crt0 = 1
INCLUDE "zcc_opt.def"
;--------
; Some scope defin... |
2020_notebooks/Labs/lab_5/lab5_release/calculator/Calc.g4 | blended-learning/compilers | 0 | 922 | grammar Calc;
@header {
package calculator;
}
program : (statement ';')+ EOF
;
statement : assign # assignStatement
| expr # exprStatement
;
assign : ID '=' expr
;
expr : e1=expr '+' e2=expr # add
| ... |
agda/Esterel/Lang/CanFunction.agda | florence/esterel-calculus | 3 | 628 | <filename>agda/Esterel/Lang/CanFunction.agda
module Esterel.Lang.CanFunction where
open import utility
hiding (module ListSet)
open import Esterel.Lang
open import Esterel.Environment as Env
using (Env ; _←_ ; Θ ; module SigMap ; module ShrMap ; module VarMap)
open import Esterel.CompletionCode as Code
using ()... |
demo/src/formatted_output_demo.adb | VitalijBondarenko/Formatted_Output_NG | 0 | 27630 | with Ada.Text_IO;
with Ada.Calendar;
with Interfaces; use Interfaces;
with Formatted_Output; use Formatted_Output;
with Formatted_Output_Integer; use Formatted_Output_Integer;
with Formatted_Output_Long_Integer; use Formatted_Output_Long_Integer;
with Fo... |
alloy4fun_models/trashltl/models/4/3NZdcvJZFax8MeSwC.als | Kaixi26/org.alloytools.alloy | 0 | 3662 | <gh_stars>0
open main
pred id3NZdcvJZFax8MeSwC_prop5 {
always all f : Trash | eventually f not in File
}
pred __repair { id3NZdcvJZFax8MeSwC_prop5 }
check __repair { id3NZdcvJZFax8MeSwC_prop5 <=> prop5o } |
programs/oeis/090/A090178.asm | neoneye/loda | 22 | 86576 | <reponame>neoneye/loda<filename>programs/oeis/090/A090178.asm
; A090178: a(1) = 2; for n > 1, a(n) = n + prime(n-1).
; 2,4,6,9,12,17,20,25,28,33,40,43,50,55,58,63,70,77,80,87,92,95,102,107,114,123,128,131,136,139,144,159,164,171,174,185,188,195,202,207,214,221,224,235,238,243,246,259,272,277,280,285,292,295,306,313,320... |
programs/oeis/038/A038723.asm | karttu/loda | 0 | 14186 | <reponame>karttu/loda<gh_stars>0
; A038723: a(n) = 6*a(n-1) - a(n-2), n >= 2, a(0)=1, a(1)=4.
; 1,4,23,134,781,4552,26531,154634,901273,5253004,30616751,178447502,1040068261,6061962064,35331704123,205928262674,1200237871921,6995498968852,40772755941191,237641036678294,1385073464128573
mov $1,1
lpb $0,1
sub $0,1
ad... |
alloy4fun_models/trainstlt/models/5/X993o42sk5pRKczRT.als | Kaixi26/org.alloytools.alloy | 0 | 2980 | open main
pred idX993o42sk5pRKczRT_prop6 {
always (all s:Signal | (s in Green) implies eventually (s not in Green ) or
s not in Green implies eventually (s in Green) )
}
pred __repair { idX993o42sk5pRKczRT_prop6 }
check __repair { idX993o42sk5pRKczRT_prop6 <=> prop6o } |
programs/oeis/223/A223925.asm | karttu/loda | 1 | 245750 | ; A223925: a(2n+1) = 2*n-1; a(2n)= 4^n.
; 1,4,3,16,5,64,7,256,9,1024,11,4096,13,16384,15,65536,17,262144,19,1048576,21,4194304,23,16777216,25,67108864,27,268435456,29,1073741824,31,4294967296,33,17179869184,35,68719476736,37,274877906944,39,1099511627776,41,4398046511104,43,17592186044416,45,70368744177664,47,281474976... |
src/latin_utils/latin_utils-inflections_package-adverb_record_io.adb | spr93/whitakers-words | 204 | 8521 | <reponame>spr93/whitakers-words<gh_stars>100-1000
-- WORDS, a Latin dictionary, by <NAME> (USAF, Retired)
--
-- Copyright <NAME> (1936–2010)
--
-- This is a free program, which means it is proper to copy it and pass
-- it on to your friends. Consider it a developmental item for which
-- there is no charge. However, jus... |
programs/oeis/336/A336483.asm | jmorken/loda | 1 | 85964 | <filename>programs/oeis/336/A336483.asm<gh_stars>1-10
; A336483: Floor(n/10) + (5 times last digit of n).
; 0,5,10,15,20,25,30,35,40,45,1,6,11,16,21,26,31,36,41,46,2,7,12,17,22,27,32,37,42,47,3,8,13,18,23,28,33,38,43,48,4,9,14,19,24,29,34,39,44,49,5,10,15,20,25,30,35,40,45,50,6,11,16,21,26,31,36,41,46,51,7
add $0,366
... |
programs/oeis/059/A059154.asm | karttu/loda | 1 | 95116 | <filename>programs/oeis/059/A059154.asm
; A059154: A hierarchical sequence (W'2{3}c - see A059126).
; 12,96,12,768,12,96,12,6144,12,96,12,768,12,96,12,49152,12,96,12,768,12,96,12,6144,12,96,12,768,12,96,12,393216,12,96,12,768,12,96,12,6144,12,96,12,768,12,96,12,49152,12,96,12,768,12,96,12,6144,12,96,12,768
add $0,1
po... |
tests/polymorphism/src/hal_interface.ads | TUM-EI-RCS/StratoX | 12 | 28851 | <gh_stars>10-100
package HAL_Interface with SPARK_Mode is
pragma Preelaborate;
type Byte is mod 2**8;
type Port_Type is interface; -- abstract tagged null record; -- interface
type Configuration_Type is null record;
subtype Address_Type is Integer;
type Data_Type is array(Natural range <>)... |
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/short_circuit_v2.adb | ouankou/rose | 488 | 28445 | function IsDivisible(x, y: IN Integer) return Integer is
Result : Integer;
begin
Result := 0;
if y = 0 or else x = 0 then
Result := 0;
else
Result := x / y;
end if;
if y = 0 and then x = 0 then
Result := 0;
else
Result := x * (x / y );
end if;
return Result;
end IsDivi... |
programs/oeis/171/A171503.asm | neoneye/loda | 22 | 4318 | <reponame>neoneye/loda
; A171503: Number of 2 X 2 integer matrices with entries from {0,1,...,n} having determinant 1.
; 0,3,7,15,23,39,47,71,87,111,127,167,183,231,255,287,319,383,407,479,511,559,599,687,719,799,847,919,967,1079,1111,1231,1295,1375,1439,1535,1583,1727,1799,1895,1959,2119,2167,2335,2415,2511,2599,2783,... |
src/cpu/gdt.asm | programble/happy | 1 | 3060 | <gh_stars>1-10
global gdt.init
global gdt.table, gdt.table.null, gdt.table.code, gdt.table.data, gdt.table.#
Type:
.DATA: equ 0000_0000b
.CODE: equ 0000_1000b
.A: equ 0000_0001b
.W: equ 0000_0010b
.E: equ 0000_0100b
.R: equ 0000_0010b
.C: equ 0000_0100b
Access:
.S: equ 0001_0000b
.DPL0: equ 0000_000... |
src/scripts/com_apple_mail.applescript | brianm/deeplinker | 0 | 2298 | tell application id "com.apple.mail"
set theSelectedMessages to selection
set the selected_message to item 1 of the theSelectedMessages
set message_id to the message id of the selected_message
set message_title to the subject of the selected_message
end tell
-- http://harvey.nu/applescript_url_encode_routine.html
... |
test/Succeed/Issue939.agda | redfish64/autonomic-agda | 3 | 12123 | <filename>test/Succeed/Issue939.agda
{-# OPTIONS --copatterns #-}
module Issue939 where
record Sigma (A : Set)(P : A → Set) : Set where
field
fst : A
.snd : P fst
open Sigma
postulate
A : Set
P : A → Set
x : A
.p : P x
ex : Sigma A P
ex = record
{ fst = x
; snd = p
}
ex' : S... |
Transynther/x86/_processed/AVXALIGN/_st_4k_sm_/i7-7700_9_0xca_notsx.log_21829_1432.asm | ljhsiun2/medusa | 9 | 177681 | <reponame>ljhsiun2/medusa
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r15
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x94a1, %rdx
nop
nop
nop
nop
nop
xor %rdi, %rdi
movups (%rdx), %xmm2
vpextrq $1, %xmm2, %r12
nop
nop
nop
nop
nop
and %r15, %r15
lea addresses_WT_ht+0x... |
projects/batfish/src/main/antlr4/org/batfish/grammar/cisco_xr/CiscoXr_callhome.g4 | pranavbj-amzn/batfish | 763 | 7593 | <gh_stars>100-1000
parser grammar CiscoXr_callhome;
import CiscoXr_common;
options {
tokenVocab = CiscoXrLexer;
}
call_home_null
:
NO?
(
ALERT_GROUP
| CONTACT
| CONTACT_EMAIL_ADDR
| CONTACT_NAME
| CONTRACT_ID
| CUSTOMER_ID
| MAIL_SERVER
| PHONE_NUMBER
| ... |
agda/BTree.agda | bgbianchi/sorting | 6 | 6618 | <reponame>bgbianchi/sorting<filename>agda/BTree.agda
module BTree {A : Set} where
open import Data.List
data BTree : Set where
leaf : BTree
node : A → BTree → BTree → BTree
flatten : BTree → List A
flatten leaf = []
flatten (node x l r) = (flatten l) ++ (x ∷ flatten r)
|
examples/simulator/src/libriscv-sim-gdb_remote_target.ads | Fabien-Chouteau/libriscv | 0 | 10980 | <filename>examples/simulator/src/libriscv-sim-gdb_remote_target.ads
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2019, <NAME> --
-- ... |
src/Bi/BoxMp.agda | mietek/formal-logic | 26 | 3397 | <reponame>mietek/formal-logic
-- Minimal implicational modal logic, de Bruijn approach, initial encoding
module Bi.BoxMp where
open import Lib using (List; []; _,_; LMem; lzero; lsuc)
-- Types
infixr 0 _=>_
data Ty : Set where
UNIT : Ty
_=>_ : Ty -> Ty -> Ty
BOX : Ty -> Ty
-- Context and... |
build.adb | annexi-strayline/AURA | 13 | 20591 | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Reference Implementation ... |
ffight/lcs/1p/66.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | 6 | 244089 | <filename>ffight/lcs/1p/66.asm
copyright zengfr site:http://github.com/zengfr/romhack
007CF0 move.w (-$6e0a,A5), ($66,A6) [1p+59]
007CF6 tst.b ($58,A6) [1p+66]
00849A moveq #$0, D5
0084A2 rts [1p+66, container+66, enemy+66]
00A2C6 dbra D0, $a2c0
00A340 clr.w ($66,A4)
00A344 clr.b ($88,A4)
copyri... |
Univalence/Obsolete/ConcretePermutation2.agda | JacquesCarette/pi-dual | 14 | 2319 | <reponame>JacquesCarette/pi-dual
{-# OPTIONS --without-K #-}
module ConcretePermutation where
import Level using (zero)
open import Data.Nat using (ℕ; _+_; _*_)
open import Data.Fin using (Fin)
open import Data.Product using (proj₁; proj₂)
open import Data.Vec using (tabulate)
open import Algebra using (Commutative... |
sources/glew/glew.ads | godunko/adagl | 6 | 16221 | ------------------------------------------------------------------------------
-- --
-- Ada binding for OpenGL/WebGL --
-- --
-- ... |
Transynther/x86/_processed/AVXALIGN/_st_sm_/i9-9900K_12_0xa0_notsx.log_21829_1089.asm | ljhsiun2/medusa | 9 | 179212 | <reponame>ljhsiun2/medusa
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r8
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x1ac2, %rbp
add %r8, %r8
mov $0x6162636465666768, %r10
movq %r10, %xmm6
vmovups %ymm6, (%rbp)
sub %rdx, %rdx
lea addresses_WT_ht+0x14a1e, %r... |
scripts/track/updater.tmpl.scpt | katsuma/itunes-client | 12 | 390 | <reponame>katsuma/itunes-client
tell application "iTunes"
set specified_track to (some track whose persistent ID is "#{persistent_id}")
#{update_records}
end tell
|
_anim/obj55.asm | NatsumiFox/AMPS-Sonic-1-2005 | 2 | 101623 | <filename>_anim/obj55.asm
; ---------------------------------------------------------------------------
; Animation script - Basaran enemy
; ---------------------------------------------------------------------------
dc.w byte_10230-Ani_obj55
dc.w byte_10234-Ani_obj55
dc.w byte_10238-Ani_obj55
byte_10230: dc.b $F... |
pixy/src/host/pantilt_in_ada/specs/x86_64_linux_gnu_sys_time_h.ads | GambuzX/Pixy-SIW | 1 | 25898 | <gh_stars>1-10
--
-- Copyright (c) 2015, <NAME> <<EMAIL>>
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above copyright
-- notice and this permission notice appear in all copies.
--
-- THE SOFTWARE IS PROVIDED "AS ... |
Cubical/DStructures/Structures/Type.agda | Schippmunk/cubical | 0 | 9516 |
{-# OPTIONS --cubical --no-import-sorts --safe #-}
module Cubical.DStructures.Structures.Type where
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Equiv
open import Cubical.Foundations.HLevels
open import Cubical.Functions.FunExtEquiv
open import Cubical.Foundations.Univalence
open import C... |
demo/adainclude/memory_set.ads | e3l6/SSMDev | 0 | 623 | with System; use System;
with Interfaces.C; use Interfaces.C;
package Memory_Set is
pragma Preelaborate;
function Memset (M : Address; C : int; Size : size_t) return Address;
pragma Export (C, Memset, "memset");
-- This function stores C converted to a Character in each of the elements
-- of the arra... |
mastersystem/zxb-sms-2012-02-23/zxb-sms/wip/zxb/library-asm/u32tofreg.asm | gb-archive/really-old-stuff | 10 | 175062 | <reponame>gb-archive/really-old-stuff
#include once <neg32.asm>
__I8TOFREG:
ld l, a
rlca
sbc a, a ; A = SGN(A)
ld h, a
ld e, a
ld d, a
__I32TOFREG: ; Converts a 32bit signed integer (stored in DEHL)
; to a Floating Point Number returned in (A ED CB)
ld a, d
or a ; Test sign
jp p, __U32TOFREG ; It was p... |
src/main.asm | daullmer/tic-tac-toe | 1 | 162652 | .data
# 1 = X 2 = O
board: .word 0 0 0 0 0 0 0 0 0
win_x: .string "X's Win!\n\n"
win_o: .string "O's win!\n\n"
tie: .string "Tie!\n\n"
.text
#######
# MAIN METHOD
#######
main:
jal draw_start
# stores gamemode selector in s9
# 0=>1 Player Mode 1=>2 Player Mode
mv s9, a4
li a4, 0
addi s9, s9, -1
# Board aufbaue... |
programs/oeis/048/A048497.asm | jmorken/loda | 1 | 20399 | ; A048497: a(n) = 2^(n-1)*(4*n - 6) + 4.
; 1,2,8,28,84,228,580,1412,3332,7684,17412,38916,86020,188420,409604,884740,1900548,4063236,8650756,18350084,38797316,81788932,171966468,360710148,754974724,1577058308,3288334340,6845104132,14227079172,29527900164,61203283972,126701535236,261993005060,541165879300,1116691496964,... |
disorderly/binary_rank.adb | jscparker/math_packages | 30 | 28643 | <reponame>jscparker/math_packages
-----------------------------------------------------------------------
-- package body Binary_Rank, routines for Marsaglia's Rank Test.
-- Copyright (C) 1995-2018 <NAME>
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is he... |
source/numerics/generic/a-nudsge.adb | ytomino/drake | 33 | 8713 | <filename>source/numerics/generic/a-nudsge.adb
package body Ada.Numerics.dSFMT.Generating is
-- no SIMD version
use type Interfaces.Unsigned_64;
procedure do_recursion (
r : aliased out w128_t;
a, b : aliased w128_t;
lung : aliased in out w128_t)
is
t0, t1, L0, L1 : Unsigned_64;
... |
programs/oeis/078/A078881.asm | neoneye/loda | 22 | 16046 | <filename>programs/oeis/078/A078881.asm
; A078881: Size of the largest subset S of {1,2,3,...,n} with the property that if i and j are distinct elements of S then i XOR j is not in S, where XOR is the bitwise exclusive-OR operator.
; 1,2,2,3,4,4,4,5,6,7,8,8,8,8,8,9,10,11,12,13,14,15,16,16,16,16,16,16,16,16,16,17,18,19,... |
third-party/gmp/gmp-src/mpn/x86_64/mod_1_2.asm | jhh67/chapel | 1,602 | 197 | dnl AMD64 mpn_mod_1s_2p
dnl Contributed to the GNU project by <NAME>.
dnl Copyright 2009-2012, 2014 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 G... |
source/program_structure/adam-program_unit.adb | charlie5/aIDE | 3 | 21771 | package body AdaM.program_Unit
is
procedure dummy is begin null; end dummy;
end AdaM.program_Unit;
|
demo/tutorial/components-destructibles.adb | csb6/libtcod-ada | 0 | 30663 | with Actors, Engines, Libtcod.Color; use Libtcod;
package body Components.Destructibles is
-------------
-- is_dead --
-------------
function is_dead(self : Destructible) return Boolean is (self.hp = 0);
-----------------
-- take_damage --
-----------------
function take_damage(self : in ou... |
base/boot/lib/i386/pae.asm | npocmaka/Windows-Server-2003 | 17 | 90203 | ;++
;
;Copyright (c) 1998 Microsoft Corporation
;
;Module Name:
;
; pae.asm
;
;Abstract:
;
; Contains routines to aid in enabling PAE mode.
;
;Author:
;
; <NAME> (forrestf) 12-28-98
;
;
;Revision History:
;
;--
.586p
.xlist
include ks386.inc
.list
_TEXT SEGMENT ... |
alloy4fun_models/trashltl/models/11/Bq7eFS6G5zPfmQCR9.als | Kaixi26/org.alloytools.alloy | 0 | 3202 | <reponame>Kaixi26/org.alloytools.alloy<gh_stars>0
open main
pred idBq7eFS6G5zPfmQCR9_prop12 {
eventually some f : Trash | after eventually f not in Trash
}
pred __repair { idBq7eFS6G5zPfmQCR9_prop12 }
check __repair { idBq7eFS6G5zPfmQCR9_prop12 <=> prop12o } |
test/Fail/Issue1946-5.agda | shlevy/agda | 0 | 7095 | -- This test case was reported by <NAME>.
{-# OPTIONS --no-guardedness #-}
open import Agda.Builtin.Size
data Σ (A : Set) (B : A → Set) : Set where
_,_ : (x : A) → B x → Σ A B
data ⊥ : Set where
record T (i : Size) : Set where
constructor con
coinductive
field
force : Σ (Size< i) λ{ j → T j }
open T p... |
_maps/obj18syz.asm | NatsumiFox/AMPS-Sonic-1-2005 | 2 | 161912 | <gh_stars>1-10
; ---------------------------------------------------------------------------
; Sprite mappings - SYZ platforms
; ---------------------------------------------------------------------------
dc.w byte_818A-Map_obj18a
byte_818A: dc.b 3
dc.b $F6, $B, 0, $49, $E0
dc.b $F6, 7, 0, $51, $F8
dc.b $F6, $B... |
AppleScript/Extras/Text Utility/Trim.applescript | rightontron/coteditor-SampleScripts | 24 | 247 | <reponame>rightontron/coteditor-SampleScripts
(*
Trim.applescript
Sample Script for CotEditor
Description:
Remove whitespaces at the begin/end of the frontmost document.
written by nakamuxu on 2008-01-05
modified by 1024jp on 2014-2015
*)
--
tell application "CotEditor"
if not (exists front document) then return
... |
programs/oeis/308/A308720.asm | neoneye/loda | 22 | 178067 | <gh_stars>10-100
; A308720: The maximum value in the continued fraction of sqrt(n), or 0 if there is no fractional part.
; 0,0,2,2,0,4,4,4,4,0,6,6,6,6,6,6,0,8,8,8,8,8,8,8,8,0,10,10,10,10,10,10,10,10,10,10,0,12,12,12,12,12,12,12,12,12,12,12,12,0,14,14,14,14,14,14,14,14,14,14,14,14,14,14,0,16,16,16,16,16,16,16
lpb $0
... |
programs/oeis/004/A004757.asm | jmorken/loda | 1 | 82192 | <reponame>jmorken/loda
; A004757: Binary expansion starts 101.
; 5,10,11,20,21,22,23,40,41,42,43,44,45,46,47,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,320,321,322,323,324,325,326,327,328... |
src/search-documents.adb | stcarrez/ada-search | 9 | 10727 | <reponame>stcarrez/ada-search
-----------------------------------------------------------------------
-- search-documents -- Documents indexed by the search engine
-- Copyright (C) 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use th... |
Driver/IFS/DOS/Common/dosConvertEUC.asm | steakknife/pcgeos | 504 | 6743 | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1994 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: dosConvertEUC.asm
AUTHOR: <NAME>, May 10, 1994
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Descrip... |
tools-src/gnu/gcc/gcc/ada/errout.adb | enfoTek/tomato.linksys.e2000.nvram-mod | 80 | 1733 | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
programs/oeis/139/A139620.asm | neoneye/loda | 22 | 161757 | ; A139620: a(n) = 190*n + 20.
; 20,210,400,590,780,970,1160,1350,1540,1730,1920,2110,2300,2490,2680,2870,3060,3250,3440,3630,3820,4010,4200,4390,4580,4770,4960,5150,5340,5530,5720,5910,6100,6290,6480,6670,6860,7050,7240,7430,7620,7810,8000,8190,8380,8570,8760,8950,9140,9330,9520,9710,9900,10090,10280,10470,10660,10850,... |
programs/oeis/000/A000326.asm | neoneye/loda | 22 | 89225 | ; A000326: Pentagonal numbers: a(n) = n*(3*n-1)/2.
; 0,1,5,12,22,35,51,70,92,117,145,176,210,247,287,330,376,425,477,532,590,651,715,782,852,925,1001,1080,1162,1247,1335,1426,1520,1617,1717,1820,1926,2035,2147,2262,2380,2501,2625,2752,2882,3015,3151,3290,3432,3577,3725,3876,4030,4187,4347,4510,4676,4845,5017,5192,5370,... |
src/spat-command_line.ads | yannickmoy/spat | 0 | 9919 | ------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (<EMAIL>)
--
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by Sam Hocevar. See the... |
Appl/FileMgrs2/CommonDesktop/CTool/ctoolToolMgr.asm | steakknife/pcgeos | 504 | 82702 | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: File Managers
MODULE: Installable Tools -- Tool Manager object
FILE: ctoolToolMgr.asm
AUTHOR: <NAME>, Aug 25, 1992
ROUTINES:
Name Description
---- --------... |
tool-testsuite/test/org/antlr/v4/test/tool/Psl.g4 | maximmenshikov/antlr4 | 11,811 | 3425 | <filename>tool-testsuite/test/org/antlr/v4/test/tool/Psl.g4<gh_stars>1000+
grammar Psl;
@parser::members
{
public void printPosition(String name, Token tok)
{
System.out.printf("%s: pos %d, len %d%n",
name, tok.getCharPositionInLine(), tok.getText().length());
}
/**
* Checks whether a set of digit groups... |
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/cond_expr2.ads | best08618/asylo | 7 | 14354 | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/cond_expr2.ads
package Cond_Expr2 is
function F (X : integer) return String;
end Cond_Expr2;
|
tpantlr2-code/code/reference/Recur.g4 | cgonul/antlr-poc | 10 | 2464 | lexer grammar Recur;
ACTION : '{' ( ACTION | ~[{}] )* '}' ;
WS : [ \r\t\n]+ -> skip ;
|
src/mqtt.ads | jpuente/Temperature_Sensor | 0 | 29930 | <reponame>jpuente/Temperature_Sensor
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2017, Universidad Politécnica de Madrid --
-- ... |
oeis/020/A020957.asm | neoneye/loda-programs | 11 | 16392 | ; A020957: a(n) = Sum_{k >= 1} floor(2*tau^(n-k)).
; Submitted by <NAME>
; 3,6,11,19,32,54,89,147,240,392,637,1035,1678,2720,4405,7133,11546,18688,30243,48941,79194,128146,207351,335509,542872,878394,1421279,2299687,3720980,6020682,9741677,15762375,25504068,41266460,66770545
lpb $0
sub $0,1
sub $4,2
sub $3,$4
... |
src/Holes/Util.agda | bch29/agda-holes | 24 | 1641 | module Holes.Util where
open import Holes.Prelude
private
Rel : ∀ {a} → Set a → ∀ ℓ → Set (a ⊔ lsuc ℓ)
Rel A ℓ = A → A → Set ℓ
module CongSplit {ℓ x} {X : Set x} (_≈_ : Rel X ℓ) (reflexive : ∀ {x} → x ≈ x) where
two→one₁ : {_+_ : X → X → X}
→ (∀ {x x′ y y′} → x ≈ x′ → y ≈ y′ → (x + y) ≈ (x′ + y′))... |
Smoola.g4 | gsoosk/SmoolaCompiler | 5 | 2067 | <reponame>gsoosk/SmoolaCompiler
grammar Smoola;
@header {
import main.Tools.AstMaker;
import main.ast.node.*;
import main.ast.*;
import main.ast.node.expression.*;
import main.ast.node.expression.Value.*;
import main.ast.node.statement.*;
import main.ast.node.declaration.*;
import main.ast.Type.*;
import main.ast.Type... |
data/mapObjects/ssanne3.asm | adhi-thirumala/EvoYellow | 16 | 3256 | SSAnne3Object:
db $c ; border block
db $2 ; warps
db $3, $0, $0, SS_ANNE_5
db $3, $13, $7, SS_ANNE_2
db $0 ; signs
db $1 ; objects
object SPRITE_SAILOR, $9, $3, WALK, $2, $1 ; person
; warp-to
EVENT_DISP SS_ANNE_3_WIDTH, $3, $0 ; SS_ANNE_5
EVENT_DISP SS_ANNE_3_WIDTH, $3, $13 ; SS_ANNE_2
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.