Home
last modified time | relevance | path

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

12

/sysdeps/csky/fpu/
A Dfenv_private.h31 _FPU_GETCW (fpcr); in libc_feholdexcept_vfp()
32 envp->__fpcr = fpcr; 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()
65 _FPU_GETCW (fpcr); in libc_feholdexcept_setround_vfp()
83 fpu_control_t fpcr; in libc_feholdsetround_vfp() local
85 _FPU_GETCW (fpcr); in libc_feholdsetround_vfp()
98 _FPU_GETCW (fpcr); in libc_feresetround_vfp()
123 _FPU_GETCW (fpcr); in libc_fesetenv_vfp()
[all …]
A 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()
/sysdeps/aarch64/fpu/
A 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()
56 fpu_control_t fpcr; in libc_fesetround_aarch64() local
58 _FPU_GETCW (fpcr); in libc_fesetround_aarch64()
75 fpu_control_t fpcr; in libc_feholdexcept_setround_aarch64() local
80 _FPU_GETCW (fpcr); in libc_feholdexcept_setround_aarch64()
121 _FPU_GETCW (fpcr); in libc_fesetenv_aarch64()
146 _FPU_GETCW (fpcr); in libc_feupdateenv_test_aarch64()
187 _FPU_GETCW (fpcr); in libc_feholdsetround_aarch64()
[all …]
A 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))
A 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()
A 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()
A 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()
A 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()
A 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()
/sysdeps/arc/fpu/
A 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()
A 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()
A 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()
A 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()
A 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()
A Dfegetmode.c25 unsigned int fpcr; in fegetmode() local
27 _FPU_GETCW (fpcr); in fegetmode()
28 *modep = fpcr; in fegetmode()
A Dfegetround.c25 unsigned int fpcr; in __fegetround() local
26 _FPU_GETCW (fpcr); in __fegetround()
28 return (fpcr >> __FPU_RND_SHIFT) & __FPU_RND_MASK; in __fegetround()
/sysdeps/m68k/fpu/
A 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()
A Dfegetround.c24 int fpcr; in __fegetround() local
26 __asm__ ("fmove%.l %!,%0" : "=dm" (fpcr)); in __fegetround()
28 return fpcr & FE_UPWARD; in __fegetround()
/sysdeps/alpha/fpu/
A 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()
A 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()
A 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()
A 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()
A 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()
A Dfegetmode.c24 unsigned long int fpcr; in fegetmode() local
29 __asm__ __volatile__ ("mf_fpcr %0" : "=f" (fpcr)); in fegetmode()
30 *modep = ((fpcr & FPCR_ROUND_MASK) | (swcr & SWCR_ALL_MASK)); in fegetmode()
/sysdeps/arc/
A 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()

Completed in 15 milliseconds

12