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

Ulrich Drepper drepper@redhat.com
Mon Sep 2 14:59:00 GMT 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Richard Henderson wrote:
> On Mon, Sep 02, 2002 at 12:39:40PM -0700, Ulrich Drepper wrote:
> 
>> I'd rather see this mathod extended:
>>
>>  __builtin_nan ("...")
>>  __builtin_qnan ("...")
>>  __builtin_snan ("...")
>>  __builtin_inf ()
> 
> 
> Sure.  I suppose __builtin_qnan is like __builtin_nan except that the
> mantessa is forced to be quiet?

Yes.  And it also allows for a different default nan (if this should be 
necessary).

   __builtin_nan ("")

could be either __builtin_snan ("") or __builtin_qnan ("").


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

- -- 
- ---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE9c9822ijCOnn/RHQRAuvjAKCz/Q3LKTUwFP9DZgqg0fX2U3kyswCeKjej
Pp2FcnWHKPhWfA+CtSUSrWc=
=iLOH
-----END PGP SIGNATURE-----



More information about the Libstdc++ mailing list