Lines Matching +full:y +full:-
3 /*-
34 #include <atf-c.h>
40 #define SMALL_NUM 1.0e-38
42 #define SMALL_NUM 1.0e-40
57 const double y = 0.000000000000001; in ATF_TC_BODY() local
59 ATF_CHECK(fabs(ceil(x) - 1) < SMALL_NUM); in ATF_TC_BODY()
60 ATF_CHECK(fabs(ceil(y) - 1) < SMALL_NUM); in ATF_TC_BODY()
79 atf_tc_set_md_var(tc, "descr", "Test ceil(-Inf) == -Inf"); in ATF_TC_HEAD()
84 const double x = -1.0L / 0.0L; in ATF_TC_BODY()
85 double y = ceil(x); in ATF_TC_BODY() local
87 if (isinf(y) == 0 || signbit(y) == 0) in ATF_TC_BODY()
88 atf_tc_fail_nonfatal("ceil(-Inf) != -Inf"); in ATF_TC_BODY()
100 double y = ceil(x); in ATF_TC_BODY() local
102 if (isinf(y) == 0 || signbit(y) != 0) in ATF_TC_BODY()
109 atf_tc_set_md_var(tc, "descr", "Test ceil(-0.0) == -0.0"); in ATF_TC_HEAD()
114 const double x = -0.0L; in ATF_TC_BODY()
115 double y = ceil(x); in ATF_TC_BODY() local
117 if (fabs(y) > 0.0 || signbit(y) == 0) in ATF_TC_BODY()
118 atf_tc_fail_nonfatal("ceil(-0.0) != -0.0"); in ATF_TC_BODY()
130 double y = ceil(x); in ATF_TC_BODY() local
132 if (fabs(y) > 0.0 || signbit(y) != 0) in ATF_TC_BODY()
148 const float y = 0.0000001; in ATF_TC_BODY() local
150 ATF_CHECK(fabsf(ceilf(x) - 1) < SMALL_NUM); in ATF_TC_BODY()
151 ATF_CHECK(fabsf(ceilf(y) - 1) < SMALL_NUM); in ATF_TC_BODY()
170 atf_tc_set_md_var(tc, "descr", "Test ceilf(-Inf) == -Inf"); in ATF_TC_HEAD()
175 const float x = -1.0L / 0.0L; in ATF_TC_BODY()
176 float y = ceilf(x); in ATF_TC_BODY() local
178 if (isinf(y) == 0 || signbit(y) == 0) in ATF_TC_BODY()
179 atf_tc_fail_nonfatal("ceilf(-Inf) != -Inf"); in ATF_TC_BODY()
191 float y = ceilf(x); in ATF_TC_BODY() local
193 if (isinf(y) == 0 || signbit(y) != 0) in ATF_TC_BODY()
200 atf_tc_set_md_var(tc, "descr", "Test ceilf(-0.0) == -0.0"); in ATF_TC_HEAD()
205 const float x = -0.0L; in ATF_TC_BODY()
206 float y = ceilf(x); in ATF_TC_BODY() local
208 if (fabsf(y) > 0.0 || signbit(y) == 0) in ATF_TC_BODY()
209 atf_tc_fail_nonfatal("ceilf(-0.0) != -0.0"); in ATF_TC_BODY()
221 float y = ceilf(x); in ATF_TC_BODY() local
223 if (fabsf(y) > 0.0 || signbit(y) != 0) in ATF_TC_BODY()
239 const long double y = 0.0000001; in ATF_TC_BODY() local
241 ATF_CHECK(fabsl(ceill(x) - 1) < SMALL_NUM); in ATF_TC_BODY()
242 ATF_CHECK(fabsl(ceill(y) - 1) < SMALL_NUM); in ATF_TC_BODY()
261 atf_tc_set_md_var(tc, "descr", "Test ceill(-Inf) == -Inf"); in ATF_TC_HEAD()
266 const long double x = -1.0L / 0.0L; in ATF_TC_BODY()
267 long double y = ceill(x); in ATF_TC_BODY() local
269 if (isinf(y) == 0 || signbit(y) == 0) in ATF_TC_BODY()
270 atf_tc_fail_nonfatal("ceill(-Inf) != -Inf"); in ATF_TC_BODY()
282 long double y = ceill(x); in ATF_TC_BODY() local
284 if (isinf(y) == 0 || signbit(y) != 0) in ATF_TC_BODY()
291 atf_tc_set_md_var(tc, "descr", "Test ceill(-0.0) == -0.0"); in ATF_TC_HEAD()
296 const long double x = -0.0L; in ATF_TC_BODY()
297 long double y = ceill(x); in ATF_TC_BODY() local
299 if (fabsl(y) > 0.0 || signbit(y) == 0) in ATF_TC_BODY()
300 atf_tc_fail_nonfatal("ceill(-0.0) != -0.0"); in ATF_TC_BODY()
312 long double y = ceill(x); in ATF_TC_BODY() local
314 if (fabsl(y) > 0.0 || signbit(y) != 0) in ATF_TC_BODY()
330 const double y = 0.000000000000001; in ATF_TC_BODY() local
333 ATF_CHECK(floor(y) < SMALL_NUM); in ATF_TC_BODY()
352 atf_tc_set_md_var(tc, "descr", "Test floor(-Inf) == -Inf"); in ATF_TC_HEAD()
357 const double x = -1.0L / 0.0L; in ATF_TC_BODY()
358 double y = floor(x); in ATF_TC_BODY() local
360 if (isinf(y) == 0 || signbit(y) == 0) in ATF_TC_BODY()
361 atf_tc_fail_nonfatal("floor(-Inf) != -Inf"); in ATF_TC_BODY()
373 double y = floor(x); in ATF_TC_BODY() local
375 if (isinf(y) == 0 || signbit(y) != 0) in ATF_TC_BODY()
382 atf_tc_set_md_var(tc, "descr", "Test floor(-0.0) == -0.0"); in ATF_TC_HEAD()
387 const double x = -0.0L; in ATF_TC_BODY()
388 double y = floor(x); in ATF_TC_BODY() local
390 if (fabs(y) > 0.0 || signbit(y) == 0) in ATF_TC_BODY()
391 atf_tc_fail_nonfatal("floor(-0.0) != -0.0"); in ATF_TC_BODY()
403 double y = floor(x); in ATF_TC_BODY() local
405 if (fabs(y) > 0.0 || signbit(y) != 0) in ATF_TC_BODY()
421 const float y = 0.0000001; in ATF_TC_BODY() local
424 ATF_CHECK(floorf(y) < SMALL_NUM); in ATF_TC_BODY()
443 atf_tc_set_md_var(tc, "descr", "Test floorf(-Inf) == -Inf"); in ATF_TC_HEAD()
448 const float x = -1.0L / 0.0L; in ATF_TC_BODY()
449 float y = floorf(x); in ATF_TC_BODY() local
451 if (isinf(y) == 0 || signbit(y) == 0) in ATF_TC_BODY()
452 atf_tc_fail_nonfatal("floorf(-Inf) != -Inf"); in ATF_TC_BODY()
464 float y = floorf(x); in ATF_TC_BODY() local
466 if (isinf(y) == 0 || signbit(y) != 0) in ATF_TC_BODY()
473 atf_tc_set_md_var(tc, "descr", "Test floorf(-0.0) == -0.0"); in ATF_TC_HEAD()
478 const float x = -0.0L; in ATF_TC_BODY()
479 float y = floorf(x); in ATF_TC_BODY() local
481 if (fabsf(y) > 0.0 || signbit(y) == 0) in ATF_TC_BODY()
482 atf_tc_fail_nonfatal("floorf(-0.0) != -0.0"); in ATF_TC_BODY()
494 float y = floorf(x); in ATF_TC_BODY() local
496 if (fabsf(y) > 0.0 || signbit(y) != 0) in ATF_TC_BODY()
512 const long double y = 0.0000001; in ATF_TC_BODY() local
515 ATF_CHECK(floorl(y) < SMALL_NUM); in ATF_TC_BODY()
534 atf_tc_set_md_var(tc, "descr", "Test floorl(-Inf) == -Inf"); in ATF_TC_HEAD()
539 const long double x = -1.0L / 0.0L; in ATF_TC_BODY()
540 long double y = floorl(x); in ATF_TC_BODY() local
542 if (isinf(y) == 0 || signbit(y) == 0) in ATF_TC_BODY()
543 atf_tc_fail_nonfatal("floorl(-Inf) != -Inf"); in ATF_TC_BODY()
555 long double y = floorl(x); in ATF_TC_BODY() local
557 if (isinf(y) == 0 || signbit(y) != 0) in ATF_TC_BODY()
564 atf_tc_set_md_var(tc, "descr", "Test floorl(-0.0) == -0.0"); in ATF_TC_HEAD()
569 const long double x = -0.0L; in ATF_TC_BODY()
570 long double y = floorl(x); in ATF_TC_BODY() local
572 if (fabsl(y) > 0.0 || signbit(y) == 0) in ATF_TC_BODY()
573 atf_tc_fail_nonfatal("floorl(-0.0) != -0.0"); in ATF_TC_BODY()
585 long double y = floorl(x); in ATF_TC_BODY() local
587 if (fabsl(y) > 0.0 || signbit(y) != 0) in ATF_TC_BODY()
603 const double y = 0.000000000000001; in ATF_TC_BODY() local
606 ATF_CHECK(trunc(y) < SMALL_NUM); in ATF_TC_BODY()
625 atf_tc_set_md_var(tc, "descr", "Test trunc(-Inf) == -Inf"); in ATF_TC_HEAD()
630 const double x = -1.0L / 0.0L; in ATF_TC_BODY()
631 double y = trunc(x); in ATF_TC_BODY() local
633 if (isinf(y) == 0 || signbit(y) == 0) in ATF_TC_BODY()
634 atf_tc_fail_nonfatal("trunc(-Inf) != -Inf"); in ATF_TC_BODY()
646 double y = trunc(x); in ATF_TC_BODY() local
648 if (isinf(y) == 0 || signbit(y) != 0) in ATF_TC_BODY()
655 atf_tc_set_md_var(tc, "descr", "Test trunc(-0.0) == -0.0"); in ATF_TC_HEAD()
660 const double x = -0.0L; in ATF_TC_BODY()
661 double y = trunc(x); in ATF_TC_BODY() local
663 if (fabs(y) > 0.0 || signbit(y) == 0) in ATF_TC_BODY()
664 atf_tc_fail_nonfatal("trunc(-0.0) != -0.0"); in ATF_TC_BODY()
676 double y = trunc(x); in ATF_TC_BODY() local
678 if (fabs(y) > 0.0 || signbit(y) != 0) in ATF_TC_BODY()
694 const float y = 0.0000001; in ATF_TC_BODY() local
697 ATF_CHECK(truncf(y) < SMALL_NUM); in ATF_TC_BODY()
716 atf_tc_set_md_var(tc, "descr", "Test truncf(-Inf) == -Inf"); in ATF_TC_HEAD()
721 const float x = -1.0L / 0.0L; in ATF_TC_BODY()
722 float y = truncf(x); in ATF_TC_BODY() local
724 if (isinf(y) == 0 || signbit(y) == 0) in ATF_TC_BODY()
725 atf_tc_fail_nonfatal("truncf(-Inf) != -Inf"); in ATF_TC_BODY()
737 float y = truncf(x); in ATF_TC_BODY() local
739 if (isinf(y) == 0 || signbit(y) != 0) in ATF_TC_BODY()
746 atf_tc_set_md_var(tc, "descr", "Test truncf(-0.0) == -0.0"); in ATF_TC_HEAD()
751 const float x = -0.0L; in ATF_TC_BODY()
752 float y = truncf(x); in ATF_TC_BODY() local
754 if (fabsf(y) > 0.0 || signbit(y) == 0) in ATF_TC_BODY()
755 atf_tc_fail_nonfatal("truncf(-0.0) != -0.0"); in ATF_TC_BODY()
767 float y = truncf(x); in ATF_TC_BODY() local
769 if (fabsf(y) > 0.0 || signbit(y) != 0) in ATF_TC_BODY()
785 const long double y = 0.0000001; in ATF_TC_BODY() local
788 ATF_CHECK(truncl(y) < SMALL_NUM); in ATF_TC_BODY()
807 atf_tc_set_md_var(tc, "descr", "Test truncl(-Inf) == -Inf"); in ATF_TC_HEAD()
812 const long double x = -1.0L / 0.0L; in ATF_TC_BODY()
813 long double y = truncl(x); in ATF_TC_BODY() local
815 if (isinf(y) == 0 || signbit(y) == 0) in ATF_TC_BODY()
816 atf_tc_fail_nonfatal("truncl(-Inf) != -Inf"); in ATF_TC_BODY()
828 long double y = truncl(x); in ATF_TC_BODY() local
830 if (isinf(y) == 0 || signbit(y) != 0) in ATF_TC_BODY()
837 atf_tc_set_md_var(tc, "descr", "Test truncl(-0.0) == -0.0"); in ATF_TC_HEAD()
842 const long double x = -0.0L; in ATF_TC_BODY()
843 long double y = truncl(x); in ATF_TC_BODY() local
845 if (fabsl(y) > 0.0 || signbit(y) == 0) in ATF_TC_BODY()
846 atf_tc_fail_nonfatal("truncl(-0.0) != -0.0"); in ATF_TC_BODY()
858 long double y = truncl(x); in ATF_TC_BODY() local
860 if (fabsl(y) > 0.0 || signbit(y) != 0) in ATF_TC_BODY()