Skip to content

Commit

Permalink
Fix ARM64 windows builds
Browse files Browse the repository at this point in the history
Apparently I looked at the docs for umulh when checking availability,
and umul128 is x64 only.
  • Loading branch information
horenmar committed Apr 12, 2024
1 parent b5373da commit 8e33c13
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/catch2/internal/catch_random_integer_helpers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8e33c13

Please sign in to comment.