X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fmodff.c;h=ce91f9819d86cf43b362a023ba07fc16ba1d4e60;hb=667aded8ff906ada3cde9bc1483768133300b4d3;hp=e6ed290dc76c811f79aa0a1a2ddd7f9da744fef4;hpb=cb9f87af9a1f917facd1140603b24f1087729751;p=libc-test diff --git a/src/math/modff.c b/src/math/modff.c index e6ed290..ce91f98 100644 --- a/src/math/modff.c +++ b/src/math/modff.c @@ -4,6 +4,7 @@ static struct f_ff t[] = { #include "sanity/modff.h" +#include "special/modff.h" }; int main(void) @@ -32,7 +33,7 @@ int main(void) } d = ulperr(y, p->y, p->dy); di = ulperr(yi, p->y2, p->dy2); - if (!checkulp(d, p->r) || !checkulp(di, p->r)) { + if (!checkcr(y, p->y, p->r) || !checkcr(yi, p->y2, p->r)) { printf("%s:%d: %s modff(%a) want %a,%a got %a,%a, ulperr %.3f = %a + %a, %.3f = %a + %a\n", p->file, p->line, rstr(p->r), p->x, p->y, p->y2, y, yi, d, d-p->dy, p->dy, di, di-p->dy2, p->dy2); err++;