X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fscalbf.c;h=309ff8d8a00fb7ef2e51bdea8d7c550efe0c5244;hb=50ab48b035c2555e09cc9ac94c74f45b74b234f4;hp=3754282e2e7b3cc9247fc3288b66edfd67b04046;hpb=cfa23cc1bd01f5c44d7746b8b1839f84d5e1b6eb;p=libc-test diff --git a/src/math/scalbf.c b/src/math/scalbf.c index 3754282..309ff8d 100644 --- a/src/math/scalbf.c +++ b/src/math/scalbf.c @@ -1,3 +1,5 @@ +#define _BSD_SOURCE 1 +#define _GNU_SOURCE 1 #include #include #include "mtest.h" @@ -26,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));