Skip to content

Commit

Permalink
Merge pull request #230 from vejbomar/fast-float-update
Browse files Browse the repository at this point in the history
Use correct 64bit full multiplication for MinGW on ARM64
  • Loading branch information
mborland authored Oct 17, 2024
2 parents 8b99fab + 11db723 commit 3a2abd5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/boost/charconv/detail/fast_float/float_common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<uint64_t>(high);
Expand Down

0 comments on commit 3a2abd5

Please sign in to comment.