diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2016-10-06 10:30:07 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2016-10-06 10:32:57 +0900 |
commit | 71d216b90256936a9638f325af9bc69d720e75de (patch) | |
tree | 9c5f682d341c7c88ad0c8e3d4b262e00b6fb691a /boost/math | |
parent | 733b5d5ae2c5d625211e2985ac25728ac3f54883 (diff) | |
download | boost-71d216b90256936a9638f325af9bc69d720e75de.tar.gz boost-71d216b90256936a9638f325af9bc69d720e75de.tar.bz2 boost-71d216b90256936a9638f325af9bc69d720e75de.zip |
Imported Upstream version 1.59.0
Change-Id: I2dde00f4eca71df3eea9d251dcaecde18a6c90a5
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'boost/math')
-rw-r--r-- | boost/math/cstdfloat/cstdfloat_limits.hpp | 2 | ||||
-rw-r--r-- | boost/math/special_functions/detail/bernoulli_details.hpp | 2 | ||||
-rw-r--r-- | boost/math/tools/big_constant.hpp | 2 | ||||
-rw-r--r-- | boost/math/tools/config.hpp | 8 |
4 files changed, 11 insertions, 3 deletions
diff --git a/boost/math/cstdfloat/cstdfloat_limits.hpp b/boost/math/cstdfloat/cstdfloat_limits.hpp index c04062639a..ae9fbcbd15 100644 --- a/boost/math/cstdfloat/cstdfloat_limits.hpp +++ b/boost/math/cstdfloat/cstdfloat_limits.hpp @@ -40,7 +40,7 @@ static boost::math::cstdfloat::detail::float_internal128_t (max) () BOOST_NOEXCEPT { return BOOST_CSTDFLOAT_FLOAT128_MAX; } static boost::math::cstdfloat::detail::float_internal128_t lowest() BOOST_NOEXCEPT { return -(max)(); } BOOST_STATIC_CONSTEXPR int digits = 113; - BOOST_STATIC_CONSTEXPR int digits10 = 34; + BOOST_STATIC_CONSTEXPR int digits10 = 33; BOOST_STATIC_CONSTEXPR int max_digits10 = 36; BOOST_STATIC_CONSTEXPR bool is_signed = true; BOOST_STATIC_CONSTEXPR bool is_integer = false; diff --git a/boost/math/special_functions/detail/bernoulli_details.hpp b/boost/math/special_functions/detail/bernoulli_details.hpp index f2d3c655c8..525c1fccf4 100644 --- a/boost/math/special_functions/detail/bernoulli_details.hpp +++ b/boost/math/special_functions/detail/bernoulli_details.hpp @@ -625,7 +625,7 @@ private: // fixed_vector<T> bn, tn; std::vector<T> m_intermediates; - // The value at which we know overflow has already occured for the Bn: + // The value at which we know overflow has already occurred for the Bn: std::size_t m_overflow_limit; #if !defined(BOOST_HAS_THREADS) #elif defined(BOOST_MATH_NO_ATOMIC_INT) diff --git a/boost/math/tools/big_constant.hpp b/boost/math/tools/big_constant.hpp index 3895638891..ff136337e1 100644 --- a/boost/math/tools/big_constant.hpp +++ b/boost/math/tools/big_constant.hpp @@ -27,7 +27,7 @@ template <> struct numeric_traits<__float128> { static const int digits = 113; - static const int digits10 = 34; + static const int digits10 = 33; static const int max_exponent = 16384; static const bool is_specialized = true; }; diff --git a/boost/math/tools/config.hpp b/boost/math/tools/config.hpp index 23cba0c9a9..e88f578db7 100644 --- a/boost/math/tools/config.hpp +++ b/boost/math/tools/config.hpp @@ -54,6 +54,14 @@ // Any use of __float128 in program startup code causes a segfault (tested JM 2015, Solaris 11). # define BOOST_MATH_DISABLE_FLOAT128 #endif +#ifdef __HAIKU__ +// +// Not sure what's up with the math detection on Haiku, but linking fails with +// float128 code enabled, and we don't have an implementation of __expl, so +// disabling long double functions for now as well. +# define BOOST_MATH_DISABLE_FLOAT128 +# 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)) && !defined(BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS) // // Darwin's rather strange "double double" is rather hard to |