Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r48964 - in trunk/boost/math: special_functions tools
From: john_at_[hidden]
Date: 2008-09-25 08:21:05


Author: johnmaddock
Date: 2008-09-25 08:21:04 EDT (Thu, 25 Sep 2008)
New Revision: 48964
URL: http://svn.boost.org/trac/boost/changeset/48964

Log:
Fix for GLIBC platforms that don't have long double support.
Text files modified:
   trunk/boost/math/special_functions/log1p.hpp | 2 ++
   trunk/boost/math/tools/config.hpp | 3 ++-
   2 files changed, 4 insertions(+), 1 deletions(-)

Modified: trunk/boost/math/special_functions/log1p.hpp
==============================================================================
--- trunk/boost/math/special_functions/log1p.hpp (original)
+++ trunk/boost/math/special_functions/log1p.hpp 2008-09-25 08:21:04 EDT (Thu, 25 Sep 2008)
@@ -330,6 +330,7 @@
          "log1p<%1%>(%1%)", 0, pol);
    return ::log1pf(x);
 }
+#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
 template <class Policy>
 inline long double log1p(long double x, const Policy& pol)
 {
@@ -341,6 +342,7 @@
          "log1p<%1%>(%1%)", 0, pol);
    return ::log1pl(x);
 }
+#endif
 #else
 template <class Policy>
 inline float log1p(float x, const Policy& pol)

Modified: trunk/boost/math/tools/config.hpp
==============================================================================
--- trunk/boost/math/tools/config.hpp (original)
+++ trunk/boost/math/tools/config.hpp 2008-09-25 08:21:04 EDT (Thu, 25 Sep 2008)
@@ -23,7 +23,8 @@
 #include <boost/math/tools/user.hpp>
 #include <boost/math/special_functions/detail/round_fwd.hpp>
 
-#if defined(__CYGWIN__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__hppa)
+#if defined(__CYGWIN__) || defined(__FreeBSD__) || defined(__NetBSD__) \
+ || defined(__hppa) || defined(__NO_LONG_DOUBLE_MATH)
 # define BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
 #endif
 #if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))


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