support -mfpmath=387 on x86_64
authorRich Felker <dalias@aerifal.cx>
Tue, 10 Jul 2012 05:18:40 +0000 (01:18 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 10 Jul 2012 05:18:40 +0000 (01:18 -0400)
apparently somebody wants this for something... and it doesn't hurt.

arch/x86_64/bits/float.h

index 5ed6cbe3ad80585673be306d612f9e74b5468f73..17fd74d7447a5521d5547d4106b65804c2c1b931 100644 (file)
@@ -1,5 +1,9 @@
 #define FLT_ROUNDS 1
+#ifdef __FLT_EVAL_METHOD__
+#define FLT_EVAL_METHOD __FLT_EVAL_METHOD__
+#else
 #define FLT_EVAL_METHOD 0
+#endif
 
 #define LDBL_MIN     3.3621031431120935063e-4932L
 #define LDBL_MAX     1.1897314953572317650e+4932L