Skip to content

Commit

Permalink
Merge pull request #269 from eukarpov/support-aarch64-w64-mingw32-target
Browse files Browse the repository at this point in the history
Support aarch64-w64-mingw32 target
  • Loading branch information
lemire authored Sep 2, 2024
2 parents 9117ec4 + c9f8339 commit 8c911d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/fast_float/float_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,8 @@ 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(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 8c911d9

Please sign in to comment.