File tree 1 file changed +2
-1
lines changed
include/boost/decimal/detail
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -2057,7 +2057,8 @@ constexpr u128 operator/(const u128 lhs, const u128 rhs) noexcept
2057
2057
{
2058
2058
// On ARM64 and PPC64LE this is unconditionally better
2059
2059
// On x64 this is only better when both lhs and rhs are two word numbers
2060
- #if defined(__aarch64__) || (defined(__ppc64__) || defined(__PPC64__) || defined(__ppc64le__) || defined(__PPC64LE__)) || defined(__s390x__)
2060
+ #if (defined(__x86_64__) || (defined(__aarch64__) && !defined(__APPLE__)) || (defined(__ppc64__) || defined(__PPC64__) || defined(__ppc64le__) || defined(__PPC64LE__))) && defined(BOOST_DECIMAL_HAS_INT128) \
2061
+ && (!defined (__clang_major__) || __clang_major__ >= 10 )
2061
2062
2062
2063
return static_cast <u128>(static_cast <unsigned __int128>(lhs) / static_cast <unsigned __int128>(rhs));
2063
2064
You can’t perform that action at this time.
0 commit comments