This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: IEEE issues with GCC on x86-linux


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


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