This is the mail archive of the
gcc-patches@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: Uros Bizjak <ubizjak at gmail dot com>
- Cc: Steve Ellcey <sje at cup dot hp dot com>, joseph at codesourcery dot com, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 25 Jun 2007 16:06:52 -0700
- Subject: Re: Suffix for __float128 FP constants
- References: <20070618210815.GA26463@lucon.org> <200706182133.OAA03126@hpsje.cup.hp.com> <20070618214542.GA26641@lucon.org> <46804149.2030204@gmail.com>
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.