X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fnearbyintf.c;h=a894548d603fe84cc660d3af86b4d126fcc4717f;hb=cfa23cc1bd01f5c44d7746b8b1839f84d5e1b6eb;hp=13de8ed12c4b9a2467dc264c75c29fa3dbd78e9c;hpb=d22f4f43182fe1cc70b343b6a52cb8e3a54d1f44;p=libc-test diff --git a/src/math/nearbyintf.c b/src/math/nearbyintf.c index 13de8ed..a894548 100644 --- a/src/math/nearbyintf.c +++ b/src/math/nearbyintf.c @@ -1,9 +1,10 @@ #include #include -#include "util.h" +#include "mtest.h" 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++;