|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r67459 - in sandbox/math_constants: boost/math/constants libs/math/config libs/math/test
From: john_at_[hidden]
Date: 2010-12-26 12:31:33
Author: johnmaddock
Date: 2010-12-26 12:31:29 EST (Sun, 26 Dec 2010)
New Revision: 67459
URL: http://svn.boost.org/trac/boost/changeset/67459
Log:
Add mpreal support.
Text files modified:
sandbox/math_constants/boost/math/constants/generate.hpp | 6 ++++++
sandbox/math_constants/libs/math/config/Jamfile.v2 | 2 ++
sandbox/math_constants/libs/math/test/Jamfile.v2 | 1 +
3 files changed, 9 insertions(+), 0 deletions(-)
Modified: sandbox/math_constants/boost/math/constants/generate.hpp
==============================================================================
--- sandbox/math_constants/boost/math/constants/generate.hpp (original)
+++ sandbox/math_constants/boost/math/constants/generate.hpp 2010-12-26 12:31:29 EST (Sun, 26 Dec 2010)
@@ -14,6 +14,8 @@
#ifdef USE_MPFR
#include <boost/math/bindings/mpfr.hpp>
+#elif defined(USE_MPREAL)
+#include <boost/math/bindings/mpreal.hpp>
#else
#include <boost/math/bindings/rr.hpp>
#endif
@@ -22,6 +24,8 @@
#ifdef USE_MPFR
typedef mpfr_class generator_type;
+#elif defined(USE_MPREAL)
+typedef mpfr::mpreal generator_type;
#else
typedef ntl::RR generator_type;
#endif
@@ -30,6 +34,8 @@
{
#ifdef USE_MPFR
mpfr_class::set_dprec(((200 + 1) * 1000L) / 301L);
+#elif defined(USE_MPREAL)
+ mpfr::mpreal::set_default_prec(((200 + 1) * 1000L) / 301L);
#else
ntl::RR::SetPrecision(((200 + 1) * 1000L) / 301L);
ntl::RR::SetOutputPrecision(102);
Modified: sandbox/math_constants/libs/math/config/Jamfile.v2
==============================================================================
--- sandbox/math_constants/libs/math/config/Jamfile.v2 (original)
+++ sandbox/math_constants/libs/math/config/Jamfile.v2 2010-12-26 12:31:29 EST (Sun, 26 Dec 2010)
@@ -17,6 +17,7 @@
<include>$(gmp_path)/mpfr/win32/release
<include>$(gmp_path)/../mpfr/win32/release
<include>$(gmp_path)/gmpfrxx
+ <include>$(gmp_path)/../gmpfrxx
;
obj has_ntl_rr : has_ntl_rr.cpp : <include>$(ntl-path)/include ;
obj has_gmpxx : has_gmpxx.cpp :
@@ -26,6 +27,7 @@
<include>$(gmp_path)/mpfr/win32/release
<include>$(gmp_path)/../mpfr/win32/release
<include>$(gmp_path)/gmpfrxx
+ <include>$(gmp_path)/../gmpfrxx
;
obj has_gcc_visibility : has_gcc_visibility.cpp :
<toolset>gcc:<cxxflags>-fvisibility=hidden <toolset>gcc:<cxxflags>-Werror ;
Modified: sandbox/math_constants/libs/math/test/Jamfile.v2
==============================================================================
--- sandbox/math_constants/libs/math/test/Jamfile.v2 (original)
+++ sandbox/math_constants/libs/math/test/Jamfile.v2 2010-12-26 12:31:29 EST (Sun, 26 Dec 2010)
@@ -40,6 +40,7 @@
<include>$(gmp_path)/mpfr/win32/release
<include>$(gmp_path)/../mpfr/win32/release
<include>$(gmp_path)/gmpfrxx
+ <include>$(gmp_path)/../gmpfrxx
;
if $(ntl-path)
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