Skip to content

Commit

Permalink
The patch resolves GCC compilation issues for the C++ language targeting
Browse files Browse the repository at this point in the history
aarch64-w64-mingw32.

More information could be found here:
https://gcc.gnu.org/pipermail/gcc-patches/2024-September/662020.html
  • Loading branch information
eukarpov committed Sep 2, 2024
1 parent 9117ec4 commit 2609d5f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/fast_float/float_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,8 @@ full_multiplication(uint64_t a, uint64_t b) {
answer.high = __umulh(a, b);
answer.low = a * b;
#elif defined(FASTFLOAT_32BIT) || (defined(_WIN64) && !defined(__clang__))
#elif defined(FASTFLOAT_32BIT) || (defined(_WIN64) && !defined(__clang__) \
&& !defined(_M_ARM64))
answer.low = _umul128(a, b, &answer.high); // _umul128 not available on ARM64
#elif defined(FASTFLOAT_64BIT) && defined(__SIZEOF_INT128__)
__uint128_t r = ((__uint128_t)a) * b;
Expand Down

0 comments on commit 2609d5f

Please sign in to comment.