X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fmodfl.c;h=943364402227b555b3e64d6974f6d6a760e3d24a;hb=5470d80bb36173c5cb5a314362ef9be9378aab4e;hp=c555cd439c5f5c9112dd92efc9a58db18bd1874e;hpb=9c6efc03eba4568ba9f1672a2bb0c50a047edd8e;p=libc-test diff --git a/src/math/modfl.c b/src/math/modfl.c index c555cd4..9433644 100644 --- a/src/math/modfl.c +++ b/src/math/modfl.c @@ -1,12 +1,14 @@ #include #include -#include "util.h" +#include "mtest.h" static struct l_ll t[] = { #if LDBL_MANT_DIG == 53 #include "sanity/modf.h" +#include "special/modf.h" #elif LDBL_MANT_DIG == 64 #include "sanity/modfl.h" +#include "special/modfl.h" #endif }; @@ -28,7 +30,8 @@ int main(void) y = modfl(p->x, &yi); e = fetestexcept(INEXACT|INVALID|DIVBYZERO|UNDERFLOW|OVERFLOW); - if (!checkexcept(e, p->e, p->r)) { + /* TODO: fix inexact */ + if (!checkexceptall(e|INEXACT, p->e|INEXACT, p->r)) { printf("%s:%d: bad fp exception: %s modf(%La)=%La,%La, want %s", p->file, p->line, rstr(p->r), p->x, p->y, p->y2, estr(p->e)); printf(" got %s\n", estr(e));