Skip to content

Commit ed9e2f5

Browse files
committed
require ARM64 for __umulh
1 parent b8ccd14 commit ed9e2f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/boost/json/detail/charconv/detail/emulated128.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ BOOST_JSON_SAFEBUFFERS inline uint128 umul128(std::uint64_t x, std::uint64_t y)
8080
return {high, low};
8181

8282
// https://developer.arm.com/documentation/dui0802/a/A64-General-Instructions/UMULH
83-
#elif defined(__arm__)
83+
#elif defined(_M_ARM64) && !defined(__MINGW32__)
8484

8585
std::uint64_t high = __umulh(x, y);
8686
std::uint64_t low = x * y;

0 commit comments

Comments
 (0)