|
Boost-Commit : |
From: john_at_[hidden]
Date: 2007-11-07 06:59:40
Author: johnmaddock
Date: 2007-11-07 06:59:39 EST (Wed, 07 Nov 2007)
New Revision: 40882
URL: http://svn.boost.org/trac/boost/changeset/40882
Log:
Disabled use of long double when BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS is defined.
Disabled special-double precision error rates when BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS is defined.
Text files modified:
trunk/libs/math/test/test_constants.cpp | 5 +++++
trunk/libs/math/test/test_ibeta_inv.cpp | 3 +++
trunk/libs/math/test/test_minima.cpp | 2 ++
3 files changed, 10 insertions(+), 0 deletions(-)
Modified: trunk/libs/math/test/test_constants.cpp
==============================================================================
--- trunk/libs/math/test/test_constants.cpp (original)
+++ trunk/libs/math/test/test_constants.cpp 2007-11-07 06:59:39 EST (Wed, 07 Nov 2007)
@@ -42,8 +42,13 @@
BOOST_CHECK_CLOSE_FRACTION(static_cast<RealType>(2)/3, twothirds<RealType>(), tolerance);
BOOST_CHECK_CLOSE_FRACTION(static_cast<RealType>(0.14159265358979323846264338327950288419716939937510L), pi_minus_three<RealType>(), tolerance);
BOOST_CHECK_CLOSE_FRACTION(static_cast<RealType>(4. - 3.14159265358979323846264338327950288419716939937510L), four_minus_pi<RealType>(), tolerance);
+#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
BOOST_CHECK_CLOSE_FRACTION(static_cast<RealType>(pow((4 - 3.14159265358979323846264338327950288419716939937510L), 1.5L)), pow23_four_minus_pi<RealType>(), tolerance);
BOOST_CHECK_CLOSE_FRACTION(static_cast<RealType>(exp(-0.5L)), exp_minus_half<RealType>(), tolerance);
+#else
+ BOOST_CHECK_CLOSE_FRACTION(static_cast<RealType>(pow((4 - 3.14159265358979323846264338327950288419716939937510), 1.5)), pow23_four_minus_pi<RealType>(), tolerance);
+ BOOST_CHECK_CLOSE_FRACTION(static_cast<RealType>(exp(-0.5)), exp_minus_half<RealType>(), tolerance);
+#endif
} // template <class RealType>void test_spots(RealType)
Modified: trunk/libs/math/test/test_ibeta_inv.cpp
==============================================================================
--- trunk/libs/math/test/test_ibeta_inv.cpp (original)
+++ trunk/libs/math/test/test_ibeta_inv.cpp 2007-11-07 06:59:39 EST (Wed, 07 Nov 2007)
@@ -78,6 +78,8 @@
#else
largest_type = "(long\\s+)?double";
#endif
+
+#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
//
// Linux etc,
// Extended exponent range of long double
@@ -107,6 +109,7 @@
".*", // test data group
".*", 5000000L, 500000); // test function
}
+#endif
//
// MinGW,
// Extended exponent range of long double
Modified: trunk/libs/math/test/test_minima.cpp
==============================================================================
--- trunk/libs/math/test/test_minima.cpp (original)
+++ trunk/libs/math/test/test_minima.cpp 2007-11-07 06:59:39 EST (Wed, 07 Nov 2007)
@@ -42,7 +42,9 @@
{
test_minima(0.1f, "float");
test_minima(0.1, "double");
+#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
test_minima(0.1L, "long double");
+#endif
return 0;
}
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