]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/math/special_functions/next.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / math / special_functions / next.hpp
index a63983e1c3d76a813d1133cb532152d6538188d8..b98bf00dba0857e9a076a008c4def0a872ff3c0c 100644 (file)
@@ -73,7 +73,7 @@ inline T normalize_value(const T& val, const mpl::true_&)
    BOOST_STATIC_ASSERT(std::numeric_limits<T>::is_specialized);
    BOOST_STATIC_ASSERT(std::numeric_limits<T>::radix != 2);
 
-   boost::intmax_t shift = std::numeric_limits<T>::digits - ilogb(val) - 1;
+   boost::intmax_t shift = (boost::intmax_t)std::numeric_limits<T>::digits - (boost::intmax_t)ilogb(val) - 1;
    T result = scalbn(val, shift);
    result = round(result);
    return scalbn(result, -shift); 
@@ -489,7 +489,7 @@ T float_distance_imp(const T& a, const T& b, const mpl::true_&, const Policy& po
    // because we actually have fewer than tools::digits<T>()
    // significant bits in the representation:
    //
-   frexp(((boost::math::fpclassify)(a) == (int)FP_SUBNORMAL) ? tools::min_value<T>() : a, &expon);
+   (void)frexp(((boost::math::fpclassify)(a) == (int)FP_SUBNORMAL) ? tools::min_value<T>() : a, &expon);
    T upper = ldexp(T(1), expon);
    T result = T(0);
    //
@@ -499,7 +499,7 @@ T float_distance_imp(const T& a, const T& b, const mpl::true_&, const Policy& po
    if(b > upper)
    {
       int expon2;
-      frexp(b, &expon2);
+      (void)frexp(b, &expon2);
       T upper2 = ldexp(T(0.5), expon2);
       result = float_distance(upper2, b);
       result += (expon2 - expon - 1) * ldexp(T(1), tools::digits<T>() - 1);
@@ -714,7 +714,7 @@ T float_advance_imp(T val, int distance, const mpl::true_&, const Policy& pol)
    }
 
    int expon;
-   frexp(val, &expon);
+   (void)frexp(val, &expon);
    T limit = ldexp((distance < 0 ? T(0.5f) : T(1)), expon);
    if(val <= tools::min_value<T>())
    {