-static struct {
- float x;
- float yf;
- float yi;
-} tf[] = {
- 0.7, 0x1.666666p-1, 0.0,
- -0.7, -0x1.666666p-1, -0.0,
- 1.7, 0x1.666668p-1, 1.0,
- -1.7, -0x1.666668p-1, -1.0,
- 2.0, 0.0, 2.0,
- -2.0, -0.0, -2.0,
- -0x1p99, -0.0, -0x1p99,
- -0.0, -0.0, -0.0,
- INFINITY, 0.0, INFINITY,
- -INFINITY, -0.0, -INFINITY,
- NAN, NAN, NAN,
-};
-
-static struct {
- long double x;
- long double yf;
- long double yi;
-} tl[] = {
- 0.7L, 0x1.6666666666666666p-1L, 0.0,
- -0.7L, -0x1.6666666666666666p-1L, -0.0,
- 1.7L, 0x1.6666666666666668p-1L, 1.0,
- -1.7L, -0x1.6666666666666668p-1L, -1.0,
- 2.0, 0, 2.0,
- -2.0, -0.0, -2.0,
- -0x1p99, -0.0, -0x1p99,
- -0.0, -0.0, -0.0,
- INFINITY, 0.0, INFINITY,
- -INFINITY, -0.0, -INFINITY,
- NAN, NAN, NAN,
-};
-
-#define eq(a, b) (isnan(a) && isnan(b) || ((a) == (b) && signbit(a) == signbit(b)))
-
-void test_modf()