X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Ftrunc.c;h=0236a3de458b98cd02c22b8e93a9326db749172d;hb=d2ba8e6653b825dff20e989f4cf8fdcc33f3f6be;hp=49c50e07a6bcebcfa37dd42ed3ce113de94e7a09;hpb=d22f4f43182fe1cc70b343b6a52cb8e3a54d1f44;p=libc-test diff --git a/src/math/trunc.c b/src/math/trunc.c index 49c50e0..0236a3d 100644 --- a/src/math/trunc.c +++ b/src/math/trunc.c @@ -4,6 +4,7 @@ static struct d_d t[] = { #include "sanity/trunc.h" +#include "special/trunc.h" }; @@ -32,7 +33,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 trunc(%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++;