Fix ARM64 windows builds

Apparently I looked at the docs for umulh when checking availability,
and umul128 is x64 only.
This commit is contained in:
Martin Hořeňovský 2024-04-12 15:20:08 +02:00
parent 838f8d71cb
commit 65794fd2b8
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A

View File

@ -21,7 +21,10 @@
// it, and it provides an escape hatch to the users who need it.
#if defined( __SIZEOF_INT128__ )
# define CATCH_CONFIG_INTERNAL_UINT128
#elif defined( _MSC_VER ) && ( defined( _WIN64 ) || defined( _M_ARM64 ) )
// Unlike GCC, MSVC does not polyfill umul as mulh + mul pair on ARM machines.
// Currently we do not bother doing this ourselves, but we could if it became
// important for perf.
#elif defined( _MSC_VER ) && defined( _WIN64 )
# define CATCH_CONFIG_INTERNAL_MSVC_UMUL128
#endif