diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2008-08-18 16:17:16 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2008-08-18 16:17:16 +0000 |
commit | 9c02cf684cc13bf6b9e88a5a55b02bc2ccac7a7a (patch) | |
tree | b26d4ffa1048ebe26a04ba70bd16218610cb5cdc /gcc/real.h | |
parent | e46587281e54e3a8f1eedd70bc322b53cb1fbdcd (diff) | |
download | gcc-9c02cf684cc13bf6b9e88a5a55b02bc2ccac7a7a.tar.gz |
real.h (dconst_e, [...]): Declare.
2008-08-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
* real.h (dconst_e, dconst_third, dconst_sqrt2, dconst_e_ptr,
dconst_third_ptr, dconst_sqrt2_ptr): Declare.
(enum real_value_const): Delete.
(get_real_const): Delete.
* real.c (get_real_const): Delete.
(dconst_e_ptr): Define.
(dconst_third_ptr): Define.
(dconst_sqrt2_ptr): Define.
* builtins.c: Update all callers.
From-SVN: r139202
Diffstat (limited to 'gcc/real.h')
-rw-r--r-- | gcc/real.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/gcc/real.h b/gcc/real.h index 8cdf471e742..44e79c36e17 100644 --- a/gcc/real.h +++ b/gcc/real.h @@ -409,16 +409,18 @@ extern REAL_VALUE_TYPE dconst2; extern REAL_VALUE_TYPE dconstm1; extern REAL_VALUE_TYPE dconsthalf; -/* Enumerate the special constant values we need. */ -enum real_value_const { - rv_e, - rv_third, - rv_sqrt2, - rv_max -}; +#define dconst_e() (*dconst_e_ptr ()) +#define dconst_third() (*dconst_third_ptr ()) +#define dconst_sqrt2() (*dconst_sqrt2_ptr ()) + +/* Function to return the real value special constant 'e'. */ +extern const REAL_VALUE_TYPE * dconst_e_ptr (void); + +/* Returns the special REAL_VALUE_TYPE corresponding to 1/3. */ +extern const REAL_VALUE_TYPE * dconst_third_ptr (void); -/* Function to return a real value special constant. */ -extern const REAL_VALUE_TYPE * get_real_const (enum real_value_const); +/* Returns the special REAL_VALUE_TYPE corresponding to sqrt(2). */ +extern const REAL_VALUE_TYPE * dconst_sqrt2_ptr (void); /* Function to return a real value (not a tree node) from a given integer constant. */ |