GCC Middle and Back End API Reference
|
Functions | |
void | mpfr_from_real () |
void | real_from_mpfr () |
void mpfr_from_real | ( | ) |
Conversion routines from GCC internal float representation to MPFR. Copyright (C) 2010-2013 Free Software Foundation, Inc. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see <http://www.gnu.org/licenses/>.
Convert from REAL_VALUE_TYPE to MPFR. The caller is responsible for initializing and clearing the MPFR parameter.
References real_to_hexadecimal(), rvc_inf, and rvc_nan.
Referenced by do_mpc_arg1(), do_mpc_arg2(), do_mpfr_arg1(), do_mpfr_arg2(), do_mpfr_arg3(), do_mpfr_bessel_n(), do_mpfr_lgamma_r(), do_mpfr_remquo(), and do_mpfr_sincos().
void real_from_mpfr | ( | ) |
Convert from MPFR to REAL_VALUE_TYPE, for a given type TYPE and rounding mode RNDMODE. TYPE is only relevant if M is a NaN.
References exp(), real_from_string(), real_inf(), real_nan(), real_value_negate(), and strlen().
Referenced by dconst_e_ptr(), dconst_sqrt2_ptr(), do_mpc_ckconv(), and do_mpfr_ckconv().