Home
last modified time | relevance | path

Searched refs:fpcr (Results 1 – 25 of 46) sorted by relevance

12

/glibc-2.36/sysdeps/csky/fpu/
Dfenv_private.h29 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
[all …]
Dfesetenv.c25 unsigned int fpcr; in __fesetenv() local
28 _FPU_GETCW (fpcr); in __fesetenv()
31 fpcr &= _FPU_RESERVED; in __fesetenv()
36 fpcr |= _FPU_DEFAULT; in __fesetenv()
41 fpcr |= _FPU_FPCR_IEEE; in __fesetenv()
46 fpcr |= envp->__fpcr & ~_FPU_RESERVED; in __fesetenv()
52 _FPU_SETCW (fpcr); in __fesetenv()
/glibc-2.36/sysdeps/aarch64/fpu/
Dfenv_private.h28 fpu_control_t fpcr; in libc_feholdexcept_aarch64() local
33 _FPU_GETCW (fpcr); in libc_feholdexcept_aarch64()
35 envp->__fpcr = fpcr; in libc_feholdexcept_aarch64()
39 new_fpcr = fpcr & ~(FE_ALL_EXCEPT << FE_EXCEPT_SHIFT); in libc_feholdexcept_aarch64()
42 if (__glibc_unlikely (new_fpcr != fpcr)) in libc_feholdexcept_aarch64()
56 fpu_control_t fpcr; in libc_fesetround_aarch64() local
58 _FPU_GETCW (fpcr); in libc_fesetround_aarch64()
61 round = (fpcr ^ round) & _FPU_FPCR_RM_MASK; in libc_fesetround_aarch64()
65 _FPU_SETCW (fpcr ^ round); in libc_fesetround_aarch64()
75 fpu_control_t fpcr; in libc_feholdexcept_setround_aarch64() local
[all …]
Dfpu_control.h27 # define _FPU_GETCW(fpcr) (fpcr = __builtin_aarch64_get_fpcr ()) argument
28 # define _FPU_SETCW(fpcr) __builtin_aarch64_set_fpcr (fpcr) argument
32 # define _FPU_GETCW(fpcr) \ argument
33 __asm__ __volatile__ ("mrs %0, fpcr" : "=r" (fpcr))
35 # define _FPU_SETCW(fpcr) \ argument
36 __asm__ __volatile__ ("msr fpcr, %0" : : "r" (fpcr))
Dfedisblxcpt.c25 fpu_control_t fpcr; in fedisableexcept() local
28 _FPU_GETCW (fpcr); in fedisableexcept()
30 fpcr_new = fpcr & ~(excepts << FE_EXCEPT_SHIFT); in fedisableexcept()
32 if (fpcr != fpcr_new) in fedisableexcept()
35 return (fpcr >> FE_EXCEPT_SHIFT) & FE_ALL_EXCEPT; in fedisableexcept()
Dfeenablxcpt.c25 fpu_control_t fpcr; in feenableexcept() local
29 _FPU_GETCW (fpcr); in feenableexcept()
31 fpcr_new = fpcr | (excepts << FE_EXCEPT_SHIFT); in feenableexcept()
33 if (fpcr != fpcr_new) in feenableexcept()
46 return (fpcr >> FE_EXCEPT_SHIFT) & FE_ALL_EXCEPT; in feenableexcept()
Dfesetenv.c25 fpu_control_t fpcr; in __fesetenv() local
31 _FPU_GETCW (fpcr); in __fesetenv()
38 if (fpcr != fpcr_new) in __fesetenv()
46 fpcr_new = fpcr & _FPU_RESERVED; in __fesetenv()
62 if (fpcr != fpcr_new) in __fesetenv()
Dfeupdateenv.c25 fpu_control_t fpcr; in __feupdateenv() local
32 _FPU_GETCW (fpcr); in __feupdateenv()
41 if (fpcr != fpcr_new) in __feupdateenv()
53 fpcr_new = fpcr & _FPU_RESERVED; in __feupdateenv()
69 if (fpcr != fpcr_new) in __feupdateenv()
Dfesetmode.c25 fpu_control_t fpcr, fpcr_new; in fesetmode() local
26 _FPU_GETCW (fpcr); in fesetmode()
28 fpcr_new = (fpcr & _FPU_RESERVED) | _FPU_DEFAULT; in fesetmode()
31 if (fpcr != fpcr_new) in fesetmode()
Dfegetexcept.c25 fpu_control_t fpcr; in fegetexcept() local
26 _FPU_GETCW (fpcr); in fegetexcept()
27 return (fpcr >> FE_EXCEPT_SHIFT) & FE_ALL_EXCEPT; in fegetexcept()
Dget-rounding-mode.h32 fpu_control_t fpcr; in get_rounding_mode() local
34 _FPU_GETCW (fpcr); in get_rounding_mode()
35 return fpcr & _FPU_FPCR_RM_MASK; in get_rounding_mode()
/glibc-2.36/sysdeps/arc/fpu/
Dfesetround.c25 unsigned int fpcr; in __fesetround() local
27 _FPU_GETCW (fpcr); in __fesetround()
29 if (((fpcr >> __FPU_RND_SHIFT) & __FPU_RND_MASK) != round) in __fesetround()
31 fpcr &= ~(__FPU_RND_MASK << __FPU_RND_SHIFT); in __fesetround()
32 fpcr |= (round & __FPU_RND_MASK) << __FPU_RND_SHIFT; in __fesetround()
33 _FPU_SETCW (fpcr); in __fesetround()
Dfesetmode.c25 unsigned int fpcr; in fesetmode() local
29 fpcr = _FPU_DEFAULT; in fesetmode()
34 fpcr = *modep; in fesetmode()
37 _FPU_SETCW (fpcr); in fesetmode()
Dfeholdexcpt.c25 unsigned int fpcr; in __feholdexcept() local
28 _FPU_GETCW (fpcr); in __feholdexcept()
31 envp->__fpcr = fpcr; in __feholdexcept()
36 _FPU_SETCW (fpcr); in __feholdexcept()
Dfesetenv.c25 unsigned int fpcr; in __fesetenv() local
30 fpcr = _FPU_DEFAULT; in __fesetenv()
36 fpcr = envp->__fpcr; in __fesetenv()
40 _FPU_SETCW (fpcr); in __fesetenv()
Dfeupdateenv.c26 unsigned int fpcr; in __feupdateenv() local
33 fpcr = _FPU_DEFAULT; in __feupdateenv()
37 fpcr = envp->__fpcr; in __feupdateenv()
43 _FPU_SETCW (fpcr); in __feupdateenv()
Dfegetmode.c25 unsigned int fpcr; in fegetmode() local
27 _FPU_GETCW (fpcr); in fegetmode()
28 *modep = fpcr; in fegetmode()
/glibc-2.36/sysdeps/m68k/fpu/
Dfesetround.c24 fexcept_t fpcr; in __fesetround() local
30 __asm__ ("fmove%.l %!,%0" : "=dm" (fpcr)); in __fesetround()
31 fpcr &= ~FE_UPWARD; in __fesetround()
32 fpcr |= round; in __fesetround()
33 __asm__ __volatile__ ("fmove%.l %0,%!" : : "dm" (fpcr)); in __fesetround()
Dfegetround.c24 int fpcr; in __fegetround() local
26 __asm__ ("fmove%.l %!,%0" : "=dm" (fpcr)); in __fegetround()
28 return fpcr & FE_UPWARD; in __fegetround()
/glibc-2.36/sysdeps/alpha/fpu/
Dfesetround.c24 unsigned long fpcr; in __fesetround() local
30 __asm__ __volatile__("excb; mf_fpcr %0" : "=f"(fpcr)); in __fesetround()
33 fpcr = ((fpcr & ~FPCR_ROUND_MASK) in __fesetround()
37 __asm__ __volatile__("mt_fpcr %0; excb" : : "f"(fpcr)); in __fesetround()
Dfesetmode.c24 unsigned long int fpcr; in fesetmode() local
34 __asm__ __volatile__ ("excb; mf_fpcr %0" : "=f" (fpcr)); in fesetmode()
35 fpcr = (fpcr & ~FPCR_ROUND_MASK) | (mode & FPCR_ROUND_MASK); in fesetmode()
36 __asm__ __volatile__ ("mt_fpcr %0" : : "f" (fpcr)); in fesetmode()
Dfesetenv.c24 unsigned long int fpcr; in __fesetenv() local
37 __asm__ __volatile__ ("excb; mf_fpcr %0" : "=f" (fpcr)); in __fesetenv()
38 fpcr = (fpcr & ~FPCR_ROUND_MASK) | (env & FPCR_ROUND_MASK); in __fesetenv()
39 __asm__ __volatile__ ("mt_fpcr %0" : : "f" (fpcr)); in __fesetenv()
Dget-rounding-mode.h30 unsigned long fpcr; in get_rounding_mode() local
31 __asm__ __volatile__("excb; mf_fpcr %0" : "=f"(fpcr)); in get_rounding_mode()
32 return (fpcr >> FPCR_ROUND_SHIFT) & 3; in get_rounding_mode()
Dfegetround.c24 unsigned long fpcr; in __fegetround() local
26 __asm__ __volatile__("excb; mf_fpcr %0" : "=f"(fpcr)); in __fegetround()
28 return (fpcr >> FPCR_ROUND_SHIFT) & 3; in __fegetround()
/glibc-2.36/sysdeps/arc/
Dget-rounding-mode.h29 unsigned int fpcr; in get_rounding_mode() local
30 _FPU_GETCW (fpcr); in get_rounding_mode()
32 return (fpcr >> __FPU_RND_SHIFT) & __FPU_RND_MASK; in get_rounding_mode()

12