From 9221419c6fad7d714369cb549b123825fd041d49 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Mon, 6 Nov 2017 17:29:27 -0800 Subject: [PATCH] added LZ4_FORCEINLINE to counter gcc regression as recommended by @terrelln --- lib/lz4.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/lz4.c b/lib/lz4.c index ff6496c2..61572852 100644 --- a/lib/lz4.c +++ b/lib/lz4.c @@ -403,7 +403,8 @@ static unsigned LZ4_NbCommonBytes (REGISTER reg_t val) } #define STEPSIZE sizeof(reg_t) -static unsigned LZ4_count(const BYTE* pIn, const BYTE* pMatch, const BYTE* pInLimit) +LZ4_FORCE_INLINE +unsigned LZ4_count(const BYTE* pIn, const BYTE* pMatch, const BYTE* pInLimit) { const BYTE* const pStart = pIn;