File: math.adb

package info (click to toggle)
libaunit 18-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,100 kB
  • sloc: ada: 5,325; makefile: 152; sh: 94; xml: 13
file content (16 lines) | stat: -rw-r--r-- 300 bytes parent folder | download | duplicates (24)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--
--  Copyright (C) 2008, AdaCore
--
package body Math is

   function "+" (I1, I2 : Int) return Int is
   begin
      return Int (Integer (I1) + Integer (I2));
   end "+";

   function "-" (I1, I2 : Int) return Int is
   begin
      return Int (Integer (I1) - Integer (I2));
   end "-";

end Math;