]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
make __asm__ a __GNUC__ specific
authorYann Collet <yann.collet.73@gmail.com>
Tue, 8 Oct 2024 23:38:35 +0000 (16:38 -0700)
committerYann Collet <yann.collet.73@gmail.com>
Tue, 8 Oct 2024 23:38:35 +0000 (16:38 -0700)
lib/compress/zstd_fast.c

index 5bac5d9cfeb588998825926b823f14b6a0c537be..d4b8f06722e1a7478c1feaff7b51ba9ead91e868 100644 (file)
@@ -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;
 }