Lines Matching refs:srcIdx
51 U32 srcIdx; member
129 S32 srcIdx; in ZSTD_eDist_diag() local
134 for (dictIdx = dictIdx0, srcIdx = dictIdx0 - diag; in ZSTD_eDist_diag()
135 dictIdx < dictHigh && srcIdx < srcHigh && dict[dictIdx] == src[srcIdx]; in ZSTD_eDist_diag()
136 dictIdx++, srcIdx++) continue; in ZSTD_eDist_diag()
145 partition->srcMid = srcIdx; in ZSTD_eDist_diag()
169 S32 srcIdx; in ZSTD_eDist_diag() local
174 for (dictIdx = dictIdx0, srcIdx = dictIdx0 - diag; in ZSTD_eDist_diag()
175 dictLow < dictIdx && srcLow < srcIdx && dict[dictIdx - 1] == src[srcIdx - 1]; in ZSTD_eDist_diag()
176 dictIdx--, srcIdx--) continue; in ZSTD_eDist_diag()
185 partition->srcMid = srcIdx; in ZSTD_eDist_diag()
209 S32 srcIdx = dictIdx - diag; in ZSTD_eDist_diag() local
215 && srcLow + ZSTD_EDIST_SNAKE_THRESH <= srcIdx && srcIdx <= srcHigh) { in ZSTD_eDist_diag()
217 for (k = 1; dict[dictIdx - k] == src[srcIdx - k]; k++) { in ZSTD_eDist_diag()
221 partition->srcMid = srcIdx; in ZSTD_eDist_diag()
242 S32 srcIdx = dictIdx - diag; in ZSTD_eDist_diag() local
248 && srcLow < srcIdx && srcIdx <= srcHigh - ZSTD_EDIST_SNAKE_THRESH) { in ZSTD_eDist_diag()
250 for (k = 0; dict[dictIdx + k] == src[srcIdx + k]; k++) { in ZSTD_eDist_diag()
254 partition->srcMid = srcIdx; in ZSTD_eDist_diag()
280 S32 srcIdx = dictIdx - diag; in ZSTD_eDist_diag() local
282 if (srcHigh < srcIdx) { in ZSTD_eDist_diag()
284 srcIdx = srcHigh; in ZSTD_eDist_diag()
287 if (forwardDictSrcBest < dictIdx + srcIdx) { in ZSTD_eDist_diag()
288 forwardDictSrcBest = dictIdx + srcIdx; in ZSTD_eDist_diag()
296 S32 srcIdx = dictIdx - diag; in ZSTD_eDist_diag() local
298 if (srcIdx < srcLow) { in ZSTD_eDist_diag()
300 srcIdx = srcLow; in ZSTD_eDist_diag()
303 if (dictIdx + srcIdx < backwardDictSrcBest) { in ZSTD_eDist_diag()
304 backwardDictSrcBest = dictIdx + srcIdx; in ZSTD_eDist_diag()
326 S32 const dictIdx, S32 const srcIdx) in ZSTD_eDist_insertMatch() argument
329 state->matches[state->nbMatches].srcIdx = srcIdx; in ZSTD_eDist_insertMatch()
392 S32 const l = ((ZSTD_eDist_match*)p)->srcIdx; in ZSTD_eDist_matchComp()
393 S32 const r = ((ZSTD_eDist_match*)q)->srcIdx; in ZSTD_eDist_matchComp()
421 if (combinedMatch.srcIdx + combinedMatch.matchLength == match.srcIdx && in ZSTD_eDist_combineMatches()
450 U32 const litLength = !i ? match.srcIdx : in ZSTD_eDist_convertMatchesToSequences()
451 match.srcIdx - (matches[i - 1].srcIdx + matches[i - 1].matchLength); in ZSTD_eDist_convertMatchesToSequences()
452 U32 const offset = (match.srcIdx + dictSize) - match.dictIdx; in ZSTD_eDist_convertMatchesToSequences()
516 U32 const srcIdx = match.srcIdx; in ZSTD_eDist_validateMatches() local
520 assert(srcIdx + matchLength < srcSize); in ZSTD_eDist_validateMatches()
521 assert(!memcmp(dict + dictIdx, src + srcIdx, matchLength)); in ZSTD_eDist_validateMatches()