diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-04-27 01:39:03 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-04-27 01:39:03 -0400 |
commit | a1b442335d6382b0dc0363fdd3a5604493b6a9c7 (patch) | |
tree | db1be00d9852b2a702cd292c4e0f4e8ffcd94170 /arch/i386 | |
parent | 2b87a5db82833c6d148b70d29a33cd51fff491e3 (diff) | |
download | musl-a1b442335d6382b0dc0363fdd3a5604493b6a9c7.tar.gz musl-a1b442335d6382b0dc0363fdd3a5604493b6a9c7.tar.bz2 musl-a1b442335d6382b0dc0363fdd3a5604493b6a9c7.tar.xz musl-a1b442335d6382b0dc0363fdd3a5604493b6a9c7.zip |
support FLT_EVAL_METHOD changing on x86 with gcc -msse2 -mfpmath=sse
if the compiler provides a value, use it; otherwise fallback to the
platform default (2).
Diffstat (limited to 'arch/i386')
-rw-r--r-- | arch/i386/bits/float.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/i386/bits/float.h b/arch/i386/bits/float.h index d439d40b..e18267d3 100644 --- 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 |