X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fremquol.c;h=257b044777628cc2572e183869da7925b749d88b;hb=978759d6ea01cb406c634912a2e876aa8475955e;hp=a06497d0dc3f8ee3caf38bead0c18a528a04159f;hpb=588927eced2aa02855723750217fe3fc26404da9;p=libc-test diff --git a/src/math/remquol.c b/src/math/remquol.c index a06497d..257b044 100644 --- a/src/math/remquol.c +++ b/src/math/remquol.c @@ -1,9 +1,10 @@ #include #include -#include "util.h" +#include "mtest.h" static struct ll_li t[] = { #include "sanity/remquol.h" +#include "special/remquol.h" }; int main(void) @@ -32,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 (!checkulp(d, p->r) || + (!isnan(p->y) && (yi & 7) != (p->i & 7)) || + (!isnan(p->y) && (yi < 0) != (p->i < 0))) { printf("%s:%d: %s remquol(%La,%La) want %La,%lld got %La,%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++;