diff options
author | Yann Collet <yann.collet.73@gmail.com> | 2014-12-03 18:17:10 (GMT) |
---|---|---|
committer | Yann Collet <yann.collet.73@gmail.com> | 2014-12-03 18:17:10 (GMT) |
commit | 65ee6b09c4392814167e7a039d9312aabdb5119b (patch) | |
tree | 1431e78ee1e1fd2c8881c02f39dc808e17b9a078 /lib/lz4.c | |
parent | 118296aeb0f02b8978544793ae4cc897d7638765 (diff) | |
download | lz4-65ee6b09c4392814167e7a039d9312aabdb5119b.zip lz4-65ee6b09c4392814167e7a039d9312aabdb5119b.tar.gz lz4-65ee6b09c4392814167e7a039d9312aabdb5119b.tar.bz2 |
Fixed : deprecated function LZ4_slideInputBufferHC()
Diffstat (limited to 'lib/lz4.c')
-rw-r--r-- | lib/lz4.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -394,17 +394,17 @@ static unsigned LZ4_count(const BYTE* pIn, const BYTE* pMatch, const BYTE* pInLi pIn += LZ4_NbCommonBytes(diff); return (unsigned)(pIn - pStart); } + if (LZ4_64bits()) if ((pIn<(pInLimit-3)) && (LZ4_read32(pMatch) == LZ4_read32(pIn))) { pIn+=4; pMatch+=4; } if ((pIn<(pInLimit-1)) && (LZ4_read16(pMatch) == LZ4_read16(pIn))) { pIn+=2; pMatch+=2; } if ((pIn<pInLimit) && (*pMatch == *pIn)) pIn++; - return (unsigned)(pIn - pStart); } #ifndef LZ4_COMMONDEFS_ONLY /************************************** - Local Common Constants + Local Constants **************************************/ #define LZ4_HASHLOG (LZ4_MEMORY_USAGE-2) #define HASHTABLESIZE (1 << LZ4_MEMORY_USAGE) |