Home
last modified time | relevance | path

Searched refs:pIn (Results 1 – 3 of 3) sorted by relevance

/linux-6.1.9/lib/lz4/
Dlz4defs.h196 const BYTE *pIn, in LZ4_count() argument
200 const BYTE *const pStart = pIn; in LZ4_count()
202 while (likely(pIn < pInLimit - (STEPSIZE - 1))) { in LZ4_count()
203 size_t const diff = LZ4_read_ARCH(pMatch) ^ LZ4_read_ARCH(pIn); in LZ4_count()
206 pIn += STEPSIZE; in LZ4_count()
211 pIn += LZ4_NbCommonBytes(diff); in LZ4_count()
213 return (unsigned int)(pIn - pStart); in LZ4_count()
217 if ((pIn < (pInLimit - 3)) in LZ4_count()
218 && (LZ4_read32(pMatch) == LZ4_read32(pIn))) { in LZ4_count()
219 pIn += 4; in LZ4_count()
[all …]
/linux-6.1.9/lib/zstd/compress/
Dzstd_compress_internal.h615 MEM_STATIC size_t ZSTD_count(const BYTE* pIn, const BYTE* pMatch, const BYTE* const pInLimit) in ZSTD_count() argument
617 const BYTE* const pStart = pIn; in ZSTD_count()
620 if (pIn < pInLoopLimit) { in ZSTD_count()
621 { size_t const diff = MEM_readST(pMatch) ^ MEM_readST(pIn); in ZSTD_count()
623 pIn+=sizeof(size_t); pMatch+=sizeof(size_t); in ZSTD_count()
624 while (pIn < pInLoopLimit) { in ZSTD_count()
625 size_t const diff = MEM_readST(pMatch) ^ MEM_readST(pIn); in ZSTD_count()
626 if (!diff) { pIn+=sizeof(size_t); pMatch+=sizeof(size_t); continue; } in ZSTD_count()
627 pIn += ZSTD_NbCommonBytes(diff); in ZSTD_count()
628 return (size_t)(pIn - pStart); in ZSTD_count()
[all …]
Dzstd_ldm.c170 const BYTE* pIn, const BYTE* pAnchor, in ZSTD_ldm_countBackwardsMatch() argument
174 while (pIn > pAnchor && pMatch > pMatchBase && pIn[-1] == pMatch[-1]) { in ZSTD_ldm_countBackwardsMatch()
175 pIn--; in ZSTD_ldm_countBackwardsMatch()
188 const BYTE* pIn, const BYTE* pAnchor, in ZSTD_ldm_countBackwardsMatch_2segments() argument
192 size_t matchLength = ZSTD_ldm_countBackwardsMatch(pIn, pAnchor, pMatch, pMatchBase); in ZSTD_ldm_countBackwardsMatch_2segments()
198 …matchLength += ZSTD_ldm_countBackwardsMatch(pIn - matchLength, pAnchor, pExtDictEnd, pExtDictStart… in ZSTD_ldm_countBackwardsMatch_2segments()