diff options
author | Roger Sayle <roger@eyesopen.com> | 2003-05-23 03:46:53 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2003-05-23 03:46:53 +0000 |
commit | 18c2511ccbc14dc2899b0fb6ec60935ac87087c2 (patch) | |
tree | 5b38df8d0da0fa5e04c432815e2f600b41d5f2e5 /gcc/real.h | |
parent | a8e097d6db75fdb7fb530bd571647a656376fe97 (diff) | |
download | gcc-18c2511ccbc14dc2899b0fb6ec60935ac87087c2.zip gcc-18c2511ccbc14dc2899b0fb6ec60935ac87087c2.tar.gz gcc-18c2511ccbc14dc2899b0fb6ec60935ac87087c2.tar.bz2 |
real.c (real_maxval): New function to return the largest finite value representable in a given mode (i.e.
* real.c (real_maxval): New function to return the largest finite
value representable in a given mode (i.e. FLT_MAX and DBL_MAX).
* real.h (real_maxval): Prototype here.
* fold-const.c (fold_inf_compare): Transform comparisons against
+-Infinity into comparisons against DBL_MAX (or equivalent).
* gcc.c-torture/execute/ieee/inf-2.c: New test case.
From-SVN: r67112
Diffstat (limited to 'gcc/real.h')
-rw-r--r-- | gcc/real.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -219,6 +219,9 @@ extern void real_inf PARAMS ((REAL_VALUE_TYPE *)); extern bool real_nan PARAMS ((REAL_VALUE_TYPE *, const char *, int, enum machine_mode)); +extern void real_maxval PARAMS ((REAL_VALUE_TYPE *, int, + enum machine_mode)); + extern void real_2expN PARAMS ((REAL_VALUE_TYPE *, int)); extern unsigned int real_hash PARAMS ((const REAL_VALUE_TYPE *)); |