X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fhypot.c;h=8c40b97a456dcbed94f6426de9ff480d53bf7293;hb=50ab48b035c2555e09cc9ac94c74f45b74b234f4;hp=842ceb4132e6d8f36fd348238bd2e2e428e3e09b;hpb=d22f4f43182fe1cc70b343b6a52cb8e3a54d1f44;p=libc-test diff --git a/src/math/hypot.c b/src/math/hypot.c index 842ceb4..8c40b97 100644 --- a/src/math/hypot.c +++ b/src/math/hypot.c @@ -1,10 +1,11 @@ #include #include -#include "util.h" +#include "mtest.h" static struct dd_d t[] = { #include "ucb/hypot.h" #include "sanity/hypot.h" +#include "special/hypot.h" }; @@ -33,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++;