GCC Middle and Back End API Reference
realmpfr.h File Reference
#include <mpfr.h>
#include <mpc.h>
Include dependency graph for realmpfr.h:
This graph shows which files directly or indirectly include this file:

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)
 

Function Documentation

◆ mpfr_from_real()

void mpfr_from_real ( mpfr_ptr m,
const REAL_VALUE_TYPE * r,
mpfr_rnd_t rndmode )
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, ggc_alloc(), 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().

◆ real_from_mpfr() [1/2]

void real_from_mpfr ( REAL_VALUE_TYPE * r,
mpfr_srcptr m,
const real_format * format,
mpfr_rnd_t rndmode )
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, ggc_alloc(), NULL, r, real_from_string(), real_nan(), and real_value_negate().

Referenced by build_sinatan_real(), dconst_e_ptr(), dconst_pi_ptr(), dconst_sqrt2_ptr(), do_mpc_ckconv(), do_mpc_ckconv(), do_mpfr_ckconv(), do_mpfr_ckconv(), frange_mpfr_arg1(), real_from_mpfr(), and real_from_string().

◆ real_from_mpfr() [2/2]

void real_from_mpfr ( REAL_VALUE_TYPE * r,
mpfr_srcptr m,
tree type,
mpfr_rnd_t rndmode )
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 ggc_alloc(), NULL, r, real_from_mpfr(), REAL_MODE_FORMAT, and TYPE_MODE.