Lines Matching refs:__fcsr
87 #define __rfs(__fcsr) __asm __volatile("csrr %0, fcsr" : "=r" (__fcsr)) argument
88 #define __wfs(__fcsr) __asm __volatile("csrw fcsr, %0" :: "r" (__fcsr)) argument
116 fexcept_t __fcsr; in fegetexceptflag() local
118 __rfs(__fcsr); in fegetexceptflag()
119 *__flagp = __fcsr & __excepts; in fegetexceptflag()
127 fexcept_t __fcsr; in fesetexceptflag() local
129 __fcsr = *__flagp; in fesetexceptflag()
131 __asm __volatile("csrs fflags, %0" :: "r"(__fcsr & __excepts)); in fesetexceptflag()
148 fexcept_t __fcsr; in fetestexcept() local
150 __rfs(__fcsr); in fetestexcept()
152 return (__fcsr & __excepts); in fetestexcept()
158 fexcept_t __fcsr; in fegetround() local
160 __rfs(__fcsr); in fegetround()
162 return (__fcsr & _ROUND_MASK); in fegetround()
168 fexcept_t __fcsr; in fesetround() local
173 __rfs(__fcsr); in fesetround()
174 __fcsr &= ~_ROUND_MASK; in fesetround()
175 __fcsr |= __round; in fesetround()
176 __wfs(__fcsr); in fesetround()
211 fexcept_t __fcsr; in feupdateenv() local
213 __rfs(__fcsr); in feupdateenv()
215 feraiseexcept(__fcsr & FE_ALL_EXCEPT); in feupdateenv()