This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: V3 PATCH: numeric_limits<> support, fix PR/3865


On Mon, Sep 02, 2002 at 02:59:18PM -0700, Ulrich Drepper wrote:
> __builtin_nan ("") could be either __builtin_snan ("")
> or __builtin_qnan ("").

Err, no.  Within the compiler we have to pick one.  IMO 
__builtin_nan("") should always be the c99 NAN, ie quiet.

The difference, from my perspective, is that the constant
that the user uses with __builtin_nan can affect the quiet
bit, whereas with __builtin_qnan it cannot.

> And obviously we need float and long double versions as well.

Of course.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]