summaryrefslogtreecommitdiffstats
path: root/lib/lz4hc.c
diff options
context:
space:
mode:
authorYann Collet <Cyan4973@users.noreply.github.com>2020-10-31 08:44:21 (GMT)
committerGitHub <noreply@github.com>2020-10-31 08:44:21 (GMT)
commit664427aa8f6808411a2c04f003a9b364bdebe578 (patch)
treea8c7a2929f5e5a0e7be6f8eb662b1aaa2f66ddc2 /lib/lz4hc.c
parent644ab86b8cca85ac333cc640331a9798ce968cbb (diff)
parent0e3933edd435c54cc2e21e38f5d4ba7bf644a24e (diff)
downloadlz4-664427aa8f6808411a2c04f003a9b364bdebe578.zip
lz4-664427aa8f6808411a2c04f003a9b364bdebe578.tar.gz
lz4-664427aa8f6808411a2c04f003a9b364bdebe578.tar.bz2
Merge pull request #930 from remittor-pr/fix_msvc
Fix: The "inline" specifier do not use for LZ4_wildCopy8 and LZ4_wildCopy32
Diffstat (limited to 'lib/lz4hc.c')
-rw-r--r--lib/lz4hc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lz4hc.c b/lib/lz4hc.c
index 080816e..a126c83 100644
--- a/lib/lz4hc.c
+++ b/lib/lz4hc.c
@@ -158,7 +158,7 @@ int LZ4HC_countBack(const BYTE* const ip, const BYTE* const match,
#endif
-static U32 LZ4HC_rotatePattern(size_t const rotate, U32 const pattern)
+LZ4_FORCE_INLINE U32 LZ4HC_rotatePattern(size_t const rotate, U32 const pattern)
{
size_t const bitsToRotate = (rotate & (sizeof(pattern) - 1)) << 3;
if (bitsToRotate == 0)
@@ -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.
*/
-static int LZ4HC_protectDictEnd(U32 const dictLimit, U32 const matchIndex)
+LZ4_FORCE_INLINE int LZ4HC_protectDictEnd(U32 const dictLimit, U32 const matchIndex)
{
return ((U32)((dictLimit - 1) - matchIndex) >= 3);
}