Lines Matching refs:matchIndex
243 U32 matchIndex = hashTable[h]; in ZSTD_insertBtAndGetAllMatches() local
295 while (nbCompares-- && (matchIndex > windowLow)) { in ZSTD_insertBtAndGetAllMatches()
296 U32 *nextPtr = bt + 2 * (matchIndex & btMask); in ZSTD_insertBtAndGetAllMatches()
300 if ((!extDict) || (matchIndex + matchLength >= dictLimit)) { in ZSTD_insertBtAndGetAllMatches()
301 match = base + matchIndex; in ZSTD_insertBtAndGetAllMatches()
306 match = dictBase + matchIndex; in ZSTD_insertBtAndGetAllMatches()
308 if (matchIndex + matchLength >= dictLimit) in ZSTD_insertBtAndGetAllMatches()
309 match = base + matchIndex; /* to prepare for next usage of match[matchLength] */ in ZSTD_insertBtAndGetAllMatches()
313 if (matchLength > matchEndIdx - matchIndex) in ZSTD_insertBtAndGetAllMatches()
314 matchEndIdx = matchIndex + (U32)matchLength; in ZSTD_insertBtAndGetAllMatches()
316 matches[mnum].off = ZSTD_REP_MOVE_OPT + curr - matchIndex; in ZSTD_insertBtAndGetAllMatches()
327 *smallerPtr = matchIndex; /* update smaller idx */ in ZSTD_insertBtAndGetAllMatches()
329 if (matchIndex <= btLow) { in ZSTD_insertBtAndGetAllMatches()
334 matchIndex = nextPtr[1]; /* new matchIndex larger than previous (closer to curr) */ in ZSTD_insertBtAndGetAllMatches()
337 *largerPtr = matchIndex; in ZSTD_insertBtAndGetAllMatches()
339 if (matchIndex <= btLow) { in ZSTD_insertBtAndGetAllMatches()
344 matchIndex = nextPtr[0]; in ZSTD_insertBtAndGetAllMatches()