X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fnearbyintl.c;h=854255a01c22fdcf6058bc8d7ec4cd60cee4b15c;hb=d891546b2de2436b459fdc95dc0390226bb1ad8b;hp=9bbc94ea77148e6c55f9a835037693f88b2205d6;hpb=d22f4f43182fe1cc70b343b6a52cb8e3a54d1f44;p=libc-test diff --git a/src/math/nearbyintl.c b/src/math/nearbyintl.c index 9bbc94e..854255a 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 }; @@ -30,14 +32,14 @@ int main(void) y = nearbyintl(p->x); e = fetestexcept(INEXACT|INVALID|DIVBYZERO|UNDERFLOW|OVERFLOW); - if (!checkexcept(e, p->e, p->r)) { + if (!checkexceptall(e, p->e, p->r)) { printf("%s:%d: bad fp exception: %s nearbyintl(%La)=%La, want %s", p->file, p->line, rstr(p->r), p->x, p->y, estr(p->e)); printf(" got %s\n", estr(e)); 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++;