X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Ffabsf.c;h=cef9b5ae97f70e642cc99463ad56aa9ad1de07ba;hb=d5fe2f139f48684f2e0f99a3c95ce63581e24740;hp=1dc99b4e2700846972440bab77f42cba3007fc06;hpb=d22f4f43182fe1cc70b343b6a52cb8e3a54d1f44;p=libc-test diff --git a/src/math/fabsf.c b/src/math/fabsf.c index 1dc99b4..cef9b5a 100644 --- a/src/math/fabsf.c +++ b/src/math/fabsf.c @@ -1,10 +1,11 @@ #include #include -#include "util.h" +#include "mtest.h" static struct f_f t[] = { #include "ucb/fabsf.h" #include "sanity/fabsf.h" +#include "special/fabsf.h" }; @@ -26,14 +27,14 @@ int main(void) y = fabsf(p->x); e = fetestexcept(INEXACT|INVALID|DIVBYZERO|UNDERFLOW|OVERFLOW); - if (!checkexcept(e, p->e, p->r)) { + if (!checkexceptall(e, p->e, p->r)) { printf("%s:%d: bad fp exception: %s fabsf(%a)=%a, want %s", p->file, p->line, rstr(p->r), p->x, p->y, estr(p->e)); printf(" got %s\n", estr(e)); err++; } d = ulperrf(y, p->y, p->dy); - if (!checkulp(d, p->r)) { + if (!checkcr(y, p->y, p->r)) { printf("%s:%d: %s fabsf(%a) want %a got %a ulperr %.3f = %a + %a\n", p->file, p->line, rstr(p->r), p->x, p->y, y, d, d-p->dy, p->dy); err++;