Lines Matching refs:excepts
86 raiseexcept(int excepts) in raiseexcept() argument
97 if (excepts & FE_INVALID) { in raiseexcept()
101 if (excepts & FE_DIVBYZERO) { in raiseexcept()
105 if (excepts & FE_OVERFLOW) { in raiseexcept()
109 if (excepts & FE_UNDERFLOW) { in raiseexcept()
113 if (excepts & FE_INEXACT) { in raiseexcept()
215 int excepts, i; in ATF_TC_BODY() local
220 excepts = std_except_sets[i]; in ATF_TC_BODY()
223 raiseexcept(excepts); in ATF_TC_BODY()
224 ATF_CHECK_EQ(excepts, fetestexcept(excepts)); in ATF_TC_BODY()
228 raiseexcept(excepts); in ATF_TC_BODY()
229 ATF_CHECK_EQ(excepts, fetestexcept(excepts)); in ATF_TC_BODY()
230 if ((excepts & (FE_UNDERFLOW | FE_OVERFLOW)) != 0) { in ATF_TC_BODY()
231 excepts |= FE_INEXACT; in ATF_TC_BODY()
232 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()
236 ATF_CHECK_EQ(0, feclearexcept(excepts)); in ATF_TC_BODY()
250 int excepts, i; in ATF_TC_BODY() local
254 excepts = std_except_sets[i]; in ATF_TC_BODY()
256 ATF_CHECK_EQ(0, fegetexceptflag(&flag, excepts)); in ATF_TC_BODY()
258 ATF_CHECK_EQ(0, fesetexceptflag(&flag, excepts)); in ATF_TC_BODY()
259 ATF_CHECK_EQ((ALL_STD_EXCEPT ^ excepts), fetestexcept(ALL_STD_EXCEPT)); in ATF_TC_BODY()
263 ATF_CHECK_EQ(0, fesetexceptflag(&flag, excepts)); 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()
280 int excepts, i; in ATF_TC_BODY() local
283 excepts = std_except_sets[i]; in ATF_TC_BODY()
286 ATF_CHECK_EQ(0, feraiseexcept(excepts)); in ATF_TC_BODY()
287 if ((excepts & (FE_UNDERFLOW | FE_OVERFLOW)) != 0) { in ATF_TC_BODY()
288 excepts |= FE_INEXACT; 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()
344 int excepts, i; in ATF_TC_BODY() local
347 excepts = std_except_sets[i]; in ATF_TC_BODY()
358 raiseexcept(excepts); in ATF_TC_BODY()
359 if ((excepts & (FE_UNDERFLOW | FE_OVERFLOW)) != 0 && in ATF_TC_BODY()
360 (excepts & FE_INEXACT) == 0) in ATF_TC_BODY()
375 ATF_CHECK_EQ(excepts, (fetestexcept(FE_ALL_EXCEPT) & ALL_STD_EXCEPT)); in ATF_TC_BODY()