X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Facos.c;h=f9d28f07a2edf017f710028a567879085b91ecfb;hb=9b2923eb8edf5d0872c9fdd3561f00dbf8480840;hp=16782eeb0f3e2b956b95b038c285dd1125025b00;hpb=f9d17902a35b6403b7c8354845e9f13f882c1c8e;p=libc-test diff --git a/src/math/acos.c b/src/math/acos.c index 16782ee..f9d28f0 100644 --- a/src/math/acos.c +++ b/src/math/acos.c @@ -3,10 +3,10 @@ #include "util.h" static struct d_d t[] = { - #include "crlibm/acos.h" #include "ucb/acos.h" #include "sanity/acos.h" + }; int main(void) @@ -22,14 +22,15 @@ int main(void) y = acos(p->x); e = getexcept(); if (!checkexcept(e, p->e, p->r)) { - printf("%s acos(%a)==%a except: want %s", rstr(p->r), p->x, p->y, estr(p->e)); + printf("%s:%d: bad fp exception: %s acos(%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 acos(%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 acos(%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++; } }