This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Suffix for __float128 FP constants
- From: "H. J. Lu" <hjl at lucon dot org>
- To: Steve Ellcey <sje at cup dot hp dot com>
- Cc: ubizjak at gmail dot com, joseph at codesourcery dot com, gcc at gcc dot gnu dot org
- Date: Mon, 18 Jun 2007 14:08:15 -0700
- Subject: Re: Suffix for __float128 FP constants
- References: <4676BFF2.6090600@gmail.com> <200706181810.LAA01009@hpsje.cup.hp.com>
On Mon, Jun 18, 2007 at 11:10:43AM -0700, Steve Ellcey wrote:
> > BTW: IA64 has the same issues with two FP types (long double XFmode and
> > "longer double" TFmode). How is this solved for IA64?
> >
> > Uros.
>
> This is different on IA64 HP-UX and IA64 Linux. On HP-UX, 128 bits is
> the standard long double and 80 bits is __float80. We use the 'W'
> suffix for a __float80 constant on HP-UX. HP-UX also uses a lower case
> 'w' in math names for functions (e.g. sqrtw) for __float80 functions.
>
> Since __float128 == long double on HP-UX we can just use 'L' and 'l' for
> those.
>
We need a standard for __float128. Otherwise, a program using
__float128 may generate different results with different
compilers on different platforms.
BTW, I had a __float128 patch for glibc. Because there is no
__float128 standard, it wasn't accepted.
H.J.