Lines Matching refs:excepts
87 raiseexcept(int excepts) in raiseexcept() argument
98 if (excepts & FE_INVALID) { in raiseexcept()
102 if (excepts & FE_DIVBYZERO) { in raiseexcept()
106 if (excepts & FE_OVERFLOW) { in raiseexcept()
110 if (excepts & FE_UNDERFLOW) { in raiseexcept()
114 if (excepts & FE_INEXACT) { in raiseexcept()
216 int excepts, i; in ATF_TC_BODY() local
221 excepts = std_except_sets[i]; in ATF_TC_BODY()
224 raiseexcept(excepts); in ATF_TC_BODY()
225 ATF_CHECK_EQ(excepts, fetestexcept(excepts)); in ATF_TC_BODY()
229 raiseexcept(excepts); in ATF_TC_BODY()
230 ATF_CHECK_EQ(excepts, fetestexcept(excepts)); in ATF_TC_BODY()
231 if ((excepts & (FE_UNDERFLOW | FE_OVERFLOW)) != 0) { in ATF_TC_BODY()
232 excepts |= FE_INEXACT; in ATF_TC_BODY()
233 ATF_CHECK_EQ(excepts, (fetestexcept(ALL_STD_EXCEPT) | FE_INEXACT)); in ATF_TC_BODY()
235 ATF_CHECK_EQ(excepts, fetestexcept(ALL_STD_EXCEPT)); in ATF_TC_BODY()
237 ATF_CHECK_EQ(0, feclearexcept(excepts)); in ATF_TC_BODY()
251 int excepts, i; in ATF_TC_BODY() local
255 excepts = std_except_sets[i]; in ATF_TC_BODY()
257 ATF_CHECK_EQ(0, fegetexceptflag(&flag, excepts)); in ATF_TC_BODY()
259 ATF_CHECK_EQ(0, fesetexceptflag(&flag, excepts)); in ATF_TC_BODY()
260 ATF_CHECK_EQ((ALL_STD_EXCEPT ^ excepts), fetestexcept(ALL_STD_EXCEPT)); in ATF_TC_BODY()
264 ATF_CHECK_EQ(0, fesetexceptflag(&flag, excepts)); in ATF_TC_BODY()
266 ATF_CHECK_EQ(0, fesetexceptflag(&flag, ALL_STD_EXCEPT ^ excepts)); in ATF_TC_BODY()
267 ATF_CHECK_EQ((ALL_STD_EXCEPT ^ excepts), fetestexcept(ALL_STD_EXCEPT)); in ATF_TC_BODY()
281 int excepts, i; in ATF_TC_BODY() local
284 excepts = std_except_sets[i]; in ATF_TC_BODY()
287 ATF_CHECK_EQ(0, feraiseexcept(excepts)); in ATF_TC_BODY()
288 if ((excepts & (FE_UNDERFLOW | FE_OVERFLOW)) != 0) { in ATF_TC_BODY()
289 excepts |= FE_INEXACT; in ATF_TC_BODY()
290 ATF_CHECK_EQ(excepts, (fetestexcept(ALL_STD_EXCEPT) | FE_INEXACT)); in ATF_TC_BODY()
292 ATF_CHECK_EQ(excepts, fetestexcept(ALL_STD_EXCEPT)); in ATF_TC_BODY()
345 int excepts, i; in ATF_TC_BODY() local
348 excepts = std_except_sets[i]; in ATF_TC_BODY()
359 raiseexcept(excepts); in ATF_TC_BODY()
360 if ((excepts & (FE_UNDERFLOW | FE_OVERFLOW)) != 0 && in ATF_TC_BODY()
361 (excepts & FE_INEXACT) == 0) in ATF_TC_BODY()
376 ATF_CHECK_EQ(excepts, (fetestexcept(FE_ALL_EXCEPT) & ALL_STD_EXCEPT)); in ATF_TC_BODY()