X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fremquof.c;h=55cbe9d6a65b70d5d265b5f897c46c6a2225c8c5;hb=ae0f0fe09b7fc9d44d072c3fd08372991d852b1d;hp=72f4d5ba760ae56be82dd581facb6b1522f3dead;hpb=588927eced2aa02855723750217fe3fc26404da9;p=libc-test diff --git a/src/math/remquof.c b/src/math/remquof.c index 72f4d5b..55cbe9d 100644 --- a/src/math/remquof.c +++ b/src/math/remquof.c @@ -4,6 +4,7 @@ static struct ff_fi t[] = { #include "sanity/remquof.h" +#include "special/remquof.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 remquof(%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++;