Home | History | Annotate | Download | only in libm

Lines Matching refs:nexttowardf

154  *	numbers.  Verify nextafterf and nexttowardf follow exactly this
164 CHECK(i, nexttowardf, x[i], x[i], x[i]);
166 CHECK(i, nexttowardf, -x[i], -x[i], -x[i]);
173 CHECK(i, nexttowardf, x[i], x[i]*(1 + LDBL_EPSILON),
178 CHECK(i, nexttowardf, x[i], x[i + 1], x[i + 1]);
180 CHECK(i, nexttowardf, x[i], x[n - 1], x[i + 1]);
182 CHECK(i, nexttowardf, x[i], INFINITY, x[i + 1]);
185 CHECK(i, nexttowardf, -x[i], -x[i + 1], -x[i + 1]);
187 CHECK(i, nexttowardf, -x[i], -x[n - 1], -x[i + 1]);
189 CHECK(i, nexttowardf, -x[i], -INFINITY, -x[i + 1]);
196 CHECK(i, nexttowardf, x[i], x[i]*(1 - LDBL_EPSILON/2),
201 CHECK(i, nexttowardf, x[i], x[i - 1], x[i - 1]);
203 CHECK(i, nexttowardf, x[i], x[0], x[i - 1]);
205 CHECK(i, nexttowardf, x[i], +0., x[i - 1]);
207 CHECK(i, nexttowardf, x[i], -0., x[i - 1]);
209 CHECK(i, nexttowardf, x[i], -x[0], x[i - 1]);
211 CHECK(i, nexttowardf, x[i], -x[i], x[i - 1]);
213 CHECK(i, nexttowardf, x[i], -INFINITY, x[i - 1]);
216 CHECK(i, nexttowardf, -x[i], -x[i - 1], -x[i - 1]);
218 CHECK(i, nexttowardf, -x[i], -x[0], -x[i - 1]);
220 CHECK(i, nexttowardf, -x[i], -0., -x[i - 1]);
222 CHECK(i, nexttowardf, -x[i], +0., -x[i - 1]);
224 CHECK(i, nexttowardf, -x[i], x[0], -x[i - 1]);
226 CHECK(i, nexttowardf, -x[i], INFINITY, -x[i - 1]);
491 atf_tc_set_md_var(tc, "descr", "nextafterf/nexttowardf on NaN");
498 ATF_CHECK(isnan(nexttowardf(NAN, 0)));
500 ATF_CHECK(isnan(nexttowardf(0, NAN)));
509 atf_tc_set_md_var(tc, "descr", "nextafterf/nexttowardf on signed 0");
530 * Verify that nextafterf and nexttowardf
536 CHECK(1, nexttowardf, z_neg, +INFINITY, m);
538 CHECK(3, nexttowardf, z_pos, +INFINITY, m);
541 CHECK(5, nexttowardf, z_pos, -INFINITY, -m);
543 CHECK(7, nexttowardf, z_neg, -INFINITY, -m);
551 CHECK(9, nexttowardf, -m, +INFINITY, 0);
554 CHECK(11, nexttowardf, m, -INFINITY, 0);
561 atf_tc_set_md_var(tc, "descr", "nextafterf/nexttowardf near 0");
587 "nextafterf/nexttowardf near the subnormal/normal boundary");
611 atf_tc_set_md_var(tc, "descr", "nextafterf/nexttowardf near 1");
631 atf_tc_set_md_var(tc, "descr", "nextafterf/nexttowardf near 1.5");
651 atf_tc_set_md_var(tc, "descr", "nextafterf/nexttowardf near infinity");