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