Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r75095 - in sandbox/big_number: boost/multiprecision libs/multiprecision/test
From: john_at_[hidden]
Date: 2011-10-23 12:03:30


Author: johnmaddock
Date: 2011-10-23 12:03:29 EDT (Sun, 23 Oct 2011)
New Revision: 75095
URL: http://svn.boost.org/trac/boost/changeset/75095

Log:
Enable native atan2 for mpfr.
Text files modified:
   sandbox/big_number/boost/multiprecision/mpfr.hpp | 6 ++++++
   sandbox/big_number/libs/multiprecision/test/test_atan.cpp | 2 +-
   2 files changed, 7 insertions(+), 1 deletions(-)

Modified: sandbox/big_number/boost/multiprecision/mpfr.hpp
==============================================================================
--- sandbox/big_number/boost/multiprecision/mpfr.hpp (original)
+++ sandbox/big_number/boost/multiprecision/mpfr.hpp 2011-10-23 12:03:29 EDT (Sun, 23 Oct 2011)
@@ -716,6 +716,12 @@
 }
 
 template <unsigned Digits10>
+inline void eval_atan2(mpfr_float_backend<Digits10>& result, const mpfr_float_backend<Digits10>& arg1, const mpfr_float_backend<Digits10>& arg2)
+{
+ mpfr_atan2(result.data(), arg1.data(), arg2.data(), GMP_RNDN);
+}
+
+template <unsigned Digits10>
 inline void eval_sinh(mpfr_float_backend<Digits10>& result, const mpfr_float_backend<Digits10>& arg)
 {
    mpfr_sinh(result.data(), arg.data(), GMP_RNDN);

Modified: sandbox/big_number/libs/multiprecision/test/test_atan.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/test_atan.cpp (original)
+++ sandbox/big_number/libs/multiprecision/test/test_atan.cpp 2011-10-23 12:03:29 EDT (Sun, 23 Oct 2011)
@@ -222,7 +222,7 @@
    }
    
    std::cout << "Max error was: " << max_err << std::endl;
- BOOST_TEST(max_err < 40);
+ BOOST_TEST(max_err < 70);
 }
 
 


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