Home
last modified time | relevance | path

Searched refs:FE_ALL_EXCEPT (Results 1 – 12 of 12) sorted by relevance

/bionic/libm/mips/
Dfenv.c33 #define FCSR_ENABLE_MASK (FE_ALL_EXCEPT << FCSR_ENABLE_SHIFT)
63 __excepts &= FE_ALL_EXCEPT; in feclearexcept()
72 *__flagp = __fcsr & __excepts & FE_ALL_EXCEPT; in fegetexceptflag()
80 __excepts &= FE_ALL_EXCEPT; in fesetexceptflag()
91 __excepts &= FE_ALL_EXCEPT; in feraiseexcept()
101 return (__FCSR & __excepts & FE_ALL_EXCEPT); in fetestexcept()
123 __env &= ~(FE_ALL_EXCEPT | FCSR_ENABLE_MASK); in feholdexcept()
132 feraiseexcept(__fcsr & FE_ALL_EXCEPT); in feupdateenv()
139 __new_fcsr = __old_fcsr | (__mask & FE_ALL_EXCEPT) << FCSR_ENABLE_SHIFT; in feenableexcept()
141 return ((__old_fcsr >> FCSR_ENABLE_SHIFT) & FE_ALL_EXCEPT); in feenableexcept()
[all …]
/bionic/libm/arm64/
Dfenv.c33 #define FPCR_EXCEPT_MASK (FE_ALL_EXCEPT << FPCR_EXCEPT_SHIFT)
77 excepts &= FE_ALL_EXCEPT; in feclearexcept()
87 excepts &= FE_ALL_EXCEPT; in fegetexceptflag()
96 excepts &= FE_ALL_EXCEPT; in fesetexceptflag()
114 excepts &= FE_ALL_EXCEPT; in fetestexcept()
151 new_fpcr = fpcr & ~(FE_ALL_EXCEPT << FPCR_EXCEPT_SHIFT); in feholdexcept()
157 fpsr &= ~FE_ALL_EXCEPT; in feholdexcept()
174 fpsr = envp->__status | (fpsr & FE_ALL_EXCEPT); in feupdateenv()
183 new_fpcr = old_fpcr | ((mask & FE_ALL_EXCEPT) << FPCR_EXCEPT_SHIFT); in feenableexcept()
187 return ((old_fpcr >> FPCR_EXCEPT_SHIFT) & FE_ALL_EXCEPT); in feenableexcept()
[all …]
/bionic/libm/amd64/
Dfenv.c80 excepts &= FE_ALL_EXCEPT; in feclearexcept()
110 excepts &= FE_ALL_EXCEPT; in fegetexceptflag()
137 excepts &= FE_ALL_EXCEPT; in feraiseexcept()
156 excepts &= FE_ALL_EXCEPT; in fesetexceptflag()
188 excepts &= FE_ALL_EXCEPT; in fetestexcept()
300 mxcsr &= ~FE_ALL_EXCEPT; in feholdexcept()
303 mxcsr |= FE_ALL_EXCEPT << SSE_MASK_SHIFT; in feholdexcept()
369 mask &= FE_ALL_EXCEPT; in feenableexcept()
374 omask = ~(control | (mxcsr >> SSE_MASK_SHIFT)) & FE_ALL_EXCEPT; in feenableexcept()
390 mask &= FE_ALL_EXCEPT; in fedisableexcept()
[all …]
/bionic/libm/arm/
Dfenv.c32 #define FPSCR_ENABLE_MASK (FE_ALL_EXCEPT << FPSCR_ENABLE_SHIFT)
106 __env &= ~(FE_ALL_EXCEPT | FPSCR_ENABLE_MASK); in feholdexcept()
115 feraiseexcept(__fpscr & FE_ALL_EXCEPT); in feupdateenv()
122 __new_fpscr = __old_fpscr | (__mask & FE_ALL_EXCEPT) << FPSCR_ENABLE_SHIFT; in feenableexcept()
124 return ((__old_fpscr >> FPSCR_ENABLE_SHIFT) & FE_ALL_EXCEPT); in feenableexcept()
130 __new_fpscr = __old_fpscr & ~((__mask & FE_ALL_EXCEPT) << FPSCR_ENABLE_SHIFT); in fedisableexcept()
132 return ((__old_fpscr >> FPSCR_ENABLE_SHIFT) & FE_ALL_EXCEPT); in fedisableexcept()
/bionic/libm/i387/
Dfenv.c126 excepts &= FE_ALL_EXCEPT; in fesetexceptflag()
181 env.__status &= ~FE_ALL_EXCEPT; in feholdexcept()
182 env.__control |= FE_ALL_EXCEPT; in feholdexcept()
189 mxcsr &= ~FE_ALL_EXCEPT; in feholdexcept()
190 mxcsr |= FE_ALL_EXCEPT << _SSE_EMASK_SHIFT; in feholdexcept()
209 feraiseexcept((mxcsr | status) & FE_ALL_EXCEPT); in feupdateenv()
219 mask &= FE_ALL_EXCEPT; in feenableexcept()
226 omask = ~(control | mxcsr >> _SSE_EMASK_SHIFT) & FE_ALL_EXCEPT; in feenableexcept()
244 mask &= FE_ALL_EXCEPT; in fedisableexcept()
251 omask = ~(control | mxcsr >> _SSE_EMASK_SHIFT) & FE_ALL_EXCEPT; in fedisableexcept()
[all …]
/bionic/tests/
Dfenv_test.cpp64 feclearexcept(FE_ALL_EXCEPT); in TEST()
65 ASSERT_EQ(0, fetestexcept(FE_ALL_EXCEPT)); in TEST()
80 ASSERT_EQ(0, fetestexcept(FE_ALL_EXCEPT)); in TEST()
Dmath_test.cpp786 feclearexcept(FE_ALL_EXCEPT); // rint/rintf/rintl do set the FE_INEXACT flag. in TEST()
788 ASSERT_TRUE((fetestexcept(FE_ALL_EXCEPT) & FE_INEXACT) == 0); in TEST()
790 ASSERT_TRUE((fetestexcept(FE_ALL_EXCEPT) & FE_INEXACT) != 0); in TEST()
792 feclearexcept(FE_ALL_EXCEPT); // rint/rintf/rintl do set the FE_INEXACT flag. in TEST()
794 ASSERT_TRUE((fetestexcept(FE_ALL_EXCEPT) & FE_INEXACT) == 0); in TEST()
796 ASSERT_TRUE((fetestexcept(FE_ALL_EXCEPT) & FE_INEXACT) != 0); in TEST()
798 feclearexcept(FE_ALL_EXCEPT); // rint/rintf/rintl do set the FE_INEXACT flag. in TEST()
800 ASSERT_TRUE((fetestexcept(FE_ALL_EXCEPT) & FE_INEXACT) == 0); in TEST()
802 ASSERT_TRUE((fetestexcept(FE_ALL_EXCEPT) & FE_INEXACT) != 0); in TEST()
815 feclearexcept(FE_ALL_EXCEPT); // nearbyint/nearbyintf/nearbyintl don't set the FE_INEXACT flag. in TEST()
[all …]
/bionic/libm/include/mips/machine/
Dfenv.h87 #define FE_ALL_EXCEPT (FE_DIVBYZERO | FE_INEXACT | \ macro
/bionic/libm/include/arm/machine/
Dfenv.h52 #define FE_ALL_EXCEPT (FE_DIVBYZERO | FE_INEXACT | FE_INVALID | \ macro
/bionic/libm/include/arm64/machine/
Dfenv.h91 #define FE_ALL_EXCEPT (FE_DIVBYZERO | FE_INEXACT | FE_INVALID | \ macro
/bionic/libm/include/amd64/machine/
Dfenv.h52 #define FE_ALL_EXCEPT (FE_INVALID | FE_DENORMAL | FE_DIVBYZERO | \ macro
/bionic/libm/include/i387/machine/
Dfenv.h58 #define FE_ALL_EXCEPT (FE_DIVBYZERO | FE_DENORMAL | FE_INEXACT | \ macro