Lines Matching refs:matchIndex
962 U32 matchIndex = LZ4_getIndexOnHash(h, cctx->hashTable, tableType); in LZ4_compress_generic_validated() local
963 assert(matchIndex <= current); in LZ4_compress_generic_validated()
973 if (matchIndex < startIndex) { in LZ4_compress_generic_validated()
976 matchIndex = LZ4_getIndexOnHash(h, dictCtx->hashTable, byU32); in LZ4_compress_generic_validated()
977 match = dictBase + matchIndex; in LZ4_compress_generic_validated()
978 … matchIndex += dictDelta; /* make dictCtx index comparable with current context */ in LZ4_compress_generic_validated()
981 match = base + matchIndex; in LZ4_compress_generic_validated()
985 if (matchIndex < startIndex) { in LZ4_compress_generic_validated()
986 … DEBUGLOG(7, "extDict candidate: matchIndex=%5u < startIndex=%5u", matchIndex, startIndex); in LZ4_compress_generic_validated()
987 assert(startIndex - matchIndex >= MINMATCH); in LZ4_compress_generic_validated()
988 match = dictBase + matchIndex; in LZ4_compress_generic_validated()
991 match = base + matchIndex; in LZ4_compress_generic_validated()
995 match = base + matchIndex; in LZ4_compress_generic_validated()
1000 DEBUGLOG(7, "candidate at pos=%u (offset=%u \n", matchIndex, current - matchIndex); in LZ4_compress_generic_validated()
1001 …if ((dictIssue == dictSmall) && (matchIndex < prefixIdxLimit)) { continue; } /* match outside o… in LZ4_compress_generic_validated()
1002 assert(matchIndex < current); in LZ4_compress_generic_validated()
1004 && (matchIndex+LZ4_DISTANCE_MAX < current)) { in LZ4_compress_generic_validated()
1007 … assert((current - matchIndex) <= LZ4_DISTANCE_MAX); /* match now expected within distance */ in LZ4_compress_generic_validated()
1010 if (maybe_extMem) offset = current - matchIndex; in LZ4_compress_generic_validated()
1161 U32 matchIndex = LZ4_getIndexOnHash(h, cctx->hashTable, tableType); in LZ4_compress_generic_validated() local
1162 assert(matchIndex < current); in LZ4_compress_generic_validated()
1164 if (matchIndex < startIndex) { in LZ4_compress_generic_validated()
1166 matchIndex = LZ4_getIndexOnHash(h, dictCtx->hashTable, byU32); in LZ4_compress_generic_validated()
1167 match = dictBase + matchIndex; in LZ4_compress_generic_validated()
1169 matchIndex += dictDelta; in LZ4_compress_generic_validated()
1171 match = base + matchIndex; in LZ4_compress_generic_validated()
1175 if (matchIndex < startIndex) { in LZ4_compress_generic_validated()
1176 match = dictBase + matchIndex; in LZ4_compress_generic_validated()
1179 match = base + matchIndex; in LZ4_compress_generic_validated()
1183 match = base + matchIndex; in LZ4_compress_generic_validated()
1186 assert(matchIndex < current); in LZ4_compress_generic_validated()
1187 if ( ((dictIssue==dictSmall) ? (matchIndex >= prefixIdxLimit) : 1) in LZ4_compress_generic_validated()
1188 …ype==byU16) && (LZ4_DISTANCE_MAX == LZ4_DISTANCE_ABSOLUTE_MAX)) ? 1 : (matchIndex+LZ4_DISTANCE_MAX… in LZ4_compress_generic_validated()
1192 if (maybe_extMem) offset = current - matchIndex; in LZ4_compress_generic_validated()