Does posix say anything about the sign in NaNs ?
Pedro Giffuni
pfg at freebsd.org
Thu Dec 25 02:38:31 UTC 2014
> Il giorno 24/dic/2014, alle ore 19:40, Peter Pentchev <roam at ringlet.net> ha scritto:
>
> On Wed, Dec 24, 2014 at 02:16:37PM -0500, Pedro Giffuni wrote:
>> Hello;
>>
>> I got the attached patch from OpenBSD.
>>
>> It says:
>> ____
>> Show the sign for NaN as per POSIX; from Elliott Hughes.
>> ok martynas@, millert@, doug@
>> ____
>>
>> I can't find a reference in POSIX documentation to support it though.
>
> The message to OpenBSD's tech@ list that suggested this was
> http://marc.info/?l=openbsd-tech&m=141876375108892&w=2
>
OK, so the change seems to come from google.
> The text from POSIX that it quotes may be found e.g. at
> http://pubs.opengroup.org/onlinepubs/9699919799/functions/fprintf.html
> (search for "A double argument representing an infinity")
>
>> Anyone has a reason why we shouldn't adopt it, or a reference I can quote
>> on the commit log?
>
> Hope the above helps!
>
Certainly, thanks!
Pedro.
More information about the freebsd-standards
mailing list