• Home
  • Raw
  • Download

Lines Matching refs:mxcsr

85   unsigned int mxcsr;  in feclearexcept()  local
99 __asm__ __volatile__ ("stmxcsr %0" : "=m" (mxcsr)); in feclearexcept()
100 mxcsr &= ~excepts; in feclearexcept()
101 __asm__ __volatile__ ("ldmxcsr %0" : : "m" (mxcsr)); in feclearexcept()
115 unsigned int mxcsr; in fegetexceptflag() local
123 __asm__ __volatile__ ("stmxcsr %0" : "=m" (mxcsr)); in fegetexceptflag()
126 *flagp = (status | mxcsr) & excepts; in fegetexceptflag()
161 unsigned int mxcsr; in fesetexceptflag() local
176 __asm__ __volatile__ ("stmxcsr %0" : "=m" (mxcsr)); in fesetexceptflag()
177 mxcsr &= ~excepts; in fesetexceptflag()
178 mxcsr |= *flagp & excepts; in fesetexceptflag()
179 __asm__ __volatile__ ("ldmxcsr %0" : : "m" (mxcsr)); in fesetexceptflag()
193 unsigned int mxcsr; in fetestexcept() local
201 __asm__ __volatile__ ("stmxcsr %0" : "=m" (mxcsr)); in fetestexcept()
203 return ((status | mxcsr) & excepts); in fetestexcept()
234 unsigned int mxcsr; in fesetround() local
251 __asm__ __volatile__ ("stmxcsr %0" : "=m" (mxcsr)); in fesetround()
252 mxcsr &= ~(X87_ROUND_MASK << SSE_ROUND_SHIFT); in fesetround()
253 mxcsr |= round << SSE_ROUND_SHIFT; in fesetround()
254 __asm__ __volatile__ ("ldmxcsr %0" : : "m" (mxcsr)); in fesetround()
294 unsigned int mxcsr; in feholdexcept() local
306 mxcsr = envp->__mxcsr; in feholdexcept()
307 mxcsr &= ~FE_ALL_EXCEPT; in feholdexcept()
310 mxcsr |= FE_ALL_EXCEPT << SSE_MASK_SHIFT; in feholdexcept()
313 __asm__ __volatile__ ("ldmxcsr %0" : : "m" (mxcsr)); in feholdexcept()
350 unsigned int mxcsr; in feupdateenv() local
356 __asm__ __volatile__ ("stmxcsr %0" : "=m" (mxcsr)); in feupdateenv()
362 feraiseexcept(status | mxcsr); in feupdateenv()
373 unsigned int mxcsr, omask; in feenableexcept() local
379 __asm__ __volatile__ ("stmxcsr %0" : "=m" (mxcsr)); in feenableexcept()
381 omask = ~(control | (mxcsr >> SSE_MASK_SHIFT)) & FE_ALL_EXCEPT; in feenableexcept()
385 mxcsr &= ~(mask << SSE_MASK_SHIFT); in feenableexcept()
386 __asm__ __volatile__ ("ldmxcsr %0" : : "m" (mxcsr)); in feenableexcept()
394 unsigned int mxcsr, omask; in fedisableexcept() local
400 __asm__ __volatile__ ("stmxcsr %0" : "=m" (mxcsr)); in fedisableexcept()
402 omask = ~(control | (mxcsr >> SSE_MASK_SHIFT)) & FE_ALL_EXCEPT; in fedisableexcept()
406 mxcsr |= mask << SSE_MASK_SHIFT; in fedisableexcept()
407 __asm__ __volatile__ ("ldmxcsr %0" : : "m" (mxcsr)); in fedisableexcept()