Skip to content

Commit 8f35df4

Browse files
authored
don't use _umul128, fallback to generic in MSYS2/MINGW32 (#1453)
1 parent bcd49d4 commit 8f35df4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/glaze/util/atoi.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ namespace glz::detail
170170
// But MinGW on ARM64 doesn't have native support for 64-bit multiplications
171171
answer.high = __umulh(a, b);
172172
answer.low = a * b;
173-
#elif defined(GLZ_FASTFLOAT_32BIT) || (defined(_WIN64) && !defined(__clang__))
173+
#elif defined(GLZ_FASTFLOAT_32BIT) || (defined(_WIN64) && !defined(__clang__) && !defined(__MINGW32__))
174174
answer.low = _umul128(a, b, &answer.high); // _umul128 not available on ARM64
175175
#elif defined(GLZ_FASTFLOAT_64BIT) && defined(__SIZEOF_INT128__)
176176
__uint128_t r = ((__uint128_t)a) * b;

0 commit comments

Comments
 (0)