/glibc-2.36/sysdeps/csky/fpu/ |
D | fenv_private.h | 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 [all …]
|
D | fesetenv.c | 25 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/ |
D | fenv_private.h | 28 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 …]
|
D | fpu_control.h | 27 # 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))
|
D | fedisblxcpt.c | 25 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()
|
D | feenablxcpt.c | 25 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()
|
D | fesetenv.c | 25 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()
|
D | feupdateenv.c | 25 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()
|
D | fesetmode.c | 25 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()
|
D | fegetexcept.c | 25 fpu_control_t fpcr; in fegetexcept() local 26 _FPU_GETCW (fpcr); in fegetexcept() 27 return (fpcr >> FE_EXCEPT_SHIFT) & FE_ALL_EXCEPT; in fegetexcept()
|
D | get-rounding-mode.h | 32 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/ |
D | fesetround.c | 25 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()
|
D | fesetmode.c | 25 unsigned int fpcr; in fesetmode() local 29 fpcr = _FPU_DEFAULT; in fesetmode() 34 fpcr = *modep; in fesetmode() 37 _FPU_SETCW (fpcr); in fesetmode()
|
D | feholdexcpt.c | 25 unsigned int fpcr; in __feholdexcept() local 28 _FPU_GETCW (fpcr); in __feholdexcept() 31 envp->__fpcr = fpcr; in __feholdexcept() 36 _FPU_SETCW (fpcr); in __feholdexcept()
|
D | fesetenv.c | 25 unsigned int fpcr; in __fesetenv() local 30 fpcr = _FPU_DEFAULT; in __fesetenv() 36 fpcr = envp->__fpcr; in __fesetenv() 40 _FPU_SETCW (fpcr); in __fesetenv()
|
D | feupdateenv.c | 26 unsigned int fpcr; in __feupdateenv() local 33 fpcr = _FPU_DEFAULT; in __feupdateenv() 37 fpcr = envp->__fpcr; in __feupdateenv() 43 _FPU_SETCW (fpcr); in __feupdateenv()
|
D | fegetmode.c | 25 unsigned int fpcr; in fegetmode() local 27 _FPU_GETCW (fpcr); in fegetmode() 28 *modep = fpcr; in fegetmode()
|
/glibc-2.36/sysdeps/m68k/fpu/ |
D | fesetround.c | 24 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()
|
D | fegetround.c | 24 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/ |
D | fesetround.c | 24 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()
|
D | fesetmode.c | 24 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()
|
D | fesetenv.c | 24 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()
|
D | get-rounding-mode.h | 30 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()
|
D | fegetround.c | 24 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/ |
D | get-rounding-mode.h | 29 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()
|