summaryrefslogtreecommitdiff
path: root/gcc/real.h
diff options
context:
space:
mode:
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2003-05-23 03:46:53 +0000
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2003-05-23 03:46:53 +0000
commitac4bd9a0eed8a2ccbbaee8480dba1e3a646458cc (patch)
tree5b38df8d0da0fa5e04c432815e2f600b41d5f2e5 /gcc/real.h
parent07fea4789bd395e94460b94cceac2e1f925dd607 (diff)
downloadgcc-ac4bd9a0eed8a2ccbbaee8480dba1e3a646458cc.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67112 138bc75d-0d04-0410-961f-82ee72b054a4
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 16113924ae5..15a5d93e444 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 *));