DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Rational R1000/400

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦41795f93e⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, generic, package Generic_Primitive_Functions, seg_0066df

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦5a81ac88f⟧ »Space Info Vol 1« 
        └─⟦this⟧ 

E3 Source Code



generic
   type Float_Type    is digits <>;
   type Exponent_Type is range <>;
package Generic_Primitive_Functions is

-- from "Proposed Standard for a Generic package of Primitive Functions
-- for Ada" ISO-IEC/JTC1/SC22/WG9 (Ada) Numerics Rapporteur Group
-- Draft 1.0, 13 December 1990

   function  Exponent  (X : Float_Type)           return Exponent_Type;
   function  Fraction  (X : Float_Type)           return Float_Type;
   procedure Decompose (X        : in  Float_Type;
                        Fraction : out Float_Type;
                        Exponent : out Exponent_Type);
   function  Compose   (Fraction : Float_Type;  
                        Exponent : Exponent_Type) return Float_Type;
   function  Scale     (X        : Float_Type;  
                        Exponent : Exponent_Type) return Float_Type;

   function Floor     (X : Float_Type)    return Float_Type;
   function Ceiling   (X : Float_Type)    return Float_Type;
   function Round     (X : Float_Type)    return Float_Type;
   function Truncate  (X : Float_Type)    return Float_Type;
   function Remainder (X, Y : Float_Type) return Float_Type;

   function Adjacent    (X, Towards : Float_Type) return Float_Type;
   function Successor   (X : Float_Type)          return Float_Type;
   function Predecessor (X : Float_Type)          return Float_Type;

   function Copy_Sign    (Value, Sign : Float_Type) return Float_Type;
   function Leading_Part (X            : Float_Type;  
                          Radix_Digits : Positive)  return Float_Type;

end Generic_Primitive_Functions;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=17 rec1=00 rec2=01 rec3=034
        [0x01] rec0=0d rec1=00 rec2=02 rec3=000
    tail 0x21501613481c04b24353f 0x42a00066462061e03