Home
last modified time | relevance | path

Searched refs:offCode (Results 1 – 8 of 8) sorted by relevance

/freebsd-14.2/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dzstd_opt.c263 U32 const offCode = ZSTD_highbit32(offset+1); in ZSTD_getMatchPrice() local
268 return WEIGHT(mlBase, optLevel) + ((16 + offCode) * BITCOST_MULTIPLIER); in ZSTD_getMatchPrice()
271 …price = (offCode * BITCOST_MULTIPLIER) + (optPtr->offCodeSumBasePrice - WEIGHT(optPtr->offCodeFreq… in ZSTD_getMatchPrice()
272 if ((optLevel<2) /*static*/ && offCode >= 20) in ZSTD_getMatchPrice()
273 …price += (offCode-19)*2 * BITCOST_MULTIPLIER; /* handicap for long distance offsets, favor decompr… in ZSTD_getMatchPrice()
307 { U32 const offCode = ZSTD_highbit32(offsetCode+1); in ZSTD_updateStats() local
308 assert(offCode <= MaxOff); in ZSTD_updateStats()
309 optPtr->offCodeFreq[offCode]++; in ZSTD_updateStats()
1043 U32 const offCode = opt[storePos].off; in ZSTD_compressBlock_opt_generic() local
1055 ZSTD_updateStats(optStatePtr, llen, anchor, offCode, mlen); in ZSTD_compressBlock_opt_generic()
[all …]
H A Dzstd_compress_internal.h439 …StorePtr, size_t litLength, const BYTE* literals, const BYTE* litLimit, U32 offCode, size_t mlBase) in ZSTD_storeSeq() argument
448 pos, (U32)litLength, (U32)mlBase+MINMATCH, (U32)offCode); in ZSTD_storeSeq()
479 seqStorePtr->sequences[0].offset = offCode + 1; in ZSTD_storeSeq()
/freebsd-14.2/sys/contrib/zstd/lib/compress/
H A Dzstd_opt.c304 U32 const offCode = ZSTD_highbit32(STORED_TO_OFFBASE(offcode)); in ZSTD_getMatchPrice() local
309 return WEIGHT(mlBase, optLevel) + ((16 + offCode) * BITCOST_MULTIPLIER); in ZSTD_getMatchPrice()
312 …price = (offCode * BITCOST_MULTIPLIER) + (optPtr->offCodeSumBasePrice - WEIGHT(optPtr->offCodeFreq… in ZSTD_getMatchPrice()
313 if ((optLevel<2) /*static*/ && offCode >= 20) in ZSTD_getMatchPrice()
314 …price += (offCode-19)*2 * BITCOST_MULTIPLIER; /* handicap for long distance offsets, favor decompr… in ZSTD_getMatchPrice()
348 { U32 const offCode = ZSTD_highbit32(STORED_TO_OFFBASE(offsetCode)); in ZSTD_updateStats() local
349 assert(offCode <= MaxOff); in ZSTD_updateStats()
350 optPtr->offCodeFreq[offCode]++; in ZSTD_updateStats()
1299 U32 const offCode = opt[storePos].off; in ZSTD_compressBlock_opt_generic() local
1311 ZSTD_updateStats(optStatePtr, llen, anchor, offCode, mlen); in ZSTD_compressBlock_opt_generic()
[all …]
H A Dzstd_compress.c3443 assert(STORED_IS_REPCODE(offCode)); in ZSTD_resolveRepcodeToRawOffset()
3473 if (STORED_IS_REPCODE(offCode)) { in ZSTD_seqStore_resolveOffCodes()
3488 ZSTD_updateRep(cRepcodes->rep, offCode, ll0); in ZSTD_seqStore_resolveOffCodes()
5763 ZSTD_validateSequence(U32 offCode, U32 matchLength, in ZSTD_validateSequence() argument
5781 U32 offCode = STORE_OFFSET(rawOffset); in ZSTD_finalizeOffCode() local
5784 offCode = STORE_REPCODE_1; in ZSTD_finalizeOffCode()
5786 offCode = STORE_REPCODE(2 - ll0); in ZSTD_finalizeOffCode()
5788 offCode = STORE_REPCODE(3 - ll0); in ZSTD_finalizeOffCode()
5790 offCode = STORE_REPCODE_3; in ZSTD_finalizeOffCode()
5792 return offCode; in ZSTD_finalizeOffCode()
[all …]
/freebsd-14.2/sys/contrib/zstd/lib/legacy/
H A Dzstd_v01.c1415 BYTE* offCode; member
H A Dzstd_v03.c2418 BYTE* offCode; member
H A Dzstd_v02.c2777 BYTE* offCode; member
H A Dzstd_v05.c528 BYTE* offCode; member