diff options
author | Anton Kochkov <anton.kochkov@gmail.com> | 2020-09-27 09:07:51 (GMT) |
---|---|---|
committer | Anton Kochkov <anton.kochkov@gmail.com> | 2020-09-27 09:07:51 (GMT) |
commit | 9730d91110184a83df9e8be8a0d2a1c57851685f (patch) | |
tree | a19a2776497795b12d9f93709e8f91470de12efd | |
parent | 20856da7c571cc1ee55965a342527f8263dc356d (diff) | |
download | lz4-9730d91110184a83df9e8be8a0d2a1c57851685f.zip lz4-9730d91110184a83df9e8be8a0d2a1c57851685f.tar.gz lz4-9730d91110184a83df9e8be8a0d2a1c57851685f.tar.bz2 |
Fix compilation with TinyCC
-rw-r--r-- | lib/lz4.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -514,7 +514,7 @@ static unsigned LZ4_NbCommonBytes (reg_t val) return (unsigned)r >> 3; # elif (defined(__clang__) || (defined(__GNUC__) && ((__GNUC__ > 3) || \ ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 4))))) && \ - !defined(LZ4_FORCE_SW_BITCOUNT) + !defined(__TINYC__) && !defined(LZ4_FORCE_SW_BITCOUNT) return (unsigned)__builtin_ctz((U32)val) >> 3; # else const U32 m = 0x01010101; @@ -525,7 +525,7 @@ static unsigned LZ4_NbCommonBytes (reg_t val) if (sizeof(val)==8) { # if (defined(__clang__) || (defined(__GNUC__) && ((__GNUC__ > 3) || \ ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 4))))) && \ - !defined(LZ4_FORCE_SW_BITCOUNT) + !defined(__TINYC__) && !defined(LZ4_FORCE_SW_BITCOUNT) return (unsigned)__builtin_clzll((U64)val) >> 3; # else #if 1 |