Index

Package: Modulo_Type_Generic (generic)

Description

generic

   Modulo : Positive;

package Modulo_Type_Generic is
Uwe R. Zimmer, Australia, 2014

Types

Constants & Global variables

Subprograms & Entries

Add_Mod

function Add_Mod 
(Left, Right: Mod_Type) return Mod_Type is ((Left + Right) mod Modulo);

References:

modulo_type_generic.ads:13:13 (declaration)
modulo_type_generic.ads:19:77 (reference)

Sub_Mod

function Sub_Mod 
(Left, Right: Mod_Type) return Mod_Type is ((Left - Right) mod Modulo);

References:

modulo_type_generic.ads:14:13 (declaration)
modulo_type_generic.ads:20:77 (reference)

Mul_Mod

function Mul_Mod 
(Left, Right: Mod_Type) return Mod_Type is ((Left * Right) mod Modulo);

References:

modulo_type_generic.ads:15:13 (declaration)
modulo_type_generic.ads:21:77 (reference)

Div_Mod

function Div_Mod 
(Left, Right: Mod_Type) return Mod_Type is ((Left / Right) mod Modulo);

References:

modulo_type_generic.ads:16:13 (declaration)
modulo_type_generic.ads:22:77 (reference)

Pow_Mod

function Pow_Mod 
(Left: Mod_Type;
Right: Natural) return Mod_Type is ((Left ** Right) mod Modulo);

References:

modulo_type_generic.ads:17:13 (declaration)
modulo_type_generic.ads:23:77 (reference)

"+"

function "+"  
(Left, Right: Mod_Type) return Mod_Type renames Add_Mod;

References:

modulo_type_generic.ads:19:14 (declaration)

"-"

function "-"  
(Left, Right: Mod_Type) return Mod_Type renames Sub_Mod;

References:

modulo_type_generic.ads:20:14 (declaration)

"*"

function "*"  
(Left, Right: Mod_Type) return Mod_Type renames Mul_Mod;

References:

modulo_type_generic.ads:21:14 (declaration)

"/"

function "/"  
(Left, Right: Mod_Type) return Mod_Type renames Div_Mod;

References:

modulo_type_generic.ads:22:14 (declaration)

"**"

function "**" 
(Left: Mod_Type;
Right: Natural) return Mod_Type renames Pow_Mod;

References:

modulo_type_generic.ads:23:14 (declaration)