Skip to content

Commit 74e3c29

Browse files
committed
Include intrin.h for __umulh
Arm64 uses __umulh, so add the same condition for including the intrin.h header.
1 parent d57ca3d commit 74e3c29

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/fast_float/float_common.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ using parse_options = parse_options_t<char>;
8484
#endif
8585
#endif
8686

87-
#if ((defined(_WIN32) || defined(_WIN64)) && !defined(__clang__))
87+
#if ((defined(_WIN32) || defined(_WIN64)) && !defined(__clang__)) || \
88+
(defined(_M_ARM64) && !defined(__MINGW32__))
8889
#include <intrin.h>
8990
#endif
9091

0 commit comments

Comments
 (0)