Skip to content

Commit

Permalink
Disable new ellint code for clang-7.
Browse files Browse the repository at this point in the history
  • Loading branch information
jzmaddock committed Aug 24, 2022
1 parent c8fdd65 commit de7928e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/boost/math/special_functions/ellint_1.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -751,8 +751,12 @@ BOOST_FORCEINLINE typename tools::promote_args<T>::type ellint_1(T k, const Poli
typedef typename tools::promote_args<T>::type result_type;
typedef typename policies::evaluation<result_type, Policy>::type value_type;
typedef std::integral_constant<int,
#if defined(__clang_major__) && (__clang_major__ == 7)
2
#else
std::is_floating_point<T>::value && std::numeric_limits<T>::digits && (std::numeric_limits<T>::digits <= 54) ? 0 :
std::is_floating_point<T>::value && std::numeric_limits<T>::digits && (std::numeric_limits<T>::digits <= 64) ? 1 : 2
#endif
> precision_tag_type;
return policies::checked_narrowing_cast<result_type, Policy>(detail::ellint_k_imp(static_cast<value_type>(k), pol, precision_tag_type()), "boost::math::ellint_1<%1%>(%1%)");
}
Expand Down

0 comments on commit de7928e

Please sign in to comment.