diff options
author | Yann Collet <cyan@fb.com> | 2017-11-07 01:29:27 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2017-11-07 01:29:27 (GMT) |
commit | 9221419c6fad7d714369cb549b123825fd041d49 (patch) | |
tree | ef5afd10312bc1093cfed666bf798a15a0a94f36 | |
parent | d51f0466289d9a021291e736b463cf8de7bd60bd (diff) | |
download | lz4-9221419c6fad7d714369cb549b123825fd041d49.zip lz4-9221419c6fad7d714369cb549b123825fd041d49.tar.gz lz4-9221419c6fad7d714369cb549b123825fd041d49.tar.bz2 |
added LZ4_FORCEINLINE to counter gcc regression
as recommended by @terrelln
-rw-r--r-- | lib/lz4.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |