X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Ffmod.c;h=76c26346e4bf68b84be0e494f5735555b7275eeb;hb=4599c1f37e1b43841083cc0e21b3417c4232f90e;hp=3e66c95724abc62411a38dbaa75c92301cf2b3ea;hpb=d22f4f43182fe1cc70b343b6a52cb8e3a54d1f44;p=libc-test diff --git a/src/math/fmod.c b/src/math/fmod.c index 3e66c95..76c2634 100644 --- a/src/math/fmod.c +++ b/src/math/fmod.c @@ -1,10 +1,11 @@ #include #include -#include "util.h" +#include "mtest.h" static struct dd_d t[] = { #include "ucb/fmod.h" #include "sanity/fmod.h" +#include "special/fmod.h" }; @@ -33,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++;