X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Flogbf.c;h=4f0f0d0011d8f2128d390fef1d127cb99c7ff408;hb=cda5e0484c98223a552580e79af378a6e6e83305;hp=cb6d3574d995e9596918f9c905c7fc9f8d37f8e2;hpb=f3f0ff4782fc90bd0f3e48fd541ee431f76aaed1;p=libc-test diff --git a/src/math/logbf.c b/src/math/logbf.c index cb6d357..4f0f0d0 100644 --- a/src/math/logbf.c +++ b/src/math/logbf.c @@ -1,6 +1,6 @@ #include #include -#include "util.h" +#include "mtest.h" static struct f_f t[] = { #include "sanity/logbf.h" @@ -26,14 +26,14 @@ int main(void) y = logbf(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 logbf(%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 logbf(%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++;