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