X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fnextafterl.c;h=58737ee2d2d4eb52dd110eea1c77cddb89c4c046;hb=713aa1df9c8a3b2a5515c862a06bdab47e20dcf2;hp=23b94fda7d6dd5529b780154da5d436fab3699d0;hpb=d22f4f43182fe1cc70b343b6a52cb8e3a54d1f44;p=libc-test diff --git a/src/math/nextafterl.c b/src/math/nextafterl.c index 23b94fd..58737ee 100644 --- a/src/math/nextafterl.c +++ b/src/math/nextafterl.c @@ -4,8 +4,10 @@ static struct ll_l t[] = { #if LDBL_MANT_DIG == 53 +#include "sanity/nextafter.h" #elif LDBL_MANT_DIG == 64 +#include "sanity/nextafterl.h" #endif }; @@ -35,7 +37,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 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++;