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

⟦88e83a8b4⟧ Ada Source

    Length: 6144 (0x1800)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Arithmetic, seg_005829

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



package body Arithmetic is
------------------------------------------------------------------------------
-- X Library Tool Types
--
-- Arithmetic - Machine/Compiler dependent numeric types.
------------------------------------------------------------------------------
-- Copyright 1989 - 1991 by Rational, Santa Clara, California.
--
--                  All Rights Reserved.
--
-- Permission to use, copy, modify, and distribute this software and its
-- documentation for any purpose and without fee is hereby granted,
-- provided that the above copyright notice(s) appear in all copies and that
-- both that copyright notice(s) and this permission notice appear in
-- supporting documentation, and that the name of Rational not be used in
-- advertising or publicity pertaining to distribution of the software
-- without specific, written prior permission.
--
-- Rational disclaims all warranties with regard to this software, including
-- all implied warranties of merchantability and fitness, in no event shall
-- Rational be liable for any special, indirect or consequential damages or
-- any damages whatsoever resulting from loss of use, data or profits, whether
-- in an action of contract, negligence or other tortious action, arising out
-- of or in connection with the use or performance of this software.
------------------------------------------------------------------------------

--\x0c
    function Max (A : S_Long;  
                  B : S_Long) return S_Long is
        ----Simple MAX function.
    begin
        if A > B then
            return A;
        else
            return B;
        end if;
    end Max;

--\x0c
    function Min (A : S_Long;  
                  B : S_Long) return S_Long is
        ----Simple MIN function.
    begin
        if A < B then
            return A;
        else
            return B;
        end if;
    end Min;

--\x0c
    --     function Max (A : U_Long;
--                   B : U_Long)
--                  return U_Long is
--         ----Simple MAX function.
--     begin
--         if A > B then
--             return A;
--         else
--             return B;
--         end if;
--     end Max;
--
-- --\x0c
    --     function Min (A : U_Long;
--                   B : U_Long)
--                  return U_Long is
--         ----Simple MIN function.
--     begin
--         if A < B then
--             return A;
--         else
--             return B;
--         end if;
--     end Min;
--
--\x0c
    function Max (A : S_Short;  
                  B : S_Short) return S_Short is
        ----Simple MAX function.
    begin
        if A > B then
            return A;
        else
            return B;
        end if;
    end Max;

--\x0c
    function Min (A : S_Short;  
                  B : S_Short) return S_Short is
        ----Simple MIN function.
    begin
        if A < B then
            return A;
        else
            return B;
        end if;
    end Min;

--\x0c
    function Max (A : U_Short;  
                  B : U_Short) return U_Short is
        ----Simple MAX function.
    begin
        if A > B then
            return A;
        else
            return B;
        end if;
    end Max;

--\x0c
    function Min (A : U_Short;  
                  B : U_Short) return U_Short is
        ----Simple MIN function.
    begin
        if A < B then
            return A;
        else
            return B;
        end if;
    end Min;

--\x0c
    function Max (A : S_Char;  
                  B : S_Char) return S_Char is
        ----Simple MAX function.
    begin
        if A > B then
            return A;
        else
            return B;
        end if;
    end Max;

--\x0c
    function Min (A : S_Char;  
                  B : S_Char) return S_Char is
        ----Simple MIN function.
    begin
        if A < B then
            return A;
        else
            return B;
        end if;
    end Min;

--\x0c
    function Max (A : U_Char;  
                  B : U_Char) return U_Char is
        ----Simple MAX function.
    begin
        if A > B then
            return A;
        else
            return B;
        end if;
    end Max;

--\x0c
    function Min (A : U_Char;  
                  B : U_Char) return U_Char is
        ----Simple MIN function.
    begin
        if A < B then
            return A;
        else
            return B;
        end if;
    end Min;

--\x0c
end Arithmetic;

E3 Meta Data

    nblk1=5
    nid=0
    hdr6=a
        [0x00] rec0=15 rec1=00 rec2=01 rec3=048
        [0x01] rec0=21 rec1=00 rec2=02 rec3=024
        [0x02] rec0=2a rec1=00 rec2=03 rec3=02a
        [0x03] rec0=2f rec1=00 rec2=04 rec3=02a
        [0x04] rec0=21 rec1=00 rec2=05 rec3=000
    tail 0x21500adf881978ec51862 0x42a00088462063203