X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fnextafterl.c;h=41edab044617ad51558fc419b2f23ffc778bda2d;hb=79bf86d9739269cd124b550c3177bb9f7a9d8566;hp=2e9fc0621ff62a43a06e6ada0e69278e18c5d27c;hpb=ddfb9f92381086ef0b29f6fdddee3f7e51fb82e1;p=libc-test diff --git a/src/math/nextafterl.c b/src/math/nextafterl.c index 2e9fc06..41edab0 100644 --- a/src/math/nextafterl.c +++ b/src/math/nextafterl.c @@ -1,13 +1,15 @@ #include #include -#include "util.h" +#include "mtest.h" static struct ll_l t[] = { #if LDBL_MANT_DIG == 53 #include "sanity/nextafter.h" +#include "special/nextafter.h" #elif LDBL_MANT_DIG == 64 #include "sanity/nextafterl.h" +#include "special/nextafterl.h" #endif }; @@ -30,14 +32,14 @@ int main(void) y = nextafterl(p->x, p->x2); 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 nextafterl(%La,%La)=%La, want %s", p->file, p->line, rstr(p->r), p->x, p->x2, 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 nextafterl(%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++;