X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fremquo.c;h=869468885429c6251b3a186ac8cf240edf12250f;hb=2bfb414517031063e18dc4a07543e279dc07461d;hp=245cd1d833a9b8c2506c9b0c6cdbd7c1c0763617;hpb=f3f0ff4782fc90bd0f3e48fd541ee431f76aaed1;p=libc-test diff --git a/src/math/remquo.c b/src/math/remquo.c index 245cd1d..8694688 100644 --- a/src/math/remquo.c +++ b/src/math/remquo.c @@ -1,6 +1,6 @@ #include #include -#include "util.h" +#include "mtest.h" static struct dd_di t[] = { #include "sanity/remquo.h" @@ -33,7 +33,9 @@ int main(void) err++; } d = ulperr(y, p->y, p->dy); - if (!checkulp(d, p->r) || (yi & 7) != (p->i & 7) || (yi < 0) != (p->i < 0)) { + if (!checkcr(y, p->y, p->r) || + (!isnan(p->y) && (yi & 7) != (p->i & 7)) || + (!isnan(p->y) && (yi < 0) != (p->i < 0))) { printf("%s:%d: %s remquo(%a,%a) want %a,%lld got %a,%d ulperr %.3f = %a + %a\n", p->file, p->line, rstr(p->r), p->x, p->x2, p->y, p->i, y, yi, d, d-p->dy, p->dy); err++;