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).
This commit is contained in:
Rich Felker 2012-04-27 01:39:03 -04:00
parent 2b87a5db82
commit a1b442335d

View File

@ -1,5 +1,9 @@
#define FLT_ROUNDS 1 #define FLT_ROUNDS 1
#ifdef __FLT_EVAL_METHOD__
#define FLT_EVAL_METHOD __FLT_EVAL_METHOD__
#else
#define FLT_EVAL_METHOD 2 #define FLT_EVAL_METHOD 2
#endif
#define LDBL_MIN 3.3621031431120935063e-4932L #define LDBL_MIN 3.3621031431120935063e-4932L
#define LDBL_MAX 1.1897314953572317650e+4932L #define LDBL_MAX 1.1897314953572317650e+4932L