Home
last modified time | relevance | path

Searched refs:ALL_STD_EXCEPT (Results 1 – 15 of 15) sorted by relevance

/freebsd/lib/msun/tests/
H A Dfma_test.c91 testall(0.0, 0.0, 0.0, 0.0, ALL_STD_EXCEPT, 0); in test_zeroes()
92 testall(1.0, 0.0, 0.0, 0.0, ALL_STD_EXCEPT, 0); in test_zeroes()
93 testall(0.0, 1.0, 0.0, 0.0, ALL_STD_EXCEPT, 0); in test_zeroes()
94 testall(0.0, 0.0, 1.0, 1.0, ALL_STD_EXCEPT, 0); in test_zeroes()
96 testall(-0.0, 0.0, 0.0, rd ? -0.0 : 0.0, ALL_STD_EXCEPT, 0); in test_zeroes()
97 testall(0.0, -0.0, 0.0, rd ? -0.0 : 0.0, ALL_STD_EXCEPT, 0); in test_zeroes()
98 testall(-0.0, -0.0, 0.0, 0.0, ALL_STD_EXCEPT, 0); in test_zeroes()
99 testall(0.0, 0.0, -0.0, rd ? -0.0 : 0.0, ALL_STD_EXCEPT, 0); in test_zeroes()
100 testall(-0.0, -0.0, -0.0, rd ? -0.0 : 0.0, ALL_STD_EXCEPT, 0); in test_zeroes()
102 testall(-0.0, 0.0, -0.0, -0.0, ALL_STD_EXCEPT, 0); in test_zeroes()
[all …]
H A Dlogarithm_test.c97 testall0(1.0, 0.0, ALL_STD_EXCEPT, 0); in ATF_TC_BODY()
98 testall1(0.0, 0.0, ALL_STD_EXCEPT, 0); in ATF_TC_BODY()
99 testall1(-0.0, -0.0, ALL_STD_EXCEPT, 0); in ATF_TC_BODY()
102 testall0(NAN, NAN, ALL_STD_EXCEPT, 0); in ATF_TC_BODY()
103 testall1(NAN, NAN, ALL_STD_EXCEPT, 0); in ATF_TC_BODY()
106 testall0(INFINITY, INFINITY, ALL_STD_EXCEPT, 0); in ATF_TC_BODY()
107 testall1(INFINITY, INFINITY, ALL_STD_EXCEPT, 0); in ATF_TC_BODY()
110 testall0(-INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID); in ATF_TC_BODY()
111 testall1(-INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID); in ATF_TC_BODY()
112 testall0(-1.0, NAN, ALL_STD_EXCEPT, FE_INVALID); in ATF_TC_BODY()
[all …]
H A Dfenv_test.c232 ATF_CHECK_EQ(excepts, (fetestexcept(ALL_STD_EXCEPT) | FE_INEXACT)); in ATF_TC_BODY()
234 ATF_CHECK_EQ(excepts, fetestexcept(ALL_STD_EXCEPT)); in ATF_TC_BODY()
237 ATF_CHECK_EQ(0, fetestexcept(ALL_STD_EXCEPT)); in ATF_TC_BODY()
257 raiseexcept(ALL_STD_EXCEPT); in ATF_TC_BODY()
259 ATF_CHECK_EQ((ALL_STD_EXCEPT ^ excepts), fetestexcept(ALL_STD_EXCEPT)); in ATF_TC_BODY()
264 ATF_CHECK_EQ(0, fetestexcept(ALL_STD_EXCEPT)); in ATF_TC_BODY()
265 ATF_CHECK_EQ(0, fesetexceptflag(&flag, ALL_STD_EXCEPT ^ excepts)); in ATF_TC_BODY()
266 ATF_CHECK_EQ((ALL_STD_EXCEPT ^ excepts), fetestexcept(ALL_STD_EXCEPT)); in ATF_TC_BODY()
289 ATF_CHECK_EQ(excepts, (fetestexcept(ALL_STD_EXCEPT) | FE_INEXACT)); in ATF_TC_BODY()
291 ATF_CHECK_EQ(excepts, fetestexcept(ALL_STD_EXCEPT)); in ATF_TC_BODY()
[all …]
H A Dcexp_test.c106 testall(0.0, 1.0, ALL_STD_EXCEPT, 0, 1); in ATF_TC_BODY()
107 testall(-0.0, 1.0, ALL_STD_EXCEPT, 0, 1); in ATF_TC_BODY()
108 testall(CMPLXL(0.0, -0.0), CMPLXL(1.0, -0.0), ALL_STD_EXCEPT, 0, 1); in ATF_TC_BODY()
109 testall(CMPLXL(-0.0, -0.0), CMPLXL(1.0, -0.0), ALL_STD_EXCEPT, 0, 1); in ATF_TC_BODY()
125 ALL_STD_EXCEPT & ~FE_INVALID, 0, 0); in ATF_TC_BODY()
130 ALL_STD_EXCEPT & ~(FE_INVALID | FE_INEXACT), 0, 0); in ATF_TC_BODY()
134 testall(CMPLXL(NAN, 0.0), CMPLXL(NAN, 0.0), ALL_STD_EXCEPT, 0, 1); in ATF_TC_BODY()
135 testall(CMPLXL(NAN, -0.0), CMPLXL(NAN, -0.0), ALL_STD_EXCEPT, 0, 1); in ATF_TC_BODY()
139 ALL_STD_EXCEPT, 0, 0); in ATF_TC_BODY()
142 ALL_STD_EXCEPT, 0, 0); in ATF_TC_BODY()
[all …]
H A Dexponential_test.c95 testall0(0.0, 1.0, ALL_STD_EXCEPT, 0); in run_generic_tests()
96 testall1(0.0, 0.0, ALL_STD_EXCEPT, 0); in run_generic_tests()
97 testall0(-0.0, 1.0, ALL_STD_EXCEPT, 0); in run_generic_tests()
98 testall1(-0.0, -0.0, ALL_STD_EXCEPT, 0); in run_generic_tests()
101 testall0(NAN, NAN, ALL_STD_EXCEPT, 0); in run_generic_tests()
102 testall1(NAN, NAN, ALL_STD_EXCEPT, 0); in run_generic_tests()
105 testall0(INFINITY, INFINITY, ALL_STD_EXCEPT, 0); in run_generic_tests()
106 testall1(INFINITY, INFINITY, ALL_STD_EXCEPT, 0); in run_generic_tests()
109 testall0(-INFINITY, 0.0, ALL_STD_EXCEPT, 0); in run_generic_tests()
110 testall1(-INFINITY, -1.0, ALL_STD_EXCEPT, 0); in run_generic_tests()
[all …]
H A Dtrig_test.c90 testall(tan, 0.0, 0.0, ALL_STD_EXCEPT, 0); in ATF_TC_BODY()
91 testall(tan, -0.0, -0.0, ALL_STD_EXCEPT, 0); in ATF_TC_BODY()
92 testall(cos, 0.0, 1.0, ALL_STD_EXCEPT, 0); in ATF_TC_BODY()
93 testall(cos, -0.0, 1.0, ALL_STD_EXCEPT, 0); in ATF_TC_BODY()
94 testall(sin, 0.0, 0.0, ALL_STD_EXCEPT, 0); in ATF_TC_BODY()
95 testall(sin, -0.0, -0.0, ALL_STD_EXCEPT, 0); in ATF_TC_BODY()
98 testall(tan, INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID); in ATF_TC_BODY()
99 testall(sin, INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID); in ATF_TC_BODY()
100 testall(cos, INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID); in ATF_TC_BODY()
101 testall(tan, -INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID); in ATF_TC_BODY()
[all …]
H A Dctrig_test.c140 testall_odd(csinh, zero, zero, ALL_STD_EXCEPT, 0, CS_BOTH); in ATF_TC_BODY()
141 testall_odd(csin, zero, zero, ALL_STD_EXCEPT, 0, CS_BOTH); in ATF_TC_BODY()
142 testall_even(ccosh, zero, 1.0, ALL_STD_EXCEPT, 0, CS_BOTH); in ATF_TC_BODY()
143 testall_even(ccos, zero, CMPLXL(1.0, -0.0), ALL_STD_EXCEPT, 0, CS_BOTH); in ATF_TC_BODY()
144 testall_odd(ctanh, zero, zero, ALL_STD_EXCEPT, 0, CS_BOTH); in ATF_TC_BODY()
145 testall_odd(ctan, zero, zero, ALL_STD_EXCEPT, 0, CS_BOTH); in ATF_TC_BODY()
169 testall_odd(csinh, z, nan_nan, ALL_STD_EXCEPT, 0, 0); in ATF_TC_BODY()
170 testall_even(ccosh, z, nan_nan, ALL_STD_EXCEPT, 0, 0); in ATF_TC_BODY()
171 testall_odd(ctanh, z, nan_nan, ALL_STD_EXCEPT, 0, 0); in ATF_TC_BODY()
172 testall_odd(csin, z, nan_nan, ALL_STD_EXCEPT, 0, 0); in ATF_TC_BODY()
[all …]
H A Dinvctrig_test.c133 testall_odd(casinh, zero, zero, ALL_STD_EXCEPT, 0, CS_BOTH); in ATF_TC_BODY()
134 testall_odd(casin, zero, zero, ALL_STD_EXCEPT, 0, CS_BOTH); in ATF_TC_BODY()
136 testall_odd(catanh, zero, zero, ALL_STD_EXCEPT, 0, CS_BOTH); in ATF_TC_BODY()
137 testall_odd(catan, zero, zero, ALL_STD_EXCEPT, 0, CS_BOTH); in ATF_TC_BODY()
162 testall(cacosh, z, nan_nan, ALL_STD_EXCEPT, 0, 0); in ATF_TC_BODY()
163 testall(cacos, z, nan_nan, ALL_STD_EXCEPT, 0, 0); in ATF_TC_BODY()
164 testall(casinh, z, nan_nan, ALL_STD_EXCEPT, 0, 0); in ATF_TC_BODY()
165 testall(casin, z, nan_nan, ALL_STD_EXCEPT, 0, 0); in ATF_TC_BODY()
166 testall(catanh, z, nan_nan, ALL_STD_EXCEPT, 0, 0); in ATF_TC_BODY()
167 testall(catan, z, nan_nan, ALL_STD_EXCEPT, 0, 0); in ATF_TC_BODY()
[all …]
H A Dnearbyint_test.c93 ATF_REQUIRE_EQ(0, feclearexcept(ALL_STD_EXCEPT)); in test_nearby()
100 CHECK_FP_EXCEPTIONS(0, ALL_STD_EXCEPT); in test_nearby()
107 CHECK_FP_EXCEPTIONS(0, ALL_STD_EXCEPT); in test_nearby()
122 ATF_REQUIRE_EQ(0, feclearexcept(ALL_STD_EXCEPT)); in test_modf()
136 CHECK_FP_EXCEPTIONS(0, ALL_STD_EXCEPT); in test_modf()
148 CHECK_FP_EXCEPTIONS(0, ALL_STD_EXCEPT); in test_modf()
H A Dtest-utils.h41 #define ALL_STD_EXCEPT (FE_DIVBYZERO | FE_INEXACT | FE_INVALID | \ macro
43 #define OPT_INVALID (ALL_STD_EXCEPT & ~FE_INVALID)
44 #define OPT_INEXACT (ALL_STD_EXCEPT & ~FE_INEXACT)
H A Dnext_test.c46 feclearexcept(ALL_STD_EXCEPT); \
51 feclearexcept(ALL_STD_EXCEPT); \
56 feclearexcept(ALL_STD_EXCEPT); \
247 actual_except = fetestexcept(ALL_STD_EXCEPT); in _testl()
H A Dfmaxmin_test.c48 ATF_REQUIRE_EQ(0, feclearexcept(ALL_STD_EXCEPT)); \
50 CHECK_FP_EXCEPTIONS_MSG(0, ALL_STD_EXCEPT, \
H A Dlrint_test.c49 CHECK_FP_EXCEPTIONS_MSG(excepts, FE_ALL_EXCEPT & ALL_STD_EXCEPT, \
H A Dinvtrig_test.c56 CHECK_FP_EXCEPTIONS_MSG(excepts, ALL_STD_EXCEPT, "for %s(%s)", \
86 CHECK_FP_EXCEPTIONS_MSG(excepts, ALL_STD_EXCEPT, "for %s(%s)", \
/freebsd/tools/regression/usr.bin/cc/
H A Dfloat.c41 #define ALL_STD_EXCEPT (FE_DIVBYZERO | FE_INEXACT | FE_INVALID | \ macro
129 feclearexcept(ALL_STD_EXCEPT); in run_tests()
136 fetestexcept(ALL_STD_EXCEPT) == FE_INVALID); in run_tests()
144 feclearexcept(ALL_STD_EXCEPT); in run_tests()
149 fetestexcept(ALL_STD_EXCEPT) == FE_INVALID); in run_tests()
152 feclearexcept(ALL_STD_EXCEPT); in run_tests()
156 x == 0 && fetestexcept(ALL_STD_EXCEPT) == FE_INEXACT); in run_tests()
158 feclearexcept(ALL_STD_EXCEPT); in run_tests()
162 x == -42 && fetestexcept(ALL_STD_EXCEPT) == 0); in run_tests()
164 feclearexcept(ALL_STD_EXCEPT); in run_tests()
[all …]