X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Flgammal.c;fp=src%2Fmath%2Flgammal.c;h=9050913cd9484b3d5bbea7a72fb4fbeff5a98589;hb=7da725cd0be7e880ff4971257720220d281c4ab3;hp=37047f968efb78ce45bca89f828f4657886a1cad;hpb=b4b14be7d947a26aae6743e4fc385776e9db7d0f;p=libc-test diff --git a/src/math/lgammal.c b/src/math/lgammal.c index 37047f9..9050913 100644 --- a/src/math/lgammal.c +++ b/src/math/lgammal.c @@ -43,7 +43,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(%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++;