Skip to content

Commit 3a2abd5

Browse files
authored
Merge pull request #230 from vejbomar/fast-float-update
Use correct 64bit full multiplication for MinGW on ARM64
2 parents 8b99fab + 11db723 commit 3a2abd5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/boost/charconv/detail/fast_float/float_common.hpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,8 @@ value128 full_multiplication(uint64_t a, uint64_t b) {
249249
// But MinGW on ARM64 doesn't have native support for 64-bit multiplications
250250
answer.high = __umulh(a, b);
251251
answer.low = a * b;
252-
#elif defined(BOOST_CHARCONV_FASTFLOAT_32BIT) || (defined(_WIN64) && !defined(__clang__))
252+
#elif defined(BOOST_CHARCONV_FASTFLOAT_32BIT) || \
253+
(defined(_WIN64) && !defined(__clang__) && !defined(_M_ARM64))
253254
unsigned long long high;
254255
answer.low = _umul128(a, b, &high); // _umul128 not available on ARM64
255256
answer.high = static_cast<uint64_t>(high);

0 commit comments

Comments
 (0)