X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fnearbyintl.c;h=0d62313a51f3b94b5833f945d0dc379ff84d366f;hb=99aee8a0c90251874b0f4725c614f6b0bbaa4011;hp=9bbc94ea77148e6c55f9a835037693f88b2205d6;hpb=d22f4f43182fe1cc70b343b6a52cb8e3a54d1f44;p=libc-test diff --git a/src/math/nearbyintl.c b/src/math/nearbyintl.c index 9bbc94e..0d62313 100644 --- a/src/math/nearbyintl.c +++ b/src/math/nearbyintl.c @@ -1,13 +1,15 @@ #include #include -#include "util.h" +#include "mtest.h" static struct l_l t[] = { #if LDBL_MANT_DIG == 53 #include "sanity/nearbyint.h" +#include "special/nearbyint.h" #elif LDBL_MANT_DIG == 64 #include "sanity/nearbyintl.h" +#include "special/nearbyintl.h" #endif }; @@ -37,7 +39,7 @@ int main(void) err++; } d = ulperrl(y, p->y, p->dy); - if (!checkulp(d, p->r)) { + if (!checkcr(y, p->y, p->r)) { printf("%s:%d: %s nearbyintl(%La) want %La got %La ulperr %.3f = %a + %a\n", p->file, p->line, rstr(p->r), p->x, p->y, y, d, d-p->dy, p->dy); err++;