X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fhypot.c;h=8c40b97a456dcbed94f6426de9ff480d53bf7293;hb=bfcf8233495e3d47ec2851f43bda5b2ab24f117c;hp=9890ed4cbf67131138427c972a3c22232a4baf27;hpb=cfa23cc1bd01f5c44d7746b8b1839f84d5e1b6eb;p=libc-test diff --git a/src/math/hypot.c b/src/math/hypot.c index 9890ed4..8c40b97 100644 --- a/src/math/hypot.c +++ b/src/math/hypot.c @@ -34,7 +34,7 @@ int main(void) err++; } d = ulperr(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 hypot(%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++;