Lines Matching refs:matchIndex
1039 U32 const matchIndex = hashTable[h];
1040 const BYTE *match = base + matchIndex;
1049 if ((matchIndex <= lowestIndex) || (ZSTD_read32(match) != ZSTD_read32(ip))) {
1138 const U32 matchIndex = hashTable[h];
1139 const BYTE *matchBase = matchIndex < dictLimit ? dictBase : base;
1140 const BYTE *match = matchBase + matchIndex;
1155 if ((matchIndex < lowestIndex) || (ZSTD_read32(match) != ZSTD_read32(ip))) {
1160 const BYTE *matchEnd = matchIndex < dictLimit ? dictEnd : iend;
1161 const BYTE *lowMatchPtr = matchIndex < dictLimit ? dictStart : lowPrefixPtr;
1169 offset = curr - matchIndex;
1419 const U32 matchIndex = hashSmall[hSmall];
1420 const BYTE *matchBase = matchIndex < dictLimit ? dictBase : base;
1421 const BYTE *match = matchBase + matchIndex;
1457 } else if ((matchIndex > lowestIndex) && (ZSTD_read32(match) == ZSTD_read32(ip))) {
1476 const BYTE *matchEnd = matchIndex < dictLimit ? dictEnd : iend;
1477 const BYTE *lowMatchPtr = matchIndex < dictLimit ? dictStart : lowPrefixPtr;
1479 offset = curr - matchIndex;
1569 U32 matchIndex = hashTable[h];
1588 while (nbCompares-- && (matchIndex > windowLow)) {
1589 U32 *const nextPtr = bt + 2 * (matchIndex & btMask);
1592 if ((!extDict) || (matchIndex + matchLength >= dictLimit)) {
1593 match = base + matchIndex;
1597 match = dictBase + matchIndex;
1599 if (matchIndex + matchLength >= dictLimit)
1600 match = base + matchIndex; /* to prepare for next usage of match[matchLength] */
1605 if (matchLength > matchEndIdx - matchIndex)
1606 matchEndIdx = matchIndex + (U32)matchLength;
1614 *smallerPtr = matchIndex; /* update smaller idx */
1616 if (matchIndex <= btLow) {
1621 matchIndex = nextPtr[1]; /* new matchIndex larger than previous (closer to curr) */
1624 *largerPtr = matchIndex;
1626 if (matchIndex <= btLow) {
1631 matchIndex = nextPtr[0];
1652 U32 matchIndex = hashTable[h];
1670 while (nbCompares-- && (matchIndex > windowLow)) {
1671 U32 *const nextPtr = bt + 2 * (matchIndex & btMask);
1675 if ((!extDict) || (matchIndex + matchLength >= dictLimit)) {
1676 match = base + matchIndex;
1680 match = dictBase + matchIndex;
1682 if (matchIndex + matchLength >= dictLimit)
1683 match = base + matchIndex; /* to prepare for next usage of match[matchLength] */
1687 if (matchLength > matchEndIdx - matchIndex)
1688 matchEndIdx = matchIndex + (U32)matchLength;
1689 if ((4 * (int)(matchLength - bestLength)) > (int)(ZSTD_highbit32(curr - matchIndex + 1) - ZSTD_highbit32((U32)offsetPtr[0] + 1)))
1690 bestLength = matchLength, *offsetPtr = ZSTD_REP_MOVE + curr - matchIndex;
1697 *smallerPtr = matchIndex; /* update smaller idx */
1699 if (matchIndex <= btLow) {
1704 matchIndex = nextPtr[1]; /* new matchIndex larger than previous (closer to curr) */
1707 *largerPtr = matchIndex;
1709 if (matchIndex <= btLow) {
1714 matchIndex = nextPtr[0];
1838 U32 matchIndex = ZSTD_insertAndFindFirstIndex(zc, ip, mls);
1840 for (; (matchIndex > lowLimit) & (nbAttempts > 0); nbAttempts--) {
1843 if ((!extDict) || matchIndex >= dictLimit) {
1844 match = base + matchIndex;
1848 match = dictBase + matchIndex;
1849 if (ZSTD_read32(match) == ZSTD_read32(ip)) /* assumption : matchIndex <= dictLimit-4 (by table construction) */
1856 *offsetPtr = curr - matchIndex + ZSTD_REP_MOVE;
1861 if (matchIndex <= minChain)
1863 matchIndex = NEXT_IN_CHAIN(matchIndex, chainMask);
2198 U32 const matchIndex = (U32)((start - base) - (offset - ZSTD_REP_MOVE));
2199 const BYTE *match = (matchIndex < dictLimit) ? dictBase + matchIndex : base + matchIndex;
2200 const BYTE *const mStart = (matchIndex < dictLimit) ? dictStart : prefixStart;