summaryrefslogtreecommitdiffstats
path: root/lib/lz4.c
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2014-12-03 18:17:10 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2014-12-03 18:17:10 (GMT)
commit65ee6b09c4392814167e7a039d9312aabdb5119b (patch)
tree1431e78ee1e1fd2c8881c02f39dc808e17b9a078 /lib/lz4.c
parent118296aeb0f02b8978544793ae4cc897d7638765 (diff)
downloadlz4-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lz4.c b/lib/lz4.c
index 4d3e67f..f8186b4 100644
--- a/lib/lz4.c
+++ b/lib/lz4.c
@@ -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)