bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RFT: *printf-posix modules


From: Bruno Haible
Subject: Re: RFT: *printf-posix modules
Date: Thu, 24 May 2007 12:11:39 +0200
User-agent: KMail/1.5.4

Eric Blake wrote:
> Output wise, I've only seen a hex constant, but input wise, gcc's
> __builtin_nan parses octal and decimal as well.  Therefore, on systems
> where long double is 128 bits (mantissa is 112 bits excluding the implied
> 1 in normal numbers), a worst-case representation is 5 bytes for nan(),
> plus 39 bytes for the octal representation with the 112th bit set, plus 1
> byte for a sign.  So I think you need at least %046f before you can
> guarantee that the 0 flag was handled correctly on a long double NaN.

OK, I'm changing the 20 bytes limit to 50 bytes.

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]