mirror of
https://sourceware.org/git/glibc.git
synced 2025-06-05 00:22:17 +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:
parent
4a30b6109c
commit
ec07242c45
@ -83,15 +83,6 @@ typedef unsigned long int fenv_t;
|
|||||||
# define FE_NOMASK_ENV ((const fenv_t *) -2)
|
# define FE_NOMASK_ENV ((const fenv_t *) -2)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* 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
|
|
||||||
|
|
||||||
#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
|
#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
|
||||||
/* Type representing floating-point control modes. */
|
/* Type representing floating-point control modes. */
|
||||||
typedef unsigned long int femode_t;
|
typedef unsigned long int femode_t;
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
<https://www.gnu.org/licenses/>. */
|
<https://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
#include <fenv.h>
|
#include <fenv.h>
|
||||||
|
#include <fenv_private.h>
|
||||||
#include <shlib-compat.h>
|
#include <shlib-compat.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
<https://www.gnu.org/licenses/>. */
|
<https://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
#include <fenv.h>
|
#include <fenv.h>
|
||||||
|
#include <fenv_private.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
fedisableexcept (int excepts)
|
fedisableexcept (int excepts)
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
<https://www.gnu.org/licenses/>. */
|
<https://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
#include <fenv.h>
|
#include <fenv.h>
|
||||||
|
#include <fenv_private.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
feenableexcept (int excepts)
|
feenableexcept (int excepts)
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
<https://www.gnu.org/licenses/>. */
|
<https://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
#include <fenv.h>
|
#include <fenv.h>
|
||||||
|
#include <fenv_private.h>
|
||||||
#include <shlib-compat.h>
|
#include <shlib-compat.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
<https://www.gnu.org/licenses/>. */
|
<https://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
#include <fenv.h>
|
#include <fenv.h>
|
||||||
|
#include <fenv_private.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
fegetexcept (void)
|
fegetexcept (void)
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
<https://www.gnu.org/licenses/>. */
|
<https://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
#include <fenv.h>
|
#include <fenv.h>
|
||||||
|
#include <fenv_private.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
fegetmode (femode_t *modep)
|
fegetmode (femode_t *modep)
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
<https://www.gnu.org/licenses/>. */
|
<https://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
#include <fenv.h>
|
#include <fenv.h>
|
||||||
|
#include <fenv_private.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
__fegetround (void)
|
__fegetround (void)
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
<https://www.gnu.org/licenses/>. */
|
<https://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
#include <fenv.h>
|
#include <fenv.h>
|
||||||
|
#include <fenv_private.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
__feholdexcept (fenv_t *envp)
|
__feholdexcept (fenv_t *envp)
|
||||||
|
@ -3,6 +3,15 @@
|
|||||||
|
|
||||||
#include <fenv.h>
|
#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
|
static __always_inline void
|
||||||
libc_feholdexcept (fenv_t *e)
|
libc_feholdexcept (fenv_t *e)
|
||||||
{
|
{
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
<https://www.gnu.org/licenses/>. */
|
<https://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
#include <fenv.h>
|
#include <fenv.h>
|
||||||
|
#include <fenv_private.h>
|
||||||
#include <shlib-compat.h>
|
#include <shlib-compat.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
<https://www.gnu.org/licenses/>. */
|
<https://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
#include <fenv.h>
|
#include <fenv.h>
|
||||||
|
#include <fenv_private.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
fesetexcept (int excepts)
|
fesetexcept (int excepts)
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
<https://www.gnu.org/licenses/>. */
|
<https://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
#include <fenv.h>
|
#include <fenv.h>
|
||||||
|
#include <fenv_private.h>
|
||||||
#include <fpu_control.h>
|
#include <fpu_control.h>
|
||||||
|
|
||||||
#define FPU_CONTROL_BITS 0xcfc00000UL
|
#define FPU_CONTROL_BITS 0xcfc00000UL
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
<https://www.gnu.org/licenses/>. */
|
<https://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
#include <fenv.h>
|
#include <fenv.h>
|
||||||
|
#include <fenv_private.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
__fesetround (int round)
|
__fesetround (int round)
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
<https://www.gnu.org/licenses/>. */
|
<https://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
#include <fenv.h>
|
#include <fenv.h>
|
||||||
|
#include <fenv_private.h>
|
||||||
#include <shlib-compat.h>
|
#include <shlib-compat.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
<https://www.gnu.org/licenses/>. */
|
<https://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
#include <fenv.h>
|
#include <fenv.h>
|
||||||
|
#include <fenv_private.h>
|
||||||
#include <shlib-compat.h>
|
#include <shlib-compat.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
<https://www.gnu.org/licenses/>. */
|
<https://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
#include <fenv.h>
|
#include <fenv.h>
|
||||||
|
#include <fenv_private.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <shlib-compat.h>
|
#include <shlib-compat.h>
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
<https://www.gnu.org/licenses/>. */
|
<https://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
#include <fenv.h>
|
#include <fenv.h>
|
||||||
|
#include <fenv_private.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
fetestexcept (int excepts)
|
fetestexcept (int excepts)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user