5 static struct ff_f t[] = {
6 #include "ucb/atan2f.h"
7 #include "sanity/atan2f.h"
18 for (i = 0; i < sizeof t/sizeof *t; i++) {
21 y = atan2f(p->x, p->x2);
23 if (!checkexcept(e, p->e, p->r)) {
24 printf("%s:%d: bad fp exception: %s atan2f(%a,%a)=%a, want %s",
25 p->file, p->line, rstr(p->r), p->x, p->x2, p->y, estr(p->e));
26 printf(" got %s\n", estr(e));
29 d = ulperrf(y, p->y, p->dy);
30 if (!checkulp(d, p->r)) {
31 printf("%s:%d: %s atan2f(%a,%a) want %a got %a ulperr %.3f = %a + %a\n",
32 p->file, p->line, rstr(p->r), p->x, p->x2, p->y, y, d, d-p->dy, p->dy);