X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmath%2Flrintf.c;h=0d489805d10728e5292a84d1cd73bda712b767e4;hb=c8999dd6b4a06f4963d7d7cfb82a7e30682b76d0;hp=7e9a0f45391d71b2f2378e3268487292bd4a898f;hpb=125fb69ba64c0064de25eb1a23217b00aa393051;p=libc-test diff --git a/src/math/lrintf.c b/src/math/lrintf.c index 7e9a0f4..0d48980 100644 --- a/src/math/lrintf.c +++ b/src/math/lrintf.c @@ -1,9 +1,10 @@ #include #include -#include "util.h" +#include "mtest.h" static struct f_i t[] = { #include "sanity/lrintf.h" +#include "special/lrintf.h" }; @@ -30,7 +31,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 lrintf(%a) want %lld got %lld\n", p->file, p->line, rstr(p->r), p->x, p->i, yi); err++;