From d45aee43f4b1ac8ee0fbb182310b9b7622f85d1c Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Tue, 8 Oct 2024 16:38:35 -0700 Subject: [PATCH] make __asm__ a __GNUC__ specific --- lib/compress/zstd_fast.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/compress/zstd_fast.c b/lib/compress/zstd_fast.c index 5bac5d9cf..d4b8f0672 100644 --- a/lib/compress/zstd_fast.c +++ b/lib/compress/zstd_fast.c @@ -118,7 +118,9 @@ ZSTD_match4Found_cmov(const BYTE* currentPtr, const BYTE* matchAddress, U32 curr */ if (MEM_read32(currentPtr) != MEM_read32(mvalAddr)) return 0; /* force ordering of these tests, which matters once the function is inlined, as they become branches */ +#if defined(__GNUC__) __asm__(""); +#endif return currentIdx >= lowLimit; } -- 2.47.2