2
0
mirror of https://github.com/boostorg/math.git synced 2026-02-26 04:42:22 +00:00

fpclassify coverage.

This commit is contained in:
jzmaddock
2024-03-10 19:29:11 +00:00
parent bb9b10e4dd
commit 718004ed27

View File

@@ -163,7 +163,7 @@ inline int fpclassify_imp BOOST_NO_MACRO_EXPAND(T t, const generic_tag<true>&)
// whenever possible check for Nan's first:
#if defined(BOOST_HAS_FPCLASSIFY) && !defined(BOOST_MATH_DISABLE_STD_FPCLASSIFY)
if(::boost::math_detail::is_nan_helper(t, typename std::is_floating_point<T>::type()))
return FP_NAN;
return FP_NAN; // LCOV_EXCL_LINE only called in UDT contexts (excluded from coverage checks).
#elif defined(isnan)
if(boost::math_detail::is_nan_helper(t, typename std::is_floating_point<T>::type()))
return FP_NAN;