1
0
mirror of https://github.com/facebook/zstd.git synced 2025-09-01 04:42:03 +03:00

make __asm__ a __GNUC__ specific

This commit is contained in:
Yann Collet
2024-10-08 16:38:35 -07:00
parent 741b860fc1
commit d45aee43f4

View 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;
}