X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Ffmod.c;h=76c26346e4bf68b84be0e494f5735555b7275eeb;hb=8dc17fa12d0ed5d041e6521ebf3249ffd192c31b;hp=5424768f68d2c9bd7fff89c6d2b49f665201b13d;hpb=f3f0ff4782fc90bd0f3e48fd541ee431f76aaed1;p=libc-test diff --git a/src/math/fmod.c b/src/math/fmod.c index 5424768..76c2634 100644 --- a/src/math/fmod.c +++ b/src/math/fmod.c @@ -1,6 +1,6 @@ #include #include -#include "util.h" +#include "mtest.h" static struct dd_d t[] = { #include "ucb/fmod.h" @@ -34,7 +34,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 fmod(%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++;