This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: const_double - RTL


On Saturday 08 May 2004 17:30, Iman Narasamdya wrote:
> Jim Wilson wrote:
> > We don't really provide a way to convert a const_double into a double
> > value.  Since the host and target may have different floating point
> > representations, in general, we can not use FP values inside the
> > compiler.  Instead, we have REAL_VALUE_TYPE which is an abstracted
> > representation of an FP value.
>
> ------------------------
> If, for example, I have an FP value 6.789, how does gcc make
> REAL_VALUE_TYPE of this value?

Most likely with REAL_VALUE_ATOF.

Paul


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]