This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
PATCH: Check Check __x86_64__ instead of __WORDSIZE for fenv_t
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Mon, 19 Mar 2012 15:16:54 -0700
- Subject: PATCH: Check Check __x86_64__ instead of __WORDSIZE for fenv_t
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
We need __mxcsr in fenv_t for x86-64 even if __WORDSIZE == 32. OK to
install?
Thanks.
H.J.
--
2012-03-19 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
(fenv_t): Check __x86_64__ instead of __WORDSIZE.
diff --git a/sysdeps/x86_64/fpu/bits/fenv.h b/sysdeps/x86_64/fpu/bits/fenv.h
index 5024376..dd16f53 100644
--- a/sysdeps/x86_64/fpu/bits/fenv.h
+++ b/sysdeps/x86_64/fpu/bits/fenv.h
@@ -19,9 +19,6 @@
# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
#endif
-#include <bits/wordsize.h>
-
-
/* Define bits representing the exception. We use the bit positions
of the appropriate bits in the FPU control word. */
enum
@@ -81,7 +78,7 @@ typedef struct
unsigned int __data_offset;
unsigned short int __data_selector;
unsigned short int __unused5;
-#if __WORDSIZE == 64
+#if __x86_64__
unsigned int __mxcsr;
#endif
}
--
1.7.6.5