X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fcopysignf.c;h=e8bb7680403a43b1b466e78374ff2e9a6b51d7d7;hb=e444a960e992bc5a55142ac7f3267a08fc6ce0f5;hp=a53f6f20624e319611148df6b40ec5a6e7cc6b1f;hpb=d22f4f43182fe1cc70b343b6a52cb8e3a54d1f44;p=libc-test diff --git a/src/math/copysignf.c b/src/math/copysignf.c index a53f6f2..e8bb768 100644 --- a/src/math/copysignf.c +++ b/src/math/copysignf.c @@ -1,9 +1,10 @@ #include #include -#include "util.h" +#include "mtest.h" static struct ff_f t[] = { #include "sanity/copysignf.h" +#include "special/copysignf.h" }; @@ -25,14 +26,14 @@ int main(void) y = copysignf(p->x, p->x2); 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 copysignf(%a,%a)=%a, want %s", p->file, p->line, rstr(p->r), p->x, p->x2, 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 copysignf(%a,%a) want %a got %a ulperr %.3f = %a + %a\n", p->file, p->line, rstr(p->r), p->x, p->x2, p->y, y, d, d-p->dy, p->dy); err++;