fix float_t and double_t defs on x86 when -mfpmath=sse -msse2 is used
authorRich Felker <dalias@aerifal.cx>
Sun, 29 Apr 2012 23:54:29 +0000 (19:54 -0400)
committerRich Felker <dalias@aerifal.cx>
Sun, 29 Apr 2012 23:54:29 +0000 (19:54 -0400)
arch/i386/bits/alltypes.h.sh

index 3735d963dabdd4fa513410aac7b20db9e1ccc49f..109566901cd71c214b3c808b989773441ec3a8ed 100755 (executable)
@@ -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;