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]

Re: make check error


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);
>   }

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