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

Ulrich Drepper drepper@redhat.com
Mon Sep 2 12:39:00 GMT 2002


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

Zack Weinberg wrote:

>>I suppose we could define "snan" (case insensitive) to do what we
>>want.  I'd bet that Uli would be willing to pick this up for glibc's 
>>strtod implementation.  We'd probably be "inconsistent" with other
>>libcs, but in an extremely minor way.
> 
> 
> It might make sense to permit entry of infinity and NaN as hexadecimal
> floating constants.  I could go two ways on that:

That would be good but we have a standard way of writing this for nans. 
  I'd rather see this mathod extended:

   __builtin_nan ("...")
   __builtin_qnan ("...")
   __builtin_snan ("...")
   __builtin_inf ()

This has the benefit of never going to clash with additions which might 
be added to ISO C or C++.

- -- 
- ---------------.                          ,-.   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

iD8DBQE9c76B2ijCOnn/RHQRApGnAKCqGWXI9BITVVq3Wi+hsW2MGHVCXQCggV0T
EfHV3uyf3qMIE4gtkpUw6AE=
=k6N3
-----END PGP SIGNATURE-----



More information about the Libstdc++ mailing list