X-Git-Url: http://nsz.repo.hu/git/?p=libc-test;a=blobdiff_plain;f=src%2Fmath%2Flgammaf.c;h=ce73ee413671a091ae7bb0a9f944eb6ed686f12c;hp=26edb68437ba9057c7b80dee665971c62bebbdeb;hb=c886bb85233e642ca37731de72ad3e1f2f18a2f3;hpb=db87a4c3abf99af95d5dfe27f77b6815ec27a4f4 diff --git a/src/math/lgammaf.c b/src/math/lgammaf.c index 26edb68..ce73ee4 100644 --- a/src/math/lgammaf.c +++ b/src/math/lgammaf.c @@ -35,7 +35,7 @@ int main(void) err++; } d = ulperrf(y, p->y, p->dy); - if (!checkulp(d, p->r) || yi != p->i) { + if (!checkulp(d, p->r) || (!isnan(p->x) && p->x!=-inf && !(p->e&DIVBYZERO) && yi != p->i)) { printf("%s:%d: %s lgammaf(%a) want %a,%lld got %a,%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++;