|
Boost-Commit : |
From: john_at_[hidden]
Date: 2007-10-09 08:26:28
Author: johnmaddock
Date: 2007-10-09 08:26:27 EDT (Tue, 09 Oct 2007)
New Revision: 39837
URL: http://svn.boost.org/trac/boost/changeset/39837
Log:
Disabled long double support on some platforms.
Text files modified:
trunk/boost/math/tools/config.hpp | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
Modified: trunk/boost/math/tools/config.hpp
==============================================================================
--- trunk/boost/math/tools/config.hpp (original)
+++ trunk/boost/math/tools/config.hpp 2007-10-09 08:26:27 EDT (Tue, 09 Oct 2007)
@@ -22,7 +22,20 @@
# define BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
#endif
#if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))
+//
+// Borland post 5.8.2 uses Dinkumware's std C lib which
+// doesn't have true long double precision. Earlier
+// versions are problematic too:
+//
# define BOOST_MATH_NO_REAL_CONCEPT_TESTS
+# define BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
+#endif
+#if (defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__)) && ((LDBL_MANT_DIG == 106) || (__LDBL_MANT_DIG__ == 106))
+//
+// Darwin's rather strange "double double" is rather hard to
+// support, it should be possible given enough effort though...
+//
+# define BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
#endif
#if BOOST_WORKAROUND(BOOST_MSVC, < 1400)
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk