Skip to content

Commit f8c573d

Browse files
authored
Merge pull request #338 from Gravecat/mingw-fix
Fixes compilation on GCC/MinGW
2 parents 7b21183 + 9d78a01 commit f8c573d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/fast_float/float_common.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,8 @@ full_multiplication(uint64_t a, uint64_t b) {
406406
// But MinGW on ARM64 doesn't have native support for 64-bit multiplications
407407
answer.high = __umulh(a, b);
408408
answer.low = a * b;
409-
#elif defined(FASTFLOAT_32BIT) || \
410-
(defined(_WIN64) && !defined(__clang__) && !defined(_M_ARM64))
409+
#elif defined(FASTFLOAT_32BIT) || (defined(_WIN64) && !defined(__clang__) && \
410+
!defined(_M_ARM64) && !defined(__GNUC__))
411411
answer.low = _umul128(a, b, &answer.high); // _umul128 not available on ARM64
412412
#elif defined(FASTFLOAT_64BIT) && defined(__SIZEOF_INT128__)
413413
__uint128_t r = ((__uint128_t)a) * b;

0 commit comments

Comments
 (0)