summaryrefslogtreecommitdiff
path: root/gcc/real.h
diff options
context:
space:
mode:
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>2006-11-23 18:49:22 +0000
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>2006-11-23 18:49:22 +0000
commit0570334c0707d5ac88a64e10c65f1c1beac3d38f (patch)
treedf3f642a41dbe83c7c2667bea513265952d3112a /gcc/real.h
parent583272a21e6049df9034256ab8aefd809663002e (diff)
downloadgcc-0570334c0707d5ac88a64e10c65f1c1beac3d38f.tar.gz
2006-11-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
* real.h (real_isinteger): Declare. * real.c (real_isinteger): Define. * builtins.c (integer_valued_real_p): Use it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119130 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 5a45892d301..4198b02aee6 100644
--- a/gcc/real.h
+++ b/gcc/real.h
@@ -433,4 +433,7 @@ extern void real_copysign (REAL_VALUE_TYPE *, const REAL_VALUE_TYPE *);
extern void real_from_mpfr (REAL_VALUE_TYPE *, mpfr_srcptr);
extern void mpfr_from_real (mpfr_ptr, const REAL_VALUE_TYPE *);
+/* Check whether the real constant value given is an integer. */
+extern bool real_isinteger (const REAL_VALUE_TYPE *c, enum machine_mode mode);
+
#endif /* ! GCC_REAL_H */