This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Squelch HOST_FLOAT_WORDS_BIG_ENDIAN
On Thu, Mar 13, 2003 at 10:55:30AM -0800, Zack Weinberg wrote:
> float qnan = __builtin_nanf(0);
0 is not a valid argument. "0" is.
> Incidentally, why is the argument to __builtin_nan a string constant?
Becuase that's how the nan(3) function works.
> (And the syntax that I would have chosen for this is something like
>
> 0x1.0p+INF
> 0x1.xxxxxxp+NAN (QNAN, SNAN)
>
> which would require less fragile special-casing of builtin functions, etc.)
Doesn't that run afoul of p-numbers etc?
r~