From: Yann Collet Date: Tue, 7 Nov 2017 01:29:27 +0000 (-0800) Subject: added LZ4_FORCEINLINE to counter gcc regression X-Git-Tag: upstream/1.9.3~11^2~26^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9221419c6fad7d714369cb549b123825fd041d49;p=platform%2Fupstream%2Flz4.git added LZ4_FORCEINLINE to counter gcc regression as recommended by @terrelln --- diff --git a/lib/lz4.c b/lib/lz4.c index ff6496c..6157285 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;