Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Aug 5, 2022
1 parent 78a0f57 commit c51af91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/mpz.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Revision History:

#if defined(__GNUC__)
#define _trailing_zeros32(X) __builtin_ctz(X)
#elif defined(_WINDOWS) && defined(_M_X64)
#elif defined(_WINDOWS) && (defined(_M_X86) || (defined(_M_X64) && !defined(_M_ARM64EC)))
// This is needed for _tzcnt_u32 and friends.
#include <immintrin.h>
#define _trailing_zeros32(X) _tzcnt_u32(X)
Expand All @@ -61,7 +61,7 @@ static uint32_t _trailing_zeros32(uint32_t x) {
}
#endif

#if (defined(__LP64__) || defined(_WIN64)) && defined(_M_X64)
#if (defined(__LP64__) || defined(_WIN64)) && defined(_M_X64) && !defined(_M_ARM64EC)
#if defined(__GNUC__)
#define _trailing_zeros64(X) __builtin_ctzll(X)
#else
Expand Down

0 comments on commit c51af91

Please sign in to comment.