Merge branch 'fastfloat:main' into main

This commit is contained in:
HedgehogInTheCPP 2025-12-08 22:08:49 +03:00 committed by GitHub
commit 7fd3d7128d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -441,8 +441,8 @@ full_multiplication(uint64_t a, uint64_t b) noexcept {
// But MinGW on ARM64 doesn't have native support for 64-bit multiplications
answer.high = __umulh(a, b);
answer.low = a * b;
#elif defined(FASTFLOAT_32BIT) || \
(defined(_WIN64) && !defined(__clang__) && !defined(_M_ARM64))
#elif defined(FASTFLOAT_32BIT) || (defined(_WIN64) && !defined(__clang__) && \
!defined(_M_ARM64) && !defined(__GNUC__))
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;