aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgenii Kliuchnikov <eustas@google.com>2024-01-03 02:00:39 -0800
committerCopybara-Service <copybara-worker@google.com>2024-01-03 02:01:23 -0800
commit6b6adb7ae8a3026d5e62465bddca4e55510d527e (patch)
tree1383c3e67bbc6f21e3d7bcd3e754dec2a9bbfba4
parentfef82ea10435abb1500b615b1b2c6175d429ec6c (diff)
downloadbrotli-6b6adb7ae8a3026d5e62465bddca4e55510d527e.zip
brotli-6b6adb7ae8a3026d5e62465bddca4e55510d527e.tar.gz
brotli-6b6adb7ae8a3026d5e62465bddca4e55510d527e.tar.bz2
fix build for Microsoft-designed ARM64 ABI
PiperOrigin-RevId: 595334901
-rw-r--r--c/common/platform.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/common/platform.h b/c/common/platform.h
index 7406f3f..f66a6cb 100644
--- a/c/common/platform.h
+++ b/c/common/platform.h
@@ -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)
#define BROTLI_TZCNT64 __builtin_ctzll
#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
#else /* BROTLI_TARGET_X64 */
static BROTLI_INLINE uint32_t BrotliBsf64Msvc(uint64_t x) {