Home
last modified time | relevance | path

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

/external/lz4/lib/
Dlz4hc.c75 #define OPTIMAL_ML (int)((ML_MASK-1)+MINMATCH)
82 #define HASH_FUNCTION(i) (((i) * 2654435761U) >> ((MINMATCH*8)-LZ4HC_HASH_LOG))
291 … matchLength = MINMATCH + (int)LZ4_count(ip+MINMATCH, matchPtr+MINMATCH, iHighLimit); in LZ4HC_InsertAndGetWiderMatch()
306 matchLength = (int)LZ4_count(ip+MINMATCH, matchPtr+MINMATCH, vLimit) + MINMATCH; in LZ4HC_InsertAndGetWiderMatch()
322 int const end = longest - MINMATCH + 1; in LZ4HC_InsertAndGetWiderMatch()
432 mlt = (int)LZ4_count(ip+MINMATCH, matchPtr+MINMATCH, vLimit) + MINMATCH; in LZ4HC_InsertAndGetWiderMatch()
461 …return LZ4HC_InsertAndGetWiderMatch(hc4, ip, ip, iLimit, MINMATCH-1, matchpos, &uselessPtr, maxNbA… in LZ4HC_InsertAndFindBestMatch()
527 assert(matchLength >= MINMATCH); in LZ4HC_encodeSequence()
528 length = (size_t)matchLength - MINMATCH; in LZ4HC_encodeSequence()
594 if (ml<MINMATCH) { ip++; continue; } in LZ4HC_compress_hashChain()
[all …]
Dlz4.c240 #define MINMATCH 4 macro
245 #define MATCH_SAFEGUARD_DISTANCE ((2*WILDCOPYLENGTH) - MINMATCH) /* ensure it's possible to writ…
518 assert(dstEnd >= dstPtr + MINMATCH); in LZ4_memcpy_using_offset()
759 return ((sequence * 2654435761U) >> ((MINMATCH*8)-(LZ4_HASHLOG+1))); in LZ4_hash4()
761 return ((sequence * 2654435761U) >> ((MINMATCH*8)-LZ4_HASHLOG)); in LZ4_hash4()
1047 assert(startIndex - matchIndex >= MINMATCH); in LZ4_compress_generic_validated()
1090 …+ litLength /* literals */ + 2 /* offset */ + 1 /* token */ + MFLIMIT - MINMATCH /* min last liter… in LZ4_compress_generic_validated()
1119 …(op + 2 /* offset */ + 1 /* token */ + MFLIMIT - MINMATCH /* min last literals so last match is <=… in LZ4_compress_generic_validated()
1144 matchCode = LZ4_count(ip+MINMATCH, match+MINMATCH, limit); in LZ4_compress_generic_validated()
1145 ip += (size_t)matchCode + MINMATCH; in LZ4_compress_generic_validated()
[all …]
/external/zstd/lib/common/
Dzstd_internal.h103 #define MINMATCH 3 macro
331 seqLen.matchLength = seq->mlBase + MINMATCH; in ZSTD_getSequenceLength()
/external/zstd/lib/compress/
Dzstd_opt.c305 U32 const mlBase = matchLength - MINMATCH; in ZSTD_getMatchPrice()
306 assert(matchLength >= MINMATCH); in ZSTD_getMatchPrice()
355 { U32 const mlBase = matchLength - MINMATCH; in ZSTD_updateStats()
969 || candidateMatchLength < MINMATCH) { in ZSTD_optLdm_maybeAddMatch()
Dzstd_compress_sequences.c342 (unsigned)sequences[n].mlBase + MINMATCH, in ZSTD_encodeSequences_body()
Dzstd_compress_internal.h646 assert(matchLength >= MINMATCH); in ZSTD_storeSeq()
647 { size_t const mlBase = matchLength - MINMATCH; in ZSTD_storeSeq()
Dzstd_lazy.c220 if (bestLength >= MINMATCH) { in ZSTD_DUBT_findBetterDictMatch()
370 if (bestLength >= MINMATCH) { in ZSTD_DUBT_findBestMatch()
Dzstd_compress.c2915 outSeqs[i].matchLength = seqStoreSeqs[i].mlBase + MINMATCH; in ZSTD_copyBlockSequences()
3388 matchBytes += seq.mlBase + MINMATCH; in ZSTD_countSeqStoreMatchBytes()
5774 RETURN_ERROR_IF(matchLength < MINMATCH, corruption_detected, "Matchlength too small"); in ZSTD_validateSequence()
/external/zstd/contrib/match_finders/
Dzstd_edist.c426 if (combinedMatches[nbCombinedMatches - 1].matchLength < MINMATCH) { in ZSTD_eDist_combineMatches()
/external/zstd/lib/legacy/
Dzstd_v01.c1325 #define MINMATCH 4 macro
1744 matchLength += MINMATCH; in ZSTD_decodeSequence()
1813 if (endMatch > oend-(16-MINMATCH)) in ZSTD_execSequence()
Dzstd_v04.c365 #define MINMATCH 4 macro
2855 matchLength += MINMATCH; in ZSTD_decodeSequence()
2908 if (op > oend_8 || sequence.matchLength < MINMATCH) { in ZSTD_execSequence()
2932 if (oMatchEnd > oend-(16-MINMATCH)) in ZSTD_execSequence()
Dzstd_v05.c466 #define MINMATCH 4 macro
3204 matchLength += MINMATCH; in ZSTDv05_decodeSequence()
3264 if (op > oend_8 || sequence.matchLength < MINMATCH) { in ZSTDv05_execSequence()
3287 if (oMatchEnd > oend-(16-MINMATCH)) { in ZSTDv05_execSequence()
Dzstd_v06.c491 #define MINMATCH 3 macro
3346 …seq->matchLength = ML_base[mlCode] + MINMATCH + ((mlCode>31) ? BITv06_readBits(&(seqState->DStream… in ZSTDv06_decodeSequence()
3398 if (op > oend_8 || sequence.matchLength < MINMATCH) { in ZSTDv06_execSequence()
3423 if (oMatchEnd > oend-(16-MINMATCH)) { in ZSTDv06_execSequence()
Dzstd_v03.c2360 #define MINMATCH 4 macro
2734 matchLength += MINMATCH; in ZSTD_decodeSequence()
2794 if (oMatchEnd > oend-(16-MINMATCH)) in ZSTD_execSequence()
Dzstd_v02.c2719 #define MINMATCH 4 macro
3093 matchLength += MINMATCH; in ZSTD_decodeSequence()
3153 if (oMatchEnd > oend-(16-MINMATCH)) in ZSTD_execSequence()
Dzstd_v07.c2725 #define MINMATCH 3 macro
3625 if (op > oend_w || sequence.matchLength < MINMATCH) { in ZSTDv07_execSequence()
3650 if (oMatchEnd > oend-(16-MINMATCH)) { in ZSTDv07_execSequence()