X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fnextafterf.c;h=9f468f218523199eb7bbf3a15cc55d4023884512;hb=d2ba8e6653b825dff20e989f4cf8fdcc33f3f6be;hp=e0aae93443a376fe1547c716e03cb1296093ac4a;hpb=d22f4f43182fe1cc70b343b6a52cb8e3a54d1f44;p=libc-test diff --git a/src/math/nextafterf.c b/src/math/nextafterf.c index e0aae93..9f468f2 100644 --- a/src/math/nextafterf.c +++ b/src/math/nextafterf.c @@ -3,6 +3,8 @@ #include "util.h" static struct ff_f t[] = { +#include "sanity/nextafterf.h" +#include "special/nextafterf.h" }; @@ -31,7 +33,7 @@ int main(void) err++; } d = ulperrf(y, p->y, p->dy); - if (!checkulp(d, p->r)) { + if (!checkcr(y, p->y, p->r)) { printf("%s:%d: %s nextafterf(%a,%a) want %a got %a 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++;