]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/math/special_functions/detail/bessel_jy_derivatives_series.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / math / special_functions / detail / bessel_jy_derivatives_series.hpp
index 098e046854e847a8694f484f32716e1442150da1..d78d0e46dd91ba0f2f63593003dd5f837fceecd1 100644 (file)
@@ -10,6 +10,9 @@
 #pragma once
 #endif
 
+#include <cmath>
+#include <cstdint>
+
 namespace boost{ namespace math{ namespace detail{
 
 template <class T, class Policy>
@@ -66,13 +69,10 @@ inline T bessel_j_derivative_small_z_series(T v, T x, const Policy& pol)
       return prefix;
 
    bessel_j_derivative_small_z_series_term<T, Policy> s(v, x);
-   boost::uintmax_t max_iter = boost::math::policies::get_max_series_iterations<Policy>();
-#if BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x582))
-   T zero = 0;
-   T result = boost::math::tools::sum_series(s, boost::math::policies::get_epsilon<T, Policy>(), max_iter, zero);
-#else
+   std::uintmax_t max_iter = boost::math::policies::get_max_series_iterations<Policy>();
+
    T result = boost::math::tools::sum_series(s, boost::math::policies::get_epsilon<T, Policy>(), max_iter);
-#endif
+
    boost::math::policies::check_series_iterations<T>("boost::math::bessel_j_derivative_small_z_series<%1%>(%1%,%1%)", max_iter, pol);
    return prefix * result;
 }
@@ -180,13 +180,10 @@ inline T bessel_y_derivative_small_z_series(T v, T x, const Policy& pol)
       prefix = -exp(prefix);
    }
    bessel_y_derivative_small_z_series_term_a<T, Policy> s(v, x);
-   boost::uintmax_t max_iter = boost::math::policies::get_max_series_iterations<Policy>();
-#if BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x582))
-   T zero = 0;
-   T result = boost::math::tools::sum_series(s, boost::math::policies::get_epsilon<T, Policy>(), max_iter, zero);
-#else
+   std::uintmax_t max_iter = boost::math::policies::get_max_series_iterations<Policy>();
+
    T result = boost::math::tools::sum_series(s, boost::math::policies::get_epsilon<T, Policy>(), max_iter);
-#endif
+
    boost::math::policies::check_series_iterations<T>("boost::math::bessel_y_derivative_small_z_series<%1%>(%1%,%1%)", max_iter, pol);
    result *= prefix;
 
@@ -203,11 +200,9 @@ inline T bessel_y_derivative_small_z_series(T v, T x, const Policy& pol)
    }
    bessel_y_derivative_small_z_series_term_b<T, Policy> s2(v, x);
    max_iter = boost::math::policies::get_max_series_iterations<Policy>();
-#if BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x582))
-   T b = boost::math::tools::sum_series(s2, boost::math::policies::get_epsilon<T, Policy>(), max_iter, zero);
-#else
+
    T b = boost::math::tools::sum_series(s2, boost::math::policies::get_epsilon<T, Policy>(), max_iter);
-#endif
+
    result += scale * prefix * b;
    return result;
 }