X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmath%2Fhypotf.c;h=19d852569290fbae2bcaf9f90a0822ee9ab0d178;hb=52dd4cb2bdcafd5802b153994730b6a14fa4d2b8;hp=82bbcde315bd965d6839c5a5e3f810029822191d;hpb=f3f0ff4782fc90bd0f3e48fd541ee431f76aaed1;p=libc-test diff --git a/src/math/hypotf.c b/src/math/hypotf.c index 82bbcde..19d8525 100644 --- a/src/math/hypotf.c +++ b/src/math/hypotf.c @@ -1,6 +1,6 @@ #include #include -#include "util.h" +#include "mtest.h" static struct ff_f t[] = { #include "ucb/hypotf.h" @@ -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++;