X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fboost%2Fboost%2Fmath%2Fconstants%2Fcalculate_constants.hpp;h=d337e1a88a9ab2cb54a1095a7fcc6e7a3038fa14;hb=92f5a8d42d07f9929ae4fa7e01342fe8d96808a8;hp=2dcdb9a02be809a84ff2a1e25abafd12c6fc1e74;hpb=a0324939f9d0e1905d5df8f57442f09dc70af83d;p=ceph.git diff --git a/ceph/src/boost/boost/math/constants/calculate_constants.hpp b/ceph/src/boost/boost/math/constants/calculate_constants.hpp index 2dcdb9a02..d337e1a88 100644 --- a/ceph/src/boost/boost/math/constants/calculate_constants.hpp +++ b/ceph/src/boost/boost/math/constants/calculate_constants.hpp @@ -296,6 +296,15 @@ inline T constant_three_quarters::compute(BOOST_MATH_EXPLICIT_TEMPLATE_TYPE_S return static_cast(3) / static_cast(4); } +template +template +inline T constant_sixth::compute(BOOST_MATH_EXPLICIT_TEMPLATE_TYPE_SPEC(mpl::int_)) +{ + BOOST_MATH_STD_USING + return static_cast(1) / static_cast(6); +} + +// Pi and related constants. template template inline T constant_pi_minus_three::compute(BOOST_MATH_EXPLICIT_TEMPLATE_TYPE_SPEC(mpl::int_)) @@ -326,7 +335,14 @@ inline T constant_exp_minus_half::compute(BOOST_MATH_EXPLICIT_TEMPLATE_TYPE_S return exp(static_cast(-0.5)); } -// Pi +template +template +inline T constant_exp_minus_one::compute(BOOST_MATH_EXPLICIT_TEMPLATE_TYPE_SPEC(mpl::int_)) +{ + BOOST_MATH_STD_USING + return exp(static_cast(-1.)); +} + template template inline T constant_one_div_root_two::compute(BOOST_MATH_EXPLICIT_TEMPLATE_TYPE_SPEC(mpl::int_)) @@ -356,7 +372,6 @@ inline T constant_root_one_div_pi::compute(BOOST_MATH_EXPLICIT_TEMPLATE_TYPE_ return sqrt(static_cast(1) / pi > >()); } - template template inline T constant_four_thirds_pi::compute(BOOST_MATH_EXPLICIT_TEMPLATE_TYPE_SPEC(mpl::int_)) @@ -963,6 +978,37 @@ inline T constant_rayleigh_kurtosis::compute(BOOST_MATH_EXPLICIT_TEMPLATE_TYP ); } -}}}} // namespaces +template +template +inline T constant_log2_e::compute(BOOST_MATH_EXPLICIT_TEMPLATE_TYPE_SPEC(mpl::int_)) +{ + return 1 / boost::math::constants::ln_two(); +} + +template +template +inline T constant_quarter_pi::compute(BOOST_MATH_EXPLICIT_TEMPLATE_TYPE_SPEC(mpl::int_)) +{ + return boost::math::constants::pi() / 4; +} + +template +template +inline T constant_one_div_pi::compute(BOOST_MATH_EXPLICIT_TEMPLATE_TYPE_SPEC(mpl::int_)) +{ + return 1 / boost::math::constants::pi(); +} + +template +template +inline T constant_two_div_root_pi::compute(BOOST_MATH_EXPLICIT_TEMPLATE_TYPE_SPEC(mpl::int_)) +{ + return 2 * boost::math::constants::one_div_root_pi(); +} + +} +} +} +} // namespaces #endif // BOOST_MATH_CALCULATE_CONSTANTS_CONSTANTS_INCLUDED