GCC Middle and Back End API Reference
|
#include "config.h"
#include "system.h"
#include "coretypes.h"
#include "tree.h"
#include "realmpfr.h"
#include "stor-layout.h"
Functions | |
void | mpfr_from_real (mpfr_ptr m, const REAL_VALUE_TYPE *r, mpfr_rnd_t rndmode) |
void | real_from_mpfr (REAL_VALUE_TYPE *r, mpfr_srcptr m, const real_format *format, mpfr_rnd_t rndmode) |
void | real_from_mpfr (REAL_VALUE_TYPE *r, mpfr_srcptr m, tree type, mpfr_rnd_t rndmode) |
void mpfr_from_real | ( | mpfr_ptr | m, |
const REAL_VALUE_TYPE * | r, | ||
mpfr_rnd_t | rndmode ) |
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().
void real_from_mpfr | ( | REAL_VALUE_TYPE * | r, |
mpfr_srcptr | m, | ||
const real_format * | format, | ||
mpfr_rnd_t | rndmode ) |
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().
void real_from_mpfr | ( | REAL_VALUE_TYPE * | r, |
mpfr_srcptr | m, | ||
tree | type, | ||
mpfr_rnd_t | rndmode ) |
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.