X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fjn.c;h=fc1b5d4256bea63ab7db17e3648e39a28278c748;hb=c8999dd6b4a06f4963d7d7cfb82a7e30682b76d0;hp=96658ddae73992161d75a08084f707ee53001438;hpb=21dd45c44f745d3b85afab304362d01b3b45a5e4;p=libc-test diff --git a/src/math/jn.c b/src/math/jn.c index 96658dd..fc1b5d4 100644 --- a/src/math/jn.c +++ b/src/math/jn.c @@ -1,9 +1,11 @@ +#define _XOPEN_SOURCE 700 #include #include -#include "util.h" +#include "mtest.h" static struct di_d t[] = { #include "sanity/jn.h" +#include "special/jn.h" }; int main(void) @@ -25,15 +27,15 @@ int main(void) e = fetestexcept(INEXACT|INVALID|DIVBYZERO|UNDERFLOW|OVERFLOW); if (!checkexcept(e, p->e, p->r)) { - printf("%s:%d: bad fp exception: %s jn(%a, %lld)=%a, want %s", - p->file, p->line, rstr(p->r), p->x, p->i, p->y, estr(p->e)); + printf("%s:%d: bad fp exception: %s jn(%lld, %a)=%a, want %s", + p->file, p->line, rstr(p->r), p->i, p->x, p->y, estr(p->e)); printf(" got %s\n", estr(e)); err++; } d = ulperr(y, p->y, p->dy); if (!checkulp(d, p->r)) { - printf("%s:%d: %s jn(%a, %lld) want %a got %a, ulperr %.3f = %a + %a\n", - p->file, p->line, rstr(p->r), p->x, p->i, p->y, y, d, d-p->dy, p->dy); + printf("%s:%d: %s jn(%lld, %a) want %a got %a, ulperr %.3f = %a + %a\n", + p->file, p->line, rstr(p->r), p->i, p->x, p->y, y, d, d-p->dy, p->dy); err++; } }