From: Szabolcs Nagy Date: Thu, 5 Dec 2013 01:52:13 +0000 (+0000) Subject: math: only report at most one <2ulp error for acosh and asinh X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=38d7f0fab3f1c3a0fb702c25b32560fb1e1ed2b7;hp=9dd2aab201c1e36853c7501d40ae22dbe37c87c3;p=libc-test math: only report at most one <2ulp error for acosh and asinh --- diff --git a/src/math/acosh.c b/src/math/acosh.c index d6a5332..a1cc1d9 100644 --- a/src/math/acosh.c +++ b/src/math/acosh.c @@ -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 acosh(%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++; diff --git a/src/math/asinh.c b/src/math/asinh.c index 7c82fc2..0d28fff 100644 --- a/src/math/asinh.c +++ b/src/math/asinh.c @@ -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++;