X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fhypotf.c;h=19d852569290fbae2bcaf9f90a0822ee9ab0d178;hb=4f5020522165cf4032a3e5d4d29baf91b581499d;hp=bd5830b29d7147e74ea17b476386b76edcd27f73;hpb=cfa23cc1bd01f5c44d7746b8b1839f84d5e1b6eb;p=libc-test diff --git a/src/math/hypotf.c b/src/math/hypotf.c index bd5830b..19d8525 100644 --- a/src/math/hypotf.c +++ b/src/math/hypotf.c @@ -34,7 +34,7 @@ int main(void) err++; } d = ulperrf(y, p->y, p->dy); - if (!checkulp(d, p->r)) { + if (!checkulp(d, p->r) || (p->r == RN && fabs(d) >= 1.0)) { printf("%s:%d: %s hypotf(%a,%a) want %a got %a ulperr %.3f = %a + %a\n", p->file, p->line, rstr(p->r), p->x, p->x2, p->y, y, d, d-p->dy, p->dy); err++;