X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmath%2Flroundl.c;h=42b8479871fc2df03702244daaef8fe9d17b7084;hb=088f2d9c1940e9bf1828cc1c899b4c63a41be768;hp=0b62b1a9ee7aa776c5fb7c9ffbf5e4a4505b7841;hpb=e084227a3608bc38230b88ea03e7b0f0804dd3ad;p=libc-test diff --git a/src/math/lroundl.c b/src/math/lroundl.c index 0b62b1a..42b8479 100644 --- a/src/math/lroundl.c +++ b/src/math/lroundl.c @@ -1,13 +1,15 @@ #include #include -#include "util.h" +#include "mtest.h" static struct l_i t[] = { #if LDBL_MANT_DIG == 53 #include "sanity/lround.h" +#include "special/lround.h" #elif LDBL_MANT_DIG == 64 #include "sanity/lroundl.h" +#include "special/lroundl.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 lroundl(%La) want %lld got %lld\n", p->file, p->line, rstr(p->r), p->x, p->i, yi); err++;