This is the mail archive of the libstdc++@sources.redhat.com 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]

Re: Numeric limits


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

gen-num-limits.cc


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