X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Ffmodf.c;h=1a7035028d5450e6431190765b65b528ea083f1e;hb=0d73b701b3c4bb8a200a35eed056ef6eef311713;hp=7709b48aa5d7b7bd5643972e013f7dcfa3b11455;hpb=f3f0ff4782fc90bd0f3e48fd541ee431f76aaed1;p=libc-test diff --git a/src/math/fmodf.c b/src/math/fmodf.c index 7709b48..1a70350 100644 --- a/src/math/fmodf.c +++ b/src/math/fmodf.c @@ -1,6 +1,6 @@ #include #include -#include "util.h" +#include "mtest.h" static struct ff_f t[] = { #include "ucb/fmodf.h" @@ -34,7 +34,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 fmodf(%a,%a) want %a got %a ulperr %.3f = %a + %a\n", p->file, p->line, rstr(p->r), p->x, p->x2, p->y, y, d, d-p->dy, p->dy); err++;