This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
Re: Numeric limits
- To: "Gabriel Dos Reis" <Gabriel dot Dos-Reis at cmla dot ens-cachan dot fr>
- Subject: Re: Numeric limits
- From: "Anthony Williams" <anthony_w dot geo at yahoo dot com>
- Date: Thu, 27 Jul 2000 11:19:33 +0100
- Cc: <libstdc++ at sourceware dot cygnus dot com>
- References: <000f01bff7a7$91a2ade0$5919cac2@derwent.co.uk> <flsnsvvqdu.fsf@sel.cmla.ens-cachan.fr>
- Reply-To: "Anthony Williams" <anthony at anthonyw dot cjb dot net>
-----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