5 static struct ll_l t[] = {
6 #if LDBL_MANT_DIG == 53
7 #include "sanity/remainder.h"
9 #elif LDBL_MANT_DIG == 64
10 #include "sanity/remainderl.h"
22 for (i = 0; i < sizeof t/sizeof *t; i++) {
25 y = remainderl(p->x, p->x2);
27 if (!checkexcept(e, p->e, p->r)) {
28 printf("%s:%d: bad fp exception: %s remainderl(%La,%La)=%La, want %s",
29 p->file, p->line, rstr(p->r), p->x, p->x2, p->y, estr(p->e));
30 printf(" got %s\n", estr(e));
33 d = ulperrl(y, p->y, p->dy);
34 if (!checkulp(d, p->r)) {
35 printf("%s:%d: %s remainderl(%La,%La) want %La got %La ulperr %.3f = %a + %a\n",
36 p->file, p->line, rstr(p->r), p->x, p->x2, p->y, y, d, d-p->dy, p->dy);