X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fllround.c;h=62f1a4e3ffa598238a2ecf5f5b796b6eeb5b8dab;hb=b3580f11bf7b91afd597e6224c2f265d6d0b087f;hp=42aaa401beab888337a924ac71e933d0d5626afb;hpb=b5bbc6ebaeaf4381ea2436a3b410dcf4980c8efd;p=libc-test diff --git a/src/math/llround.c b/src/math/llround.c index 42aaa40..62f1a4e 100644 --- a/src/math/llround.c +++ b/src/math/llround.c @@ -4,14 +4,14 @@ static struct d_i t[] = { #include "sanity/llround.h" +#include "special/llround.h" }; int main(void) { #pragma STDC FENV_ACCESS ON - int yi; - float d; + long long yi; int e, i, err = 0; struct d_i *p; @@ -31,8 +31,8 @@ int main(void) printf(" got %s\n", estr(e)); err++; } - if (yi != p->i) { - printf("%s:%d: %s llround(%a) want %lld got %d\n", + if (!(p->e&INVALID) && yi != p->i) { + printf("%s:%d: %s llround(%a) want %lld got %lld\n", p->file, p->line, rstr(p->r), p->x, p->i, yi); err++; }