GCC Middle and Back End API Reference
|
#include <mpfr.h>
#include <mpc.h>
Go to the source code of this file.
Data Structures | |
class | auto_mpfr |
Functions | |
void | real_from_mpfr (REAL_VALUE_TYPE *, mpfr_srcptr, tree, mpfr_rnd_t) |
void | real_from_mpfr (REAL_VALUE_TYPE *, mpfr_srcptr, const real_format *, mpfr_rnd_t) |
void | mpfr_from_real (mpfr_ptr, const REAL_VALUE_TYPE *, mpfr_rnd_t) |
|
extern |
Conversion routines from GCC internal float representation to MPFR. Copyright (C) 2010-2024 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 gcc_assert, r, real_to_hexadecimal(), rvc_inf, and rvc_nan.
Referenced by build_sinatan_real(), do_mpc_arg1(), do_mpc_arg2(), do_mpc_arg2(), do_mpfr_arg1(), do_mpfr_arg2(), do_mpfr_arg2(), do_mpfr_arg3(), do_mpfr_lgamma_r(), do_mpfr_remquo(), do_mpfr_sincos(), and frange_mpfr_arg1().
|
extern |
Convert from MPFR to REAL_VALUE_TYPE, for a given format FORMAT and rounding mode RNDMODE. FORMAT is only relevant if M is a NaN.
References dconstinf, exp(), gcc_assert, NULL, r, real_from_string(), real_nan(), and real_value_negate().
Referenced by build_sinatan_real(), dconst_e_ptr(), dconst_pi_ptr(), do_mpc_ckconv(), do_mpc_ckconv(), do_mpfr_ckconv(), do_mpfr_ckconv(), frange_mpfr_arg1(), real_from_mpfr(), and real_from_string().
|
extern |
Convert between MPFR and REAL_VALUE_TYPE. The caller is responsible for initializing and clearing the MPFR parameter.
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 NULL, r, real_from_mpfr(), REAL_MODE_FORMAT, and TYPE_MODE.