const_double - RTL

Paul Brook paul@codesourcery.com
Sat May 8 16:44:00 GMT 2004


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



More information about the Gcc mailing list