aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/sparc/sparc64
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-05-23 10:13:49 +0000
committerUlrich Drepper <drepper@redhat.com>1999-05-23 10:13:49 +0000
commit33d1a2c5b8fe391db7d99821ef09c55ab45bf5a4 (patch)
tree2c861964841fff8f99fae821d12e4522a747e4b9 /sysdeps/sparc/sparc64
parent0a51738ed9721654a75f22c0cf016f1df0eb905b (diff)
downloadglibc-33d1a2c5b8fe391db7d99821ef09c55ab45bf5a4.tar
glibc-33d1a2c5b8fe391db7d99821ef09c55ab45bf5a4.tar.gz
glibc-33d1a2c5b8fe391db7d99821ef09c55ab45bf5a4.tar.bz2
glibc-33d1a2c5b8fe391db7d99821ef09c55ab45bf5a4.zip
Update.
1999-05-23 Ulrich Drepper <drepper@cygnus.com> * sysdeps/alpha/fpu/bits/fenv.h: Pretty print. * sysdeps/sparc/sparc64/fpu/bits/fenv.h: Remove unneeded #if. 1999-05-22 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> * sysdeps/m68k/fpu/bits/fenv.h (fenv_t): Prepend __ to member names to protect from user's macro namespace. * sysdeps/arm/fpu/bits/fenv.h (fenv_t): Likewise. * sysdeps/generic/bits/fenv.h (fexcept_t, fenv_t): Likewise. * sysdeps/i386/fpu/bits/fenv.h (fenv_t): Likewise. * sysdeps/mips/bits/fenv.h (fenv_t): Likewise. * sysdeps/m68k/fpu/feholdexcpt.c, sysdeps/m68k/fpu/fesetenv.c: Adapted. * sysdeps/arm/fpu/fegetenv.c, sysdeps/arm/fpu/feholdexcpt.c, sysdeps/arm/fpu/fesetenv.c: Likewise. * sysdeps/i386/fpu/fclrexcpt.c, sysdeps/i386/fpu/feholdexcpt.c, sysdeps/i386/fpu/fesetenv.c, sysdeps/i386/fpu/fraiseexcpt.c, sysdeps/i386/fpu/fsetexcptflg.c: Likewise. * sysdeps/mips/fesetenv.c: Likewise.
Diffstat (limited to 'sysdeps/sparc/sparc64')
-rw-r--r--sysdeps/sparc/sparc64/fpu/bits/fenv.h20
1 files changed, 7 insertions, 13 deletions
diff --git a/sysdeps/sparc/sparc64/fpu/bits/fenv.h b/sysdeps/sparc/sparc64/fpu/bits/fenv.h
index af8ed65768..d30fe22c46 100644
--- a/sysdeps/sparc/sparc64/fpu/bits/fenv.h
+++ b/sysdeps/sparc/sparc64/fpu/bits/fenv.h
@@ -59,19 +59,13 @@ enum
#define __FE_ROUND_MASK (3U << 30)
-#if __WORDSIZE == 64
-/* Type representing exception flags. */
-typedef unsigned long fexcept_t;
-/* Type representing floating-point environment. */
-typedef unsigned long fenv_t;
-#else
/* Type representing exception flags. */
-typedef unsigned int fexcept_t;
+typedef unsigned long int fexcept_t;
+
/* Type representing floating-point environment. */
-typedef unsigned int fenv_t;
-#endif
+typedef unsigned long int fenv_t;
/* If the default argument is used we use this value. */
#define FE_DFL_ENV ((fenv_t *) -1)
@@ -83,9 +77,9 @@ typedef unsigned int fenv_t;
/* For internal use only: access the fp state register. */
#if __WORDSIZE == 64
-#define __fenv_stfsr(X) __asm__ ("stx %%fsr,%0" : "=m" (X))
-#define __fenv_ldfsr(X) __asm__ __volatile__ ("ldx %0,%%fsr" : : "m" (X))
+# define __fenv_stfsr(X) __asm__ ("stx %%fsr,%0" : "=m" (X))
+# define __fenv_ldfsr(X) __asm__ __volatile__ ("ldx %0,%%fsr" : : "m" (X))
#else
-#define __fenv_stfsr(X) __asm__ ("st %%fsr,%0" : "=m" (X))
-#define __fenv_ldfsr(X) __asm__ __volatile__ ("ld %0,%%fsr" : : "m" (X))
+# define __fenv_stfsr(X) __asm__ ("st %%fsr,%0" : "=m" (X))
+# define __fenv_ldfsr(X) __asm__ __volatile__ ("ld %0,%%fsr" : : "m" (X))
#endif