Lines Matching refs:match
940 static size_t ZSTD_count_2segments(const BYTE *ip, const BYTE *match, const BYTE *iEnd, const BYTE … in ZSTD_count_2segments() argument
942 const BYTE *const vEnd = MIN(ip + (mEnd - match), iEnd); in ZSTD_count_2segments()
943 size_t const matchLength = ZSTD_count(ip, match, vEnd); in ZSTD_count_2segments()
944 if (match + matchLength != mEnd) in ZSTD_count_2segments()
1040 const BYTE *match = base + matchIndex; in ZSTD_compressBlock_fast_generic() local
1049 if ((matchIndex <= lowestIndex) || (ZSTD_read32(match) != ZSTD_read32(ip))) { in ZSTD_compressBlock_fast_generic()
1053 mLength = ZSTD_count(ip + 4, match + 4, iend) + 4; in ZSTD_compressBlock_fast_generic()
1054 offset = (U32)(ip - match); in ZSTD_compressBlock_fast_generic()
1055 while (((ip > anchor) & (match > lowest)) && (ip[-1] == match[-1])) { in ZSTD_compressBlock_fast_generic()
1057 match--; in ZSTD_compressBlock_fast_generic()
1140 const BYTE *match = matchBase + matchIndex; in ZSTD_compressBlock_fast_extDict_generic() local
1155 if ((matchIndex < lowestIndex) || (ZSTD_read32(match) != ZSTD_read32(ip))) { in ZSTD_compressBlock_fast_extDict_generic()
1163 …mLength = ZSTD_count_2segments(ip + EQUAL_READ32, match + EQUAL_READ32, iend, matchEnd, lowPrefixP… in ZSTD_compressBlock_fast_extDict_generic()
1164 while (((ip > anchor) & (match > lowMatchPtr)) && (ip[-1] == match[-1])) { in ZSTD_compressBlock_fast_extDict_generic()
1166 match--; in ZSTD_compressBlock_fast_extDict_generic()
1291 const BYTE *match = base + matchIndexS; in ZSTD_compressBlock_doubleFast_generic() local
1308 } else if ((matchIndexS > lowestIndex) && (ZSTD_read32(match) == ZSTD_read32(ip))) { in ZSTD_compressBlock_doubleFast_generic()
1323 mLength = ZSTD_count(ip + 4, match + 4, iend) + 4; in ZSTD_compressBlock_doubleFast_generic()
1324 offset = (U32)(ip - match); in ZSTD_compressBlock_doubleFast_generic()
1325 while (((ip > anchor) & (match > lowest)) && (ip[-1] == match[-1])) { in ZSTD_compressBlock_doubleFast_generic()
1327 match--; in ZSTD_compressBlock_doubleFast_generic()
1421 const BYTE *match = matchBase + matchIndex; in ZSTD_compressBlock_doubleFast_extDict_generic() local
1457 } else if ((matchIndex > lowestIndex) && (ZSTD_read32(match) == ZSTD_read32(ip))) { in ZSTD_compressBlock_doubleFast_extDict_generic()
1478 mLength = ZSTD_count_2segments(ip + 4, match + 4, iend, matchEnd, lowPrefixPtr) + 4; in ZSTD_compressBlock_doubleFast_extDict_generic()
1480 while (((ip > anchor) & (match > lowMatchPtr)) && (ip[-1] == match[-1])) { in ZSTD_compressBlock_doubleFast_extDict_generic()
1482 match--; in ZSTD_compressBlock_doubleFast_extDict_generic()
1576 const BYTE *match; in ZSTD_insertBt1() local
1593 match = base + matchIndex; in ZSTD_insertBt1()
1594 if (match[matchLength] == ip[matchLength]) in ZSTD_insertBt1()
1595 matchLength += ZSTD_count(ip + matchLength + 1, match + matchLength + 1, iend) + 1; in ZSTD_insertBt1()
1597 match = dictBase + matchIndex; in ZSTD_insertBt1()
1598 …matchLength += ZSTD_count_2segments(ip + matchLength, match + matchLength, iend, dictEnd, prefixSt… in ZSTD_insertBt1()
1600 match = base + matchIndex; /* to prepare for next usage of match[matchLength] */ in ZSTD_insertBt1()
1612 if (match[matchLength] < ip[matchLength]) { /* necessarily within correct buffer */ in ZSTD_insertBt1()
1673 const BYTE *match; in ZSTD_insertBtAndFindBestMatch() local
1676 match = base + matchIndex; in ZSTD_insertBtAndFindBestMatch()
1677 if (match[matchLength] == ip[matchLength]) in ZSTD_insertBtAndFindBestMatch()
1678 matchLength += ZSTD_count(ip + matchLength + 1, match + matchLength + 1, iend) + 1; in ZSTD_insertBtAndFindBestMatch()
1680 match = dictBase + matchIndex; in ZSTD_insertBtAndFindBestMatch()
1681 …matchLength += ZSTD_count_2segments(ip + matchLength, match + matchLength, iend, dictEnd, prefixSt… in ZSTD_insertBtAndFindBestMatch()
1683 match = base + matchIndex; /* to prepare for next usage of match[matchLength] */ in ZSTD_insertBtAndFindBestMatch()
1695 if (match[matchLength] < ip[matchLength]) { in ZSTD_insertBtAndFindBestMatch()
1841 const BYTE *match; in ZSTD_HcFindBestMatch_generic() local
1844 match = base + matchIndex; in ZSTD_HcFindBestMatch_generic()
1845 if (match[ml] == ip[ml]) /* potentially better */ in ZSTD_HcFindBestMatch_generic()
1846 currMl = ZSTD_count(ip, match, iLimit); in ZSTD_HcFindBestMatch_generic()
1848 match = dictBase + matchIndex; in ZSTD_HcFindBestMatch_generic()
1849 …if (ZSTD_read32(match) == ZSTD_read32(ip)) /* assumption : matchIndex <= dictLimit-4 (by table con… in ZSTD_HcFindBestMatch_generic()
1850 …currMl = ZSTD_count_2segments(ip + EQUAL_READ32, match + EQUAL_READ32, iLimit, dictEnd, prefixStar… in ZSTD_HcFindBestMatch_generic()
2199 const BYTE *match = (matchIndex < dictLimit) ? dictBase + matchIndex : base + matchIndex; in ZSTD_compressBlock_lazy_extDict_generic() local
2201 while ((start > anchor) && (match > mStart) && (start[-1] == match[-1])) { in ZSTD_compressBlock_lazy_extDict_generic()
2203 match--; in ZSTD_compressBlock_lazy_extDict_generic()