Home
last modified time | relevance | path

Searched refs:mxcsr (Results 1 – 15 of 15) sorted by relevance

/glibc-2.36/sysdeps/x86/fpu/
Dfenv_private.h32 unsigned int mxcsr; in libc_feholdexcept_sse() local
33 asm (STMXCSR " %0" : "=m" (*&mxcsr)); in libc_feholdexcept_sse()
34 e->__mxcsr = mxcsr; in libc_feholdexcept_sse()
35 mxcsr = (mxcsr | 0x1f80) & ~0x3f; in libc_feholdexcept_sse()
36 asm volatile (LDMXCSR " %0" : : "m" (*&mxcsr)); in libc_feholdexcept_sse()
53 unsigned int mxcsr; in libc_fesetround_sse() local
54 asm (STMXCSR " %0" : "=m" (*&mxcsr)); in libc_fesetround_sse()
55 mxcsr = (mxcsr & ~0x6000) | (r << 3); in libc_fesetround_sse()
56 asm volatile (LDMXCSR " %0" : : "m" (*&mxcsr)); in libc_fesetround_sse()
71 unsigned int mxcsr; in libc_feholdexcept_setround_sse() local
[all …]
Dtest-fenv-sse-2.c54 uint32_t mxcsr = get_sse_mxcsr (); in set_sse_mxcsr_bits() local
55 mxcsr = (mxcsr & ~mask) | bits; in set_sse_mxcsr_bits()
56 set_sse_mxcsr (mxcsr); in set_sse_mxcsr_bits()
62 uint32_t mxcsr = get_sse_mxcsr (); in test_sse_mxcsr_bits() local
63 printf ("Testing %s: mxcsr = %x\n", test, mxcsr); in test_sse_mxcsr_bits()
64 if ((mxcsr & mask) == bits) in test_sse_mxcsr_bits()
/glibc-2.36/sysdeps/i386/fpu/
Dfesetenv.c83 unsigned int mxcsr; in __fesetenv() local
84 __asm__ ("stmxcsr %0" : "=m" (mxcsr)); in __fesetenv()
89 mxcsr &= ~FE_ALL_EXCEPT_X86; in __fesetenv()
91 mxcsr |= (FE_ALL_EXCEPT_X86 << 7); in __fesetenv()
93 mxcsr &= ~0x6000; in __fesetenv()
94 mxcsr |= (FE_TONEAREST << 3); in __fesetenv()
96 mxcsr &= ~0x8040; in __fesetenv()
101 mxcsr &= ~FE_ALL_EXCEPT_X86; in __fesetenv()
103 mxcsr &= ~(FE_ALL_EXCEPT << 7); in __fesetenv()
105 mxcsr |= (__FE_DENORM << 7); in __fesetenv()
[all …]
Dfesetmode.c40 unsigned int mxcsr; in fesetmode() local
41 __asm__ ("stmxcsr %0" : "=m" (mxcsr)); in fesetmode()
44 mxcsr &= FE_ALL_EXCEPT_X86; in fesetmode()
48 mxcsr |= FE_ALL_EXCEPT_X86 << 7; in fesetmode()
50 mxcsr |= modep->__mxcsr & ~FE_ALL_EXCEPT_X86; in fesetmode()
51 __asm__ ("ldmxcsr %0" : : "m" (mxcsr)); in fesetmode()
/glibc-2.36/sysdeps/x86_64/fpu/
Dfesetmode.c30 unsigned int mxcsr; in fesetmode() local
31 __asm__ ("stmxcsr %0" : "=m" (mxcsr)); in fesetmode()
34 mxcsr &= FE_ALL_EXCEPT_X86; in fesetmode()
40 mxcsr |= FE_ALL_EXCEPT_X86 << 7; in fesetmode()
45 mxcsr |= modep->__mxcsr & ~FE_ALL_EXCEPT_X86; in fesetmode()
48 __asm__ ("ldmxcsr %0" : : "m" (mxcsr)); in fesetmode()
Dfesetround.c25 int mxcsr; in __fesetround() local
39 asm ("stmxcsr %0" : "=m" (*&mxcsr)); in __fesetround()
40 mxcsr &= ~ 0x6000; in __fesetround()
41 mxcsr |= round << 3; in __fesetround()
42 asm ("ldmxcsr %0" : : "m" (*&mxcsr)); in __fesetround()
Dfsetexcptflg.c26 unsigned int mxcsr; in fesetexceptflag() local
44 __asm__ ("stmxcsr %0" : "=m" (*&mxcsr)); in fesetexceptflag()
46 mxcsr &= ~(excepts & FE_ALL_EXCEPT); in fesetexceptflag()
47 mxcsr |= *flagp & excepts & FE_ALL_EXCEPT; in fesetexceptflag()
49 __asm__ ("ldmxcsr %0" : : "m" (*&mxcsr)); in fesetexceptflag()
Dfesetexcept.c24 unsigned int mxcsr; in fesetexcept() local
26 __asm__ ("stmxcsr %0" : "=m" (*&mxcsr)); in fesetexcept()
27 mxcsr |= excepts & FE_ALL_EXCEPT; in fesetexcept()
28 __asm__ ("ldmxcsr %0" : : "m" (*&mxcsr)); in fesetexcept()
Dfclrexcpt.c25 unsigned int mxcsr; in feclearexcept() local
41 __asm__ ("stmxcsr %0" : "=m" (*&mxcsr)); in feclearexcept()
44 mxcsr &= ~excepts; in feclearexcept()
47 __asm__ ("ldmxcsr %0" : : "m" (*&mxcsr)); in feclearexcept()
Dfeholdexcpt.c24 unsigned int mxcsr; in __feholdexcept() local
34 mxcsr = (envp->__mxcsr | 0x1f80) & ~0x3f; in __feholdexcept()
35 __asm__ ("ldmxcsr %0" : : "m" (*&mxcsr)); in __feholdexcept()
/glibc-2.36/sysdeps/unix/sysv/linux/x86/sys/
Duser.h35 unsigned int mxcsr; member
124 long int mxcsr; member
Ducontext.h122 __uint32_t __ctx(mxcsr);
/glibc-2.36/sysdeps/unix/sysv/linux/x86/bits/
Dsigcontext.h78 __uint32_t mxcsr; member
132 __uint32_t mxcsr; member
/glibc-2.36/sysdeps/unix/sysv/linux/x86_64/
Ducontext_i.sym37 oMXCSR ucontext (__fpregs_mem.mxcsr)
/glibc-2.36/ChangeLog.old/
DChangeLog.1411195 clear whole mxcsr but only exceptions.