Home
last modified time | relevance | path

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

/src/sys/contrib/openzfs/module/zfs/
H A Dlz4_zfs.c319 #define MINMATCH 4 macro
330 #define MFLIMIT (COPYLENGTH + MINMATCH)
383 #define LZ4_HASH_FUNCTION(i) (((i) * 2654435761U) >> ((MINMATCH * 8) - \
565 ip += MINMATCH; in LZ4_compressCtx()
566 ref += MINMATCH; /* MinMatch verified */ in LZ4_compressCtx()
663 #define LZ4_HASH64K_FUNCTION(i) (((i) * 2654435761U) >> ((MINMATCH*8) - \
753 ip += MINMATCH; in LZ4_compress64kCtx()
754 ref += MINMATCH; /* MinMatch verified */ in LZ4_compress64kCtx()
H A Dlz4.c213 #define MINMATCH 4 macro
218 #define MATCH_SAFEGUARD_DISTANCE ((2*WILDCOPYLENGTH) - MINMATCH) /* ensure it's possible to writ…
427 assert(dstEnd >= dstPtr + MINMATCH); in LZ4_memcpy_using_offset()
650 length += MINMATCH; in LZ4_decompress_generic()
655 length += MINMATCH; in LZ4_decompress_generic()
759 op += length + MINMATCH; in LZ4_decompress_generic()
861 length += MINMATCH; in LZ4_decompress_generic()
/src/sys/cddl/contrib/opensolaris/common/lz4/
H A Dlz4.c312 #define MINMATCH 4 macro
328 #define MFLIMIT (COPYLENGTH + MINMATCH)
381 #define LZ4_HASH_FUNCTION(i) (((i) * 2654435761U) >> ((MINMATCH * 8) - \
564 ip += MINMATCH; in LZ4_compressCtx()
565 ref += MINMATCH; /* MinMatch verified */ in LZ4_compressCtx()
662 #define LZ4_HASH64K_FUNCTION(i) (((i) * 2654435761U) >> ((MINMATCH*8) - \
757 ip += MINMATCH; in LZ4_compress64kCtx()
758 ref += MINMATCH; /* MinMatch verified */ in LZ4_compress64kCtx()
/src/sys/contrib/zstd/lib/common/
H A Dzstd_internal.h103 #define MINMATCH 3 macro
331 seqLen.matchLength = seq->mlBase + MINMATCH; in ZSTD_getSequenceLength()
/src/sys/contrib/openzfs/module/zstd/lib/common/
H A Dzstd_internal.h99 #define MINMATCH 3 macro
/src/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dzstd_compress_superblock.c456 inSize = sp[0].litLength + (sp[0].mlBase+MINMATCH); in sizeBlockSequences()
462 inSize += sp[n].litLength + (sp[n].mlBase+MINMATCH); in sizeBlockSequences()
H A Dzstd_compress_internal.h131 seqLen.matchLength = seq->mlBase + MINMATCH; in ZSTD_getSequenceLength()
757 assert(matchLength >= MINMATCH); in ZSTD_storeSeqOnly()
758 { size_t const mlBase = matchLength - MINMATCH; in ZSTD_storeSeqOnly()
H A Dzstd_compress_sequences.c343 (unsigned)sequences[n].mlBase + MINMATCH, in ZSTD_encodeSequences_body()
H A Dzstd_opt.c332 U32 const mlBase = matchLength - MINMATCH; in ZSTD_getMatchPrice()
333 assert(matchLength >= MINMATCH); in ZSTD_getMatchPrice()
383 { U32 const mlBase = matchLength - MINMATCH; in ZSTD_updateStats()
H A Dzstd_compress.c3455 outSeqs[i].matchLength = inSeqs[i].mlBase + MINMATCH; in ZSTD_copyBlockSequences()
3992 matchBytes += seq.mlBase + MINMATCH; in ZSTD_countSeqStoreMatchBytes()
7144 ZSTD_REP_NUM, 0, -MINMATCH, 0, /* for sequence i */ in convertSequences_noRepcodes()
7145 ZSTD_REP_NUM, 0, -MINMATCH, 0 /* for sequence i+1 */ in convertSequences_noRepcodes()
7240 if (inSeqs[i].matchLength > 65535+MINMATCH) { in convertSequences_noRepcodes()
7248 if (inSeqs[i+1].matchLength > 65535+MINMATCH) { in convertSequences_noRepcodes()
7265 dstSeqs[i].mlBase = (U16)(inSeqs[i].matchLength - MINMATCH); in convertSequences_noRepcodes()
7267 if (UNLIKELY(inSeqs[i].matchLength > 65535+MINMATCH)) { in convertSequences_noRepcodes()
7296 dstSeqs[n].mlBase = (U16)(inSeqs[n].matchLength - MINMATCH); in convertSequences_noRepcodes()
7298 if (UNLIKELY(inSeqs[n].matchLength > 65535+MINMATCH)) { in convertSequences_noRepcodes()
H A Dzstd_lazy.c232 if (bestLength >= MINMATCH) { in ZSTD_DUBT_findBetterDictMatch()
383 if (bestLength >= MINMATCH) { in ZSTD_DUBT_findBestMatch()
/src/sys/contrib/zstd/lib/compress/
H A 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()
H A Dzstd_compress_sequences.c342 (unsigned)sequences[n].mlBase + MINMATCH, in ZSTD_encodeSequences_body()
H A Dzstd_compress_internal.h646 assert(matchLength >= MINMATCH); in ZSTD_storeSeq()
647 { size_t const mlBase = matchLength - MINMATCH; in ZSTD_storeSeq()
H A Dzstd_lazy.c220 if (bestLength >= MINMATCH) { in ZSTD_DUBT_findBetterDictMatch()
370 if (bestLength >= MINMATCH) { in ZSTD_DUBT_findBestMatch()
H A 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()
/src/sys/contrib/zstd/lib/legacy/
H A Dzstd_v01.c1325 #define MINMATCH 4 macro
1744 matchLength += MINMATCH; in ZSTD_decodeSequence()
1813 if (endMatch > oend-(16-MINMATCH)) in ZSTD_execSequence()
H A 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()
H A 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()
H A 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()
H A Dzstd_v03.c2360 #define MINMATCH 4 macro
2734 matchLength += MINMATCH; in ZSTD_decodeSequence()
2794 if (oMatchEnd > oend-(16-MINMATCH)) in ZSTD_execSequence()
H A Dzstd_v02.c2719 #define MINMATCH 4 macro
3093 matchLength += MINMATCH; in ZSTD_decodeSequence()
3153 if (oMatchEnd > oend-(16-MINMATCH)) in ZSTD_execSequence()
H A 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()
/src/contrib/libarchive/libarchive/
H A Darchive_read_support_format_lha.c51 #define MINMATCH 3 /* Minimum match length. */ macro
62 #define LT_BITLEN_SIZE (UCHAR_MAX + 1 + MAXMATCH - MINMATCH + 1)
2395 copy_len = c - (UCHAR_MAX + 1) + MINMATCH; in lzh_decode_blocks()