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