[util] Loosen up the epsilon on simd seb tests

It seems my eeepc's SSE units don't get quite the same answers as does
my i7's (maybe due to lack of hadd?).
This commit is contained in:
Bill Currie 2021-08-02 23:15:20 +09:00
parent 80b17623b1
commit d56d8ac707

View file

@ -233,8 +233,8 @@ main (int argc, const char **argv)
for (i = 0; i < num_tests; i ++) {
sphere = SmallestEnclosingBall_vf (tests[i].points,
tests[i].num_points);
if (VectorDistance_fast (sphere.center, tests[i].expect.center) > 1e-4
|| fabs (sphere.radius - tests[i].expect.radius) > 1e-4) {
if (VectorDistance_fast (sphere.center, tests[i].expect.center) > 2e-4
|| fabs (sphere.radius - tests[i].expect.radius) > 2e-4) {
res = 1;
printf ("test %d failed\n", (int) i);
printf ("expect: {%.9g, %.9g, %.9g}, %.9g\n",