X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fnextafterl.c;h=41edab044617ad51558fc419b2f23ffc778bda2d;hb=3bd0bf0bc472f257e65a16d990ff131d1fe518b6;hp=23b94fda7d6dd5529b780154da5d436fab3699d0;hpb=d22f4f43182fe1cc70b343b6a52cb8e3a54d1f44;p=libc-test diff --git a/src/math/nextafterl.c b/src/math/nextafterl.c index 23b94fd..41edab0 100644 --- a/src/math/nextafterl.c +++ b/src/math/nextafterl.c @@ -1,11 +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 }; @@ -28,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++;