X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fnearbyintf.c;h=582c146065ed3a2749079e487b2a810a39c56f06;hb=d2ba8e6653b825dff20e989f4cf8fdcc33f3f6be;hp=13de8ed12c4b9a2467dc264c75c29fa3dbd78e9c;hpb=d22f4f43182fe1cc70b343b6a52cb8e3a54d1f44;p=libc-test diff --git a/src/math/nearbyintf.c b/src/math/nearbyintf.c index 13de8ed..582c146 100644 --- a/src/math/nearbyintf.c +++ b/src/math/nearbyintf.c @@ -4,6 +4,7 @@ static struct f_f t[] = { #include "sanity/nearbyintf.h" +#include "special/nearbyintf.h" }; @@ -32,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 nearbyintf(%a) want %a got %a ulperr %.3f = %a + %a\n", p->file, p->line, rstr(p->r), p->x, p->y, y, d, d-p->dy, p->dy); err++;