Skip to content

Commit

Permalink
Fix build on ARM64EC
Browse files Browse the repository at this point in the history
  • Loading branch information
Agoston Szepessy committed Apr 16, 2024
1 parent 53ddf37 commit 7a4f6d7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/catch2/internal/catch_random_integer_helpers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
// important for perf.
#elif defined( _MSC_VER ) && defined( _M_X64 )
# define CATCH_CONFIG_INTERNAL_MSVC_UMUL128
# if defined( _M_ARM64EC )
# define CATCH_CONFIG_INTERNAL_MSVC_ARM64EC
# endif
#endif

#if defined( CATCH_CONFIG_INTERNAL_UINT128 ) && \
Expand All @@ -39,7 +42,9 @@
!defined( CATCH_CONFIG_MSVC_UMUL128 )
# define CATCH_CONFIG_MSVC_UMUL128
# include <intrin.h>
# pragma intrinsic( _umul128 )
# if !defined( CATCH_CONFIG_INTERNAL_MSVC_ARM64EC )
# pragma intrinsic( _umul128 )
# endif
#endif


Expand Down

0 comments on commit 7a4f6d7

Please sign in to comment.