Boost logo

Boost-Commit :

From: john_at_[hidden]
Date: 2007-11-12 12:21:48


Author: johnmaddock
Date: 2007-11-12 12:21:47 EST (Mon, 12 Nov 2007)
New Revision: 41038
URL: http://svn.boost.org/trac/boost/changeset/41038

Log:
Disable long double tests if there are no long double math functions.
Text files modified:
   trunk/libs/tr1/test/test_complex.cpp | 28 ++++++++++++++++++++++++++++
   1 files changed, 28 insertions(+), 0 deletions(-)

Modified: trunk/libs/tr1/test/test_complex.cpp
==============================================================================
--- trunk/libs/tr1/test/test_complex.cpp (original)
+++ trunk/libs/tr1/test/test_complex.cpp 2007-11-12 12:21:47 EST (Mon, 12 Nov 2007)
@@ -15,31 +15,45 @@
 {
    verify_return_type(std::arg(0), double(0));
    verify_return_type(std::arg(0.0), double(0));
+#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
    verify_return_type(std::arg(0.0L), (long double)(0));
+#endif
    verify_return_type(std::arg(0.0F), float(0));
    verify_return_type(std::norm(0), double(0));
    verify_return_type(std::norm(0.0), double(0));
+#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
    verify_return_type(std::norm(0.0L), (long double)(0));
+#endif
    verify_return_type(std::norm(0.0F), float(0));
    verify_return_type(std::conj(0), std::complex<double>(0));
    verify_return_type(std::conj(0.0), std::complex<double>(0));
+#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
    verify_return_type(std::conj(0.0L), std::complex<long double>(0));
+#endif
    verify_return_type(std::conj(0.0F), std::complex<float>(0));
    verify_return_type(std::imag(0), double(0));
    verify_return_type(std::imag(0.0), double(0));
+#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
    verify_return_type(std::imag(0.0L), (long double)(0));
+#endif
    verify_return_type(std::imag(0.0F), float(0));
    verify_return_type(std::real(0), double(0));
    verify_return_type(std::real(0.0), double(0));
+#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
    verify_return_type(std::real(0.0L), (long double)(0));
+#endif
    verify_return_type(std::real(0.0F), float(0));
    verify_return_type(std::polar(0), std::complex<double>(0));
    verify_return_type(std::polar(0.0), std::complex<double>(0));
+#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
    verify_return_type(std::polar(0.0L), std::complex<long double>(0));
+#endif
    verify_return_type(std::polar(0.0F), std::complex<float>(0));
    verify_return_type(std::polar(0, 0L), std::complex<double>(0));
+#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
    verify_return_type(std::polar(0.0, 0.0L), std::complex<long double>(0));
    verify_return_type(std::polar(0.0L, 0.0F), std::complex<long double>(0));
+#endif
    verify_return_type(std::polar(0.0F, 0), std::complex<double>(0));
 
    std::complex<float> f;
@@ -87,25 +101,39 @@
 
    verify_return_type(std::tr1::acos(f), f);
    verify_return_type(std::tr1::acos(d), d);
+#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
    verify_return_type(std::tr1::acos(l), l);
+#endif
    verify_return_type(std::tr1::asin(f), f);
    verify_return_type(std::tr1::asin(d), d);
+#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
    verify_return_type(std::tr1::asin(l), l);
+#endif
    verify_return_type(std::tr1::atan(f), f);
    verify_return_type(std::tr1::atan(d), d);
+#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
    verify_return_type(std::tr1::atan(l), l);
+#endif
    verify_return_type(std::tr1::asinh(f), f);
    verify_return_type(std::tr1::asinh(d), d);
+#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
    verify_return_type(std::tr1::asinh(l), l);
+#endif
    verify_return_type(std::tr1::acosh(f), f);
    verify_return_type(std::tr1::acosh(d), d);
+#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
    verify_return_type(std::tr1::acosh(l), l);
+#endif
    verify_return_type(std::tr1::atanh(f), f);
    verify_return_type(std::tr1::atanh(d), d);
+#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
    verify_return_type(std::tr1::atanh(l), l);
+#endif
    verify_return_type(std::tr1::fabs(f), sf);
    verify_return_type(std::tr1::fabs(d), sd);
+#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
    verify_return_type(std::tr1::fabs(l), sl);
+#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