X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fnearbyint.c;h=988555fe2930a6daa71039c55b15f277e140fc80;hb=457b0dbfc1d72080f6ba9fe47cd712e0f090732a;hp=2579d76a85f5a16d9b52c32b051d7062a955503e;hpb=f9d17902a35b6403b7c8354845e9f13f882c1c8e;p=libc-test diff --git a/src/math/nearbyint.c b/src/math/nearbyint.c index 2579d76..988555f 100644 --- a/src/math/nearbyint.c +++ b/src/math/nearbyint.c @@ -3,8 +3,8 @@ #include "util.h" static struct d_d t[] = { - #include "sanity/nearbyint.h" + }; int main(void) @@ -20,14 +20,15 @@ int main(void) y = nearbyint(p->x); e = getexcept(); if (!checkexcept(e, p->e, p->r)) { - printf("%s nearbyint(%a)==%a except: want %s", rstr(p->r), p->x, p->y, estr(p->e)); + printf("%s:%d: bad fp exception: %s nearbyint(%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 nearbyint(%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 nearbyint(%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++; } }