Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Sutcliffe <ir0nh34d@users.sourceforge.net>2008-03-21 15:48:22 +0300
committerChris Sutcliffe <ir0nh34d@users.sourceforge.net>2008-03-21 15:48:22 +0300
commit138c2d5c15a81b05e55e1cdbf622146bd91bef43 (patch)
tree83229afd61a333e9c0c4d542a8990313549002bd /winsup/mingw/include/math.h
parentcc4d68ec0149df46a150eaab7f8eabdeb2a5e8af (diff)
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.h18
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.