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