X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fnearbyint.c;h=db5a58c21ba7c8d4ac7e96804be48b25c7a15f0d;hb=9aeadc5b0fdc9679c8c257c1a8521f76f1e3b0e7;hp=927f1295c1c28bbbb3b48b19dd9816a2634bad47;hpb=d22f4f43182fe1cc70b343b6a52cb8e3a54d1f44;p=libc-test diff --git a/src/math/nearbyint.c b/src/math/nearbyint.c index 927f129..db5a58c 100644 --- a/src/math/nearbyint.c +++ b/src/math/nearbyint.c @@ -32,7 +32,7 @@ int main(void) err++; } d = ulperr(y, p->y, p->dy); - if (!checkulp(d, p->r)) { + if (!checkcr(y, p->y, p->r)) { printf("%s:%d: %s nearbyint(%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++;