fix build for Microsoft-designed ARM64 ABI

PiperOrigin-RevId: 595334901
This commit is contained in:
Evgenii Kliuchnikov 2024-01-03 02:00:39 -08:00 committed by Copybara-Service
parent fef82ea104
commit 6b6adb7ae8

View File

@ -475,7 +475,7 @@ BROTLI_MIN_MAX(size_t) BROTLI_MIN_MAX(uint32_t) BROTLI_MIN_MAX(uint8_t)
BROTLI_INTEL_VERSION_CHECK(16, 0, 0) BROTLI_INTEL_VERSION_CHECK(16, 0, 0)
#define BROTLI_TZCNT64 __builtin_ctzll #define BROTLI_TZCNT64 __builtin_ctzll
#elif BROTLI_MSVC_VERSION_CHECK(18, 0, 0) #elif BROTLI_MSVC_VERSION_CHECK(18, 0, 0)
#if defined(BROTLI_TARGET_X64) #if defined(BROTLI_TARGET_X64) && !defined(_M_ARM64EC)
#define BROTLI_TZCNT64 _tzcnt_u64 #define BROTLI_TZCNT64 _tzcnt_u64
#else /* BROTLI_TARGET_X64 */ #else /* BROTLI_TARGET_X64 */
static BROTLI_INLINE uint32_t BrotliBsf64Msvc(uint64_t x) { static BROTLI_INLINE uint32_t BrotliBsf64Msvc(uint64_t x) {