Skip to content

Commit

Permalink
Change intermediate mul type for clang 6-12
Browse files Browse the repository at this point in the history
  • Loading branch information
mborland committed Jun 25, 2024
1 parent a8f3259 commit 3ca6e64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/boost/decimal/detail/mul_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ BOOST_DECIMAL_FORCE_INLINE constexpr auto d64_mul_impl(T lhs_sig, U lhs_exp, boo
T rhs_sig, U rhs_exp, bool rhs_sign) noexcept
-> std::enable_if_t<detail::is_decimal_floating_point_v<ReturnType>, ReturnType>
{
#ifdef BOOST_DECIMAL_HAS_INT128
// Clang 6-12 yields incorrect results with builtin u128, so we force usage of our version
#if defined(BOOST_DECIMAL_HAS_INT128) && (!defined(__clang_major__) || (__clang_major__) > 12)
using unsigned_int128_type = boost::decimal::detail::uint128_t;
#else
using unsigned_int128_type = boost::decimal::detail::uint128;
Expand Down

0 comments on commit 3ca6e64

Please sign in to comment.