Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Tue, 25 Feb 2020 21:59:14 +0000
From: Joseph Myers <joseph@...esourcery.com>
To: <libc-coord@...ts.openwall.com>
Subject: Re: Behavior of function nan()

On Tue, 25 Feb 2020, enh wrote:

> btw, note that NAN is equivalent to nanf(3), not nan(3).

And that a default float NaN, converted to double, may not be the same as 
a default double NaN - but if you don't care about NaN payloads anyway, 
that probably doesn't matter.

TS 18661-1 and C2x (Annex F only, not in the main standard) define 
setpayload functions to return a NaN with a given payload in a portable 
way.

-- 
Joseph S. Myers
joseph@...esourcery.com

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.