diff options
author | Chris Sutcliffe <ir0nh34d@users.sourceforge.net> | 2008-03-21 12:48:22 +0000 |
---|---|---|
committer | Chris Sutcliffe <ir0nh34d@users.sourceforge.net> | 2008-03-21 12:48:22 +0000 |
commit | 138c2d5c15a81b05e55e1cdbf622146bd91bef43 (patch) | |
tree | 83229afd61a333e9c0c4d542a8990313549002bd /winsup/mingw/include/math.h | |
parent | cc4d68ec0149df46a150eaab7f8eabdeb2a5e8af (diff) | |
download | cygnal-138c2d5c15a81b05e55e1cdbf622146bd91bef43.tar.gz cygnal-138c2d5c15a81b05e55e1cdbf622146bd91bef43.tar.bz2 cygnal-138c2d5c15a81b05e55e1cdbf622146bd91bef43.zip |
2008-03-21 Danny Smith <dannysmith@users.sourceforge.net>
* include/math.h (float_t, double_t): Define.
Diffstat (limited to 'winsup/mingw/include/math.h')
-rw-r--r-- | winsup/mingw/include/math.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/winsup/mingw/include/math.h b/winsup/mingw/include/math.h index 788c2449a..abe899e4a 100644 --- a/winsup/mingw/include/math.h +++ b/winsup/mingw/include/math.h @@ -304,6 +304,24 @@ extern const double __QNAN; #define NAN __QNAN #endif /* __MINGW_GNUC_PREREQ(3, 3) */ +/* Use the compiler's builtin define for FLT_EVAL_METHOD to + set float_t and double_t. */ +#if defined(__FLT_EVAL_METHOD__) +# if ( __FLT_EVAL_METHOD__== 0) +typedef float float_t; +typedef double double_t; +# elif (__FLT_EVAL_METHOD__ == 1) +typedef double float_t; +typedef double double_t; +# elif (__FLT_EVAL_METHOD__ == 2) +typedef long double float_t; +typedef long double double_t; +#endif +#else /* ix87 FPU default */ +typedef long double float_t; +typedef long double double_t; +#endif + /* 7.12.3.1 */ /* Return values for fpclassify. |