summaryrefslogtreecommitdiff
path: root/gcc/real.h
diff options
context:
space:
mode:
authorbrooks <brooks@138bc75d-0d04-0410-961f-82ee72b054a4>2007-04-25 02:12:47 +0000
committerbrooks <brooks@138bc75d-0d04-0410-961f-82ee72b054a4>2007-04-25 02:12:47 +0000
commit66fa16e6fb446fa09bb0c07485552b09552196b8 (patch)
treedb634c5069c7518a31fd69e68bc5446671f7df2a /gcc/real.h
parent950348eb8111dade20e7fed9ca72b205fa15d1a6 (diff)
downloadgcc-66fa16e6fb446fa09bb0c07485552b09552196b8.tar.gz
* real.c (mpfr_from_real): Handle Inf and NaN, and allow the
rounding mode to be specified by the caller. (real_to_mpfr) Likewise. * real.h: Update mpfr_from_real, mpfr_to_real prototypes to include new arguments. * builtins.c: Update mpfr_from_real, mpfr_to_real calls. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124139 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/real.h')
-rw-r--r--gcc/real.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/real.h b/gcc/real.h
index eab53d7dadf..6fae2254a8e 100644
--- a/gcc/real.h
+++ b/gcc/real.h
@@ -434,8 +434,8 @@ extern void real_copysign (REAL_VALUE_TYPE *, const REAL_VALUE_TYPE *);
/* Convert between MPFR and REAL_VALUE_TYPE. The caller is
responsible for initializing and clearing the MPFR parameter. */
-extern void real_from_mpfr (REAL_VALUE_TYPE *, mpfr_srcptr);
-extern void mpfr_from_real (mpfr_ptr, const REAL_VALUE_TYPE *);
+extern void real_from_mpfr (REAL_VALUE_TYPE *, mpfr_srcptr, tree, mp_rnd_t);
+extern void mpfr_from_real (mpfr_ptr, const REAL_VALUE_TYPE *, mp_rnd_t);
/* Check whether the real constant value given is an integer. */
extern bool real_isinteger (const REAL_VALUE_TYPE *c, enum machine_mode mode);