Home
last modified time | relevance | path

Searched refs:fpsr (Results 1 – 25 of 67) sorted by relevance

123

/glibc-2.36/sysdeps/csky/fpu/
Dfenv_private.h29 fpu_control_t fpsr, fpcr; in libc_feholdexcept_vfp() local
34 _FPU_GETFPSR (fpsr); in libc_feholdexcept_vfp()
35 envp->__fpsr = fpsr; in libc_feholdexcept_vfp()
41 fpsr &= ~(FE_ALL_EXCEPT << CAUSE_SHIFT); in libc_feholdexcept_vfp()
43 _FPU_SETFPSR (fpsr); in libc_feholdexcept_vfp()
63 fpu_control_t fpsr, fpcr; in libc_feholdexcept_setround_vfp() local
68 _FPU_GETFPSR (fpsr); in libc_feholdexcept_setround_vfp()
69 envp->__fpsr = fpsr; in libc_feholdexcept_setround_vfp()
73 fpsr &= ~(FE_ALL_EXCEPT << CAUSE_SHIFT); in libc_feholdexcept_setround_vfp()
74 _FPU_SETFPSR (fpsr); in libc_feholdexcept_setround_vfp()
[all …]
Dfesetenv.c26 unsigned int fpsr; in __fesetenv() local
29 _FPU_GETFPSR (fpsr); in __fesetenv()
32 fpsr &= _FPU_FPSR_RESERVED; in __fesetenv()
37 fpsr |= _FPU_FPSR_DEFAULT; in __fesetenv()
42 fpsr |= _FPU_FPSR_IEEE; in __fesetenv()
47 fpsr |= envp->__fpsr & ~_FPU_FPSR_RESERVED; in __fesetenv()
50 _FPU_SETFPSR (fpsr); in __fesetenv()
Dfclrexcpt.c26 int fpsr; in feclearexcept() local
32 _FPU_GETFPSR (fpsr); in feclearexcept()
35 fpsr &= ~(excepts | (excepts << CAUSE_SHIFT)); in feclearexcept()
38 _FPU_SETFPSR (fpsr); in feclearexcept()
Dfesetexcept.c26 fpu_control_t fpsr, new_fpsr; in fesetexcept() local
27 _FPU_GETFPSR (fpsr); in fesetexcept()
28 new_fpsr = fpsr | ((excepts & FE_ALL_EXCEPT) << CAUSE_SHIFT); in fesetexcept()
29 if (new_fpsr != fpsr) in fesetexcept()
/glibc-2.36/sysdeps/aarch64/fpu/
Dfenv_private.h30 fpu_fpsr_t fpsr; in libc_feholdexcept_aarch64() local
34 _FPU_GETFPSR (fpsr); in libc_feholdexcept_aarch64()
36 envp->__fpsr = fpsr; in libc_feholdexcept_aarch64()
40 new_fpsr = fpsr & ~FE_ALL_EXCEPT; in libc_feholdexcept_aarch64()
45 if (new_fpsr != fpsr) in libc_feholdexcept_aarch64()
77 fpu_fpsr_t fpsr; in libc_feholdexcept_setround_aarch64() local
81 _FPU_GETFPSR (fpsr); in libc_feholdexcept_setround_aarch64()
83 envp->__fpsr = fpsr; in libc_feholdexcept_setround_aarch64()
89 new_fpsr = fpsr & ~FE_ALL_EXCEPT; in libc_feholdexcept_setround_aarch64()
94 if (new_fpsr != fpsr) in libc_feholdexcept_setround_aarch64()
[all …]
Dfpu_control.h29 # define _FPU_GETFPSR(fpsr) (fpsr = __builtin_aarch64_get_fpsr ()) argument
30 # define _FPU_SETFPSR(fpsr) __builtin_aarch64_set_fpsr (fpsr) argument
38 # define _FPU_GETFPSR(fpsr) \ argument
39 __asm__ __volatile__ ("mrs %0, fpsr" : "=r" (fpsr))
41 # define _FPU_SETFPSR(fpsr) \ argument
42 __asm__ __volatile__ ("msr fpsr, %0" : : "r" (fpsr))
Dfraiseexcpt.c26 int fpsr; in __feraiseexcept() local
48 "mrs %0, fpsr" : "=r" (fpsr) in __feraiseexcept()
57 "mrs %0, fpsr" : "=r" (fpsr) in __feraiseexcept()
67 "mrs %0, fpsr" : "=r" (fpsr) in __feraiseexcept()
76 "mrs %0, fpsr" : "=r" (fpsr) in __feraiseexcept()
85 "mrs %0, fpsr" : "=r" (fpsr) in __feraiseexcept()
Dfeupdateenv.c28 fpu_fpsr_t fpsr; in __feupdateenv() local
33 _FPU_GETFPSR (fpsr); in __feupdateenv()
34 excepts = fpsr & FE_ALL_EXCEPT; in __feupdateenv()
44 if (fpsr != fpsr_new) in __feupdateenv()
54 fpsr_new = fpsr & (_FPU_FPSR_RESERVED | FE_ALL_EXCEPT); in __feupdateenv()
Dfesetexcept.c25 fpu_fpsr_t fpsr; in fesetexcept() local
28 _FPU_GETFPSR (fpsr); in fesetexcept()
29 fpsr_new = fpsr | (excepts & FE_ALL_EXCEPT); in fesetexcept()
30 if (fpsr != fpsr_new) in fesetexcept()
Dfclrexcpt.c25 fpu_fpsr_t fpsr; in feclearexcept() local
30 _FPU_GETFPSR (fpsr); in feclearexcept()
31 fpsr_new = fpsr & ~excepts; in feclearexcept()
33 if (fpsr != fpsr_new) in feclearexcept()
/glibc-2.36/sysdeps/ia64/fpu/
Dfeholdexcpt.c24 fenv_t fpsr; in __feholdexcept() local
26 __asm__ __volatile__ ("mov.m %0=ar.fpsr" : "=r" (fpsr)); in __feholdexcept()
27 *envp = fpsr; in __feholdexcept()
30 fpsr |= FE_ALL_EXCEPT; in __feholdexcept()
33 fpsr &= ~(fenv_t) (FE_ALL_EXCEPT << 13); in __feholdexcept()
35 __asm__ __volatile__ ("mov.m ar.fpsr=%0" :: "r" (fpsr)); in __feholdexcept()
Dfsetexcptflg.c24 fenv_t fpsr; in fesetexceptflag() local
27 __asm__ __volatile__ ("mov.m %0=ar.fpsr" : "=r" (fpsr)); in fesetexceptflag()
29 fpsr &= ~(((fenv_t) excepts & FE_ALL_EXCEPT) << 13); in fesetexceptflag()
32 fpsr |= ((*flagp & excepts & FE_ALL_EXCEPT) << 13); in fesetexceptflag()
35 __asm__ __volatile__ ("mov.m ar.fpsr=%0" :: "r" (fpsr) : "memory"); in fesetexceptflag()
Dfesetround.c24 fenv_t fpsr; in __fesetround() local
30 __asm__ __volatile__ ("mov.m %0=ar.fpsr" : "=r" (fpsr)); in __fesetround()
33 fpsr = (fpsr & ~(3UL << 10)) | ((fenv_t) round << 10); in __fesetround()
36 __asm__ __volatile__ ("mov.m ar.fpsr=%0" :: "r" (fpsr) : "memory"); in __fesetround()
Dfesetmode.c36 femode_t fpsr; in fesetmode() local
37 __asm__ __volatile__ ("mov.m %0=ar.fpsr" : "=r" (fpsr)); in fesetmode()
38 fpsr = (fpsr & FPSR_STATUS_ALL) | (mode & ~FPSR_STATUS_ALL); in fesetmode()
39 __asm__ __volatile__ ("mov.m ar.fpsr=%0;;" :: "r" (fpsr)); in fesetmode()
Dfesetexcept.c24 fenv_t fpsr; in fesetexcept() local
26 __asm__ __volatile__ ("mov.m %0=ar.fpsr" : "=r" (fpsr)); in fesetexcept()
27 fpsr |= ((excepts & FE_ALL_EXCEPT) << 13); in fesetexcept()
28 __asm__ __volatile__ ("mov.m ar.fpsr=%0" :: "r" (fpsr) : "memory"); in fesetexcept()
Dfclrexcpt.c24 fenv_t fpsr; in feclearexcept() local
27 __asm__ __volatile__ ("mov.m %0=ar.fpsr" : "=r" (fpsr)); in feclearexcept()
30 fpsr &= ~(((fenv_t) ((excepts & FE_ALL_EXCEPT) << 13))); in feclearexcept()
32 __asm__ __volatile__ ("mov.m ar.fpsr=%0" :: "r" (fpsr) : "memory"); in feclearexcept()
/glibc-2.36/sysdeps/arc/fpu/
Dfsetexcptflg.c25 unsigned int fpsr; in fesetexceptflag() local
27 _FPU_GETS (fpsr); in fesetexceptflag()
30 fpsr &= ~excepts; in fesetexceptflag()
33 fpsr |= *flagp & excepts; in fesetexceptflag()
35 _FPU_SETS (fpsr); in fesetexceptflag()
Dfeholdexcpt.c26 unsigned int fpsr; in __feholdexcept() local
29 _FPU_GETS (fpsr); in __feholdexcept()
32 envp->__fpsr = fpsr; in __feholdexcept()
34 fpsr &= ~FE_ALL_EXCEPT; in __feholdexcept()
37 _FPU_SETS (fpsr); in __feholdexcept()
Dfesetexcept.c25 unsigned int fpsr; in fesetexcept() local
27 _FPU_GETS (fpsr); in fesetexcept()
28 fpsr |= excepts; in fesetexcept()
29 _FPU_SETS (fpsr); in fesetexcept()
Dfclrexcpt.c25 unsigned int fpsr; in feclearexcept() local
27 _FPU_GETS (fpsr); in feclearexcept()
30 fpsr &= ~excepts; in feclearexcept()
32 _FPU_SETS (fpsr); in feclearexcept()
Dfraiseexcpt.c27 unsigned int fpsr; in __feraiseexcept() local
30 _FPU_GETS (fpsr); in __feraiseexcept()
31 fpsr |= excepts; in __feraiseexcept()
33 _FPU_SETS (fpsr); in __feraiseexcept()
/glibc-2.36/sysdeps/m68k/fpu/
Dfsetexcptflg.c25 fexcept_t fpsr; in __fesetexceptflag() local
28 __asm__ ("fmove%.l %/fpsr,%0" : "=dm" (fpsr)); in __fesetexceptflag()
31 fpsr &= ~(excepts & FE_ALL_EXCEPT); in __fesetexceptflag()
32 fpsr |= *flagp & excepts & FE_ALL_EXCEPT; in __fesetexceptflag()
35 __asm__ __volatile__ ("fmove%.l %0,%/fpsr" : : "dm" (fpsr)); in __fesetexceptflag()
Dfesetexcept.c24 fexcept_t fpsr; in fesetexcept() local
26 __asm__ ("fmove%.l %/fpsr,%0" : "=dm" (fpsr)); in fesetexcept()
27 fpsr |= excepts & FE_ALL_EXCEPT; in fesetexcept()
28 __asm__ __volatile__ ("fmove%.l %0,%/fpsr" : : "dm" (fpsr)); in fesetexcept()
/glibc-2.36/sysdeps/aarch64/
Dsfp-machine.h77 unsigned fpsr; \
84 __asm__ __volatile__ ("mrs\t%0, fpsr" : "=r" (fpsr)); \
92 __asm__ __volatile__ ("mrs\t%0, fpsr" : "=r" (fpsr)); \
100 __asm__ __volatile__ ("mrs\t%0, fpsr" : "=r" (fpsr)); \
108 __asm__ __volatile__ ("mrs\t%0, fpsr" : "=r" (fpsr)); \
116 __asm__ __volatile__ ("mrs\t%0, fpsr" : "=r" (fpsr)); \
/glibc-2.36/sysdeps/hppa/fpu/
Dfesetexcept.c25 fpu_control_t fpsr; in fesetexcept() local
28 _FPU_GETCW (fpsr); in fesetexcept()
30 fpsr_new = fpsr | (excepts << _FPU_HPPA_SHIFT_FLAGS); in fesetexcept()
31 if (fpsr != fpsr_new) in fesetexcept()

123