X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Flgammaf.c;h=ce73ee413671a091ae7bb0a9f944eb6ed686f12c;hb=b8fbda354afe84b26fae2317c49d79b3ff14f1cb;hp=86d83db7e979dd36c5394e0a35c985893b3a671f;hpb=2146d5e12aa52cb97f0a151e2611967f0653a07a;p=libc-test diff --git a/src/math/lgammaf.c b/src/math/lgammaf.c index 86d83db..ce73ee4 100644 --- a/src/math/lgammaf.c +++ b/src/math/lgammaf.c @@ -4,6 +4,7 @@ static struct f_fi t[] = { #include "sanity/lgammaf.h" +#include "special/lgammaf.h" }; @@ -34,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++;