Home
last modified time | relevance | path

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

/linux-6.3-rc2/lib/zstd/compress/
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 …]
A Dzstd_compress.c3352 assert(STORED_IS_REPCODE(offCode)); in ZSTD_resolveRepcodeToRawOffset()
3382 if (STORED_IS_REPCODE(offCode)) { in ZSTD_seqStore_resolveOffCodes()
3397 ZSTD_updateRep(cRepcodes->rep, offCode, ll0); in ZSTD_seqStore_resolveOffCodes()
5563 ZSTD_validateSequence(U32 offCode, U32 matchLength, in ZSTD_validateSequence() argument
5581 U32 offCode = STORE_OFFSET(rawOffset); in ZSTD_finalizeOffCode() local
5584 offCode = STORE_REPCODE_1; in ZSTD_finalizeOffCode()
5586 offCode = STORE_REPCODE(2 - ll0); in ZSTD_finalizeOffCode()
5588 offCode = STORE_REPCODE(3 - ll0); in ZSTD_finalizeOffCode()
5590 offCode = STORE_REPCODE_3; in ZSTD_finalizeOffCode()
5592 return offCode; in ZSTD_finalizeOffCode()
[all …]

Completed in 21 milliseconds