Lines Matching refs:pIn
741 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()
756 …if (MEM_64bits() && (pIn<(pInLimit-3)) && (MEM_read32(pMatch) == MEM_read32(pIn))) { pIn+=4; pMatc… in ZSTD_count()
757 if ((pIn<(pInLimit-1)) && (MEM_read16(pMatch) == MEM_read16(pIn))) { pIn+=2; pMatch+=2; } in ZSTD_count()
758 if ((pIn<pInLimit) && (*pMatch == *pIn)) pIn++; in ZSTD_count()
759 return (size_t)(pIn - pStart); in ZSTD_count()