X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fremquol.c;h=6a75008ea4d0a7e7ede14d650a419748a4007f9b;hb=b3580f11bf7b91afd597e6224c2f265d6d0b087f;hp=c37fda23ab8c7e078b8948c163dca0a3a71cf886;hpb=f3f0ff4782fc90bd0f3e48fd541ee431f76aaed1;p=libc-test diff --git a/src/math/remquol.c b/src/math/remquol.c index c37fda2..6a75008 100644 --- a/src/math/remquol.c +++ b/src/math/remquol.c @@ -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 (!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++;