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