diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-03-26 15:04:44 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-03-26 15:04:44 +0000 |
commit | 3fa759a93c9f09fa48c7a4f12d35d0e9d552e82e (patch) | |
tree | 974dfbada45151a1464bb76ba72bf9e40597ea73 /gcc/real.h | |
parent | 3a8a26d5ca7d9b212be22afe419961368bb8d5e2 (diff) | |
download | gcc-3fa759a93c9f09fa48c7a4f12d35d0e9d552e82e.tar.gz |
* builtins.c (expand_builtin_pow, fold_builtin_cabs,
fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
dconstsqrt2, dconstthird, dconste and/or dconst10.
* config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
* emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
dconstsqrt2, dconste): Delete.
(init_emit_once): Likewise. Simplify initializing dconstm1.
Constify variable.
* real.c (get_real_const): New.
* real.h (dconst3, dconst10, dconstm2, dconstthird,
dconstsqrt2, dconste): Delete.
(real_value_const, get_real_const): New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133607 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/real.h')
-rw-r--r-- | gcc/real.h | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/gcc/real.h b/gcc/real.h index 6cf0d1f511b..9809004ab16 100644 --- a/gcc/real.h +++ b/gcc/real.h @@ -374,19 +374,24 @@ extern void real_ldexp (REAL_VALUE_TYPE *, const REAL_VALUE_TYPE *, int); /* **** End of software floating point emulator interface macros **** */ -/* Constant real values 0, 1, 2, 3, 10, -1, -2, 0.5 and 1/3. */ +/* Constant real values 0, 1, 2, -1 and 0.5. */ extern REAL_VALUE_TYPE dconst0; extern REAL_VALUE_TYPE dconst1; extern REAL_VALUE_TYPE dconst2; -extern REAL_VALUE_TYPE dconst3; -extern REAL_VALUE_TYPE dconst10; extern REAL_VALUE_TYPE dconstm1; -extern REAL_VALUE_TYPE dconstm2; extern REAL_VALUE_TYPE dconsthalf; -extern REAL_VALUE_TYPE dconstthird; -extern REAL_VALUE_TYPE dconstsqrt2; -extern REAL_VALUE_TYPE dconste; + +/* Enumerate the special constant values we need. */ +enum real_value_const { + rv_e, + rv_third, + rv_sqrt2, + rv_max +}; + +/* Function to return a real value special constant. */ +extern const REAL_VALUE_TYPE * get_real_const (enum real_value_const); /* Function to return a real value (not a tree node) from a given integer constant. */ |