1 |
12 |
jlechner |
/****************************************************************************
|
2 |
|
|
* *
|
3 |
|
|
* GNAT COMPILER COMPONENTS *
|
4 |
|
|
* *
|
5 |
|
|
* U R E A L P *
|
6 |
|
|
* *
|
7 |
|
|
* C Header File *
|
8 |
|
|
* *
|
9 |
|
|
* Copyright (C) 1992-2003 Free Software Foundation, Inc. *
|
10 |
|
|
* *
|
11 |
|
|
* GNAT is free software; you can redistribute it and/or modify it under *
|
12 |
|
|
* terms of the GNU General Public License as published by the Free Soft- *
|
13 |
|
|
* ware Foundation; either version 2, or (at your option) any later ver- *
|
14 |
|
|
* sion. GNAT is distributed in the hope that it will be useful, but WITH- *
|
15 |
|
|
* OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *
|
16 |
|
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License *
|
17 |
|
|
* for more details. You should have received a copy of the GNU General *
|
18 |
|
|
* Public License distributed with GNAT; see file COPYING. If not, write *
|
19 |
|
|
* to the Free Software Foundation, 51 Franklin Street, Fifth Floor, *
|
20 |
|
|
* Boston, MA 02110-1301, USA. *
|
21 |
|
|
* *
|
22 |
|
|
* GNAT was originally developed by the GNAT team at New York University. *
|
23 |
|
|
* Extensive contributions were provided by Ada Core Technologies Inc. *
|
24 |
|
|
* *
|
25 |
|
|
****************************************************************************/
|
26 |
|
|
|
27 |
|
|
/* This file corresponds to the Ada package specification Urealp. It was
|
28 |
|
|
created manually from the files urealp.ads and urealp.adb */
|
29 |
|
|
|
30 |
|
|
/* Support for universal real arithmetic. */
|
31 |
|
|
|
32 |
|
|
#define Numerator urealp__numerator
|
33 |
|
|
extern Uint Numerator (Ureal);
|
34 |
|
|
|
35 |
|
|
#define Denominator urealp__denominator
|
36 |
|
|
extern Uint Denominator (Ureal);
|
37 |
|
|
|
38 |
|
|
#define Rbase urealp__rbase
|
39 |
|
|
extern Nat Rbase (Ureal);
|
40 |
|
|
|
41 |
|
|
#define UR_Is_Negative urealp__ur_is_negative
|
42 |
|
|
extern Boolean UR_Is_Negative (Ureal);
|
43 |
|
|
|
44 |
|
|
#define UR_Is_Zero urealp__ur_is_zero
|
45 |
|
|
extern Boolean UR_Is_Zero (Ureal);
|
46 |
|
|
|
47 |
|
|
enum Rounding_Mode {Floor = 0, Ceiling = 1, Round = 2, Round_Even = 3};
|
48 |
|
|
|
49 |
|
|
#define Machine eval_fat__machine
|
50 |
|
|
extern Ureal Machine (Entity_Id, Ureal, enum Rounding_Mode,
|
51 |
|
|
Node_Id);
|