This is the mail archive of the gcc-patches@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 Tue, Jun 26, 2007 at 12:27:21AM +0200, Uros Bizjak wrote:
> H. J. Lu wrote:
> 
> >>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.
> >  
> 
> Attached patch implements 'Q' or 'q' suffix for __float128 values.  A 
> 'Q' value can be described as a "larger or equal to long double value".
> 

I said I preferred "Q" before. But if HP-UX compiler already uses
"L"/'l' for __float128, I think we should try to follow the precedent
when there is no standard.



H.J.


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