5 static struct d_d t
[] = {
6 #include "crlibm/acos.h"
8 #include "sanity/acos.h"
9 #include "special/acos.h"
15 #pragma STDC FENV_ACCESS ON
21 for (i
= 0; i
< sizeof t
/sizeof *t
; i
++) {
27 feclearexcept(FE_ALL_EXCEPT
);
29 e
= fetestexcept(INEXACT
|INVALID
|DIVBYZERO
|UNDERFLOW
|OVERFLOW
);
31 if (!checkexcept(e
, p
->e
, p
->r
)) {
32 printf("%s:%d: bad fp exception: %s acos(%a)=%a, want %s",
33 p
->file
, p
->line
, rstr(p
->r
), p
->x
, p
->y
, estr(p
->e
));
34 printf(" got %s\n", estr(e
));
37 d
= ulperr(y
, p
->y
, p
->dy
);
38 if (!checkulp(d
, p
->r
)) {
39 printf("%s:%d: %s acos(%a) want %a got %a ulperr %.3f = %a + %a\n",
40 p
->file
, p
->line
, rstr(p
->r
), p
->x
, p
->y
, y
, d
, d
-p
->dy
, p
->dy
);