mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
sparc: Move __fenv_{ld,st}fsr to fenv-private.h
These should not be exported on installed headers. Checked on sparc64-linux-gnu and sparcv9-linux-gnu.
This commit is contained in:
@@ -3,6 +3,15 @@
|
||||
|
||||
#include <fenv.h>
|
||||
|
||||
/* For internal use only: access the fp state register. */
|
||||
#if __WORDSIZE == 64
|
||||
# define __fenv_stfsr(X) __asm__ __volatile__ ("stx %%fsr,%0" : "=m" (X))
|
||||
# define __fenv_ldfsr(X) __asm__ __volatile__ ("ldx %0,%%fsr" : : "m" (X))
|
||||
#else
|
||||
# define __fenv_stfsr(X) __asm__ __volatile__ ("st %%fsr,%0" : "=m" (X))
|
||||
# define __fenv_ldfsr(X) __asm__ __volatile__ ("ld %0,%%fsr" : : "m" (X))
|
||||
#endif
|
||||
|
||||
static __always_inline void
|
||||
libc_feholdexcept (fenv_t *e)
|
||||
{
|
||||
|
Reference in New Issue
Block a user