Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2
diff options
context:
space:
mode:
authorMartin Hořeňovský2024-04-12 15:20:08 +0200
committerMartin Hořeňovský2024-04-12 16:40:06 +0200
commit65794fd2b8fd05c2d5524acf44bc9ac2bad19d97 (patch)
tree29a2f1764dbb651699aaeef6b042ab48f3b9a176 /src/catch2
parent838f8d71cbcab1007158fc70cd7c50a4acbd26e2 (diff)
downloadcatch3-65794fd2b8fd05c2d5524acf44bc9ac2bad19d97.tar.gz
Fix ARM64 windows builds
Apparently I looked at the docs for umulh when checking availability, and umul128 is x64 only.
Diffstat (limited to 'src/catch2')
-rw-r--r--src/catch2/internal/catch_random_integer_helpers.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/catch2/internal/catch_random_integer_helpers.hpp b/src/catch2/internal/catch_random_integer_helpers.hpp
index 10d82559..5a94eb70 100644
--- a/src/catch2/internal/catch_random_integer_helpers.hpp
+++ b/src/catch2/internal/catch_random_integer_helpers.hpp
@@ -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