X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fscalbln.c;h=6e24b37d09d4a9a2907a841319bb92bf8e045e3a;hb=2b9639f0f09c5b8bcd245fac49b2fb9da23b0302;hp=0231cebc4dcd450371b867590d8d9b64ac28b95e;hpb=d22f4f43182fe1cc70b343b6a52cb8e3a54d1f44;p=libc-test diff --git a/src/math/scalbln.c b/src/math/scalbln.c index 0231ceb..6e24b37 100644 --- a/src/math/scalbln.c +++ b/src/math/scalbln.c @@ -1,9 +1,10 @@ #include #include -#include "util.h" +#include "mtest.h" static struct di_d t[] = { #include "sanity/scalbln.h" +#include "special/scalbln.h" }; @@ -25,14 +26,14 @@ int main(void) y = scalbln(p->x, p->i); 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 scalbln(%a, %lld)=%a, want %s", p->file, p->line, rstr(p->r), p->x, p->i, p->y, estr(p->e)); printf(" got %s\n", estr(e)); err++; } d = ulperr(y, p->y, p->dy); - if (!checkulp(d, p->r)) { + if (!checkcr(y, p->y, p->r)) { printf("%s:%d: %s scalbln(%a, %lld) want %a got %a, ulperr %.3f = %a + %a\n", p->file, p->line, rstr(p->r), p->x, p->i, p->y, y, d, d-p->dy, p->dy); err++;