|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r77037 - in sandbox/big_number: boost/multiprecision libs/multiprecision/doc libs/multiprecision/doc/html libs/multiprecision/doc/html/boost_multiprecision/perf libs/multiprecision/doc/html/boost_multiprecision/tut libs/multiprecision/example libs/multiprecision/performance libs/multiprecision/test libs/multiprecision/test/math
From: john_at_[hidden]
Date: 2012-02-16 04:36:30
Author: johnmaddock
Date: 2012-02-16 04:36:26 EST (Thu, 16 Feb 2012)
New Revision: 77037
URL: http://svn.boost.org/trac/boost/changeset/77037
Log:
Complete renaming of cpp_float to cpp_dec_float.
Rebuild docs.
Added:
sandbox/big_number/libs/multiprecision/example/cpp_dec_float_snips.cpp
- copied, changed from r77032, /sandbox/big_number/libs/multiprecision/example/cpp_float_snips.cpp
Removed:
sandbox/big_number/libs/multiprecision/example/cpp_float_snips.cpp
Text files modified:
sandbox/big_number/boost/multiprecision/cpp_dec_float.hpp | 98 ++++++++++++++++++++--------------------
sandbox/big_number/libs/multiprecision/doc/html/boost_multiprecision/perf/float_performance.html | 18 +++---
sandbox/big_number/libs/multiprecision/doc/html/boost_multiprecision/perf/realworld.html | 4
sandbox/big_number/libs/multiprecision/doc/html/boost_multiprecision/tut/reals.html | 34 ++++++------
sandbox/big_number/libs/multiprecision/doc/html/index.html | 2
sandbox/big_number/libs/multiprecision/doc/multiprecision.qbk | 10 ++--
sandbox/big_number/libs/multiprecision/example/cpp_dec_float_snips.cpp | 6 +-
sandbox/big_number/libs/multiprecision/performance/linpack-benchmark.cpp | 6 +-
sandbox/big_number/libs/multiprecision/performance/performance_test.cpp | 4
sandbox/big_number/libs/multiprecision/performance/sf_performance.cpp | 36 +++++++-------
sandbox/big_number/libs/multiprecision/test/Jamfile.v2 | 38 +++++++-------
sandbox/big_number/libs/multiprecision/test/math/test_beta.cpp | 2
sandbox/big_number/libs/multiprecision/test/mp_number_concept_check.cpp | 6 +-
sandbox/big_number/libs/multiprecision/test/test_acos.cpp | 4
sandbox/big_number/libs/multiprecision/test/test_arithmetic.cpp | 2
sandbox/big_number/libs/multiprecision/test/test_asin.cpp | 4
sandbox/big_number/libs/multiprecision/test/test_atan.cpp | 4
sandbox/big_number/libs/multiprecision/test/test_cos.cpp | 4
sandbox/big_number/libs/multiprecision/test/test_cosh.cpp | 4
sandbox/big_number/libs/multiprecision/test/test_exp.cpp | 4
sandbox/big_number/libs/multiprecision/test/test_float_io.cpp | 8 +-
sandbox/big_number/libs/multiprecision/test/test_fpclassify.cpp | 4
sandbox/big_number/libs/multiprecision/test/test_log.cpp | 4
sandbox/big_number/libs/multiprecision/test/test_numeric_limits.cpp | 4
sandbox/big_number/libs/multiprecision/test/test_pow.cpp | 4
sandbox/big_number/libs/multiprecision/test/test_round.cpp | 4
sandbox/big_number/libs/multiprecision/test/test_sin.cpp | 2
sandbox/big_number/libs/multiprecision/test/test_sinh.cpp | 4
sandbox/big_number/libs/multiprecision/test/test_sqrt.cpp | 4
sandbox/big_number/libs/multiprecision/test/test_tanh.cpp | 4
sandbox/big_number/libs/multiprecision/test/test_test.cpp | 6 +-
31 files changed, 169 insertions(+), 169 deletions(-)
Modified: sandbox/big_number/boost/multiprecision/cpp_dec_float.hpp
==============================================================================
--- sandbox/big_number/boost/multiprecision/cpp_dec_float.hpp (original)
+++ sandbox/big_number/boost/multiprecision/cpp_dec_float.hpp 2012-02-16 04:36:26 EST (Thu, 16 Feb 2012)
@@ -36,29 +36,29 @@
static const boost::int32_t mp_radix = 10;
- static const boost::int32_t cpp_float_digits = Digits10;
+ static const boost::int32_t cpp_dec_float_digits = Digits10;
- static const boost::int32_t cpp_float_digits10_setting = Digits10;
- static const boost::int32_t cpp_float_digits10_limit = boost::integer_traits<boost::int32_t>::const_max;
- static const boost::int32_t cpp_float_digits10 = ((cpp_float_digits10_setting < static_cast<boost::int32_t>(30)) ? static_cast<boost::int32_t>(30) : ((cpp_float_digits10_setting > cpp_float_digits10_limit) ? cpp_float_digits10_limit : cpp_float_digits10_setting));
- static const boost::int32_t cpp_float_digits10_extra = static_cast<boost::int32_t>(((static_cast<boost::int64_t>(cpp_float_digits10) * 15LL) + 50LL) / 100LL);
- static const boost::int32_t cpp_float_max_digits10 = static_cast<boost::int32_t>(cpp_float_digits10 + ((cpp_float_digits10_extra < static_cast<boost::int32_t>(5)) ? static_cast<boost::int32_t>(5) : ((cpp_float_digits10_extra > static_cast<boost::int32_t>(30)) ? static_cast<boost::int32_t>(30) : cpp_float_digits10_extra)));
- static const boost::int64_t cpp_float_max_exp10 = 2776234983093287512;
- static const boost::int64_t cpp_float_min_exp10 = -2776234983093287512;
- static const boost::int64_t cpp_float_max_exp = (cpp_float_max_exp10 / 301LL) * 1000LL;
- static const boost::int64_t cpp_float_min_exp = (cpp_float_min_exp10 / 301LL) * 1000LL;
+ static const boost::int32_t cpp_dec_float_digits10_setting = Digits10;
+ static const boost::int32_t cpp_dec_float_digits10_limit = boost::integer_traits<boost::int32_t>::const_max;
+ static const boost::int32_t cpp_dec_float_digits10 = ((cpp_dec_float_digits10_setting < static_cast<boost::int32_t>(30)) ? static_cast<boost::int32_t>(30) : ((cpp_dec_float_digits10_setting > cpp_dec_float_digits10_limit) ? cpp_dec_float_digits10_limit : cpp_dec_float_digits10_setting));
+ static const boost::int32_t cpp_dec_float_digits10_extra = static_cast<boost::int32_t>(((static_cast<boost::int64_t>(cpp_dec_float_digits10) * 15LL) + 50LL) / 100LL);
+ static const boost::int32_t cpp_dec_float_max_digits10 = static_cast<boost::int32_t>(cpp_dec_float_digits10 + ((cpp_dec_float_digits10_extra < static_cast<boost::int32_t>(5)) ? static_cast<boost::int32_t>(5) : ((cpp_dec_float_digits10_extra > static_cast<boost::int32_t>(30)) ? static_cast<boost::int32_t>(30) : cpp_dec_float_digits10_extra)));
+ static const boost::int64_t cpp_dec_float_max_exp10 = 2776234983093287512;
+ static const boost::int64_t cpp_dec_float_min_exp10 = -2776234983093287512;
+ static const boost::int64_t cpp_dec_float_max_exp = (cpp_dec_float_max_exp10 / 301LL) * 1000LL;
+ static const boost::int64_t cpp_dec_float_min_exp = (cpp_dec_float_min_exp10 / 301LL) * 1000LL;
static const boost::int32_t mp_elem_digits10 = static_cast<boost::int32_t>(8);
- BOOST_STATIC_ASSERT(0 == cpp_float_max_exp10 % mp_elem_digits10);
- BOOST_STATIC_ASSERT(cpp_float_max_exp10 == -cpp_float_min_exp10);
+ BOOST_STATIC_ASSERT(0 == cpp_dec_float_max_exp10 % mp_elem_digits10);
+ BOOST_STATIC_ASSERT(cpp_dec_float_max_exp10 == -cpp_dec_float_min_exp10);
private:
- static const boost::int32_t cpp_float_digits10_num_base = static_cast<boost::int32_t>((cpp_float_max_digits10 / mp_elem_digits10) + (((cpp_float_max_digits10 % mp_elem_digits10) != 0) ? 1 : 0));
- static const boost::int32_t mp_elem_number = static_cast<boost::int32_t>(cpp_float_digits10_num_base + 2);
+ static const boost::int32_t cpp_dec_float_digits10_num_base = static_cast<boost::int32_t>((cpp_dec_float_max_digits10 / mp_elem_digits10) + (((cpp_dec_float_max_digits10 % mp_elem_digits10) != 0) ? 1 : 0));
+ static const boost::int32_t mp_elem_number = static_cast<boost::int32_t>(cpp_dec_float_digits10_num_base + 2);
static const boost::int32_t mp_elem_mask = static_cast<boost::int32_t>(100000000);
public:
- static const boost::int32_t cpp_float_total_digits10 = mp_elem_number * mp_elem_digits10;
+ static const boost::int32_t cpp_dec_float_total_digits10 = mp_elem_number * mp_elem_digits10;
private:
@@ -214,8 +214,8 @@
{
init.do_nothing();
static bool init = false;
- static const std::string str_max = std::string("9." + std::string(static_cast<std::size_t>(cpp_float_max_digits10), static_cast<char>('9')))
- + std::string("e+" + boost::lexical_cast<std::string>(cpp_float_max_exp10));
+ static const std::string str_max = std::string("9." + std::string(static_cast<std::size_t>(cpp_dec_float_max_digits10), static_cast<char>('9')))
+ + std::string("e+" + boost::lexical_cast<std::string>(cpp_dec_float_max_exp10));
static cpp_dec_float val_max;
if(!init)
{
@@ -233,7 +233,7 @@
if(!init)
{
init = true;
- val_min = std::string("1.0e" + boost::lexical_cast<std::string>(cpp_float_min_exp10)).c_str();
+ val_min = std::string("1.0e" + boost::lexical_cast<std::string>(cpp_dec_float_min_exp10)).c_str();
}
return val_min;
}
@@ -433,7 +433,7 @@
cpp_dec_float extract_integer_part (void) const;
void precision(const boost::int32_t prec_digits)
{
- if(prec_digits >= cpp_float_digits10)
+ if(prec_digits >= cpp_dec_float_digits10)
{
prec_elem = mp_elem_number;
}
@@ -524,29 +524,29 @@
template <unsigned Digits10>
const boost::int32_t cpp_dec_float<Digits10>::mp_radix;
template <unsigned Digits10>
-const boost::int32_t cpp_dec_float<Digits10>::cpp_float_digits;
+const boost::int32_t cpp_dec_float<Digits10>::cpp_dec_float_digits;
template <unsigned Digits10>
-const boost::int32_t cpp_dec_float<Digits10>::cpp_float_digits10_setting;
+const boost::int32_t cpp_dec_float<Digits10>::cpp_dec_float_digits10_setting;
template <unsigned Digits10>
-const boost::int32_t cpp_dec_float<Digits10>::cpp_float_digits10_limit;
+const boost::int32_t cpp_dec_float<Digits10>::cpp_dec_float_digits10_limit;
template <unsigned Digits10>
-const boost::int32_t cpp_dec_float<Digits10>::cpp_float_digits10;
+const boost::int32_t cpp_dec_float<Digits10>::cpp_dec_float_digits10;
template <unsigned Digits10>
-const boost::int32_t cpp_dec_float<Digits10>::cpp_float_digits10_extra;
+const boost::int32_t cpp_dec_float<Digits10>::cpp_dec_float_digits10_extra;
template <unsigned Digits10>
-const boost::int32_t cpp_dec_float<Digits10>::cpp_float_max_digits10;
+const boost::int32_t cpp_dec_float<Digits10>::cpp_dec_float_max_digits10;
template <unsigned Digits10>
-const boost::int64_t cpp_dec_float<Digits10>::cpp_float_max_exp;
+const boost::int64_t cpp_dec_float<Digits10>::cpp_dec_float_max_exp;
template <unsigned Digits10>
-const boost::int64_t cpp_dec_float<Digits10>::cpp_float_min_exp;
+const boost::int64_t cpp_dec_float<Digits10>::cpp_dec_float_min_exp;
template <unsigned Digits10>
-const boost::int64_t cpp_dec_float<Digits10>::cpp_float_max_exp10;
+const boost::int64_t cpp_dec_float<Digits10>::cpp_dec_float_max_exp10;
template <unsigned Digits10>
-const boost::int64_t cpp_dec_float<Digits10>::cpp_float_min_exp10;
+const boost::int64_t cpp_dec_float<Digits10>::cpp_dec_float_min_exp10;
template <unsigned Digits10>
const boost::int32_t cpp_dec_float<Digits10>::mp_elem_digits10;
template <unsigned Digits10>
-const boost::int32_t cpp_dec_float<Digits10>::cpp_float_digits10_num_base;
+const boost::int32_t cpp_dec_float<Digits10>::cpp_dec_float_digits10_num_base;
template <unsigned Digits10>
const boost::int32_t cpp_dec_float<Digits10>::mp_elem_number;
template <unsigned Digits10>
@@ -744,8 +744,8 @@
return *this = zero();
}
- bool overflow = exp >= cpp_float_max_exp10;
- if(exp == cpp_float_max_exp10)
+ bool overflow = exp >= cpp_dec_float_max_exp10;
+ if(exp == cpp_dec_float_max_exp10)
{
// Check to see if we really truely have an overflow or not...
if(isneg())
@@ -831,7 +831,7 @@
const boost::int64_t v_exp = ((!v_exp_is_neg) ? v.exp : static_cast<boost::int64_t>(-v.exp));
// Check the range of the upcoming multiplication.
- const bool b_result_is_out_of_range = (v_exp >= static_cast<boost::int64_t>(cpp_float_max_exp10 - u_exp));
+ const bool b_result_is_out_of_range = (v_exp >= static_cast<boost::int64_t>(cpp_dec_float_max_exp10 - u_exp));
if(b_result_is_out_of_range)
{
@@ -975,8 +975,8 @@
data.front() = static_cast<boost::uint32_t>(carry);
}
- bool overflow = exp >= cpp_float_max_exp10;
- if(exp == cpp_float_max_exp10)
+ bool overflow = exp >= cpp_dec_float_max_exp10;
+ if(exp == cpp_dec_float_max_exp10)
{
// Check to see if we really truely have an overflow or not...
if(isneg())
@@ -1147,7 +1147,7 @@
static const boost::int32_t double_digits10_minus_one = std::numeric_limits<double>::digits10 - 1;
- for(boost::int32_t digits = double_digits10_minus_one; digits <= cpp_float_max_digits10; digits *= static_cast<boost::int32_t>(2))
+ for(boost::int32_t digits = double_digits10_minus_one; digits <= cpp_dec_float_max_digits10; digits *= static_cast<boost::int32_t>(2))
{
// Adjust precision of the terms.
precision(static_cast<boost::int32_t>(digits * static_cast<boost::int32_t>(2)));
@@ -1222,7 +1222,7 @@
static const boost::uint32_t double_digits10_minus_one = std::numeric_limits<double>::digits10 - 1;
- for(boost::int32_t digits = double_digits10_minus_one; digits <= cpp_float_max_digits10; digits *= 2u)
+ for(boost::int32_t digits = double_digits10_minus_one; digits <= cpp_dec_float_max_digits10; digits *= 2u)
{
// Adjust precision of the terms.
precision(digits * 2);
@@ -1668,7 +1668,7 @@
boost::intmax_t org_digits(number_of_digits);
boost::int64_t my_exp = order();
if(number_of_digits == 0)
- number_of_digits = cpp_float_max_digits10;
+ number_of_digits = cpp_dec_float_max_digits10;
if(f & std::ios_base::fixed)
{
number_of_digits += my_exp + 1;
@@ -2025,7 +2025,7 @@
}
// Check for overflow...
- if(exp > cpp_float_max_exp10)
+ if(exp > cpp_dec_float_max_exp10)
{
const bool b_result_is_neg = neg;
@@ -2035,9 +2035,9 @@
}
// ...and check for underflow.
- if(exp <= cpp_float_min_exp10)
+ if(exp <= cpp_dec_float_min_exp10)
{
- if(exp == cpp_float_min_exp10)
+ if(exp == cpp_dec_float_min_exp10)
{
// Check for identity with the minimum value.
cpp_dec_float<Digits10> test = *this;
@@ -2810,8 +2810,8 @@
}
-typedef mp_number<cpp_dec_float<50> > cpp_float_50;
-typedef mp_number<cpp_dec_float<100> > cpp_float_100;
+typedef mp_number<cpp_dec_float<50> > cpp_dec_float_50;
+typedef mp_number<cpp_dec_float<100> > cpp_dec_float_100;
}}
@@ -2829,12 +2829,12 @@
static const bool is_modulo = false;
static const bool is_iec559 = false;
static const int digits = Digits10;
- static const int digits10 = boost::multiprecision::cpp_dec_float<Digits10>::cpp_float_digits10;
- static const int max_digits10 = boost::multiprecision::cpp_dec_float<Digits10>::cpp_float_max_digits10;
- static const boost::int64_t min_exponent = boost::multiprecision::cpp_dec_float<Digits10>::cpp_float_min_exp; // Type differs from int.
- static const boost::int64_t min_exponent10 = boost::multiprecision::cpp_dec_float<Digits10>::cpp_float_min_exp10; // Type differs from int.
- static const boost::int64_t max_exponent = boost::multiprecision::cpp_dec_float<Digits10>::cpp_float_max_exp; // Type differs from int.
- static const boost::int64_t max_exponent10 = boost::multiprecision::cpp_dec_float<Digits10>::cpp_float_max_exp10; // Type differs from int.
+ static const int digits10 = boost::multiprecision::cpp_dec_float<Digits10>::cpp_dec_float_digits10;
+ static const int max_digits10 = boost::multiprecision::cpp_dec_float<Digits10>::cpp_dec_float_max_digits10;
+ static const boost::int64_t min_exponent = boost::multiprecision::cpp_dec_float<Digits10>::cpp_dec_float_min_exp; // Type differs from int.
+ static const boost::int64_t min_exponent10 = boost::multiprecision::cpp_dec_float<Digits10>::cpp_dec_float_min_exp10; // Type differs from int.
+ static const boost::int64_t max_exponent = boost::multiprecision::cpp_dec_float<Digits10>::cpp_dec_float_max_exp; // Type differs from int.
+ static const boost::int64_t max_exponent10 = boost::multiprecision::cpp_dec_float<Digits10>::cpp_dec_float_max_exp10; // Type differs from int.
static const int radix = boost::multiprecision::cpp_dec_float<Digits10>::mp_radix;
static const std::float_round_style round_style = std::round_to_nearest;
static const bool has_infinity = true;
Modified: sandbox/big_number/libs/multiprecision/doc/html/boost_multiprecision/perf/float_performance.html
==============================================================================
--- sandbox/big_number/libs/multiprecision/doc/html/boost_multiprecision/perf/float_performance.html (original)
+++ sandbox/big_number/libs/multiprecision/doc/html/boost_multiprecision/perf/float_performance.html 2012-02-16 04:36:26 EST (Thu, 16 Feb 2012)
@@ -67,7 +67,7 @@
<tr>
<td>
<p>
- cpp_float
+ cpp_dec_float
</p>
</td>
<td>
@@ -168,7 +168,7 @@
<tr>
<td>
<p>
- cpp_float
+ cpp_dec_float
</p>
</td>
<td>
@@ -269,7 +269,7 @@
<tr>
<td>
<p>
- cpp_float
+ cpp_dec_float
</p>
</td>
<td>
@@ -370,7 +370,7 @@
<tr>
<td>
<p>
- cpp_float
+ cpp_dec_float
</p>
</td>
<td>
@@ -471,7 +471,7 @@
<tr>
<td>
<p>
- cpp_float
+ cpp_dec_float
</p>
</td>
<td>
@@ -572,7 +572,7 @@
<tr>
<td>
<p>
- cpp_float
+ cpp_dec_float
</p>
</td>
<td>
@@ -673,7 +673,7 @@
<tr>
<td>
<p>
- cpp_float
+ cpp_dec_float
</p>
</td>
<td>
@@ -774,7 +774,7 @@
<tr>
<td>
<p>
- cpp_float
+ cpp_dec_float
</p>
</td>
<td>
@@ -875,7 +875,7 @@
<tr>
<td>
<p>
- cpp_float
+ cpp_dec_float
</p>
</td>
<td>
Modified: sandbox/big_number/libs/multiprecision/doc/html/boost_multiprecision/perf/realworld.html
==============================================================================
--- sandbox/big_number/libs/multiprecision/doc/html/boost_multiprecision/perf/realworld.html (original)
+++ sandbox/big_number/libs/multiprecision/doc/html/boost_multiprecision/perf/realworld.html 2012-02-16 04:36:26 EST (Thu, 16 Feb 2012)
@@ -94,7 +94,7 @@
<tr>
<td>
<p>
- cpp_float
+ cpp_dec_float
</p>
</td>
<td>
@@ -208,7 +208,7 @@
<tr>
<td>
<p>
- cpp_float
+ cpp_dec_float
</p>
</td>
<td>
Modified: sandbox/big_number/libs/multiprecision/doc/html/boost_multiprecision/tut/reals.html
==============================================================================
--- sandbox/big_number/libs/multiprecision/doc/html/boost_multiprecision/tut/reals.html (original)
+++ sandbox/big_number/libs/multiprecision/doc/html/boost_multiprecision/tut/reals.html 2012-02-16 04:36:26 EST (Thu, 16 Feb 2012)
@@ -132,12 +132,12 @@
<tr>
<td>
<p>
- <code class="computeroutput"><span class="identifier">cpp_float</span><span class="special"><</span><span class="identifier">N</span><span class="special">></span></code>
+ <code class="computeroutput"><span class="identifier">cpp_dec_float</span><span class="special"><</span><span class="identifier">N</span><span class="special">></span></code>
</p>
</td>
<td>
<p>
- boost/multiprecision/cpp_float.hpp
+ boost/multiprecision/cpp_dec_float.hpp
</p>
</td>
<td>
@@ -418,30 +418,30 @@
</p>
<h5>
<a name="boost_multiprecision.tut.reals.h4"></a>
- <span><a name="boost_multiprecision.tut.reals.cpp_float"></a></span><a class="link" href="reals.html#boost_multiprecision.tut.reals.cpp_float">cpp_float</a>
+ <span><a name="boost_multiprecision.tut.reals.cpp_dec_float"></a></span><a class="link" href="reals.html#boost_multiprecision.tut.reals.cpp_dec_float">cpp_dec_float</a>
</h5>
<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">multiprecision</span><span class="special">{</span>
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">unsigned</span> <span class="identifier">Digits10</span><span class="special">></span>
-<span class="keyword">class</span> <span class="identifier">cpp_float</span><span class="special">;</span>
+<span class="keyword">class</span> <span class="identifier">cpp_dec_float</span><span class="special">;</span>
-<span class="keyword">typedef</span> <span class="identifier">mp_number</span><span class="special"><</span><span class="identifier">cpp_float</span><span class="special"><</span><span class="number">50</span><span class="special">></span> <span class="special">></span> <span class="identifier">cpp_float_50</span><span class="special">;</span>
-<span class="keyword">typedef</span> <span class="identifier">mp_number</span><span class="special"><</span><span class="identifier">cpp_float</span><span class="special"><</span><span class="number">100</span><span class="special">></span> <span class="special">></span> <span class="identifier">cpp_float_100</span><span class="special">;</span>
+<span class="keyword">typedef</span> <span class="identifier">mp_number</span><span class="special"><</span><span class="identifier">cpp_dec_float</span><span class="special"><</span><span class="number">50</span><span class="special">></span> <span class="special">></span> <span class="identifier">cpp_dec_float_50</span><span class="special">;</span>
+<span class="keyword">typedef</span> <span class="identifier">mp_number</span><span class="special"><</span><span class="identifier">cpp_dec_float</span><span class="special"><</span><span class="number">100</span><span class="special">></span> <span class="special">></span> <span class="identifier">cpp_dec_float_100</span><span class="special">;</span>
<span class="special">}}</span> <span class="comment">// namespaces</span>
</pre>
<p>
- The <code class="computeroutput"><span class="identifier">cpp_float</span></code> backend is
- used in conjunction with <code class="computeroutput"><span class="identifier">mp_number</span></code>:
+ The <code class="computeroutput"><span class="identifier">cpp_dec_float</span></code> backend
+ is used in conjunction with <code class="computeroutput"><span class="identifier">mp_number</span></code>:
It acts as an entirely C++ (header only and dependency free) real-number
type that is a drop-in replacement for the native C++ floating-point types,
but with much greater precision.
</p>
<p>
- Type <code class="computeroutput"><span class="identifier">cpp_float</span></code> can be used
- at fixed precision by specifying a non-zero <code class="computeroutput"><span class="identifier">Digits10</span></code>
- template parameter. The typedefs cpp_float_50 and cpp_float_100 provide arithmetic
- types at 50 and 100 decimal digits precision respectively.
+ Type <code class="computeroutput"><span class="identifier">cpp_dec_float</span></code> can be
+ used at fixed precision by specifying a non-zero <code class="computeroutput"><span class="identifier">Digits10</span></code>
+ template parameter. The typedefs cpp_dec_float_50 and cpp_dec_float_100 provide
+ arithmetic types at 50 and 100 decimal digits precision respectively.
</p>
<p>
There is full standard library and <code class="computeroutput"><span class="identifier">numeric_limits</span></code>
@@ -452,7 +452,7 @@
</p>
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem">
- Default constructed <code class="computeroutput"><span class="identifier">cpp_float</span></code>'s
+ Default constructed <code class="computeroutput"><span class="identifier">cpp_dec_float</span></code>'s
have a value of zero.
</li>
<li class="listitem">
@@ -472,18 +472,18 @@
</ul></div>
<h6>
<a name="boost_multiprecision.tut.reals.h5"></a>
- <span><a name="boost_multiprecision.tut.reals.cpp_float_example_"></a></span><a class="link" href="reals.html#boost_multiprecision.tut.reals.cpp_float_example_">cpp_float
+ <span><a name="boost_multiprecision.tut.reals.cpp_dec_float_example_"></a></span><a class="link" href="reals.html#boost_multiprecision.tut.reals.cpp_dec_float_example_">cpp_dec_float
example:</a>
</h6>
<p>
</p>
-<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">multiprecision</span><span class="special">/</span><span class="identifier">cpp_float</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">multiprecision</span><span class="special">/</span><span class="identifier">cpp_dec_float</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
<span class="keyword">using</span> <span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">multiprecision</span><span class="special">;</span>
<span class="comment">// Operations at fixed precision and full numeric_limits support:</span>
-<span class="identifier">cpp_float_100</span> <span class="identifier">b</span> <span class="special">=</span> <span class="number">2</span><span class="special">;</span>
-<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">numeric_limits</span><span class="special"><</span><span class="identifier">cpp_float_100</span><span class="special">>::</span><span class="identifier">digits</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
+<span class="identifier">cpp_dec_float_100</span> <span class="identifier">b</span> <span class="special">=</span> <span class="number">2</span><span class="special">;</span>
+<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">numeric_limits</span><span class="special"><</span><span class="identifier">cpp_dec_float_100</span><span class="special">>::</span><span class="identifier">digits</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">log</span><span class="special">(</span><span class="identifier">b</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span> <span class="comment">// print log(2)</span>
</pre>
<p>
Modified: sandbox/big_number/libs/multiprecision/doc/html/index.html
==============================================================================
--- sandbox/big_number/libs/multiprecision/doc/html/index.html (original)
+++ sandbox/big_number/libs/multiprecision/doc/html/index.html 2012-02-16 04:36:26 EST (Thu, 16 Feb 2012)
@@ -56,7 +56,7 @@
</div>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
-<td align="left"><p><small>Last revised: January 23, 2012 at 18:58:32 GMT</small></p></td>
+<td align="left"><p><small>Last revised: February 15, 2012 at 18:08:37 GMT</small></p></td>
<td align="right"><div class="copyright-footer"></div></td>
</tr></table>
<hr>
Modified: sandbox/big_number/libs/multiprecision/doc/multiprecision.qbk
==============================================================================
--- sandbox/big_number/libs/multiprecision/doc/multiprecision.qbk (original)
+++ sandbox/big_number/libs/multiprecision/doc/multiprecision.qbk 2012-02-16 04:36:26 EST (Thu, 16 Feb 2012)
@@ -20,7 +20,7 @@
[import ../example/gmp_snips.cpp]
[import ../example/mpfr_snips.cpp]
-[import ../example/cpp_float_snips.cpp]
+[import ../example/cpp_dec_float_snips.cpp]
[import ../example/tommath_snips.cpp]
[import ../example/fixed_int_snips.cpp]
@@ -434,8 +434,8 @@
template <unsigned Digits10>
class cpp_dec_float;
- typedef mp_number<cpp_dec_float<50> > cpp_float_50;
- typedef mp_number<cpp_dec_float<100> > cpp_float_100;
+ typedef mp_number<cpp_dec_float<50> > cpp_dec_float_50;
+ typedef mp_number<cpp_dec_float<100> > cpp_dec_float_100;
}} // namespaces
@@ -444,7 +444,7 @@
much greater precision.
Type `cpp_dec_float` can be used at fixed precision by specifying a non-zero `Digits10` template parameter.
-The typedefs cpp_float_50 and cpp_float_100 provide arithmetic types at 50 and 100 decimal digits precision
+The typedefs cpp_dec_float_50 and cpp_dec_float_100 provide arithmetic types at 50 and 100 decimal digits precision
respectively.
There is full standard library and `numeric_limits` support available for this type.
@@ -460,7 +460,7 @@
[h5 cpp_dec_float example:]
-[cpp_float_eg]
+[cpp_dec_float_eg]
[endsect]
Copied: sandbox/big_number/libs/multiprecision/example/cpp_dec_float_snips.cpp (from r77032, /sandbox/big_number/libs/multiprecision/example/cpp_float_snips.cpp)
==============================================================================
--- /sandbox/big_number/libs/multiprecision/example/cpp_float_snips.cpp (original)
+++ sandbox/big_number/libs/multiprecision/example/cpp_dec_float_snips.cpp 2012-02-16 04:36:26 EST (Thu, 16 Feb 2012)
@@ -8,14 +8,14 @@
void t1()
{
- //[cpp_float_eg
+ //[cpp_dec_float_eg
//=#include <boost/multiprecision/cpp_dec_float.hpp>
using namespace boost::multiprecision;
// Operations at fixed precision and full numeric_limits support:
- cpp_float_100 b = 2;
- std::cout << std::numeric_limits<cpp_float_100>::digits << std::endl;
+ cpp_dec_float_100 b = 2;
+ std::cout << std::numeric_limits<cpp_dec_float_100>::digits << std::endl;
std::cout << log(b) << std::endl; // print log(2)
//]
}
Deleted: sandbox/big_number/libs/multiprecision/example/cpp_float_snips.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/example/cpp_float_snips.cpp 2012-02-16 04:36:26 EST (Thu, 16 Feb 2012)
+++ (empty file)
@@ -1,28 +0,0 @@
-///////////////////////////////////////////////////////////////
-// Copyright 2011 John Maddock. Distributed under the Boost
-// Software License, Version 1.0. (See accompanying file
-// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_
-
-#include <boost/multiprecision/cpp_dec_float.hpp>
-#include <iostream>
-
-void t1()
-{
- //[cpp_float_eg
- //=#include <boost/multiprecision/cpp_dec_float.hpp>
-
- using namespace boost::multiprecision;
-
- // Operations at fixed precision and full numeric_limits support:
- cpp_float_100 b = 2;
- std::cout << std::numeric_limits<cpp_float_100>::digits << std::endl;
- std::cout << log(b) << std::endl; // print log(2)
- //]
-}
-
-int main()
-{
- t1();
- return 0;
-}
-
Modified: sandbox/big_number/libs/multiprecision/performance/linpack-benchmark.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/performance/linpack-benchmark.cpp (original)
+++ sandbox/big_number/libs/multiprecision/performance/linpack-benchmark.cpp 2012-02-16 04:36:26 EST (Thu, 16 Feb 2012)
@@ -27,7 +27,7 @@
typedef mpfr_class real_type;
#elif defined(TEST_CPP_DEC_FLOAT)
#include <boost/multiprecision/cpp_dec_float.hpp>
-typedef boost::multiprecision::cpp_float_50 real_type;
+typedef boost::multiprecision::cpp_dec_float_50 real_type;
#elif defined(TEST_MPFR_50)
#include <boost/multiprecision/mpfr.hpp>
typedef boost::multiprecision::mpfr_float_50 real_type;
@@ -912,7 +912,7 @@
#if defined(TEST_MPF_100) || defined(TEST_MPFR_100) || defined(TEST_GMPXX) || defined(TEST_MPFRXX)
return std::ldexp(1.0, 1 - ((100 + 1) * 1000L) / 301L);
#elif defined(TEST_CPP_DEC_FLOAT_BN)
- return std::pow(10.0, 1-std::numeric_limits<efx::cpp_float_50>::digits10);
+ return std::pow(10.0, 1-std::numeric_limits<efx::cpp_dec_float_50>::digits10);
#else
return CAST_TO_RT(std::numeric_limits<real_type>::epsilon());
#endif
@@ -1234,7 +1234,7 @@
times for array with leading dimension of1001
279.96 0.84 280.8 2.3813 0.83988 5014.3
-boost::multiprecision::ef::cpp_float_50:
+boost::multiprecision::ef::cpp_dec_float_50:
~~~~~~~~~~~~~~~~~~~~~~~~~
norm. resid resid machep x(1) x(n)
Modified: sandbox/big_number/libs/multiprecision/performance/performance_test.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/performance/performance_test.cpp (original)
+++ sandbox/big_number/libs/multiprecision/performance/performance_test.cpp 2012-02-16 04:36:26 EST (Thu, 16 Feb 2012)
@@ -609,8 +609,8 @@
test<boost::multiprecision::mp_number<boost::multiprecision::fixed_int<1024, true> > >("fixed_int", 1024);
#endif
#ifdef TEST_CPP_DEC_FLOAT
- test<boost::multiprecision::cpp_float_50>("cpp_dec_float", 50);
- test<boost::multiprecision::cpp_float_100>("cpp_dec_float", 100);
+ test<boost::multiprecision::cpp_dec_float_50>("cpp_dec_float", 50);
+ test<boost::multiprecision::cpp_dec_float_100>("cpp_dec_float", 100);
test<boost::multiprecision::mp_number<boost::multiprecision::cpp_dec_float<500> > >("cpp_dec_float", 500);
#endif
#ifdef TEST_MPFR
Modified: sandbox/big_number/libs/multiprecision/performance/sf_performance.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/performance/sf_performance.cpp (original)
+++ sandbox/big_number/libs/multiprecision/performance/sf_performance.cpp 2012-02-16 04:36:26 EST (Thu, 16 Feb 2012)
@@ -233,10 +233,10 @@
#endif
#ifdef TEST_CPP_DEC_FLOAT
c.reset();
- test_bessel<boost::multiprecision::cpp_float_50>();
+ test_bessel<boost::multiprecision::cpp_dec_float_50>();
time = c.elapsed();
- std::cout << "Time for cpp_float_50 = " << time << std::endl;
- std::cout << "Total allocations for cpp_float_50 = " << allocation_count << std::endl;
+ std::cout << "Time for cpp_dec_float_50 = " << time << std::endl;
+ std::cout << "Total allocations for cpp_dec_float_50 = " << allocation_count << std::endl;
allocation_count = 0;
#endif
#ifdef TEST_MPFR_CLASS
@@ -282,10 +282,10 @@
#endif
#ifdef TEST_CPP_DEC_FLOAT
c.reset();
- test_bessel<boost::multiprecision::cpp_float_100>();
+ test_bessel<boost::multiprecision::cpp_dec_float_100>();
time = c.elapsed();
- std::cout << "Time for cpp_float_100 = " << time << std::endl;
- std::cout << "Total allocations for cpp_float_100 = " << allocation_count << std::endl;
+ std::cout << "Time for cpp_dec_float_100 = " << time << std::endl;
+ std::cout << "Total allocations for cpp_dec_float_100 = " << allocation_count << std::endl;
allocation_count = 0;
#endif
#ifdef TEST_MPFR_CLASS
@@ -334,10 +334,10 @@
#endif
#ifdef TEST_CPP_DEC_FLOAT
c.reset();
- test_polynomial<boost::multiprecision::cpp_float_50>();
+ test_polynomial<boost::multiprecision::cpp_dec_float_50>();
time = c.elapsed();
- std::cout << "Time for cpp_float_50 = " << time << std::endl;
- std::cout << "Total allocations for cpp_float_50 = " << allocation_count << std::endl;
+ std::cout << "Time for cpp_dec_float_50 = " << time << std::endl;
+ std::cout << "Total allocations for cpp_dec_float_50 = " << allocation_count << std::endl;
allocation_count = 0;
#endif
#ifdef TEST_MPFR_CLASS
@@ -383,10 +383,10 @@
#endif
#ifdef TEST_CPP_DEC_FLOAT
c.reset();
- test_polynomial<boost::multiprecision::cpp_float_100>();
+ test_polynomial<boost::multiprecision::cpp_dec_float_100>();
time = c.elapsed();
- std::cout << "Time for cpp_float_100 = " << time << std::endl;
- std::cout << "Total allocations for cpp_float_100 = " << allocation_count << std::endl;
+ std::cout << "Time for cpp_dec_float_100 = " << time << std::endl;
+ std::cout << "Total allocations for cpp_dec_float_100 = " << allocation_count << std::endl;
allocation_count = 0;
#endif
#ifdef TEST_MPFR_CLASS
@@ -434,10 +434,10 @@
#endif
#ifdef TEST_CPP_DEC_FLOAT
c.reset();
- test_nct<boost::multiprecision::cpp_float_50>();
+ test_nct<boost::multiprecision::cpp_dec_float_50>();
time = c.elapsed();
- std::cout << "Time for cpp_float_50 = " << time << std::endl;
- std::cout << "Total allocations for cpp_float_50 = " << allocation_count << std::endl;
+ std::cout << "Time for cpp_dec_float_50 = " << time << std::endl;
+ std::cout << "Total allocations for cpp_dec_float_50 = " << allocation_count << std::endl;
allocation_count = 0;
#endif
#ifdef TEST_MPFR_CLASS
@@ -483,10 +483,10 @@
#endif
#ifdef TEST_CPP_DEC_FLOAT
c.reset();
- test_nct<boost::multiprecision::cpp_float_100>();
+ test_nct<boost::multiprecision::cpp_dec_float_100>();
time = c.elapsed();
- std::cout << "Time for cpp_float_100 = " << time << std::endl;
- std::cout << "Total allocations for cpp_float_100 = " << allocation_count << std::endl;
+ std::cout << "Time for cpp_dec_float_100 = " << time << std::endl;
+ std::cout << "Total allocations for cpp_dec_float_100 = " << allocation_count << std::endl;
allocation_count = 0;
#endif
#ifdef TEST_MPFR_CLASS
Modified: sandbox/big_number/libs/multiprecision/test/Jamfile.v2
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/Jamfile.v2 (original)
+++ sandbox/big_number/libs/multiprecision/test/Jamfile.v2 2012-02-16 04:36:26 EST (Thu, 16 Feb 2012)
@@ -54,7 +54,7 @@
: # input files
: # requirements
<define>TEST_CPP_DEC_FLOAT
- : test_arithmetic_cpp_float ;
+ : test_arithmetic_cpp_dec_float ;
run test_arithmetic.cpp gmp
: # command line
@@ -203,7 +203,7 @@
: # requirements
<define>TEST_CPP_DEC_FLOAT
[ check-target-builds ../config//has_mpfr : : <build>no ]
- : test_numeric_limits_cpp_float ;
+ : test_numeric_limits_cpp_dec_float ;
run test_numeric_limits.cpp $(TOMMATH)
: # command line
@@ -314,49 +314,49 @@
: # input files
: # requirements
<define>TEST_CPP_DEC_FLOAT
- : test_exp_cpp_float ;
+ : test_exp_cpp_dec_float ;
run test_log.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_DEC_FLOAT
- : test_log_cpp_float ;
+ : test_log_cpp_dec_float ;
run test_pow.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_DEC_FLOAT
- : test_pow_cpp_float ;
+ : test_pow_cpp_dec_float ;
run test_sinh.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_DEC_FLOAT
- : test_sinh_cpp_float ;
+ : test_sinh_cpp_dec_float ;
run test_cosh.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_DEC_FLOAT
- : test_cosh_cpp_float ;
+ : test_cosh_cpp_dec_float ;
run test_tanh.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_DEC_FLOAT
- : test_tanh_cpp_float ;
+ : test_tanh_cpp_dec_float ;
run test_sin.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_DEC_FLOAT
- : test_sin_cpp_float ;
+ : test_sin_cpp_dec_float ;
run test_sin.cpp gmp
: # command line
@@ -379,7 +379,7 @@
: # input files
: # requirements
<define>TEST_CPP_DEC_FLOAT
- : test_cos_cpp_float ;
+ : test_cos_cpp_dec_float ;
run test_cos.cpp gmp
: # command line
@@ -402,7 +402,7 @@
: # input files
: # requirements
<define>TEST_CPP_DEC_FLOAT
- : test_asin_cpp_float ;
+ : test_asin_cpp_dec_float ;
run test_asin.cpp gmp
: # command line
@@ -425,7 +425,7 @@
: # input files
: # requirements
<define>TEST_CPP_DEC_FLOAT
- : test_acos_cpp_float ;
+ : test_acos_cpp_dec_float ;
run test_acos.cpp gmp
: # command line
@@ -456,7 +456,7 @@
: # input files
: # requirements
<define>TEST_CPP_DEC_FLOAT
- : test_atan_cpp_float ;
+ : test_atan_cpp_dec_float ;
run test_atan.cpp mpfr
: # command line
@@ -507,7 +507,7 @@
: # requirements
<define>TEST_CPP_DEC_FLOAT
[ check-target-builds ../config//has_mpfr : : <build>no ]
- : test_round_cpp_float ;
+ : test_round_cpp_dec_float ;
run test_fpclassify.cpp
: # command line
@@ -537,7 +537,7 @@
: # input files
: # requirements
<define>TEST_CPP_DEC_FLOAT
- : test_fpclassify_cpp_float ;
+ : test_fpclassify_cpp_dec_float ;
run test_test.cpp ;
@@ -547,7 +547,7 @@
: # input files
: # requirements
<define>TEST_CPP_DEC_FLOAT
- : test_float_io_cpp_float ;
+ : test_float_io_cpp_dec_float ;
run test_float_io.cpp gmp
: # command line
@@ -631,7 +631,7 @@
: # requirements
[ check-target-builds ../config//has_mpfr : : <build>no ] ;
-run ../example/cpp_float_snips.cpp ;
+run ../example/cpp_dec_float_snips.cpp ;
run ../example/tommath_snips.cpp $(TOMMATH)
: # command line
@@ -676,7 +676,7 @@
<optimization>speed
<toolset>msvc:<cxxflags>-bigobj
release
- : $(source:B)_cpp_float ;
+ : $(source:B)_cpp_dec_float ;
}
}
@@ -735,7 +735,7 @@
: # input files
: # requirements
<define>TEST_CPP_DEC_FLOAT
- : mp_number_concept_check_cpp_float ;
+ : mp_number_concept_check_cpp_dec_float ;
run mp_number_concept_check.cpp
: # command line
Modified: sandbox/big_number/libs/multiprecision/test/math/test_beta.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/math/test_beta.cpp (original)
+++ sandbox/big_number/libs/multiprecision/test/math/test_beta.cpp 2012-02-16 04:36:26 EST (Thu, 16 Feb 2012)
@@ -58,7 +58,7 @@
".*", // platform
".*gmp.*", // test type(s)
"Beta Function: Medium.*", // test data group
- "boost::math::beta", 2200, 1000); // test function
+ "boost::math::beta", 2300, 1000); // test function
add_expected_result(
".*", // compiler
".*", // stdlib
Modified: sandbox/big_number/libs/multiprecision/test/mp_number_concept_check.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/mp_number_concept_check.cpp (original)
+++ sandbox/big_number/libs/multiprecision/test/mp_number_concept_check.cpp 2012-02-16 04:36:26 EST (Thu, 16 Feb 2012)
@@ -4,7 +4,7 @@
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
-// This tests two things: that cpp_float_50 meets our
+// This tests two things: that cpp_dec_float_50 meets our
// conceptual requirements, and that we can instantiate
// all our distributions and special functions on this type.
//
@@ -82,7 +82,7 @@
instantiate(boost::multiprecision::mp_number<boost::multiprecision::mpfr_float_backend<30> >());
#endif
#ifdef TEST_CPP_DEC_FLOAT
- instantiate(boost::multiprecision::cpp_float_50());
+ instantiate(boost::multiprecision::cpp_dec_float_50());
#endif
}
@@ -113,7 +113,7 @@
BOOST_CONCEPT_ASSERT((boost::math::concepts::RealTypeConcept<boost::multiprecision::mpfr_float_50>));
#endif
#ifdef TEST_CPP_DEC_FLOAT
- BOOST_CONCEPT_ASSERT((boost::math::concepts::RealTypeConcept<boost::multiprecision::cpp_float_50>));
+ BOOST_CONCEPT_ASSERT((boost::math::concepts::RealTypeConcept<boost::multiprecision::cpp_dec_float_50>));
#endif
}
Modified: sandbox/big_number/libs/multiprecision/test/test_acos.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/test_acos.cpp (original)
+++ sandbox/big_number/libs/multiprecision/test/test_acos.cpp 2012-02-16 04:36:26 EST (Thu, 16 Feb 2012)
@@ -100,8 +100,8 @@
test<boost::multiprecision::mpfr_float_100>();
#endif
#ifdef TEST_CPP_DEC_FLOAT
- test<boost::multiprecision::cpp_float_50>();
- test<boost::multiprecision::cpp_float_100>();
+ test<boost::multiprecision::cpp_dec_float_50>();
+ test<boost::multiprecision::cpp_dec_float_100>();
#endif
return boost::report_errors();
}
Modified: sandbox/big_number/libs/multiprecision/test/test_arithmetic.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/test_arithmetic.cpp (original)
+++ sandbox/big_number/libs/multiprecision/test/test_arithmetic.cpp 2012-02-16 04:36:26 EST (Thu, 16 Feb 2012)
@@ -1003,7 +1003,7 @@
test<boost::multiprecision::mpq_rational>();
#endif
#ifdef TEST_CPP_DEC_FLOAT
- test<boost::multiprecision::cpp_float_50>();
+ test<boost::multiprecision::cpp_dec_float_50>();
#endif
#ifdef TEST_MPFR
test<boost::multiprecision::mpfr_float>();
Modified: sandbox/big_number/libs/multiprecision/test/test_asin.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/test_asin.cpp (original)
+++ sandbox/big_number/libs/multiprecision/test/test_asin.cpp 2012-02-16 04:36:26 EST (Thu, 16 Feb 2012)
@@ -96,8 +96,8 @@
test<boost::multiprecision::mpfr_float_100>();
#endif
#ifdef TEST_CPP_DEC_FLOAT
- test<boost::multiprecision::cpp_float_50>();
- test<boost::multiprecision::cpp_float_100>();
+ test<boost::multiprecision::cpp_dec_float_50>();
+ test<boost::multiprecision::cpp_dec_float_100>();
#endif
return boost::report_errors();
}
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 2012-02-16 04:36:26 EST (Thu, 16 Feb 2012)
@@ -242,8 +242,8 @@
test<boost::multiprecision::mpfr_float_100>();
#endif
#ifdef TEST_CPP_DEC_FLOAT
- test<boost::multiprecision::cpp_float_50>();
- test<boost::multiprecision::cpp_float_100>();
+ test<boost::multiprecision::cpp_dec_float_50>();
+ test<boost::multiprecision::cpp_dec_float_100>();
#endif
return boost::report_errors();
}
Modified: sandbox/big_number/libs/multiprecision/test/test_cos.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/test_cos.cpp (original)
+++ sandbox/big_number/libs/multiprecision/test/test_cos.cpp 2012-02-16 04:36:26 EST (Thu, 16 Feb 2012)
@@ -296,8 +296,8 @@
test<boost::multiprecision::mpfr_float_100>();
#endif
#ifdef TEST_CPP_DEC_FLOAT
- test<boost::multiprecision::cpp_float_50>();
- test<boost::multiprecision::cpp_float_100>();
+ test<boost::multiprecision::cpp_dec_float_50>();
+ test<boost::multiprecision::cpp_dec_float_100>();
#endif
return boost::report_errors();
}
Modified: sandbox/big_number/libs/multiprecision/test/test_cosh.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/test_cosh.cpp (original)
+++ sandbox/big_number/libs/multiprecision/test/test_cosh.cpp 2012-02-16 04:36:26 EST (Thu, 16 Feb 2012)
@@ -138,8 +138,8 @@
test<boost::multiprecision::mpfr_float_100>();
#endif
#ifdef TEST_CPP_DEC_FLOAT
- test<boost::multiprecision::cpp_float_50>();
- test<boost::multiprecision::cpp_float_100>();
+ test<boost::multiprecision::cpp_dec_float_50>();
+ test<boost::multiprecision::cpp_dec_float_100>();
#endif
return boost::report_errors();
}
Modified: sandbox/big_number/libs/multiprecision/test/test_exp.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/test_exp.cpp (original)
+++ sandbox/big_number/libs/multiprecision/test/test_exp.cpp 2012-02-16 04:36:26 EST (Thu, 16 Feb 2012)
@@ -178,8 +178,8 @@
test<boost::multiprecision::mpfr_float_100>();
#endif
#ifdef TEST_CPP_DEC_FLOAT
- test<boost::multiprecision::cpp_float_50>();
- test<boost::multiprecision::cpp_float_100>();
+ test<boost::multiprecision::cpp_dec_float_50>();
+ test<boost::multiprecision::cpp_dec_float_100>();
#endif
return boost::report_errors();
}
Modified: sandbox/big_number/libs/multiprecision/test/test_float_io.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/test_float_io.cpp (original)
+++ sandbox/big_number/libs/multiprecision/test/test_float_io.cpp 2012-02-16 04:36:26 EST (Thu, 16 Feb 2012)
@@ -257,13 +257,13 @@
test_round_trip<boost::multiprecision::mpfr_float_100>();
#endif
#ifdef TEST_CPP_DEC_FLOAT
- test<boost::multiprecision::cpp_float_50>();
- test<boost::multiprecision::cpp_float_100>();
+ test<boost::multiprecision::cpp_dec_float_50>();
+ test<boost::multiprecision::cpp_dec_float_100>();
/*
// cpp_dec_float has extra guard digits that messes this up:
- test_round_trip<boost::multiprecision::cpp_float_50>();
- test_round_trip<boost::multiprecision::cpp_float_100>();
+ test_round_trip<boost::multiprecision::cpp_dec_float_50>();
+ test_round_trip<boost::multiprecision::cpp_dec_float_100>();
*/
#endif
#ifdef TEST_MPF_50
Modified: sandbox/big_number/libs/multiprecision/test/test_fpclassify.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/test_fpclassify.cpp (original)
+++ sandbox/big_number/libs/multiprecision/test/test_fpclassify.cpp 2012-02-16 04:36:26 EST (Thu, 16 Feb 2012)
@@ -310,8 +310,8 @@
test<boost::multiprecision::mpfr_float_100>();
#endif
#ifdef TEST_CPP_DEC_FLOAT
- test<boost::multiprecision::cpp_float_50>();
- test<boost::multiprecision::cpp_float_100>();
+ test<boost::multiprecision::cpp_dec_float_50>();
+ test<boost::multiprecision::cpp_dec_float_100>();
#endif
#ifdef TEST_BACKEND
test<boost::multiprecision::mp_number<boost::multiprecision::concepts::mp_number_backend_float_architype> >();
Modified: sandbox/big_number/libs/multiprecision/test/test_log.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/test_log.cpp (original)
+++ sandbox/big_number/libs/multiprecision/test/test_log.cpp 2012-02-16 04:36:26 EST (Thu, 16 Feb 2012)
@@ -206,8 +206,8 @@
test<boost::multiprecision::mpfr_float_100>();
#endif
#ifdef TEST_CPP_DEC_FLOAT
- test<boost::multiprecision::cpp_float_50>();
- test<boost::multiprecision::cpp_float_100>();
+ test<boost::multiprecision::cpp_dec_float_50>();
+ test<boost::multiprecision::cpp_dec_float_100>();
#endif
return boost::report_errors();
}
Modified: sandbox/big_number/libs/multiprecision/test/test_numeric_limits.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/test_numeric_limits.cpp (original)
+++ sandbox/big_number/libs/multiprecision/test/test_numeric_limits.cpp 2012-02-16 04:36:26 EST (Thu, 16 Feb 2012)
@@ -195,8 +195,8 @@
test<boost::multiprecision::mpq_rational>();
#endif
#ifdef TEST_CPP_DEC_FLOAT
- test<boost::multiprecision::cpp_float_50>();
- test<boost::multiprecision::cpp_float_100>();
+ test<boost::multiprecision::cpp_dec_float_50>();
+ test<boost::multiprecision::cpp_dec_float_100>();
#endif
#ifdef TEST_MPFR
test<boost::multiprecision::mpfr_float>();
Modified: sandbox/big_number/libs/multiprecision/test/test_pow.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/test_pow.cpp (original)
+++ sandbox/big_number/libs/multiprecision/test/test_pow.cpp 2012-02-16 04:36:26 EST (Thu, 16 Feb 2012)
@@ -581,8 +581,8 @@
test<boost::multiprecision::mpfr_float_100>();
#endif
#ifdef TEST_CPP_DEC_FLOAT
- test<boost::multiprecision::cpp_float_50>();
- test<boost::multiprecision::cpp_float_100>();
+ test<boost::multiprecision::cpp_dec_float_50>();
+ test<boost::multiprecision::cpp_dec_float_100>();
#endif
return boost::report_errors();
}
Modified: sandbox/big_number/libs/multiprecision/test/test_round.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/test_round.cpp (original)
+++ sandbox/big_number/libs/multiprecision/test/test_round.cpp 2012-02-16 04:36:26 EST (Thu, 16 Feb 2012)
@@ -387,8 +387,8 @@
test<boost::multiprecision::mpfr_float_100>();
#endif
#ifdef TEST_CPP_DEC_FLOAT
- test<boost::multiprecision::cpp_float_50>();
- test<boost::multiprecision::cpp_float_100>();
+ test<boost::multiprecision::cpp_dec_float_50>();
+ test<boost::multiprecision::cpp_dec_float_100>();
#endif
#ifdef TEST_BACKEND
test<boost::multiprecision::mp_number<boost::multiprecision::concepts::mp_number_backend_float_architype> >();
Modified: sandbox/big_number/libs/multiprecision/test/test_sin.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/test_sin.cpp (original)
+++ sandbox/big_number/libs/multiprecision/test/test_sin.cpp 2012-02-16 04:36:26 EST (Thu, 16 Feb 2012)
@@ -290,7 +290,7 @@
test<boost::multiprecision::mpfr_float_100>();
#endif
#ifdef TEST_CPP_DEC_FLOAT
- test<boost::multiprecision::cpp_float_50>();
+ test<boost::multiprecision::cpp_dec_float_50>();
#endif
return boost::report_errors();
}
Modified: sandbox/big_number/libs/multiprecision/test/test_sinh.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/test_sinh.cpp (original)
+++ sandbox/big_number/libs/multiprecision/test/test_sinh.cpp 2012-02-16 04:36:26 EST (Thu, 16 Feb 2012)
@@ -214,8 +214,8 @@
test<boost::multiprecision::mpfr_float_100>();
#endif
#ifdef TEST_CPP_DEC_FLOAT
- test<boost::multiprecision::cpp_float_50>();
- test<boost::multiprecision::cpp_float_100>();
+ test<boost::multiprecision::cpp_dec_float_50>();
+ test<boost::multiprecision::cpp_dec_float_100>();
#endif
return boost::report_errors();
}
Modified: sandbox/big_number/libs/multiprecision/test/test_sqrt.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/test_sqrt.cpp (original)
+++ sandbox/big_number/libs/multiprecision/test/test_sqrt.cpp 2012-02-16 04:36:26 EST (Thu, 16 Feb 2012)
@@ -184,8 +184,8 @@
test<boost::multiprecision::mpfr_float_100>();
#endif
#ifdef TEST_CPP_DEC_FLOAT
- test<boost::multiprecision::cpp_float_50>();
- test<boost::multiprecision::cpp_float_100>();
+ test<boost::multiprecision::cpp_dec_float_50>();
+ test<boost::multiprecision::cpp_dec_float_100>();
#endif
return boost::report_errors();
}
Modified: sandbox/big_number/libs/multiprecision/test/test_tanh.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/test_tanh.cpp (original)
+++ sandbox/big_number/libs/multiprecision/test/test_tanh.cpp 2012-02-16 04:36:26 EST (Thu, 16 Feb 2012)
@@ -133,8 +133,8 @@
test<boost::multiprecision::mpfr_float_100>();
#endif
#ifdef TEST_CPP_DEC_FLOAT
- test<boost::multiprecision::cpp_float_50>();
- test<boost::multiprecision::cpp_float_100>();
+ test<boost::multiprecision::cpp_dec_float_50>();
+ test<boost::multiprecision::cpp_dec_float_100>();
#endif
return boost::report_errors();
}
Modified: sandbox/big_number/libs/multiprecision/test/test_test.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/test_test.cpp (original)
+++ sandbox/big_number/libs/multiprecision/test/test_test.cpp 2012-02-16 04:36:26 EST (Thu, 16 Feb 2012)
@@ -17,7 +17,7 @@
int main()
{
- boost::multiprecision::cpp_float_50 a1(1), a2(1), b(3), c(-2);
+ boost::multiprecision::cpp_dec_float_50 a1(1), a2(1), b(3), c(-2);
BOOST_WARN(a1);
BOOST_WARN(a1 == b);
@@ -26,8 +26,8 @@
BOOST_CHECK(boost::detail::test_errors() == 1);
--boost::detail::test_errors();
- boost::multiprecision::cpp_float_50 a_tol = a1 + a1 * 100 * std::numeric_limits<boost::multiprecision::cpp_float_50>::epsilon();
- boost::multiprecision::cpp_float_50 tol = 100 * std::numeric_limits<boost::multiprecision::cpp_float_50>::epsilon();
+ boost::multiprecision::cpp_dec_float_50 a_tol = a1 + a1 * 100 * std::numeric_limits<boost::multiprecision::cpp_dec_float_50>::epsilon();
+ boost::multiprecision::cpp_dec_float_50 tol = 100 * std::numeric_limits<boost::multiprecision::cpp_dec_float_50>::epsilon();
BOOST_CHECK_CLOSE(a1, a_tol, tol * 102); // Passes
BOOST_WARN_CLOSE(a1, a_tol, tol * 98); // fails
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