This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: make check error
- To: Andrej Prsa <andrej dot prsa at guest dot arnes dot si>
- Subject: Re: make check error
- From: Brian Gough <bjg at network-theory dot co dot uk>
- Date: Sat, 4 Nov 2000 20:06:54 +0000 (GMT)
- Cc: gsl-discuss at sources dot redhat dot com
- References: <3A04299C.96E0CFC1@guest.arnes.si>
- Reply-To: gsl-discuss at sources dot redhat dot com
Thanks for the bug report.
It looks like there is a new problem with overflow/underflow on RH7,
as this is the second report of this failure. Unfortunately the test
program does not print anything for the cases which are probably
causing it.
If someone could try out the patch below it should indicate the line
that is causing the problem (if you can step through that function
with the debugger and see what is going on that will be very useful).
Brian
Index: specfunc/test_sf.c
===================================================================
RCS file: /cvs/gsl/gsl/specfunc/test_sf.c,v
retrieving revision 1.162
diff -r1.162 test_sf.c
288,290c288,305
< s += ( gsl_sf_multiply_impl(DBL_MAX, 1.1, &r) != GSL_EOVRFLW);
< s += ( gsl_sf_multiply_impl(DBL_MIN, DBL_MIN, &r) != GSL_EUNDRFLW);
< s += ( gsl_sf_multiply_impl(DBL_MIN, -DBL_MIN, &r) != GSL_EUNDRFLW);
---
>
> {
> int status = gsl_sf_multiply_impl(DBL_MAX, 1.1, &r);
> gsl_test_int (status, GSL_EOVRFLW, " gsl_sf_multiply_impl(DBL_MAX,1.1)");
> s += (status != GSL_EOVRFLW);
> }
>
> {
> int status = gsl_sf_multiply_impl(DBL_MIN, DBL_MIN, &r);
> gsl_test_int (status, GSL_EUNDRFLW, " gsl_sf_multiply_impl(DBL_MIN,DBL_MIN)");
> s += (status != GSL_EUNDRFLW);
> }
>
> {
> int status = gsl_sf_multiply_impl(DBL_MIN, -DBL_MIN, &r);
> gsl_test_int (status, GSL_EUNDRFLW, " gsl_sf_multiply_impl(DBL_MIN,-DBL_MIN)");
> s += (status != GSL_EUNDRFLW);
> }