X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmath%2Fnearbyintl.c;h=d819f25320d8bb08efe402c64952e1f4b9f7c6af;hb=75aab93ef75299e347be24f57223dc93f2af80a4;hp=82bb73c6c9e13a8d75dc01136ab60d641044c1c9;hpb=4282b03a8c212b0e38af1876364be5f332673ce6;p=libc-test diff --git a/src/math/nearbyintl.c b/src/math/nearbyintl.c index 82bb73c..d819f25 100644 --- a/src/math/nearbyintl.c +++ b/src/math/nearbyintl.c @@ -25,14 +25,15 @@ int main(void) y = nearbyintl(p->x); e = getexcept(); if (!checkexcept(e, p->e, p->r)) { - printf("%s nearbyintl(%La)==%La except: want %s", rstr(p->r), p->x, p->y, estr(p->e)); + printf("%s:%d: bad fp exception: %s nearbyintl(%La)=%La, want %s", + p->file, p->line, rstr(p->r), p->x, p->y, estr(p->e)); printf(" got %s\n", estr(e)); err++; } d = ulperrl(y, p->y, p->dy); if (!checkulp(d, p->r)) { - printf("%s nearbyintl(%La) want %La got %La ulperr %.3f = %a + %a\n", - rstr(p->r), p->x, p->y, y, d, d-p->dy, p->dy); + printf("%s:%d: %s nearbyintl(%La) want %La got %La ulperr %.3f = %a + %a\n", + p->file, p->line, rstr(p->r), p->x, p->y, y, d, d-p->dy, p->dy); err++; } }