Skip to content

Commit 0e078f6

Browse files
committed
Use _M_AMD64 instead of legacy _M_X64
1 parent 04864b1 commit 0e078f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/fmt/format.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ class uint128_fallback {
403403
auto carry = __builtin_ia32_addcarryx_u64(0, lo_, n, &result);
404404
lo_ = result;
405405
hi_ += carry;
406-
#elif defined(_MSC_VER) && defined(_M_X64)
406+
#elif defined(_MSC_VER) && defined(_M_AMD64)
407407
auto carry = _addcarry_u64(0, lo_, n, &lo_);
408408
_addcarry_u64(carry, hi_, 0, &hi_);
409409
#else
@@ -1425,7 +1425,7 @@ FMT_INLINE auto umul128(uint64_t x, uint64_t y) noexcept -> uint128_fallback {
14251425
#if FMT_USE_INT128
14261426
auto p = static_cast<uint128_opt>(x) * static_cast<uint128_opt>(y);
14271427
return {static_cast<uint64_t>(p >> 64), static_cast<uint64_t>(p)};
1428-
#elif defined(_MSC_VER) && defined(_M_X64)
1428+
#elif defined(_MSC_VER) && defined(_M_AMD64)
14291429
auto hi = uint64_t();
14301430
auto lo = _umul128(x, y, &hi);
14311431
return {hi, lo};
@@ -1468,7 +1468,7 @@ inline auto umul128_upper64(uint64_t x, uint64_t y) noexcept -> uint64_t {
14681468
#if FMT_USE_INT128
14691469
auto p = static_cast<uint128_opt>(x) * static_cast<uint128_opt>(y);
14701470
return static_cast<uint64_t>(p >> 64);
1471-
#elif defined(_MSC_VER) && defined(_M_X64)
1471+
#elif defined(_MSC_VER) && defined(_M_AMD64)
14721472
return __umulh(x, y);
14731473
#else
14741474
return umul128(x, y).high();

0 commit comments

Comments
 (0)