Home | History | Annotate | Download | only in libm

Lines Matching refs:nexttoward

42 	atf_tc_set_md_var(tc, "descr", "vax nextafter/nexttoward reminder");
48 atf_tc_fail("missing nextafter{,f,l} and nexttoward{,f,l} on vax");
72 * numbers. Verify nextafter and nexttoward follow exactly this
82 CHECK(i, nexttoward, x[i], x[i], x[i]);
84 CHECK(i, nexttoward, -x[i], -x[i], -x[i]);
91 CHECK(i, nexttoward, x[i], x[i]*(1 + LDBL_EPSILON),
96 CHECK(i, nexttoward, x[i], x[i + 1], x[i + 1]);
98 CHECK(i, nexttoward, x[i], x[n - 1], x[i + 1]);
100 CHECK(i, nexttoward, x[i], INFINITY, x[i + 1]);
103 CHECK(i, nexttoward, -x[i], -x[i + 1], -x[i + 1]);
105 CHECK(i, nexttoward, -x[i], -x[n - 1], -x[i + 1]);
107 CHECK(i, nexttoward, -x[i], -INFINITY, -x[i + 1]);
115 CHECK(i, nexttoward, x[i], x[i]*(1 - LDBL_EPSILON/2),
121 CHECK(i, nexttoward, x[i], x[i - 1], x[i - 1]);
123 CHECK(i, nexttoward, x[i], x[0], x[i - 1]);
125 CHECK(i, nexttoward, x[i], +0., x[i - 1]);
127 CHECK(i, nexttoward, x[i], -0., x[i - 1]);
129 CHECK(i, nexttoward, x[i], -x[0], x[i - 1]);
131 CHECK(i, nexttoward, x[i], -x[i], x[i - 1]);
133 CHECK(i, nexttoward, x[i], -INFINITY, x[i - 1]);
136 CHECK(i, nexttoward, -x[i], -x[i - 1], -x[i - 1]);
138 CHECK(i, nexttoward, -x[i], -x[0], -x[i - 1]);
140 CHECK(i, nexttoward, -x[i], -0., -x[i - 1]);
142 CHECK(i, nexttoward, -x[i], +0., -x[i - 1]);
144 CHECK(i, nexttoward, -x[i], x[0], -x[i - 1]);
146 CHECK(i, nexttoward, -x[i], INFINITY, -x[i - 1]);
304 atf_tc_set_md_var(tc, "descr", "nextafter/nexttoward on NaN");
311 ATF_CHECK(isnan(nexttoward(NAN, 0)));
313 ATF_CHECK(isnan(nexttoward(0, NAN)));
322 atf_tc_set_md_var(tc, "descr", "nextafter/nexttoward on signed 0");
343 * Verify that nextafter and nexttoward, which implement the
349 CHECK(1, nexttoward, z_neg, +INFINITY, m);
351 CHECK(3, nexttoward, z_pos, +INFINITY, m);
354 CHECK(5, nexttoward, z_pos, -INFINITY, -m);
356 CHECK(7, nexttoward, z_neg, -INFINITY, -m);
363 * Verify that nextafter and nexttoward return the correctly
367 CHECK(9, nexttoward, -m, +INFINITY, 0);
370 CHECK(11, nexttoward, m, -INFINITY, 0);
377 atf_tc_set_md_var(tc, "descr", "nextafter/nexttoward near 0");
403 "nextafter/nexttoward near the subnormal/normal boundary");
427 atf_tc_set_md_var(tc, "descr", "nextafter/nexttoward near 1");
447 atf_tc_set_md_var(tc, "descr", "nextafter/nexttoward near 1.5");
467 atf_tc_set_md_var(tc, "descr", "nextafter/nexttoward near infinity");