X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Flog1p.c;h=8824d1cd7c3bb78e83fe84d4b4526f6bc5b529f1;hb=457b0dbfc1d72080f6ba9fe47cd712e0f090732a;hp=e6653e114fa113d89421d840b5ecadb3d49edeb3;hpb=f9d17902a35b6403b7c8354845e9f13f882c1c8e;p=libc-test diff --git a/src/math/log1p.c b/src/math/log1p.c index e6653e1..8824d1c 100644 --- a/src/math/log1p.c +++ b/src/math/log1p.c @@ -3,9 +3,9 @@ #include "util.h" static struct d_d t[] = { - #include "crlibm/log1p.h" #include "sanity/log1p.h" + }; int main(void) @@ -21,14 +21,15 @@ int main(void) y = log1p(p->x); e = getexcept(); if (!checkexcept(e, p->e, p->r)) { - printf("%s log1p(%a)==%a except: want %s", rstr(p->r), p->x, p->y, estr(p->e)); + printf("%s:%d: bad fp exception: %s log1p(%a)=%a, want %s", + p->file, p->line, rstr(p->r), 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 log1p(%a) want %a got %a ulperr %.3f = %a + %a\n", - rstr(p->r), p->x, p->y, y, d, d-p->dy, p->dy); + printf("%s:%d: %s log1p(%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++; } }