X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Flogbl.c;h=6cb70058b3774d7299322eb5788926e9b65e7c14;hb=457b0dbfc1d72080f6ba9fe47cd712e0f090732a;hp=4531574f925be6e2c438e4bb05a0d8438fdd1b84;hpb=f9d17902a35b6403b7c8354845e9f13f882c1c8e;p=libc-test diff --git a/src/math/logbl.c b/src/math/logbl.c index 4531574..6cb7005 100644 --- a/src/math/logbl.c +++ b/src/math/logbl.c @@ -4,11 +4,11 @@ static struct l_l t[] = { #if LDBL_MANT_DIG == 53 -D -#include "sanity/logbl.h" -#elif LDBL_MANT_DIG == 64 +#include "sanity/logb.h" +#elif LDBL_MANT_DIG == 64 #include "sanity/logbl.h" + #endif }; @@ -25,14 +25,15 @@ int main(void) y = logbl(p->x); e = getexcept(); if (!checkexcept(e, p->e, p->r)) { - printf("%s logbl(%La)==%La except: want %s", rstr(p->r), p->x, p->y, estr(p->e)); + printf("%s:%d: bad fp exception: %s logbl(%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 logbl(%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 logbl(%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++; } }