Skip to content

Commit

Permalink
Merge pull request #922 from XVilka/tinycc-support
Browse files Browse the repository at this point in the history
Fix compilation with TinyCC
  • Loading branch information
Cyan4973 committed Sep 28, 2020
2 parents 20856da + 9730d91 commit 21062b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/lz4.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
Expand Down

0 comments on commit 21062b0

Please sign in to comment.