/kernel/linux/linux-6.6/lib/zstd/compress/ |
H A D | zstd_double_fast.c | 72 size_t mLength; in ZSTD_compressBlock_doubleFast_noDict_generic() local 132 mLength = ZSTD_count(ip+1+4, ip+1+4-offset_1, iend) + 4; in ZSTD_compressBlock_doubleFast_noDict_generic() 134 ZSTD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, STORE_REPCODE_1, mLength); in ZSTD_compressBlock_doubleFast_noDict_generic() 143 mLength = ZSTD_count(ip+8, matchl0+8, iend) + 8; in ZSTD_compressBlock_doubleFast_noDict_generic() 145 while (((ip>anchor) & (matchl0>prefixLowest)) && (ip[-1] == matchl0[-1])) { ip--; matchl0--; mLength++; } /* catch up */ in ZSTD_compressBlock_doubleFast_noDict_generic() 191 mLength = ZSTD_count(ip+8, matchl1+8, iend) + 8; in ZSTD_compressBlock_doubleFast_noDict_generic() 193 while (((ip>anchor) & (matchl1>prefixLowest)) && (ip[-1] == matchl1[-1])) { ip--; matchl1--; mLength++; } /* catch up */ in ZSTD_compressBlock_doubleFast_noDict_generic() 199 mLength = ZSTD_count(ip+4, matchs0+4, iend) + 4; in ZSTD_compressBlock_doubleFast_noDict_generic() 201 while (((ip>anchor) & (matchs0>prefixLowest)) && (ip[-1] == matchs0[-1])) { ip--; matchs0--; mLength++; } /* catch up */ in ZSTD_compressBlock_doubleFast_noDict_generic() 205 _match_found: /* requires ip, offset, mLength */ in ZSTD_compressBlock_doubleFast_noDict_generic() 220 ZSTD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, STORE_OFFSET(offset), mLength); ZSTD_compressBlock_doubleFast_noDict_generic() local 308 size_t mLength; ZSTD_compressBlock_doubleFast_dictMatchState_generic() local 422 ZSTD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, STORE_OFFSET(offset), mLength); ZSTD_compressBlock_doubleFast_dictMatchState_generic() local 579 size_t mLength; ZSTD_compressBlock_doubleFast_extDict_generic() local 599 ZSTD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, STORE_OFFSET(offset), mLength); ZSTD_compressBlock_doubleFast_extDict_generic() local 624 ZSTD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, STORE_OFFSET(offset), mLength); ZSTD_compressBlock_doubleFast_extDict_generic() local [all...] |
H A D | zstd_fast.c | 129 size_t mLength; in ZSTD_compressBlock_fast_noDict_generic() local 180 mLength = ip0[-1] == match0[-1]; in ZSTD_compressBlock_fast_noDict_generic() 181 ip0 -= mLength; in ZSTD_compressBlock_fast_noDict_generic() 182 match0 -= mLength; in ZSTD_compressBlock_fast_noDict_generic() 184 mLength += 4; in ZSTD_compressBlock_fast_noDict_generic() 271 mLength = 4; in ZSTD_compressBlock_fast_noDict_generic() 277 mLength++; in ZSTD_compressBlock_fast_noDict_generic() 283 mLength += ZSTD_count(ip0 + mLength, match0 + mLength, ien in ZSTD_compressBlock_fast_noDict_generic() 426 size_t mLength; ZSTD_compressBlock_fast_dictMatchState_generic() local 462 ZSTD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, STORE_OFFSET(offset), mLength); ZSTD_compressBlock_fast_dictMatchState_generic() local 477 ZSTD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, STORE_OFFSET(offset), mLength); ZSTD_compressBlock_fast_dictMatchState_generic() local 614 size_t mLength = ZSTD_count_2segments(ip+4, match+4, iend, matchEnd, prefixStart) + 4; ZSTD_compressBlock_fast_extDict_generic() local 617 ZSTD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, STORE_OFFSET(offset), mLength); ZSTD_compressBlock_fast_extDict_generic() local [all...] |
H A D | zstd_ldm.c | 382 bestMatchLength = 0, mLength; in ZSTD_ldm_generateSequences_internal() local 452 mLength = forwardMatchLength + backwardMatchLength; in ZSTD_ldm_generateSequences_internal() 460 seq->matchLength = (U32)mLength; in ZSTD_ldm_generateSequences_internal()
|
/kernel/linux/linux-5.10/lib/zstd/ |
H A D | compress.c | 1036 size_t mLength; in ZSTD_compressBlock_fast_generic() local 1044 mLength = ZSTD_count(ip + 1 + 4, ip + 1 + 4 - offset_1, iend) + 4; in ZSTD_compressBlock_fast_generic() 1046 ZSTD_storeSeq(seqStorePtr, ip - anchor, anchor, 0, mLength - MINMATCH); in ZSTD_compressBlock_fast_generic() 1053 mLength = ZSTD_count(ip + 4, match + 4, iend) + 4; in ZSTD_compressBlock_fast_generic() 1058 mLength++; in ZSTD_compressBlock_fast_generic() 1063 ZSTD_storeSeq(seqStorePtr, ip - anchor, anchor, offset + ZSTD_REP_MOVE, mLength - MINMATCH); in ZSTD_compressBlock_fast_generic() 1067 ip += mLength; in ZSTD_compressBlock_fast_generic() 1145 size_t mLength; in ZSTD_compressBlock_fast_extDict_generic() local 1151 mLength = ZSTD_count_2segments(ip + 1 + EQUAL_READ32, repMatch + EQUAL_READ32, iend, repMatchEnd, lowPrefixPtr) + EQUAL_READ32; in ZSTD_compressBlock_fast_extDict_generic() 1153 ZSTD_storeSeq(seqStorePtr, ip - anchor, anchor, 0, mLength in ZSTD_compressBlock_fast_extDict_generic() 1284 size_t mLength; ZSTD_compressBlock_doubleFast_generic() local 1432 size_t mLength; ZSTD_compressBlock_doubleFast_extDict_generic() local [all...] |