math: only report at most one <2ulp error for acosh and asinh
[libc-test] / src / math / asinh.c
index 7c82fc2..0d28fff 100644 (file)
@@ -34,6 +34,8 @@ int main(void)
                }
                d = ulperr(y, p->y, p->dy);
                if (!checkulp(d, p->r)) {
+                       // only report at most one <2ulp error
+                       if (fabsf(d) < 2 && err) continue;
                        printf("%s:%d: %s asinh(%a) want %a got %a ulperr %.3f = %a + %a\n",
                                p->file, p->line, rstr(p->r), p->x, p->y, y, d, d-p->dy, p->dy);
                        err++;