summaryrefslogtreecommitdiff
path: root/arch/i386/bits
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-04-29 19:54:29 -0400
committerRich Felker <dalias@aerifal.cx>2012-04-29 19:54:29 -0400
commitaa859403886ed4b50da36e7fe101f7431856c004 (patch)
tree49bbdc1e370ba70ec058a254c6132dfcb4cbbc50 /arch/i386/bits
parent50da5c264fd84ea2de8cf75bf39ceb81a4eecd71 (diff)
downloadmusl-aa859403886ed4b50da36e7fe101f7431856c004.tar.gz
musl-aa859403886ed4b50da36e7fe101f7431856c004.tar.bz2
musl-aa859403886ed4b50da36e7fe101f7431856c004.tar.xz
musl-aa859403886ed4b50da36e7fe101f7431856c004.zip
fix float_t and double_t defs on x86 when -mfpmath=sse -msse2 is used
Diffstat (limited to 'arch/i386/bits')
-rwxr-xr-xarch/i386/bits/alltypes.h.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/i386/bits/alltypes.h.sh b/arch/i386/bits/alltypes.h.sh
index 3735d963..10956690 100755
--- a/arch/i386/bits/alltypes.h.sh
+++ b/arch/i386/bits/alltypes.h.sh
@@ -64,8 +64,13 @@ TYPEDEF uint64_t uint_fast64_t;
TYPEDEF long intptr_t;
TYPEDEF unsigned long uintptr_t;
+#if defined(__FLT_EVAL_METHOD__) && __FLT_EVAL_METHOD__ == 0
+TYPEDEF float float_t;
+TYPEDEF double double_t;
+#else
TYPEDEF long double float_t;
TYPEDEF long double double_t;
+#endif
TYPEDEF long time_t;
TYPEDEF int suseconds_t;