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: Suffix for __float128 FP constants


On Mon, Jun 18, 2007 at 02:33:07PM -0700, Steve Ellcey wrote:
> > 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.

I used `q' as suffix for __float128 functions like __isinfq/__isnanq.
But I used strtoqd since we have strtold. I like `Q' suffix in
__float128 constants.



H.J.


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