Searched refs:MINMATCH (Results 1 - 25 of 26) sorted by relevance

12

/freebsd-current/sys/contrib/openzfs/module/zfs/
H A Dlz4_zfs.c315 #define MINMATCH 4 macro
326 #define MFLIMIT (COPYLENGTH + MINMATCH)
379 #define LZ4_HASH_FUNCTION(i) (((i) * 2654435761U) >> ((MINMATCH * 8) - \
561 ip += MINMATCH;
562 ref += MINMATCH; /* MinMatch verified */
659 #define LZ4_HASH64K_FUNCTION(i) (((i) * 2654435761U) >> ((MINMATCH*8) - \
749 ip += MINMATCH;
750 ref += MINMATCH; /* MinMatch verified */
H A Dlz4.c212 #define MINMATCH 4 macro
217 #define MATCH_SAFEGUARD_DISTANCE ((2*WILDCOPYLENGTH) - MINMATCH) /* ensure it's possible to write 2 x wildcopyLength without overflowing output buffer */
419 * - dstEnd >= dstPtr + MINMATCH
426 assert(dstEnd >= dstPtr + MINMATCH);
649 length += MINMATCH;
654 length += MINMATCH;
758 op += length + MINMATCH;
860 length += MINMATCH;
/freebsd-current/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dzstd_double_fast.c151 ZSTD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, 0, mLength-MINMATCH);
160 ZSTD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, 0, mLength-MINMATCH);
253 ZSTD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, offset + ZSTD_REP_MOVE, mLength-MINMATCH);
284 ZSTD_storeSeq(seqStore, 0, anchor, iend, 0, repLength2-MINMATCH);
303 ZSTD_storeSeq(seqStore, 0, anchor, iend, 0, rLength-MINMATCH);
417 ZSTD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, 0, mLength-MINMATCH);
428 ZSTD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, offset + ZSTD_REP_MOVE, mLength-MINMATCH);
453 ZSTD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, offset + ZSTD_REP_MOVE, mLength-MINMATCH);
485 ZSTD_storeSeq(seqStore, 0, anchor, iend, 0, repLength2-MINMATCH);
H A Dzstd_fast.c152 ZSTD_storeSeq(seqStore, (size_t)(ip0-anchor), anchor, iend, offcode, mLength-MINMATCH);
170 ZSTD_storeSeq(seqStore, 0 /*litLen*/, anchor, iend, 0 /*offCode*/, rLength-MINMATCH);
275 ZSTD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, 0, mLength-MINMATCH);
295 ZSTD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, offset + ZSTD_REP_MOVE, mLength-MINMATCH);
310 ZSTD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, offset + ZSTD_REP_MOVE, mLength-MINMATCH);
335 ZSTD_storeSeq(seqStore, 0, anchor, iend, 0, repLength2-MINMATCH);
426 ZSTD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, 0, rLength-MINMATCH);
442 ZSTD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, offset + ZSTD_REP_MOVE, mLength-MINMATCH);
461 ZSTD_storeSeq(seqStore, 0 /*litlen*/, anchor, iend, 0 /*offcode*/, repLength2-MINMATCH);
H A Dzstd_lazy.c220 if (bestLength >= MINMATCH) {
368 if (bestLength >= MINMATCH) {
823 ZSTD_storeSeq(seqStore, litLength, anchor, iend, (U32)offset, matchLength-MINMATCH);
841 ZSTD_storeSeq(seqStore, 0, anchor, iend, 0, matchLength-MINMATCH);
856 ZSTD_storeSeq(seqStore, 0, anchor, iend, 0, matchLength-MINMATCH);
1078 ZSTD_storeSeq(seqStore, litLength, anchor, iend, (U32)offset, matchLength-MINMATCH);
1096 ZSTD_storeSeq(seqStore, 0, anchor, iend, 0, matchLength-MINMATCH);
H A Dzstd_compress_sequences.c319 (unsigned)sequences[n].matchLength + MINMATCH,
H A Dzstd_opt.c264 U32 const mlBase = matchLength - MINMATCH;
265 assert(matchLength >= MINMATCH);
314 { U32 const mlBase = matchLength - MINMATCH;
1056 ZSTD_storeSeq(seqStore, llen, anchor, iend, offCode, mlen-MINMATCH);
H A Dzstd_ldm.c610 sequence.matchLength - MINMATCH);
H A Dzstd_compress_internal.h313 * note : mlBase = matchLength - MINMATCH;
435 * `mlBase` : matchLength - MINMATCH
448 pos, (U32)litLength, (U32)mlBase+MINMATCH, (U32)offCode);
/freebsd-current/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;
565 ref += MINMATCH; /* MinMatch verified */
662 #define LZ4_HASH64K_FUNCTION(i) (((i) * 2654435761U) >> ((MINMATCH*8) - \
757 ip += MINMATCH;
758 ref += MINMATCH; /* MinMatch verified */
/freebsd-current/sys/contrib/openzfs/module/zstd/lib/common/
H A Dzstd_internal.h174 #define MINMATCH 3 macro
353 * indicated by longLengthPos and longLengthID, and adds MINMATCH back to matchLength.
359 seqLen.matchLength = seq->matchLength + MINMATCH;
/freebsd-current/sys/contrib/zstd/lib/common/
H A Dzstd_internal.h103 #define MINMATCH 3 macro
289 U16 mlBase; /* mlBase == matchLength - MINMATCH */
325 * indicated by longLengthPos and longLengthType, and adds MINMATCH back to matchLength.
331 seqLen.matchLength = seq->mlBase + MINMATCH;
/freebsd-current/sys/contrib/zstd/lib/compress/
H A Dzstd_compress_sequences.c342 (unsigned)sequences[n].mlBase + MINMATCH,
H A Dzstd_opt.c305 U32 const mlBase = matchLength - MINMATCH;
306 assert(matchLength >= MINMATCH);
355 { U32 const mlBase = matchLength - MINMATCH;
938 /* Matches may be < MINMATCH by this process. In that case, we will reject them
963 /* Note: ZSTD_match_t actually contains offCode and matchLength (before subtracting MINMATCH) */
969 || candidateMatchLength < MINMATCH) {
H A Dzstd_compress_internal.h484 * note : mlBase = matchLength - MINMATCH;
596 * @matchLength : must be >= MINMATCH
646 assert(matchLength >= MINMATCH);
647 { size_t const mlBase = matchLength - MINMATCH;
H A Dzstd_lazy.c220 if (bestLength >= MINMATCH) {
370 if (bestLength >= MINMATCH) {
H A Dzstd_compress.c2915 outSeqs[i].matchLength = seqStoreSeqs[i].mlBase + MINMATCH;
3388 matchBytes += seq.mlBase + MINMATCH;
5774 RETURN_ERROR_IF(matchLength < MINMATCH, corruption_detected, "Matchlength too small");
5859 * smaller than MINMATCH. In this case, we return the number of bytes that we didn't read from this block.
/freebsd-current/sys/contrib/zstd/lib/legacy/
H A Dzstd_v01.c1325 #define MINMATCH 4 macro
1744 matchLength += MINMATCH;
1813 if (endMatch > oend-(16-MINMATCH))
H A Dzstd_v03.c2360 #define MINMATCH 4 macro
2734 matchLength += MINMATCH;
2794 if (oMatchEnd > oend-(16-MINMATCH))
H A Dzstd_v06.c491 #define MINMATCH 3 macro
3346 seq->matchLength = ML_base[mlCode] + MINMATCH + ((mlCode>31) ? BITv06_readBits(&(seqState->DStream), mlBits) : 0); /* <= 16 bits */
3398 if (op > oend_8 || sequence.matchLength < MINMATCH) {
3423 if (oMatchEnd > oend-(16-MINMATCH)) {
H A Dzstd_v05.c466 #define MINMATCH 4 macro
3204 matchLength += MINMATCH;
3264 if (op > oend_8 || sequence.matchLength < MINMATCH) {
3287 if (oMatchEnd > oend-(16-MINMATCH)) {
H A Dzstd_v04.c365 #define MINMATCH 4 macro
2855 matchLength += MINMATCH;
2908 if (op > oend_8 || sequence.matchLength < MINMATCH) {
2932 if (oMatchEnd > oend-(16-MINMATCH))
H A Dzstd_v07.c2725 #define MINMATCH 3 macro
3625 if (op > oend_w || sequence.matchLength < MINMATCH) {
3650 if (oMatchEnd > oend-(16-MINMATCH)) {
H A Dzstd_v02.c2719 #define MINMATCH 4 macro
3093 matchLength += MINMATCH;
3153 if (oMatchEnd > oend-(16-MINMATCH))
/freebsd-current/contrib/libarchive/libarchive/
H A Darchive_read_support_format_lha.c50 #define MINMATCH 3 /* Minimum match length. */ macro
56 * | 0 ... 255 | MINMATCH ... MAXMATCH |
61 #define LT_BITLEN_SIZE (UCHAR_MAX + 1 + MAXMATCH - MINMATCH + 1)
2436 copy_len = c - (UCHAR_MAX + 1) + MINMATCH;

Completed in 307 milliseconds

12