X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Flgammal_r.c;h=848f48d464954303a24923ca6db72fbd3a968a24;hb=4599c1f37e1b43841083cc0e21b3417c4232f90e;hp=2f4927eddab368855cf925585574321ae68b359e;hpb=7b5ccd5b5297e4a0e413a1517699fbfb5bb575be;p=libc-test diff --git a/src/math/lgammal_r.c b/src/math/lgammal_r.c index 2f4927e..848f48d 100644 --- a/src/math/lgammal_r.c +++ b/src/math/lgammal_r.c @@ -41,7 +41,8 @@ int main(void) err++; } d = ulperrl(y, p->y, p->dy); - if (!checkulp(d, p->r) || (!isnan(p->x) && p->x!=-inf && !(p->e&DIVBYZERO) && yi != p->i)) { + // TODO: 2 ulp errors allowed + if ((p->r==RN && fabs(d)>2) || (!isnan(p->x) && p->x!=-inf && !(p->e&DIVBYZERO) && yi != p->i)) { printf("%s:%d: %s lgammal_r(%La) want %La,%lld got %La,%d ulperr %.3f = %a + %a\n", p->file, p->line, rstr(p->r), p->x, p->y, p->i, y, yi, d, d-p->dy, p->dy); err++;