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

20 lines
709 B
Diff

Index: gsl-1.12/integration/test.c
===================================================================
--- gsl-1.12.orig/integration/test.c
+++ gsl-1.12/integration/test.c
@@ -1752,9 +1752,13 @@ int main (void)
for (i = 0; i < 6 ; i++)
gsl_test_rel(w->rlist[i],r[i],1e-14,"qawc(f459) rlist") ;
for (i = 0; i < 6 ; i++)
- gsl_test_rel(w->elist[i],e[i],1e-5,"qawc(f459) elist") ;
+#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");