Lines Matching refs:fpcr

29   fpu_control_t fpsr, fpcr;  in libc_feholdexcept_vfp()  local
31 _FPU_GETCW (fpcr); in libc_feholdexcept_vfp()
32 envp->__fpcr = fpcr; in libc_feholdexcept_vfp()
38 fpcr &= ~FE_ALL_EXCEPT; in libc_feholdexcept_vfp()
45 _FPU_SETCW (fpcr); in libc_feholdexcept_vfp()
51 fpu_control_t fpcr; in libc_fesetround_vfp() local
53 _FPU_GETCW (fpcr); in libc_fesetround_vfp()
56 if (__glibc_unlikely ((fpcr & FE_DOWNWARD) != round)) in libc_fesetround_vfp()
57 _FPU_SETCW ((fpcr & ~FE_DOWNWARD) | round); in libc_fesetround_vfp()
63 fpu_control_t fpsr, fpcr; in libc_feholdexcept_setround_vfp() local
65 _FPU_GETCW (fpcr); in libc_feholdexcept_setround_vfp()
66 envp->__fpcr = fpcr; in libc_feholdexcept_setround_vfp()
76 fpcr &= ~(FE_ALL_EXCEPT | FE_DOWNWARD); in libc_feholdexcept_setround_vfp()
77 _FPU_SETCW (fpcr | round); in libc_feholdexcept_setround_vfp()
83 fpu_control_t fpcr; in libc_feholdsetround_vfp() local
85 _FPU_GETCW (fpcr); in libc_feholdsetround_vfp()
86 envp->__fpcr = fpcr; in libc_feholdsetround_vfp()
89 if (__glibc_unlikely ((fpcr & FE_DOWNWARD) != round)) in libc_feholdsetround_vfp()
90 _FPU_SETCW ((fpcr & ~FE_DOWNWARD) | round); in libc_feholdsetround_vfp()
96 fpu_control_t fpcr, round; in libc_feresetround_vfp() local
98 _FPU_GETCW (fpcr); in libc_feresetround_vfp()
101 round = (envp->__fpcr ^ fpcr) & FE_DOWNWARD; in libc_feresetround_vfp()
105 _FPU_SETCW (fpcr ^ round); in libc_feresetround_vfp()
121 fpu_control_t fpcr, fpsr, new_fpcr, new_fpsr; in libc_fesetenv_vfp() local
123 _FPU_GETCW (fpcr); in libc_fesetenv_vfp()
132 if (__glibc_unlikely (fpcr ^ new_fpcr) != 0) in libc_fesetenv_vfp()
139 fpu_control_t fpcr, fpsr, new_fpcr, new_fpsr, excepts; in libc_feupdateenv_test_vfp() local
141 _FPU_GETCW (fpcr); in libc_feupdateenv_test_vfp()
153 if (__glibc_unlikely (fpcr ^ new_fpcr) != 0) in libc_feupdateenv_test_vfp()
172 fpu_control_t fpcr, fpsr, round; in libc_feholdsetround_vfp_ctx() local
174 _FPU_GETCW (fpcr); in libc_feholdsetround_vfp_ctx()
177 ctx->env.__fpcr = fpcr; in libc_feholdsetround_vfp_ctx()
181 round = (fpcr ^ r) & FE_DOWNWARD; in libc_feholdsetround_vfp_ctx()
187 _FPU_SETCW (fpcr ^ round); in libc_feholdsetround_vfp_ctx()
197 fpu_control_t fpcr; in libc_feresetround_vfp_ctx() local
199 _FPU_GETCW (fpcr); in libc_feresetround_vfp_ctx()
200 fpcr = (fpcr & ~FE_DOWNWARD) | (ctx->env.__fpcr & FE_DOWNWARD); in libc_feresetround_vfp_ctx()
201 _FPU_SETCW (fpcr); in libc_feresetround_vfp_ctx()
208 fpu_control_t fpcr, fpsr, new_fpcr, new_fpsr; in libc_fesetenv_vfp_ctx() local
210 _FPU_GETCW (fpcr); in libc_fesetenv_vfp_ctx()
219 if (__glibc_unlikely (fpcr ^ new_fpcr) != 0) in libc_fesetenv_vfp_ctx()