Searched refs:offCode (Results 1 – 7 of 7) sorted by relevance
/external/zstd/lib/compress/ |
D | zstd_opt.c | 263 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() 1188 U32 const offCode = opt[storePos].off; in ZSTD_compressBlock_opt_generic() local 1200 ZSTD_updateStats(optStatePtr, llen, anchor, offCode, mlen); in ZSTD_compressBlock_opt_generic() [all …]
|
D | zstd_compress.c | 4542 static size_t ZSTD_validateSequence(U32 offCode, U32 matchLength, in ZSTD_validateSequence() argument 4552 … RETURN_ERROR_IF(offCode > offsetBound + ZSTD_REP_MOVE, corruption_detected, "Offset too large!"); in ZSTD_validateSequence() 4559 U32 offCode = rawOffset + ZSTD_REP_MOVE; in ZSTD_finalizeOffCode() local 4573 offCode = repCode - 1; in ZSTD_finalizeOffCode() 4575 return offCode; in ZSTD_finalizeOffCode() 4592 U32 offCode; in ZSTD_copySequencesToSeqStoreExplicitBlockDelim() local 4606 offCode = ZSTD_finalizeOffCode(inSeqs[idx].offset, updatedRepcodes.rep, ll0); in ZSTD_copySequencesToSeqStoreExplicitBlockDelim() 4607 updatedRepcodes = ZSTD_updateRep(updatedRepcodes.rep, offCode, ll0); in ZSTD_copySequencesToSeqStoreExplicitBlockDelim() 4609 DEBUGLOG(6, "Storing sequence: (of: %u, ml: %u, ll: %u)", offCode, matchLength, litLength); in ZSTD_copySequencesToSeqStoreExplicitBlockDelim() 4612 FORWARD_IF_ERROR(ZSTD_validateSequence(offCode, matchLength, seqPos->posInSrc, in ZSTD_copySequencesToSeqStoreExplicitBlockDelim() [all …]
|
D | zstd_compress_internal.h | 502 …StorePtr, size_t litLength, const BYTE* literals, const BYTE* litLimit, U32 offCode, size_t mlBase) in ZSTD_storeSeq() argument 511 pos, (U32)litLength, (U32)mlBase+MINMATCH, (U32)offCode); in ZSTD_storeSeq() 542 seqStorePtr->sequences[0].offset = offCode + 1; in ZSTD_storeSeq()
|
/external/zstd/lib/legacy/ |
D | zstd_v01.c | 1419 BYTE* offCode; member
|
D | zstd_v03.c | 2422 BYTE* offCode; member
|
D | zstd_v02.c | 2781 BYTE* offCode; member
|
D | zstd_v05.c | 531 BYTE* offCode; member
|