Lines Matching defs:matchIndex
1022 U32 matchIndex = LZ4_getIndexOnHash(h, cctx->hashTable, tableType);
1023 assert(matchIndex <= current);
1033 if (matchIndex < startIndex) {
1036 matchIndex = LZ4_getIndexOnHash(h, dictCtx->hashTable, byU32);
1037 match = dictBase + matchIndex;
1038 matchIndex += dictDelta; /* make dictCtx index comparable with current context */
1041 match = base + matchIndex;
1045 if (matchIndex < startIndex) {
1046 DEBUGLOG(7, "extDict candidate: matchIndex=%5u < startIndex=%5u", matchIndex, startIndex);
1047 assert(startIndex - matchIndex >= MINMATCH);
1049 match = dictBase + matchIndex;
1052 match = base + matchIndex;
1056 match = base + matchIndex;
1061 DEBUGLOG(7, "candidate at pos=%u (offset=%u \n", matchIndex, current - matchIndex);
1062 if ((dictIssue == dictSmall) && (matchIndex < prefixIdxLimit)) { continue; } /* match outside of valid area */
1063 assert(matchIndex < current);
1065 && (matchIndex+LZ4_DISTANCE_MAX < current)) {
1068 assert((current - matchIndex) <= LZ4_DISTANCE_MAX); /* match now expected within distance */
1071 if (maybe_extMem) offset = current - matchIndex;
1222 U32 matchIndex = LZ4_getIndexOnHash(h, cctx->hashTable, tableType);
1223 assert(matchIndex < current);
1225 if (matchIndex < startIndex) {
1227 matchIndex = LZ4_getIndexOnHash(h, dictCtx->hashTable, byU32);
1228 match = dictBase + matchIndex;
1230 matchIndex += dictDelta;
1232 match = base + matchIndex;
1236 if (matchIndex < startIndex) {
1238 match = dictBase + matchIndex;
1241 match = base + matchIndex;
1245 match = base + matchIndex;
1248 assert(matchIndex < current);
1249 if ( ((dictIssue==dictSmall) ? (matchIndex >= prefixIdxLimit) : 1)
1250 && (((tableType==byU16) && (LZ4_DISTANCE_MAX == LZ4_DISTANCE_ABSOLUTE_MAX)) ? 1 : (matchIndex+LZ4_DISTANCE_MAX >= current))
1254 if (maybe_extMem) offset = current - matchIndex;
1553 * to avoid any risk of generating overflowing matchIndex