aboutsummaryrefslogtreecommitdiff
path: root/src/misc.adb
blob: 0a164508362c0a629d531aa304f957f535c42fa1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38


--  Programmed by Jedidiah Barber
--  Licensed under the Sunset License v1.0

--  See license.txt for further details


package body Misc is


    function Max
           (A, B : in Integer)
        return Integer is
    begin
        if B > A then
            return B;
        else
            return A;
        end if;
    end Max;


    function Min
           (A, B : in Integer)
        return Integer is
    begin
        if B < A then
            return B;
        else
            return A;
        end if;
    end Min;


end Misc;