/freebsd-current/sys/contrib/openzfs/module/zfs/ |
H A D | lz4_zfs.c | 315 #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 D | lz4.c | 212 #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 D | zstd_double_fast.c | 151 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 D | zstd_fast.c | 152 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 D | zstd_lazy.c | 220 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 D | zstd_compress_sequences.c | 319 (unsigned)sequences[n].matchLength + MINMATCH,
|
H A D | zstd_opt.c | 264 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 D | zstd_ldm.c | 610 sequence.matchLength - MINMATCH);
|
H A D | zstd_compress_internal.h | 313 * 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 D | lz4.c | 312 #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 D | zstd_internal.h | 174 #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 D | zstd_internal.h | 103 #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 D | zstd_compress_sequences.c | 342 (unsigned)sequences[n].mlBase + MINMATCH,
|
H A D | zstd_opt.c | 305 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 D | zstd_compress_internal.h | 484 * note : mlBase = matchLength - MINMATCH; 596 * @matchLength : must be >= MINMATCH 646 assert(matchLength >= MINMATCH); 647 { size_t const mlBase = matchLength - MINMATCH;
|
H A D | zstd_lazy.c | 220 if (bestLength >= MINMATCH) { 370 if (bestLength >= MINMATCH) {
|
H A D | zstd_compress.c | 2915 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 D | zstd_v01.c | 1325 #define MINMATCH 4 macro 1744 matchLength += MINMATCH; 1813 if (endMatch > oend-(16-MINMATCH))
|
H A D | zstd_v03.c | 2360 #define MINMATCH 4 macro 2734 matchLength += MINMATCH; 2794 if (oMatchEnd > oend-(16-MINMATCH))
|
H A D | zstd_v06.c | 491 #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 D | zstd_v05.c | 466 #define MINMATCH 4 macro 3204 matchLength += MINMATCH; 3264 if (op > oend_8 || sequence.matchLength < MINMATCH) { 3287 if (oMatchEnd > oend-(16-MINMATCH)) {
|
H A D | zstd_v04.c | 365 #define MINMATCH 4 macro 2855 matchLength += MINMATCH; 2908 if (op > oend_8 || sequence.matchLength < MINMATCH) { 2932 if (oMatchEnd > oend-(16-MINMATCH))
|
H A D | zstd_v07.c | 2725 #define MINMATCH 3 macro 3625 if (op > oend_w || sequence.matchLength < MINMATCH) { 3650 if (oMatchEnd > oend-(16-MINMATCH)) {
|
H A D | zstd_v02.c | 2719 #define MINMATCH 4 macro 3093 matchLength += MINMATCH; 3153 if (oMatchEnd > oend-(16-MINMATCH))
|
/freebsd-current/contrib/libarchive/libarchive/ |
H A D | archive_read_support_format_lha.c | 50 #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;
|