Skip to content

Commit 645f11a

Browse files
committed
Change linux ARM64 mul path
1 parent dce9877 commit 645f11a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

include/boost/int128/detail/int128_imp.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2243,7 +2243,7 @@ BOOST_INT128_FORCE_INLINE int128_t msvc_amd64_mul(const int128_t lhs, const int1
22432243

22442244
BOOST_INT128_FORCE_INLINE constexpr int128_t default_mul(const int128_t lhs, const int128_t rhs) noexcept
22452245
{
2246-
#if (defined(__aarch64__) || defined(__x86_64__) || defined(__PPC__) || defined(__powerpc__)) && defined(__GNUC__) && !defined(__clang__) && defined(BOOST_INT128_HAS_INT128)
2246+
#if ((defined(__aarch64__) && defined(__APPLE__)) || defined(__x86_64__) || defined(__PPC__) || defined(__powerpc__)) && defined(__GNUC__) && !defined(__clang__) && defined(BOOST_INT128_HAS_INT128)
22472247

22482248
# if !defined(BOOST_INT128_NO_CONSTEVAL_DETECTION)
22492249

@@ -2282,6 +2282,10 @@ BOOST_INT128_FORCE_INLINE constexpr int128_t default_mul(const int128_t lhs, con
22822282

22832283
# endif
22842284

2285+
#elif defined(__aarch64__)
2286+
2287+
return static_cast<int128_t>(static_cast<detail::builtin_i128>(lhs) * static_cast<detail::builtin_i128>(rhs));
2288+
22852289
#elif defined(_M_AMD64) && !defined(__GNUC__) && !defined(BOOST_INT128_NO_CONSTEVAL_DETECTION)
22862290

22872291
if (BOOST_INT128_IS_CONSTANT_EVALUATED(rhs))

0 commit comments

Comments
 (0)