summaryrefslogtreecommitdiffstats
path: root/lib/lz4hc.c
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2020-11-07 19:02:30 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2020-11-07 19:02:30 (GMT)
commitf61eeb7793cd86a1ec80b68b5cd962b108c0489a (patch)
tree70ee5ce4f2d3a32b9255b4fdb83711ba242a5507 /lib/lz4hc.c
parent80d3f32904ef447858aca2ecb7045805af23f8f6 (diff)
downloadlz4-f61eeb7793cd86a1ec80b68b5cd962b108c0489a.zip
lz4-f61eeb7793cd86a1ec80b68b5cd962b108c0489a.tar.gz
lz4-f61eeb7793cd86a1ec80b68b5cd962b108c0489a.tar.bz2
Revert "Replace "static" to "LZ4_FORCE_INLINE" for small functions"
This reverts commit 0e3933edd435c54cc2e21e38f5d4ba7bf644a24e.
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 15bedec..0c89e42 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);
}