X-Git-Url: http://nsz.repo.hu/git/?p=libc-test;a=blobdiff_plain;f=src%2Fmath%2Fjn.c;h=e02db5ed81e4c1d8e6a868357b0dd8e01b9c8eca;hp=96658ddae73992161d75a08084f707ee53001438;hb=0d73b701b3c4bb8a200a35eed056ef6eef311713;hpb=21dd45c44f745d3b85afab304362d01b3b45a5e4 diff --git a/src/math/jn.c b/src/math/jn.c index 96658dd..e02db5e 100644 --- a/src/math/jn.c +++ b/src/math/jn.c @@ -1,9 +1,12 @@ +#define _BSD_SOURCE 1 +#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 +28,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++; } }