X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fhypotl.c;h=cae06ddd4e15c7ce2f251111dbe18630eb1a4822;hb=d45a85265f43d2478476a0aba6bffc7872b060f5;hp=c8be9394127ca52023ef69962475945b61368b15;hpb=f3f0ff4782fc90bd0f3e48fd541ee431f76aaed1;p=libc-test diff --git a/src/math/hypotl.c b/src/math/hypotl.c index c8be939..cae06dd 100644 --- a/src/math/hypotl.c +++ b/src/math/hypotl.c @@ -1,6 +1,6 @@ #include #include -#include "util.h" +#include "mtest.h" static struct ll_l t[] = { #if LDBL_MANT_DIG == 53 @@ -40,7 +40,7 @@ int main(void) err++; } d = ulperrl(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 hypotl(%La,%La) want %La got %La 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++;