Numeric limits

Anthony Williams anthony_w.geo@yahoo.com
Thu Jul 27 03:29:00 GMT 2000


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

From: "Gabriel Dos Reis" <Gabriel.Dos-Reis@cmla.ens-cachan.fr>
Sent: 27 July 2000 11:06
> "Anthony Williams" <anthony_w.geo@yahoo.com> writes:
> | On Solaris there is a library (sunmath) that provides functions to obtain
> | these values, which can then be used in gen_num_limits.cc to provide them
> | without requiring this library. 
> 
> I can, unfortunately, no longer get gcc (and therefore libstdc++-v3)
> built on my solaris boxes (because of HUGE memory usage) -- just tried
> this morning, and got seg-fault, sight. So I can't experiment myself.
> However, I'm williing to cooperate wiith you to sort these things.

libstdc++-v3 doesn't build in its entirety anyway, due to the lack of cdefs.h
for libio. 
I use gcc-2.95.2 for stuff like this, since I don't have bison (which is
required for current CVS gcc to build :()

> | Would you like the code I've written for gen_num_limits.cc which uses these
> | on Solaris? 
> 
> Yes, definitely.

Attached is my gen_num_limits.cc. It requires _HAS_SUNMATH to be #defined in
order to use the new code (SPECIALIZE_INFINITY, SPECIALIZE_SIGNALING_NAN and
SPECIALIZE_QUIET_NAN macros). I then must be linked against sunmath, which on
my system is in /opt/SUNWspro/lib.

Anthony

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.1 for non-commercial use < http://www.pgp.com >
Comment: PGP Key at: http://i3.yimg.com/3/c7e5ee24/g/68fc2307.asc

iQA/AwUBOYAMtJvw+P4cG5rVEQJVdQCgw96SiJ++s2b2qutMqFqbbKAiJ/8AoI2U
56xnNH87Znm550Aia7t8ARFY
=Ymy+
-----END PGP SIGNATURE-----

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gen-num-limits.cc
Type: text/x-c++
Size: 25394 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20000727/2567761f/attachment.bin>


More information about the Libstdc++ mailing list