X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmath%2Fexp2f.c;h=02eb8fb754951214ea4a116cc500c12479c3d025;hb=75aab93ef75299e347be24f57223dc93f2af80a4;hp=405cef3cf4fb6dd7f4fa03ca3a5b733b8a770528;hpb=4282b03a8c212b0e38af1876364be5f332673ce6;p=libc-test diff --git a/src/math/exp2f.c b/src/math/exp2f.c index 405cef3..02eb8fb 100644 --- a/src/math/exp2f.c +++ b/src/math/exp2f.c @@ -20,14 +20,15 @@ int main(void) y = exp2f(p->x); e = getexcept(); if (!checkexcept(e, p->e, p->r)) { - printf("%s exp2f(%a)==%a except: want %s", rstr(p->r), p->x, p->y, estr(p->e)); + printf("%s:%d: bad fp exception: %s exp2f(%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 = ulperrf(y, p->y, p->dy); if (!checkulp(d, p->r)) { - printf("%s exp2f(%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 exp2f(%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++; } }