X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Ftgamma.c;h=18992fe771c0754dd4d1e419cc705343a9de9d53;hb=6c9a64c370c3fd92b1cda3ef4246933956575c12;hp=f286a62cde88ff0d97aac5cff7d8101cb12ea5d5;hpb=d22f4f43182fe1cc70b343b6a52cb8e3a54d1f44;p=libc-test diff --git a/src/math/tgamma.c b/src/math/tgamma.c index f286a62..18992fe 100644 --- a/src/math/tgamma.c +++ b/src/math/tgamma.c @@ -1,9 +1,10 @@ #include #include -#include "util.h" +#include "mtest.h" static struct d_d t[] = { #include "sanity/tgamma.h" +#include "special/tgamma.h" }; @@ -32,7 +33,8 @@ int main(void) err++; } d = ulperr(y, p->y, p->dy); - if (!checkulp(d, p->r)) { + // TODO: 2 ulp errors allowed + if (p->r==RN && fabs(d)>2) { printf("%s:%d: %s tgamma(%a) want %a got %a ulperr %.3f = %a + %a\n", p->file, p->line, rstr(p->r), p->x, p->y, y, d, d-p->dy, p->dy); err++;