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

Richard Henderson rth@redhat.com
Mon Sep 2 15:12:00 GMT 2002


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~



More information about the Libstdc++ mailing list