Home
last modified time | relevance | path

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

/linux-6.12.1/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.12.1/lib/zstd/compress/
Dzstd_compress_internal.h741 MEM_STATIC size_t ZSTD_count(const BYTE* pIn, const BYTE* pMatch, const BYTE* const pInLimit) in ZSTD_count() argument
743 const BYTE* const pStart = pIn; in ZSTD_count()
746 if (pIn < pInLoopLimit) { in ZSTD_count()
747 { size_t const diff = MEM_readST(pMatch) ^ MEM_readST(pIn); in ZSTD_count()
749 pIn+=sizeof(size_t); pMatch+=sizeof(size_t); in ZSTD_count()
750 while (pIn < pInLoopLimit) { in ZSTD_count()
751 size_t const diff = MEM_readST(pMatch) ^ MEM_readST(pIn); in ZSTD_count()
752 if (!diff) { pIn+=sizeof(size_t); pMatch+=sizeof(size_t); continue; } in ZSTD_count()
753 pIn += ZSTD_NbCommonBytes(diff); in ZSTD_count()
754 return (size_t)(pIn - pStart); in ZSTD_count()
[all …]
Dzstd_ldm.c197 const BYTE* pIn, const BYTE* pAnchor, in ZSTD_ldm_countBackwardsMatch() argument
201 while (pIn > pAnchor && pMatch > pMatchBase && pIn[-1] == pMatch[-1]) { in ZSTD_ldm_countBackwardsMatch()
202 pIn--; in ZSTD_ldm_countBackwardsMatch()
215 const BYTE* pIn, const BYTE* pAnchor, in ZSTD_ldm_countBackwardsMatch_2segments() argument
219 size_t matchLength = ZSTD_ldm_countBackwardsMatch(pIn, pAnchor, pMatch, pMatchBase); in ZSTD_ldm_countBackwardsMatch_2segments()
225 …matchLength += ZSTD_ldm_countBackwardsMatch(pIn - matchLength, pAnchor, pExtDictEnd, pExtDictStart… in ZSTD_ldm_countBackwardsMatch_2segments()