GCC Middle and Back End API Reference
realmpfr.h File Reference

Go to the source code of this file.

Functions

tree do_mpc_arg2 (tree, tree, tree, int, int(*)(mpc_ptr, mpc_srcptr, mpc_srcptr, mpc_rnd_t))
void real_from_mpfr (REAL_VALUE_TYPE *, mpfr_srcptr, tree, mp_rnd_t)
void mpfr_from_real (mpfr_ptr, const REAL_VALUE_TYPE *, mp_rnd_t)

Function Documentation

tree do_mpc_arg2 ( tree  arg0,
tree  arg1,
tree  type,
int  do_nonfinite,
int(*)(mpc_ptr, mpc_srcptr, mpc_srcptr, mpc_rnd_t)  func 
)
In builtins.c.   
If arguments ARG0 and ARG1 are a COMPLEX_CST, call the two-argument
   mpc function FUNC on it and return the resulting value as a tree
   with type TYPE.  The mpfr precision is set to the precision of
   TYPE.  We assume that function FUNC returns zero if the result
   could be calculated exactly within the requested precision.  If
   DO_NONFINITE is true, then fold expressions containing Inf or NaN
   in the arguments and/or results.   

References real_format::b, do_mpc_ckconv(), mpfr_from_real(), real_format::p, real_isfinite(), and real_format::round_towards_zero.

Referenced by const_binop(), and fold_builtin_2().

void mpfr_from_real ( mpfr_ptr  ,
const REAL_VALUE_TYPE *  ,
mp_rnd_t   
)
void real_from_mpfr ( REAL_VALUE_TYPE *  ,
mpfr_srcptr  ,
tree  ,
mp_rnd_t   
)
Convert between MPFR and REAL_VALUE_TYPE.  The caller is
   responsible for initializing and clearing the MPFR parameter.