SHA256
1
0
forked from pool/gsl
gsl/qawc-test-x86-precision.diff

16 lines
642 B
Diff

diff -wruN -x '*~' ../orig-gsl-1.14/integration/test.c ./integration/test.c
--- ../orig-gsl-1.14/integration/test.c 2010-03-10 12:32:48.000000000 +0100
+++ ./integration/test.c 2010-12-08 09:48:11.000000000 +0100
@@ -1754,7 +1754,11 @@
gsl_test_rel(w->rlist[i],r[i],1e-14,"qawc(f459) rlist") ;
for (i = 0; i < 6 ; i++)
+#ifdef __i386__ /* x86 extra FPU precision hurts us here */
gsl_test_rel(w->elist[i],e[i],1e-4,"qawc(f459) elist") ;
+#else
+ gsl_test_rel(w->elist[i],e[i],1e-5,"qawc(f459) elist") ;
+#endif
for (i = 0; i < 6 ; i++)
gsl_test_int((int)w->order[i],order[i]-1,"qawc(f459) order");