]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/math/test/test_root_iterations.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / math / test / test_root_iterations.cpp
index e559617c72e54786c1505e37e93d6c2158a5f412..a0402bb99c88ccb6a28dc1871f3aa04da18d9e69 100644 (file)
@@ -3,9 +3,7 @@
 //  Boost Software License, Version 1.0. (See accompanying file
 //  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 
-#include <pch.hpp>
-
-#ifndef BOOST_NO_CXX11_HDR_TUPLE
+#include "pch.hpp"
 
 #define BOOST_TEST_MAIN
 #include <boost/test/unit_test.hpp>
@@ -152,7 +150,7 @@ BOOST_AUTO_TEST_CASE( test_main )
    int newton_limits = static_cast<int>(std::numeric_limits<double>::digits * 0.6);
 
    double arg = 1e-50;
-   boost::uintmax_t iters;
+   std::uintmax_t iters;
    double guess;
    double dr;
 
@@ -301,7 +299,11 @@ BOOST_AUTO_TEST_CASE( test_main )
          result = ibeta_small_data[i][2];
          dr = boost::math::tools::halley_iterate(ibeta_roots_3<double, boost::math::policies::policy<> >(ibeta_small_data[i][0], ibeta_small_data[i][1], ibeta_small_data[i][5]), 0.5, 0.0, 1.0, 53, iters);
          BOOST_CHECK_CLOSE_FRACTION(dr, result, std::numeric_limits<double>::epsilon() * 200);
+#if defined(__PPC__) || defined(__aarch64__)
+         BOOST_CHECK_LE(iters, 55);
+#else
          BOOST_CHECK_LE(iters, 40);
+#endif
       }
       else if (1 == ibeta_small_data[i][5])
       {
@@ -318,8 +320,3 @@ BOOST_AUTO_TEST_CASE( test_main )
 
 }
 
-#else
-
-int main() { return 0; }
-
-#endif