xref: /dflybsd-src/contrib/gcc-4.7/gcc/realmpfr.h (revision 04febcfb30580676d3e95f58a16c5137ee478b32)
1*e4b17023SJohn Marino /* Definitions of floating-point conversion from compiler
2*e4b17023SJohn Marino    internal format to MPFR.
3*e4b17023SJohn Marino    Copyright (C) 2010
4*e4b17023SJohn Marino    Free Software Foundation, Inc.
5*e4b17023SJohn Marino 
6*e4b17023SJohn Marino    This file is part of GCC.
7*e4b17023SJohn Marino 
8*e4b17023SJohn Marino    GCC is free software; you can redistribute it and/or modify it under
9*e4b17023SJohn Marino    the terms of the GNU General Public License as published by the Free
10*e4b17023SJohn Marino    Software Foundation; either version 3, or (at your option) any later
11*e4b17023SJohn Marino    version.
12*e4b17023SJohn Marino 
13*e4b17023SJohn Marino    GCC is distributed in the hope that it will be useful, but WITHOUT ANY
14*e4b17023SJohn Marino    WARRANTY; without even the implied warranty of MERCHANTABILITY or
15*e4b17023SJohn Marino    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
16*e4b17023SJohn Marino    for more details.
17*e4b17023SJohn Marino 
18*e4b17023SJohn Marino    You should have received a copy of the GNU General Public License
19*e4b17023SJohn Marino    along with GCC; see the file COPYING3.  If not see
20*e4b17023SJohn Marino    <http://www.gnu.org/licenses/>.  */
21*e4b17023SJohn Marino 
22*e4b17023SJohn Marino #ifndef GCC_REALGMP_H
23*e4b17023SJohn Marino #define GCC_REALGMP_H
24*e4b17023SJohn Marino 
25*e4b17023SJohn Marino #include <gmp.h>
26*e4b17023SJohn Marino #include <mpfr.h>
27*e4b17023SJohn Marino #include <mpc.h>
28*e4b17023SJohn Marino #include "real.h"
29*e4b17023SJohn Marino 
30*e4b17023SJohn Marino /* In builtins.c.  */
31*e4b17023SJohn Marino extern tree do_mpc_arg2 (tree, tree, tree, int, int (*)(mpc_ptr, mpc_srcptr, mpc_srcptr, mpc_rnd_t));
32*e4b17023SJohn Marino 
33*e4b17023SJohn Marino /* Convert between MPFR and REAL_VALUE_TYPE.  The caller is
34*e4b17023SJohn Marino    responsible for initializing and clearing the MPFR parameter.  */
35*e4b17023SJohn Marino 
36*e4b17023SJohn Marino extern void real_from_mpfr (REAL_VALUE_TYPE *, mpfr_srcptr, tree, mp_rnd_t);
37*e4b17023SJohn Marino extern void mpfr_from_real (mpfr_ptr, const REAL_VALUE_TYPE *, mp_rnd_t);
38*e4b17023SJohn Marino 
39*e4b17023SJohn Marino #endif /* ! GCC_REALGMP_H */
40*e4b17023SJohn Marino 
41