Home
last modified time | relevance | path

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

/f-stack/freebsd/contrib/zstd/lib/compress/
H A Dzstd_compress_internal.h634 const BYTE* const pStart = pIn; in ZSTD_count()
637 if (pIn < pInLoopLimit) { in ZSTD_count()
638 { size_t const diff = MEM_readST(pMatch) ^ MEM_readST(pIn); in ZSTD_count()
640 pIn+=sizeof(size_t); pMatch+=sizeof(size_t); in ZSTD_count()
641 while (pIn < pInLoopLimit) { in ZSTD_count()
644 pIn += ZSTD_NbCommonBytes(diff); in ZSTD_count()
645 return (size_t)(pIn - pStart); in ZSTD_count()
647 …if (MEM_64bits() && (pIn<(pInLimit-3)) && (MEM_read32(pMatch) == MEM_read32(pIn))) { pIn+=4; pMatc… in ZSTD_count()
648 if ((pIn<(pInLimit-1)) && (MEM_read16(pMatch) == MEM_read16(pIn))) { pIn+=2; pMatch+=2; } in ZSTD_count()
649 if ((pIn<pInLimit) && (*pMatch == *pIn)) pIn++; in ZSTD_count()
[all …]
H A Dzstd_ldm.c145 const BYTE* pIn, const BYTE* pAnchor, in ZSTD_ldm_countBackwardsMatch() argument
149 while (pIn > pAnchor && pMatch > pMatchBase && pIn[-1] == pMatch[-1]) { in ZSTD_ldm_countBackwardsMatch()
150 pIn--; in ZSTD_ldm_countBackwardsMatch()
163 const BYTE* pIn, const BYTE* pAnchor, in ZSTD_ldm_countBackwardsMatch_2segments() argument
167 size_t matchLength = ZSTD_ldm_countBackwardsMatch(pIn, pAnchor, pMatch, pMatchBase); in ZSTD_ldm_countBackwardsMatch_2segments()
173 …matchLength += ZSTD_ldm_countBackwardsMatch(pIn - matchLength, pAnchor, pExtDictEnd, pExtDictStart… in ZSTD_ldm_countBackwardsMatch_2segments()
/f-stack/freebsd/contrib/zstd/lib/dictBuilder/
H A Dzdict.c191 static size_t ZDICT_count(const void* pIn, const void* pMatch) in ZDICT_count() argument
193 const char* const pStart = (const char*)pIn; in ZDICT_count()
195 size_t const diff = MEM_readST(pMatch) ^ MEM_readST(pIn); in ZDICT_count()
197 pIn = (const char*)pIn+sizeof(size_t); in ZDICT_count()
201 pIn = (const char*)pIn+ZDICT_NbCommonBytes(diff); in ZDICT_count()
202 return (size_t)((const char*)pIn - pStart); in ZDICT_count()
/f-stack/freebsd/contrib/openzfs/module/zstd/lib/
H A Dzstd.c10474 const BYTE* const pStart = pIn; in ZSTD_count()
10477 if (pIn < pInLoopLimit) { in ZSTD_count()
10481 while (pIn < pInLoopLimit) { in ZSTD_count()
10484 pIn += ZSTD_NbCommonBytes(diff); in ZSTD_count()
10485 return (size_t)(pIn - pStart); in ZSTD_count()
10487 …if (MEM_64bits() && (pIn<(pInLimit-3)) && (MEM_read32(pMatch) == MEM_read32(pIn))) { pIn+=4; pMatc… in ZSTD_count()
10488 if ((pIn<(pInLimit-1)) && (MEM_read16(pMatch) == MEM_read16(pIn))) { pIn+=2; pMatch+=2; } in ZSTD_count()
10489 if ((pIn<pInLimit) && (*pMatch == *pIn)) pIn++; in ZSTD_count()
10490 return (size_t)(pIn - pStart); in ZSTD_count()
19681 while (pIn > pAnchor && pMatch > pBase && pIn[-1] == pMatch[-1]) { in ZSTD_ldm_countBackwardsMatch()
[all …]