Skip to content

Commit

Permalink
fix build for Microsoft-designed ARM64 ABI
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 594453949
  • Loading branch information
eustas authored and copybara-github committed Dec 29, 2023
1 parent fef82ea commit 6ac5d32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c/common/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6ac5d32

Please sign in to comment.