X-Git-Url: http://nsz.repo.hu/git/?p=libc-test;a=blobdiff_plain;f=src%2Fmath%2Fcos.c;h=1e608a5fe855ea3376ee23bbe09294ced736d976;hp=485efad22756f867a79db8d644abb380a52ef494;hb=5fc943786cdd4e93efe31f9f742f2097cec9f8a1;hpb=d22f4f43182fe1cc70b343b6a52cb8e3a54d1f44 diff --git a/src/math/cos.c b/src/math/cos.c index 485efad..1e608a5 100644 --- a/src/math/cos.c +++ b/src/math/cos.c @@ -1,11 +1,12 @@ #include #include -#include "util.h" +#include "mtest.h" static struct d_d t[] = { #include "crlibm/cos.h" #include "ucb/cos.h" #include "sanity/cos.h" +#include "special/cos.h" }; @@ -35,9 +36,12 @@ int main(void) } d = ulperr(y, p->y, p->dy); if (!checkulp(d, p->r)) { + if (p->r != RN) + printf("X "); + else + err++; printf("%s:%d: %s cos(%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++; } } return !!err;