Skip to content

Commit

Permalink
Enable _umul128 optimisation only on x86-64 on MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Jan 24, 2023
1 parent ac65055 commit 24daa0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/intx/intx.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ inline constexpr uint128 umul(uint64_t x, uint64_t y) noexcept
{
#if INTX_HAS_BUILTIN_INT128
return builtin_uint128{x} * builtin_uint128{y};
#elif defined(_MSC_VER) && _MSC_VER >= 1925
#elif defined(_MSC_VER) && _MSC_VER >= 1925 && defined(_M_X64)
if (!is_constant_evaluated())
{
unsigned __int64 hi = 0;
Expand Down

0 comments on commit 24daa0a

Please sign in to comment.