projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b87a5d
)
support FLT_EVAL_METHOD changing on x86 with gcc -msse2 -mfpmath=sse
author
Rich Felker
<dalias@aerifal.cx>
Fri, 27 Apr 2012 05:39:03 +0000
(
01:39
-0400)
committer
Rich Felker
<dalias@aerifal.cx>
Fri, 27 Apr 2012 05:39:03 +0000
(
01:39
-0400)
if the compiler provides a value, use it; otherwise fallback to the
platform default (2).
arch/i386/bits/float.h
patch
|
blob
|
history
diff --git
a/arch/i386/bits/float.h
b/arch/i386/bits/float.h
index d439d40b827b5399926684588c6b2d3b65ef0b42..e18267d32e98c9e9a60ad881991b0184791bd21a 100644
(file)
--- a/
arch/i386/bits/float.h
+++ b/
arch/i386/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 2
+#endif
#define LDBL_MIN 3.3621031431120935063e-4932L
#define LDBL_MAX 1.1897314953572317650e+4932L