diff options
author | Yann Collet <Cyan4973@users.noreply.github.com> | 2020-11-08 01:18:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-08 01:18:04 (GMT) |
commit | 1d02141bf8149c1f0091a4c2548cc4f28092f73a (patch) | |
tree | 7f274fb7aa83bc987e0ab18dc5ac98e8167e3210 /lib/lz4hc.c | |
parent | 79a7c940172ae066f9d72462d625fb43e7a0343a (diff) | |
parent | f61eeb7793cd86a1ec80b68b5cd962b108c0489a (diff) | |
download | lz4-1d02141bf8149c1f0091a4c2548cc4f28092f73a.zip lz4-1d02141bf8149c1f0091a4c2548cc4f28092f73a.tar.gz lz4-1d02141bf8149c1f0091a4c2548cc4f28092f73a.tar.bz2 |
Merge pull request #941 from lz4/revertinline
Revert "Replace "static" to "LZ4_FORCE_INLINE" for small functions"
Diffstat (limited to 'lib/lz4hc.c')
-rw-r--r-- | lib/lz4hc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lz4hc.c b/lib/lz4hc.c index 85121d4..ef7ded3 100644 --- a/lib/lz4hc.c +++ b/lib/lz4hc.c @@ -159,7 +159,7 @@ int LZ4HC_countBack(const BYTE* const ip, const BYTE* const match, #endif -LZ4_FORCE_INLINE U32 LZ4HC_rotatePattern(size_t const rotate, U32 const pattern) +static U32 LZ4HC_rotatePattern(size_t const rotate, U32 const pattern) { size_t const bitsToRotate = (rotate & (sizeof(pattern) - 1)) << 3; if (bitsToRotate == 0) return pattern; @@ -223,7 +223,7 @@ LZ4HC_reverseCountPattern(const BYTE* ip, const BYTE* const iLow, U32 pattern) * 4 byte MINMATCH would overflow. * @returns true if the match index is okay. */ -LZ4_FORCE_INLINE int LZ4HC_protectDictEnd(U32 const dictLimit, U32 const matchIndex) +static int LZ4HC_protectDictEnd(U32 const dictLimit, U32 const matchIndex) { return ((U32)((dictLimit - 1) - matchIndex) >= 3); } |