X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fhypotf.c;h=19d852569290fbae2bcaf9f90a0822ee9ab0d178;hb=b35e816189efde540e299412172acf6cd987dfdd;hp=7b478078bd470ff0a796786aac8e17f74a5a3f17;hpb=d22f4f43182fe1cc70b343b6a52cb8e3a54d1f44;p=libc-test diff --git a/src/math/hypotf.c b/src/math/hypotf.c index 7b47807..19d8525 100644 --- a/src/math/hypotf.c +++ b/src/math/hypotf.c @@ -1,10 +1,11 @@ #include #include -#include "util.h" +#include "mtest.h" static struct ff_f t[] = { #include "ucb/hypotf.h" #include "sanity/hypotf.h" +#include "special/hypotf.h" }; @@ -33,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++;