Skip to content

Commit 8360a3c

Browse files
committed
Additional div macro
1 parent c3fada6 commit 8360a3c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/boost/decimal/detail/u128.hpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -2057,7 +2057,8 @@ constexpr u128 operator/(const u128 lhs, const u128 rhs) noexcept
20572057
{
20582058
// On ARM64 and PPC64LE this is unconditionally better
20592059
// 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)
20612062

20622063
return static_cast<u128>(static_cast<unsigned __int128>(lhs) / static_cast<unsigned __int128>(rhs));
20632064

0 commit comments

Comments
 (0)