Home
last modified time | relevance | path

Searched refs:MINMATCH (Results 1 – 20 of 20) sorted by relevance

/external/lz4/lib/
Dlz4hc.c74 #define OPTIMAL_ML (int)((ML_MASK-1)+MINMATCH)
81 #define HASH_FUNCTION(i) (((i) * 2654435761U) >> ((MINMATCH*8)-LZ4HC_HASH_LOG))
287 … matchLength = MINMATCH + (int)LZ4_count(ip+MINMATCH, matchPtr+MINMATCH, iHighLimit); in LZ4HC_InsertAndGetWiderMatch()
301 matchLength = (int)LZ4_count(ip+MINMATCH, matchPtr+MINMATCH, vLimit) + MINMATCH; in LZ4HC_InsertAndGetWiderMatch()
317 int const end = longest - MINMATCH + 1; in LZ4HC_InsertAndGetWiderMatch()
427 mlt = (int)LZ4_count(ip+MINMATCH, matchPtr+MINMATCH, vLimit) + MINMATCH; in LZ4HC_InsertAndGetWiderMatch()
456 …return LZ4HC_InsertAndGetWiderMatch(hc4, ip, ip, iLimit, MINMATCH-1, matchpos, &uselessPtr, maxNbA… in LZ4HC_InsertAndFindBestMatch()
512 assert(matchLength >= MINMATCH); in LZ4HC_encodeSequence()
513 length = (size_t)matchLength - MINMATCH; in LZ4HC_encodeSequence()
573 if (ml<MINMATCH) { ip++; continue; } in LZ4HC_compress_hashChain()
[all …]
Dlz4.c189 #define MINMATCH 4 macro
194 #define MATCH_SAFEGUARD_DISTANCE ((2*WILDCOPYLENGTH) - MINMATCH) /* ensure it's possible to writ…
429 assert(dstEnd >= dstPtr + MINMATCH); in LZ4_memcpy_using_offset()
634 return ((sequence * 2654435761U) >> ((MINMATCH*8)-(LZ4_HASHLOG+1))); in LZ4_hash4()
636 return ((sequence * 2654435761U) >> ((MINMATCH*8)-LZ4_HASHLOG)); in LZ4_hash4()
925 assert(startIndex - matchIndex >= MINMATCH); in LZ4_compress_generic()
967 …+ litLength /* literals */ + 2 /* offset */ + 1 /* token */ + MFLIMIT - MINMATCH /* min last liter… in LZ4_compress_generic()
996 …(op + 2 /* offset */ + 1 /* token */ + MFLIMIT - MINMATCH /* min last literals so last match is <=… in LZ4_compress_generic()
1021 matchCode = LZ4_count(ip+MINMATCH, match+MINMATCH, limit); in LZ4_compress_generic()
1022 ip += (size_t)matchCode + MINMATCH; in LZ4_compress_generic()
[all …]
/external/zstd/lib/compress/
Dzstd_fast.c152 ZSTD_storeSeq(seqStore, (size_t)(ip0-anchor), anchor, iend, offcode, mLength-MINMATCH); in ZSTD_compressBlock_fast_generic()
170 … ZSTD_storeSeq(seqStore, 0 /*litLen*/, anchor, iend, 0 /*offCode*/, rLength-MINMATCH); in ZSTD_compressBlock_fast_generic()
275 ZSTD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, 0, mLength-MINMATCH); in ZSTD_compressBlock_fast_dictMatchState_generic()
295 …TD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, offset + ZSTD_REP_MOVE, mLength-MINMATCH); in ZSTD_compressBlock_fast_dictMatchState_generic()
310 …TD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, offset + ZSTD_REP_MOVE, mLength-MINMATCH); in ZSTD_compressBlock_fast_dictMatchState_generic()
335 ZSTD_storeSeq(seqStore, 0, anchor, iend, 0, repLength2-MINMATCH); in ZSTD_compressBlock_fast_dictMatchState_generic()
426 ZSTD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, 0, rLength-MINMATCH); in ZSTD_compressBlock_fast_extDict_generic()
442 …TD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, offset + ZSTD_REP_MOVE, mLength-MINMATCH); in ZSTD_compressBlock_fast_extDict_generic()
461 … ZSTD_storeSeq(seqStore, 0 /*litlen*/, anchor, iend, 0 /*offcode*/, repLength2-MINMATCH); in ZSTD_compressBlock_fast_extDict_generic()
Dzstd_double_fast.c151 ZSTD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, 0, mLength-MINMATCH); in ZSTD_compressBlock_doubleFast_generic()
160 ZSTD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, 0, mLength-MINMATCH); in ZSTD_compressBlock_doubleFast_generic()
253 …TD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, offset + ZSTD_REP_MOVE, mLength-MINMATCH); in ZSTD_compressBlock_doubleFast_generic()
284 ZSTD_storeSeq(seqStore, 0, anchor, iend, 0, repLength2-MINMATCH); in ZSTD_compressBlock_doubleFast_generic()
303 ZSTD_storeSeq(seqStore, 0, anchor, iend, 0, rLength-MINMATCH); in ZSTD_compressBlock_doubleFast_generic()
417 ZSTD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, 0, mLength-MINMATCH); in ZSTD_compressBlock_doubleFast_extDict_generic()
428 …TD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, offset + ZSTD_REP_MOVE, mLength-MINMATCH); in ZSTD_compressBlock_doubleFast_extDict_generic()
453 …TD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, offset + ZSTD_REP_MOVE, mLength-MINMATCH); in ZSTD_compressBlock_doubleFast_extDict_generic()
485 ZSTD_storeSeq(seqStore, 0, anchor, iend, 0, repLength2-MINMATCH); in ZSTD_compressBlock_doubleFast_extDict_generic()
Dzstd_lazy.c220 if (bestLength >= MINMATCH) { in ZSTD_DUBT_findBetterDictMatch()
369 if (bestLength >= MINMATCH) { in ZSTD_DUBT_findBestMatch()
1076 ZSTD_storeSeq(seqStore, litLength, anchor, iend, (U32)offset, matchLength-MINMATCH); in ZSTD_compressBlock_lazy_generic()
1093 ZSTD_storeSeq(seqStore, 0, anchor, iend, 0, matchLength-MINMATCH); in ZSTD_compressBlock_lazy_generic()
1108 ZSTD_storeSeq(seqStore, 0, anchor, iend, 0, matchLength-MINMATCH); in ZSTD_compressBlock_lazy_generic()
1349 ZSTD_storeSeq(seqStore, litLength, anchor, iend, (U32)offset, matchLength-MINMATCH); in ZSTD_compressBlock_lazy_extDict_generic()
1366 ZSTD_storeSeq(seqStore, 0, anchor, iend, 0, matchLength-MINMATCH); in ZSTD_compressBlock_lazy_extDict_generic()
Dzstd_opt.c264 U32 const mlBase = matchLength - MINMATCH; in ZSTD_getMatchPrice()
265 assert(matchLength >= MINMATCH); in ZSTD_getMatchPrice()
314 { U32 const mlBase = matchLength - MINMATCH; in ZSTD_updateStats()
866 || candidateMatchLength < MINMATCH) { in ZSTD_optLdm_maybeAddMatch()
1201 ZSTD_storeSeq(seqStore, llen, anchor, iend, offCode, mlen-MINMATCH); in ZSTD_compressBlock_opt_generic()
Dzstd_compress_sequences.c333 (unsigned)sequences[n].matchLength + MINMATCH, in ZSTD_encodeSequences_body()
Dzstd_ldm.c651 sequence.matchLength - MINMATCH); in ZSTD_ldm_blockCompress()
Dzstd_compress_internal.h511 pos, (U32)litLength, (U32)mlBase+MINMATCH, (U32)offCode); in ZSTD_storeSeq()
Dzstd_compress.c2539 outSeqs[i].matchLength = seqStoreSeqs[i].matchLength + MINMATCH; in ZSTD_copyBlockSequences()
4619 ZSTD_storeSeq(&cctx->seqStore, litLength, ip, iend, offCode, matchLength - MINMATCH); in ZSTD_copySequencesToSeqStoreExplicitBlockDelim()
4745 ZSTD_storeSeq(&cctx->seqStore, litLength, ip, iend, offCode, matchLength - MINMATCH); in ZSTD_copySequencesToSeqStoreNoBlockDelim()
/external/zstd/lib/common/
Dzstd_internal.h175 #define MINMATCH 3 macro
387 seqLen.matchLength = seq->matchLength + MINMATCH; in ZSTD_getSequenceLength()
/external/zstd/contrib/match_finders/
Dzstd_edist.c426 if (combinedMatches[nbCombinedMatches - 1].matchLength < MINMATCH) { in ZSTD_eDist_combineMatches()
/external/zstd/lib/legacy/
Dzstd_v01.c1329 #define MINMATCH 4 macro
1748 matchLength += MINMATCH; in ZSTD_decodeSequence()
1817 if (endMatch > oend-(16-MINMATCH)) in ZSTD_execSequence()
Dzstd_v04.c368 #define MINMATCH 4 macro
2859 matchLength += MINMATCH; in ZSTD_decodeSequence()
2912 if (op > oend_8 || sequence.matchLength < MINMATCH) { in ZSTD_execSequence()
2936 if (oMatchEnd > oend-(16-MINMATCH)) in ZSTD_execSequence()
Dzstd_v05.c469 #define MINMATCH 4 macro
3208 matchLength += MINMATCH; in ZSTDv05_decodeSequence()
3268 if (op > oend_8 || sequence.matchLength < MINMATCH) { in ZSTDv05_execSequence()
3291 if (oMatchEnd > oend-(16-MINMATCH)) { in ZSTDv05_execSequence()
Dzstd_v06.c494 #define MINMATCH 3 macro
3350 …seq->matchLength = ML_base[mlCode] + MINMATCH + ((mlCode>31) ? BITv06_readBits(&(seqState->DStream… in ZSTDv06_decodeSequence()
3402 if (op > oend_8 || sequence.matchLength < MINMATCH) { in ZSTDv06_execSequence()
3427 if (oMatchEnd > oend-(16-MINMATCH)) { in ZSTDv06_execSequence()
Dzstd_v03.c2364 #define MINMATCH 4 macro
2738 matchLength += MINMATCH; in ZSTD_decodeSequence()
2798 if (oMatchEnd > oend-(16-MINMATCH)) in ZSTD_execSequence()
Dzstd_v02.c2723 #define MINMATCH 4 macro
3097 matchLength += MINMATCH; in ZSTD_decodeSequence()
3157 if (oMatchEnd > oend-(16-MINMATCH)) in ZSTD_execSequence()
Dzstd_v07.c2729 #define MINMATCH 3 macro
3629 if (op > oend_w || sequence.matchLength < MINMATCH) { in ZSTDv07_execSequence()
3654 if (oMatchEnd > oend-(16-MINMATCH)) { in ZSTDv07_execSequence()
/external/zstd/tests/
Ddecodecorpus.c762 offsetCode, matchLen - MINMATCH); in generateSequences()