about summary refs log tree commit diff
path: root/arch
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-07-10 01:18:40 -0400
committerRich Felker <dalias@aerifal.cx>2012-07-10 01:18:40 -0400
commitbd1cf09c375e56c7fba6b7a1036b33b9591b5dba (patch)
treec3ff5144edd8208f34885db8fe7a8c7d3d7cce19 /arch
parent59c4ead16a37a74ee092dd7be157709b54d15d96 (diff)
downloadmusl-bd1cf09c375e56c7fba6b7a1036b33b9591b5dba.tar.gz
musl-bd1cf09c375e56c7fba6b7a1036b33b9591b5dba.tar.xz
musl-bd1cf09c375e56c7fba6b7a1036b33b9591b5dba.zip
support -mfpmath=387 on x86_64
apparently somebody wants this for something... and it doesn't hurt.
Diffstat (limited to 'arch')
-rw-r--r--arch/x86_64/bits/float.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86_64/bits/float.h b/arch/x86_64/bits/float.h
index 5ed6cbe3..17fd74d7 100644
--- a/arch/x86_64/bits/float.h
+++ b/arch/x86_64/bits/float.h
@@ -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