Searched refs:offCode (Results 1 - 3 of 3) sorted by relevance
/kernel/linux/linux-6.6/lib/zstd/compress/ |
H A D | zstd_opt.c | 304 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[offCode], optLevel)); 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 decompression speed */ 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() 709 DEBUGLOG(8, "found match of length %u at distance %u (offCode in ZSTD_insertBtAndGetAllMatches() 1299 U32 const offCode = opt[storePos].off; ZSTD_compressBlock_opt_generic() local [all...] |
H A D | zstd_compress.c | 2849 /* seqStoreSeqs[i].offset == offCode+1, and ZSTD_updateRep() expects offCode in ZSTD_copyBlockSequences() 3345 * Returns the raw offset represented by the combination of offCode, ll0, and repcode history. 3346 * offCode must represent a repcode in the numeric representation of ZSTD_storeSeq(). 3349 ZSTD_resolveRepcodeToRawOffset(const U32 rep[ZSTD_REP_NUM], const U32 offCode, const U32 ll0) in ZSTD_resolveRepcodeToRawOffset() argument 3351 U32 const adjustedOffCode = STORED_REPCODE(offCode) - 1 + ll0; /* [ 0 - 3 ] */ in ZSTD_resolveRepcodeToRawOffset() 3352 assert(STORED_IS_REPCODE(offCode)); in ZSTD_resolveRepcodeToRawOffset() 3354 /* litlength == 0 and offCode == 2 implies selection of first repcode - 1 */ in ZSTD_resolveRepcodeToRawOffset() 3380 U32 const offCode = OFFBASE_TO_STORED(seq->offBase); in ZSTD_seqStore_resolveOffCodes() local 3382 if (STORED_IS_REPCODE(offCode)) { in ZSTD_seqStore_resolveOffCodes() 5563 ZSTD_validateSequence(U32 offCode, U32 matchLength, size_t posInSrc, U32 windowLog, size_t dictSize) ZSTD_validateSequence() argument 5581 U32 offCode = STORE_OFFSET(rawOffset); ZSTD_finalizeOffCode() local 5622 U32 const offCode = ZSTD_finalizeOffCode(inSeqs[idx].offset, updatedRepcodes.rep, ll0); ZSTD_copySequencesToSeqStoreExplicitBlockDelim() local 5691 U32 offCode; ZSTD_copySequencesToSeqStoreNoBlockDelim() local [all...] |
/kernel/linux/linux-5.10/lib/zstd/ |
H A D | zstd_opt.h | 146 BYTE const offCode = (BYTE)ZSTD_highbit32(offset + 1); in ZSTD_getPrice() local 149 return ZSTD_getLiteralPrice(seqStorePtr, litLength, literals) + ZSTD_highbit32((U32)matchLength + 1) + 16 + offCode; in ZSTD_getPrice() 151 price = offCode + seqStorePtr->log2offCodeSum - ZSTD_highbit32(seqStorePtr->offCodeFreq[offCode] + 1); in ZSTD_getPrice() 152 if (!ultra && offCode >= 20) in ZSTD_getPrice() 153 price += (offCode - 19) * 2; in ZSTD_getPrice() 184 BYTE const offCode = (BYTE)ZSTD_highbit32(offset + 1); in ZSTD_updatePrice() local 186 seqStorePtr->offCodeFreq[offCode]++; in ZSTD_updatePrice()
|
Completed in 11 milliseconds