From 11db723752cab471ba9e7dfc13bcb0d386a8a668 Mon Sep 17 00:00:00 2001 From: Martin Vejbora Date: Thu, 17 Oct 2024 17:56:59 +0200 Subject: [PATCH] Use correct 64bit full multiplication for MinGW on ARM64 --- include/boost/charconv/detail/fast_float/float_common.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/charconv/detail/fast_float/float_common.hpp b/include/boost/charconv/detail/fast_float/float_common.hpp index 2be55e5b..0b9d3aee 100644 --- a/include/boost/charconv/detail/fast_float/float_common.hpp +++ b/include/boost/charconv/detail/fast_float/float_common.hpp @@ -249,7 +249,8 @@ value128 full_multiplication(uint64_t a, uint64_t b) { // But MinGW on ARM64 doesn't have native support for 64-bit multiplications answer.high = __umulh(a, b); answer.low = a * b; -#elif defined(BOOST_CHARCONV_FASTFLOAT_32BIT) || (defined(_WIN64) && !defined(__clang__)) +#elif defined(BOOST_CHARCONV_FASTFLOAT_32BIT) || \ + (defined(_WIN64) && !defined(__clang__) && !defined(_M_ARM64)) unsigned long long high; answer.low = _umul128(a, b, &high); // _umul128 not available on ARM64 answer.high = static_cast(high);