Lines Matching refs:nexttowardl
234 * floating-point numbers. Verify nextafterl and nexttowardl
245 CHECK(i, nexttowardl, x[i], x[i], x[i]);
247 CHECK(i, nexttowardl, -x[i], -x[i], -x[i]);
254 CHECK(i, nexttowardl, x[i], x[i + 1], x[i + 1]);
256 CHECK(i, nexttowardl, x[i], x[n - 1], x[i + 1]);
258 CHECK(i, nexttowardl, x[i], INFINITY, x[i + 1]);
261 CHECK(i, nexttowardl, -x[i], -x[i + 1], -x[i + 1]);
263 CHECK(i, nexttowardl, -x[i], -x[n - 1], -x[i + 1]);
265 CHECK(i, nexttowardl, -x[i], -INFINITY, -x[i + 1]);
272 CHECK(i, nexttowardl, x[i], x[i - 1], x[i - 1]);
274 CHECK(i, nexttowardl, x[i], x[0], x[i - 1]);
276 CHECK(i, nexttowardl, x[i], +0., x[i - 1]);
278 CHECK(i, nexttowardl, x[i], -0., x[i - 1]);
280 CHECK(i, nexttowardl, x[i], -x[0], x[i - 1]);
282 CHECK(i, nexttowardl, x[i], -x[i], x[i - 1]);
284 CHECK(i, nexttowardl, x[i], -INFINITY, x[i - 1]);
287 CHECK(i, nexttowardl, -x[i], -x[i - 1], -x[i - 1]);
289 CHECK(i, nexttowardl, -x[i], -x[0], -x[i - 1]);
291 CHECK(i, nexttowardl, -x[i], -0., -x[i - 1]);
293 CHECK(i, nexttowardl, -x[i], +0., -x[i - 1]);
295 CHECK(i, nexttowardl, -x[i], x[0], -x[i - 1]);
297 CHECK(i, nexttowardl, -x[i], INFINITY, -x[i - 1]);
675 atf_tc_set_md_var(tc, "descr", "nextafterl/nexttowardl on NaN");
682 ATF_CHECK(isnan(nexttowardl(NAN, 0)));
684 ATF_CHECK(isnan(nexttowardl(0, NAN)));
693 atf_tc_set_md_var(tc, "descr", "nextafterl/nexttowardl on signed 0");
714 * Verify that nextafterl and nexttowardl, which implement the
720 CHECK(1, nexttowardl, z_neg, +INFINITY, m);
722 CHECK(3, nexttowardl, z_pos, +INFINITY, m);
725 CHECK(5, nexttowardl, z_pos, -INFINITY, -m);
727 CHECK(7, nexttowardl, z_neg, -INFINITY, -m);
735 CHECK(9, nexttowardl, -m, +INFINITY, 0);
738 CHECK(11, nexttowardl, m, -INFINITY, 0);
745 atf_tc_set_md_var(tc, "descr", "nextafterl/nexttowardl near 0");
771 "nextafterl/nexttowardl near the subnormal/normal boundary");
795 atf_tc_set_md_var(tc, "descr", "nextafterl/nexttowardl near 1");
815 atf_tc_set_md_var(tc, "descr", "nextafterl/nexttowardl near 1.5");
835 atf_tc_set_md_var(tc, "descr", "nextafterl/nexttowardl near infinity");