Home
last modified time | relevance | path

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

/haiku/headers/posix/arch/arm64/
H A Dfenv.h49 #define FE_ALL_EXCEPT (FE_DIVBYZERO | FE_INEXACT | \ macro
74 #define _ENABLE_MASK (FE_ALL_EXCEPT << _FPUSW_SHIFT)
167 *__envp |= __r & (FE_ALL_EXCEPT | (_ROUND_MASK << _ROUND_SHIFT)); in fegetenv()
183 *__envp |= __r & (FE_ALL_EXCEPT | (_ROUND_MASK << _ROUND_SHIFT)); in feholdexcept()
194 __msr_fpsr((*__envp) & (FE_ALL_EXCEPT | (_ROUND_MASK << _ROUND_SHIFT))); in fesetenv()
205 feraiseexcept(__r & FE_ALL_EXCEPT); in feupdateenv()
219 __new_r = __old_r | ((__mask & FE_ALL_EXCEPT) << _FPUSW_SHIFT); in feenableexcept()
221 return ((__old_r >> _FPUSW_SHIFT) & FE_ALL_EXCEPT); in feenableexcept()
230 __new_r = __old_r & ~((__mask & FE_ALL_EXCEPT) << _FPUSW_SHIFT); in fedisableexcept()
232 return ((__old_r >> _FPUSW_SHIFT) & FE_ALL_EXCEPT); in fedisableexcept()
/haiku/headers/posix/arch/arm/
H A Dfenv.h45 #define FE_ALL_EXCEPT (FE_DIVBYZERO | FE_INEXACT | \ macro
63 #define _ENABLE_MASK (FE_ALL_EXCEPT << _FPUSW_SHIFT)
158 __env &= ~(FE_ALL_EXCEPT | _ENABLE_MASK); in feholdexcept()
178 feraiseexcept(__fpsr & FE_ALL_EXCEPT); in feupdateenv()
190 __new_fpsr = __old_fpsr | (__mask & FE_ALL_EXCEPT) << _FPUSW_SHIFT; in feenableexcept()
192 return ((__old_fpsr >> _FPUSW_SHIFT) & FE_ALL_EXCEPT); in feenableexcept()
201 __new_fpsr = __old_fpsr & ~((__mask & FE_ALL_EXCEPT) << _FPUSW_SHIFT); in fedisableexcept()
203 return ((__old_fpsr >> _FPUSW_SHIFT) & FE_ALL_EXCEPT); in fedisableexcept()
/haiku/src/system/libroot/posix/arch/x86_64/
H A Dfenv.c95 mxcsr &= ~FE_ALL_EXCEPT; in feholdexcept()
96 mxcsr |= FE_ALL_EXCEPT << _SSE_EMASK_SHIFT; in feholdexcept()
110 feraiseexcept((mxcsr | status) & FE_ALL_EXCEPT); in feupdateenv()
120 mask &= FE_ALL_EXCEPT; in __feenableexcept()
123 omask = ~(control | mxcsr >> _SSE_EMASK_SHIFT) & FE_ALL_EXCEPT; in __feenableexcept()
137 mask &= FE_ALL_EXCEPT; in __fedisableexcept()
140 omask = ~(control | mxcsr >> _SSE_EMASK_SHIFT) & FE_ALL_EXCEPT; in __fedisableexcept()
/haiku/src/system/libroot/posix/arch/x86/
H A Dfenv.c146 mxcsr &= ~FE_ALL_EXCEPT; in feholdexcept()
147 mxcsr |= FE_ALL_EXCEPT << _SSE_EMASK_SHIFT; in feholdexcept()
164 feraiseexcept((mxcsr | status) & FE_ALL_EXCEPT); in feupdateenv()
173 mask &= FE_ALL_EXCEPT; in __feenableexcept()
179 omask = (control | mxcsr >> _SSE_EMASK_SHIFT) & FE_ALL_EXCEPT; in __feenableexcept()
194 mask &= FE_ALL_EXCEPT; in __fedisableexcept()
200 omask = (control | mxcsr >> _SSE_EMASK_SHIFT) & FE_ALL_EXCEPT; in __fedisableexcept()
/haiku/headers/posix/arch/sparc64/
H A Dfenv.h51 #define FE_ALL_EXCEPT (FE_DIVBYZERO | FE_INEXACT | \ macro
76 #define _ENABLE_MASK (FE_ALL_EXCEPT << _FPUSW_SHIFT)
201 __r &= ~(FE_ALL_EXCEPT | _ENABLE_MASK); in feholdexcept()
221 feraiseexcept(__r & FE_ALL_EXCEPT); in feupdateenv()
235 __new_r = __old_r | ((__mask & FE_ALL_EXCEPT) << _FPUSW_SHIFT); in feenableexcept()
237 return ((__old_r >> _FPUSW_SHIFT) & FE_ALL_EXCEPT); in feenableexcept()
246 __new_r = __old_r & ~((__mask & FE_ALL_EXCEPT) << _FPUSW_SHIFT); in fedisableexcept()
248 return ((__old_r >> _FPUSW_SHIFT) & FE_ALL_EXCEPT); in fedisableexcept()
/haiku/headers/posix/arch/ppc/
H A Dfenv.h65 #define FE_ALL_EXCEPT (FE_DIVBYZERO | FE_INEXACT | \ macro
132 __excepts |= FE_ALL_EXCEPT; in fesetexceptflag()
202 __r.__bits.__reg &= ~(FE_ALL_EXCEPT | _ENABLE_MASK); in feholdexcept()
223 __r.__bits.__reg &= FE_ALL_EXCEPT; in feupdateenv()
239 __r.__bits.__reg |= (__mask & FE_ALL_EXCEPT) >> _FPUSW_SHIFT; in feenableexcept()
252 __r.__bits.__reg &= ~((__mask & FE_ALL_EXCEPT) >> _FPUSW_SHIFT); in fedisableexcept()
/haiku/headers/posix/arch/m68k/
H A Dfenv.h23 #define FE_ALL_EXCEPT 0xf8 macro
32 #define FE_ALL_EXCEPT 0
/haiku/src/system/libroot/posix/arch/m68k/
H A Dfenv.c41 if (mask & ~FE_ALL_EXCEPT) return -1; in feclearexcept()
48 if (mask & ~FE_ALL_EXCEPT) return -1; in feraiseexcept()
/haiku/headers/posix/arch/x86_64/
H A Dfenv.h55 #define FE_ALL_EXCEPT (FE_DIVBYZERO | FE_DENORMAL | FE_INEXACT | \ macro
98 if (__excepts == FE_ALL_EXCEPT) { in feclearexcept()
211 return (~__control & FE_ALL_EXCEPT); in fegetexcept()
/haiku/headers/posix/arch/x86/
H A Dfenv.h65 #define FE_ALL_EXCEPT (FE_DIVBYZERO | FE_DENORMAL | FE_INEXACT | \ macro
120 if (__excepts == FE_ALL_EXCEPT) { in feclearexcept()
245 return (~__control & FE_ALL_EXCEPT); in fegetexcept()
/haiku/headers/posix/arch/riscv64/
H A Dfenv.h58 #define FE_ALL_EXCEPT (FE_DIVBYZERO | FE_INEXACT | \ macro
215 feraiseexcept(__fcsr & FE_ALL_EXCEPT); in feupdateenv()