summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/sparc/fpu_control.h
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-05-23 00:47:19 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2017-05-24 20:44:04 +0200
commit228f76d4dfe9a8a9b50e4c5ac8161a991fc8107c (patch)
treef739b8221a0392b73e8696d080c3bfc87c397b49 /libc/sysdeps/linux/sparc/fpu_control.h
parent383122dd2e2fb78854ed420c5e819a3007b4f256 (diff)
sparc: cleanup sparc64 bits and unused soft-fp
Remove a lot of unused 64 Bit header stuff.
Diffstat (limited to 'libc/sysdeps/linux/sparc/fpu_control.h')
-rw-r--r--libc/sysdeps/linux/sparc/fpu_control.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/libc/sysdeps/linux/sparc/fpu_control.h b/libc/sysdeps/linux/sparc/fpu_control.h
index 0a00044f9..57f1dbb67 100644
--- a/libc/sysdeps/linux/sparc/fpu_control.h
+++ b/libc/sysdeps/linux/sparc/fpu_control.h
@@ -1,6 +1,5 @@
/* FPU control word bits. SPARC version.
Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
Contributed by Miguel de Icaza
The GNU C Library is free software; you can redistribute it and/or
@@ -22,7 +21,6 @@
#include <features.h>
-#include <bits/wordsize.h>
/* masking of interrupts */
#define _FPU_MASK_IM 0x08000000
@@ -58,13 +56,8 @@
/* Type of the control word. */
typedef unsigned long int fpu_control_t;
-#if __WORDSIZE == 64
-# define _FPU_GETCW(cw) __asm__ ("stx %%fsr,%0" : "=m" (*&cw))
-# define _FPU_SETCW(cw) __asm__ ("ldx %0,%%fsr" : : "m" (*&cw))
-#else
-# define _FPU_GETCW(cw) __asm__ ("st %%fsr,%0" : "=m" (*&cw))
-# define _FPU_SETCW(cw) __asm__ ("ld %0,%%fsr" : : "m" (*&cw))
-#endif
+#define _FPU_GETCW(cw) __asm__ ("st %%fsr,%0" : "=m" (*&cw))
+#define _FPU_SETCW(cw) __asm__ ("ld %0,%%fsr" : : "m" (*&cw))
#if 0
/* Default control word set at startup. */