summaryrefslogtreecommitdiff
path: root/src/misc.adb
blob: d1aa7ca55ded25200498d9a2680b76319c5d8b3d (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


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;