X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fscalbf.c;h=309ff8d8a00fb7ef2e51bdea8d7c550efe0c5244;hb=50ab48b035c2555e09cc9ac94c74f45b74b234f4;hp=8c190cc2a68c8360735c8522e78fb94de3d5fa22;hpb=9c6efc03eba4568ba9f1672a2bb0c50a047edd8e;p=libc-test diff --git a/src/math/scalbf.c b/src/math/scalbf.c index 8c190cc..309ff8d 100644 --- a/src/math/scalbf.c +++ b/src/math/scalbf.c @@ -1,9 +1,12 @@ +#define _BSD_SOURCE 1 +#define _GNU_SOURCE 1 #include #include -#include "util.h" +#include "mtest.h" static struct ff_f t[] = { #include "sanity/scalbf.h" +#include "special/scalbf.h" }; @@ -25,7 +28,7 @@ int main(void) y = scalbf(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 scalbf(%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));