summaryrefslogtreecommitdiff
path: root/gcc/real.h
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2006-10-23 20:24:55 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2006-10-23 20:24:55 +0000
commitbffb76452b3008181f8c615ad72e82bee2c26c03 (patch)
tree35df1b444a1a341b02054010ef5e197a40f91be3 /gcc/real.h
parent021f0557b29f5268fdc4dee6f36962d048af7a8a (diff)
downloadgcc-bffb76452b3008181f8c615ad72e82bee2c26c03.tar.gz
PR middle-end/29335
* builtins.c (fold_builtin_sin, fold_builtin_cos, fold_builtin_tan): Fold all constant arguments. Take a "type" argument as necessary. (do_mpfr_arg1): New. * real.c, real.h (real_from_mpfr, mpfr_from_real): New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117983 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/real.h')
-rw-r--r--gcc/real.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/real.h b/gcc/real.h
index 3eecb92fbcd..5a45892d301 100644
--- a/gcc/real.h
+++ b/gcc/real.h
@@ -22,6 +22,8 @@
#ifndef GCC_REAL_H
#define GCC_REAL_H
+#include <gmp.h>
+#include <mpfr.h>
#include "machmode.h"
/* An expanded form of the represented number. */
@@ -425,4 +427,10 @@ extern void real_round (REAL_VALUE_TYPE *, enum machine_mode,
/* Set the sign of R to the sign of X. */
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 *);
+
#endif /* ! GCC_REAL_H */