diff options
author | manu <manu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-08-18 16:17:16 +0000 |
---|---|---|
committer | manu <manu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-08-18 16:17:16 +0000 |
commit | 7910b2fb1b5a8fe594afe4094e3ebea9921d05c0 (patch) | |
tree | b26d4ffa1048ebe26a04ba70bd16218610cb5cdc /gcc/real.h | |
parent | fb715874822ac83ba6ee763c5e4af3751cc40db4 (diff) | |
download | gcc-7910b2fb1b5a8fe594afe4094e3ebea9921d05c0.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139202 138bc75d-0d04-0410-961f-82ee72b054a4
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. */ |