X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fy1.c;h=e31d67d102a3c2ee8f42acdd2955ee06dcf7245b;hb=c8999dd6b4a06f4963d7d7cfb82a7e30682b76d0;hp=a5e3b6a4e887b07d96e501758f1b74cece4b86f9;hpb=d22f4f43182fe1cc70b343b6a52cb8e3a54d1f44;p=libc-test diff --git a/src/math/y1.c b/src/math/y1.c index a5e3b6a..e31d67d 100644 --- a/src/math/y1.c +++ b/src/math/y1.c @@ -1,9 +1,11 @@ +#define _XOPEN_SOURCE 700 #include #include -#include "util.h" +#include "mtest.h" static struct d_d t[] = { #include "sanity/y1.h" +#include "special/y1.h" }; @@ -32,7 +34,7 @@ int main(void) err++; } d = ulperr(y, p->y, p->dy); - if (!checkulp(d, p->r)) { + if ((!(p->x < 0) && !checkulp(d, p->r)) || (p->x < 0 && !isnan(y) && y != -inf)) { printf("%s:%d: %s y1(%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++;