Lines Matching refs:ml
145 size_t ml=0; in LZ4HC_InsertAndFindBestMatch() local
155 if (*(match+ml) == *(ip+ml) in LZ4HC_InsertAndFindBestMatch()
159 if (mlt > ml) { ml = mlt; *matchpos = match; } in LZ4HC_InsertAndFindBestMatch()
170 if (mlt > ml) { ml = mlt; *matchpos = base + matchIndex; } /* virtual matchpos */ in LZ4HC_InsertAndFindBestMatch()
176 return (int)ml; in LZ4HC_InsertAndFindBestMatch()
329 int ml, ml2, ml3, ml0; in LZ4HC_compress_hashChain() local
345 ml = LZ4HC_InsertAndFindBestMatch (ctx, ip, matchlimit, (&ref), maxNbAttempts); in LZ4HC_compress_hashChain()
346 if (!ml) { ip++; continue; } in LZ4HC_compress_hashChain()
351 ml0 = ml; in LZ4HC_compress_hashChain()
354 if (ip+ml < mflimit) in LZ4HC_compress_hashChain()
355 …ml2 = LZ4HC_InsertAndGetWiderMatch(ctx, ip + ml - 2, ip + 0, matchlimit, ml, &ref2, &start2, maxNb… in LZ4HC_compress_hashChain()
356 else ml2 = ml; in LZ4HC_compress_hashChain()
358 if (ml2 == ml) { /* No better match */ in LZ4HC_compress_hashChain()
359 if (LZ4HC_encodeSequence(&ip, &op, &anchor, ml, ref, limit, oend)) return 0; in LZ4HC_compress_hashChain()
367 ml = ml0; in LZ4HC_compress_hashChain()
373 ml = ml2; in LZ4HC_compress_hashChain()
387 int new_ml = ml; in LZ4HC_compress_hashChain()
405 if (start2 < ip+ml) ml = (int)(start2 - ip); in LZ4HC_compress_hashChain()
407 if (LZ4HC_encodeSequence(&ip, &op, &anchor, ml, ref, limit, oend)) return 0; in LZ4HC_compress_hashChain()
413 if (start3 < ip+ml+3) { /* Not enough space for match 2 : remove it */ in LZ4HC_compress_hashChain()
414 …if (start3 >= (ip+ml)) { /* can write Seq1 immediately ==> Seq2 is removed, so Seq3 becomes Seq1 … in LZ4HC_compress_hashChain()
415 if (start2 < ip+ml) { in LZ4HC_compress_hashChain()
416 int correction = (int)(ip+ml - start2); in LZ4HC_compress_hashChain()
427 if (LZ4HC_encodeSequence(&ip, &op, &anchor, ml, ref, limit, oend)) return 0; in LZ4HC_compress_hashChain()
430 ml = ml3; in LZ4HC_compress_hashChain()
448 if (start2 < ip+ml) { in LZ4HC_compress_hashChain()
451 if (ml > OPTIMAL_ML) ml = OPTIMAL_ML; in LZ4HC_compress_hashChain()
452 if (ip + ml > start2 + ml2 - MINMATCH) ml = (int)(start2 - ip) + ml2 - MINMATCH; in LZ4HC_compress_hashChain()
453 correction = ml - (int)(start2 - ip); in LZ4HC_compress_hashChain()
460 ml = (int)(start2 - ip); in LZ4HC_compress_hashChain()
463 if (LZ4HC_encodeSequence(&ip, &op, &anchor, ml, ref, limit, oend)) return 0; in LZ4HC_compress_hashChain()
467 ml = ml2; in LZ4HC_compress_hashChain()