This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Suffix for __float128 FP constants
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: hjl at lucon dot org
- Cc: ubizjak at gmail dot com, joseph at codesourcery dot com, gcc at gcc dot gnu dot org
- Date: Mon, 18 Jun 2007 14:33:07 -0700 (PDT)
- Subject: Re: Suffix for __float128 FP constants
> 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.
The HP compiler has an option that allows it to accept 'extended' as a
type that is equivalent to __float80 and 'quad' as equivalent to 'long
double' which is __float128 on HP-UX. For the quad type it uses the Q
suffix for quad constants (and a lower case q for quad functions like
sqrtq). I don't think this is a standard, but it is a precedent.
Steve Ellcey
sje@cup.hp.com