X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fllrintl.c;h=0fea06e99c02eec09a5bd11a905e10c4dcffdf59;hb=bda7be550a5e2f23d01a2595b190f559d0219330;hp=f63c98b53990ca14911d6cb1cb7bddde323ee82b;hpb=e084227a3608bc38230b88ea03e7b0f0804dd3ad;p=libc-test diff --git a/src/math/llrintl.c b/src/math/llrintl.c index f63c98b..0fea06e 100644 --- a/src/math/llrintl.c +++ b/src/math/llrintl.c @@ -5,9 +5,11 @@ static struct l_i t[] = { #if LDBL_MANT_DIG == 53 #include "sanity/llrint.h" +#include "special/llrint.h" #elif LDBL_MANT_DIG == 64 #include "sanity/llrintl.h" +#include "special/llrintl.h" #endif }; @@ -16,7 +18,6 @@ int main(void) { #pragma STDC FENV_ACCESS ON long long yi; - float d; int e, i, err = 0; struct l_i *p; @@ -36,7 +37,7 @@ int main(void) printf(" got %s\n", estr(e)); err++; } - if (yi != p->i) { + if (!(p->e&INVALID) && yi != p->i) { printf("%s:%d: %s llrintl(%La) want %lld got %lld\n", p->file, p->line, rstr(p->r), p->x, p->i, yi); err++;