Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r75094 - in sandbox/big_number: boost/multiprecision/detail boost/multiprecision/detail/functions libs/multiprecision/test
From: john_at_[hidden]
Date: 2011-10-23 11:49:29


Author: johnmaddock
Date: 2011-10-23 11:49:27 EDT (Sun, 23 Oct 2011)
New Revision: 75094
URL: http://svn.boost.org/trac/boost/changeset/75094

Log:
Get the tests passing with gcc on Linux.
Text files modified:
   sandbox/big_number/boost/multiprecision/detail/default_ops.hpp | 10 +---------
   sandbox/big_number/boost/multiprecision/detail/functions/pow.hpp | 2 --
   sandbox/big_number/boost/multiprecision/detail/functions/trig.hpp | 8 ++++++++
   sandbox/big_number/libs/multiprecision/test/test.hpp | 3 +++
   4 files changed, 12 insertions(+), 11 deletions(-)

Modified: sandbox/big_number/boost/multiprecision/detail/default_ops.hpp
==============================================================================
--- sandbox/big_number/boost/multiprecision/detail/default_ops.hpp (original)
+++ sandbox/big_number/boost/multiprecision/detail/default_ops.hpp 2011-10-23 11:49:27 EDT (Sun, 23 Oct 2011)
@@ -398,14 +398,6 @@
    }
 }
 
-template <class T, class Arithmetic>
-void eval_atan2(T& result, const T& a, const Arithmetic& b)
-{
- T x;
- x = b;
- eval_atan2(result, a, x);
-}
-
 //
 // These have to implemented by the backend, declared here so that our macro generated code compiles OK.
 //
@@ -971,7 +963,7 @@
 template <class Backend, class Policy>
 inline multiprecision::mp_number<Backend> sinhc_pi(const multiprecision::mp_number<Backend>& x, const Policy&)
 {
- return boost::multiprecision::sinhc_pi(x);
+ return boost::math::sinhc_pi(x);
 }
 
 } // namespace math

Modified: sandbox/big_number/boost/multiprecision/detail/functions/pow.hpp
==============================================================================
--- sandbox/big_number/boost/multiprecision/detail/functions/pow.hpp (original)
+++ sandbox/big_number/boost/multiprecision/detail/functions/pow.hpp 2011-10-23 11:49:27 EDT (Sun, 23 Oct 2011)
@@ -285,8 +285,6 @@
    // implemented as a hypergeometric function, |r| is bounded by
    // ln2 / p2. For small arguments, no scaling is done.
 
- typedef typename mpl::front<typename T::real_types>::type float_type;
-
    const bool b_scale = (xx.compare(float_type(1e-4)) > 0);
 
    // Compute the exponential series of the (possibly) scaled argument.

Modified: sandbox/big_number/boost/multiprecision/detail/functions/trig.hpp
==============================================================================
--- sandbox/big_number/boost/multiprecision/detail/functions/trig.hpp (original)
+++ sandbox/big_number/boost/multiprecision/detail/functions/trig.hpp 2011-10-23 11:49:27 EDT (Sun, 23 Oct 2011)
@@ -731,3 +731,11 @@
    }
 }
 
+template <class T, class Arithmetic>
+typename disable_if<is_same<T, Arithmetic> >::type eval_atan2(T& result, const T& a, const Arithmetic& b)
+{
+ T x;
+ x = b;
+ eval_atan2(result, a, x);
+}
+

Modified: sandbox/big_number/libs/multiprecision/test/test.hpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/test.hpp (original)
+++ sandbox/big_number/libs/multiprecision/test/test.hpp 2011-10-23 11:49:27 EDT (Sun, 23 Oct 2011)
@@ -2,6 +2,9 @@
 #ifndef BOOST_MULTIPRECISION_TEST_HPP
 #define BOOST_MULTIPRECISION_TEST_HPP
 
+#include <limits>
+#include <cmath>
+
 template <class T>
 T relative_error(T a, T b)
 {


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