X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fhypot.c;h=8c40b97a456dcbed94f6426de9ff480d53bf7293;hb=8f89d908656122033909033a7a71c87636319a08;hp=b2df491c2bbc0c5bf9e177f59ecdb10fdd6ae71b;hpb=f3f0ff4782fc90bd0f3e48fd541ee431f76aaed1;p=libc-test diff --git a/src/math/hypot.c b/src/math/hypot.c index b2df491..8c40b97 100644 --- a/src/math/hypot.c +++ b/src/math/hypot.c @@ -1,6 +1,6 @@ #include #include -#include "util.h" +#include "mtest.h" static struct dd_d t[] = { #include "ucb/hypot.h" @@ -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++;