The patch resolves GCC compilation issues for the C++ language targeting

aarch64-w64-mingw32.

More information could be found here:
https://gcc.gnu.org/pipermail/gcc-patches/2024-September/662020.html
This commit is contained in:
Evgeny Karpov 2024-09-02 17:19:21 +02:00
parent 9117ec4f69
commit 2609d5fd4b

View File

@ -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;