Lines Matching refs:mxcsr
143 __uint32_t mxcsr; in fesetexceptflag() local
153 __stmxcsr(&mxcsr); in fesetexceptflag()
154 mxcsr &= ~excepts; in fesetexceptflag()
155 mxcsr |= *flagp & excepts; in fesetexceptflag()
156 __ldmxcsr(mxcsr); in fesetexceptflag()
176 __uint32_t mxcsr; in fegetenv() local
185 __stmxcsr(&mxcsr); in fegetenv()
186 envp->__mxcsr_hi = mxcsr >> 16; in fegetenv()
187 envp->__mxcsr_lo = mxcsr & 0xffff; in fegetenv()
195 __uint32_t mxcsr; in feholdexcept() local
205 __stmxcsr(&mxcsr); in feholdexcept()
206 envp->__mxcsr_hi = mxcsr >> 16; in feholdexcept()
207 envp->__mxcsr_lo = mxcsr & 0xffff; in feholdexcept()
208 mxcsr &= ~FE_ALL_EXCEPT; in feholdexcept()
209 mxcsr |= FE_ALL_EXCEPT << _SSE_EMASK_SHIFT; in feholdexcept()
210 __ldmxcsr(mxcsr); in feholdexcept()
218 __uint32_t mxcsr; in feupdateenv() local
223 __stmxcsr(&mxcsr); in feupdateenv()
225 mxcsr = 0; in feupdateenv()
228 feraiseexcept((mxcsr | status) & FE_ALL_EXCEPT); in feupdateenv()
235 __uint32_t mxcsr; in feenableexcept() local
241 __stmxcsr(&mxcsr); in feenableexcept()
243 mxcsr = 0; in feenableexcept()
245 omask = ~(control | mxcsr >> _SSE_EMASK_SHIFT) & FE_ALL_EXCEPT; in feenableexcept()
250 mxcsr &= ~(mask << _SSE_EMASK_SHIFT); in feenableexcept()
251 __ldmxcsr(mxcsr); in feenableexcept()
260 __uint32_t mxcsr; in fedisableexcept() local
266 __stmxcsr(&mxcsr); in fedisableexcept()
268 mxcsr = 0; in fedisableexcept()
270 omask = ~(control | mxcsr >> _SSE_EMASK_SHIFT) & FE_ALL_EXCEPT; in fedisableexcept()
275 mxcsr |= mask << _SSE_EMASK_SHIFT; in fedisableexcept()
276 __ldmxcsr(mxcsr); in fedisableexcept()
286 __uint32_t mxcsr; in feclearexcept() local
295 __stmxcsr(&mxcsr); in feclearexcept()
296 mxcsr &= ~excepts; in feclearexcept()
297 __ldmxcsr(mxcsr); in feclearexcept()
306 __uint32_t mxcsr; in fegetexceptflag() local
312 __stmxcsr(&mxcsr); in fegetexceptflag()
314 mxcsr = 0; in fegetexceptflag()
316 *flagp = (status | mxcsr) & excepts; in fegetexceptflag()
323 __uint32_t mxcsr; in fetestexcept() local
330 __stmxcsr(&mxcsr); in fetestexcept()
332 mxcsr = 0; in fetestexcept()
334 return ((status | mxcsr) & excepts); in fetestexcept()
357 __uint32_t mxcsr; in fesetround() local
368 __stmxcsr(&mxcsr); in fesetround()
369 mxcsr &= ~(ROUND_MASK << _SSE_ROUND_SHIFT); in fesetround()
370 mxcsr |= round << _SSE_ROUND_SHIFT; in fesetround()
371 __ldmxcsr(mxcsr); in fesetround()
381 __uint32_t mxcsr; in fesetenv() local
383 mxcsr = (env.__mxcsr_hi << 16) | (env.__mxcsr_lo); in fesetenv()
396 __ldmxcsr(mxcsr); in fesetenv()