aboutsummaryrefslogtreecommitdiff
path: root/gcc/real.h
diff options
context:
space:
mode:
authorRoger Sayle <roger@eyesopen.com>2003-05-23 03:46:53 +0000
committerRoger Sayle <sayle@gcc.gnu.org>2003-05-23 03:46:53 +0000
commit18c2511ccbc14dc2899b0fb6ec60935ac87087c2 (patch)
tree5b38df8d0da0fa5e04c432815e2f600b41d5f2e5 /gcc/real.h
parenta8e097d6db75fdb7fb530bd571647a656376fe97 (diff)
downloadgcc-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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/real.h b/gcc/real.h
index 1611392..15a5d93 100644
--- a/gcc/real.h
+++ b/gcc/real.h
@@ -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 *));