Lines Matching refs:prefixIdx

125     U32 const prefixIdx = hc4->dictLimit;
126 U32 const target = (U32)(ip - prefixPtr) + prefixIdx;
129 assert(target >= prefixIdx);
132 U32 const h = LZ4HC_hashPtr(prefixPtr+idx-prefixIdx);
256 const U32 prefixIdx = hc4->dictLimit;
257 const U32 ipIndex = (U32)(ip - prefixPtr) + prefixIdx;
262 const BYTE* const dictEnd = dictStart + prefixIdx - dictIdx;
284 } else if (matchIndex >= prefixIdx) { /* within current Prefix */
285 const BYTE* const matchPtr = prefixPtr + matchIndex - prefixIdx;
301 if ( likely(matchIndex <= prefixIdx - 4)
304 const BYTE* vLimit = ip + (prefixIdx - matchIndex);
313 *matchpos = prefixPtr - prefixIdx + matchIndex + back; /* virtual pos, relative to ip, to retrieve offset */
353 && LZ4HC_protectDictEnd(prefixIdx, matchCandidateIdx) ) {
354 const int extDict = matchCandidateIdx < prefixIdx;
355 const BYTE* const matchPtr = (extDict ? dictStart - dictIdx : prefixPtr - prefixIdx) + matchCandidateIdx;
368 && dictIdx < prefixIdx) {
380 if (LZ4HC_protectDictEnd(prefixIdx, newMatchIndex))
384 assert(newMatchIndex >= prefixIdx - 3 && newMatchIndex < prefixIdx && !extDict);
385 matchIndex = prefixIdx;
389 if (!LZ4HC_protectDictEnd(prefixIdx, newMatchIndex)) {
390 assert(newMatchIndex >= prefixIdx - 3 && newMatchIndex < prefixIdx && !extDict);
391 matchIndex = prefixIdx;
397 assert(prefixPtr - prefixIdx + matchIndex != ip);
398 if ((size_t)(ip - prefixPtr) + prefixIdx - matchIndex > LZ4_DISTANCE_MAX) break;
401 *matchpos = prefixPtr - prefixIdx + matchIndex; /* virtual pos, relative to ip, to retrieve offset */
437 *matchpos = prefixPtr - prefixIdx + matchIndex + back;