This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: IEEE issues with GCC on x86-linux
- From: Brian Gough <bjg at network-theory dot co dot uk>
- To: Jochen Küpper <jochen at fhi-berlin dot mpg dot de>
- Cc: gsl-discuss at sources dot redhat dot com
- Date: Thu, 13 Jan 2005 16:25:35 +0000
- Subject: Re: IEEE issues with GCC on x86-linux
- References: <9ewtuhpqes.fsf@gowron.rz-berlin.mpg.de>
- Reply-to: gsl-discuss at sources dot redhat dot com
Jochen Küpper writes:
> ,----[test.c:332]
> | inf = exp (1.0e10);
> `----
>
> Is this expected? Any hints are appreciated.
That is expected, because the program is testing Inf/Nan and I wanted
to generate an infinity from an actual computation. For the tests I
use mask-all.
If you would like to make the tests work without it, you could do
something like this,
#ifdef INFINITY
inf = INFINITY;
#else
int = exp(1.0e10);
#endif
(Similarly for NAN). This assumes that macro definitions are actually
valid.... but check ahead and see if there are other tests ( in other
directories) which generate floating point exceptions (I think there
are some in specfunc/, but maybe they can be eliminated easily). It
would only make sense to start changing these if the whole test suite
can be tidied up to avoid them.
--
Brian Gough