Lines Matching refs:excepts
89 raiseexcept(int excepts) in raiseexcept() argument
100 if (excepts & FE_INVALID) { in raiseexcept()
104 if (excepts & FE_DIVBYZERO) { in raiseexcept()
108 if (excepts & FE_OVERFLOW) { in raiseexcept()
112 if (excepts & FE_UNDERFLOW) { in raiseexcept()
116 if (excepts & FE_INEXACT) { in raiseexcept()
218 int excepts, i; in ATF_TC_BODY() local
223 excepts = std_except_sets[i]; in ATF_TC_BODY()
226 raiseexcept(excepts); in ATF_TC_BODY()
227 ATF_CHECK_EQ(excepts, fetestexcept(excepts)); in ATF_TC_BODY()
231 raiseexcept(excepts); in ATF_TC_BODY()
232 ATF_CHECK_EQ(excepts, fetestexcept(excepts)); in ATF_TC_BODY()
233 if ((excepts & (FE_UNDERFLOW | FE_OVERFLOW)) != 0) { in ATF_TC_BODY()
234 excepts |= FE_INEXACT; in ATF_TC_BODY()
235 ATF_CHECK_EQ(excepts, (fetestexcept(ALL_STD_EXCEPT) | FE_INEXACT)); in ATF_TC_BODY()
237 ATF_CHECK_EQ(excepts, fetestexcept(ALL_STD_EXCEPT)); in ATF_TC_BODY()
239 ATF_CHECK_EQ(0, feclearexcept(excepts)); in ATF_TC_BODY()
253 int excepts, i; in ATF_TC_BODY() local
257 excepts = std_except_sets[i]; in ATF_TC_BODY()
259 ATF_CHECK_EQ(0, fegetexceptflag(&flag, excepts)); in ATF_TC_BODY()
261 ATF_CHECK_EQ(0, fesetexceptflag(&flag, excepts)); in ATF_TC_BODY()
262 ATF_CHECK_EQ((ALL_STD_EXCEPT ^ excepts), fetestexcept(ALL_STD_EXCEPT)); in ATF_TC_BODY()
266 ATF_CHECK_EQ(0, fesetexceptflag(&flag, excepts)); in ATF_TC_BODY()
268 ATF_CHECK_EQ(0, fesetexceptflag(&flag, ALL_STD_EXCEPT ^ excepts)); in ATF_TC_BODY()
269 ATF_CHECK_EQ((ALL_STD_EXCEPT ^ excepts), fetestexcept(ALL_STD_EXCEPT)); in ATF_TC_BODY()
283 int excepts, i; in ATF_TC_BODY() local
286 excepts = std_except_sets[i]; in ATF_TC_BODY()
289 ATF_CHECK_EQ(0, feraiseexcept(excepts)); in ATF_TC_BODY()
290 if ((excepts & (FE_UNDERFLOW | FE_OVERFLOW)) != 0) { in ATF_TC_BODY()
291 excepts |= FE_INEXACT; in ATF_TC_BODY()
292 ATF_CHECK_EQ(excepts, (fetestexcept(ALL_STD_EXCEPT) | FE_INEXACT)); in ATF_TC_BODY()
294 ATF_CHECK_EQ(excepts, fetestexcept(ALL_STD_EXCEPT)); in ATF_TC_BODY()
347 int excepts, i; in ATF_TC_BODY() local
350 excepts = std_except_sets[i]; in ATF_TC_BODY()
361 raiseexcept(excepts); in ATF_TC_BODY()
362 if ((excepts & (FE_UNDERFLOW | FE_OVERFLOW)) != 0 && in ATF_TC_BODY()
363 (excepts & FE_INEXACT) == 0) in ATF_TC_BODY()
378 ATF_CHECK_EQ(excepts, (fetestexcept(FE_ALL_EXCEPT) & ALL_STD_EXCEPT)); in ATF_TC_BODY()