Home
last modified time | relevance | path

Searched refs:ZSTD_highbit32 (Results 1 - 10 of 10) sorted by relevance

/kernel/linux/linux-5.10/lib/zstd/
H A Dzstd_opt.h31 ssPtr->log2matchLengthSum = ZSTD_highbit32(ssPtr->matchLengthSum + 1); in ZSTD_setLog2Prices()
32 ssPtr->log2litLengthSum = ZSTD_highbit32(ssPtr->litLengthSum + 1); in ZSTD_setLog2Prices()
33 ssPtr->log2litSum = ZSTD_highbit32(ssPtr->litSum + 1); in ZSTD_setLog2Prices()
34 ssPtr->log2offCodeSum = ZSTD_highbit32(ssPtr->offCodeSum + 1); in ZSTD_setLog2Prices()
106 return ZSTD_highbit32((U32)litLength + 1) + (litLength * 6); in ZSTD_getLiteralPrice()
109 return ssPtr->log2litLengthSum - ZSTD_highbit32(ssPtr->litLengthFreq[0] + 1); in ZSTD_getLiteralPrice()
117 price -= ZSTD_highbit32(ssPtr->litFreq[literals2[u]] + 1); in ZSTD_getLiteralPrice()
123 price -= ZSTD_highbit32(ssPtr->litFreq[literals[u]] + 1); in ZSTD_getLiteralPrice()
135 const BYTE llCode = (litLength > 63) ? (BYTE)ZSTD_highbit32(litLength) + LL_deltaCode : LL_Code[litLength]; in ZSTD_getLiteralPrice()
136 price += LL_bits[llCode] + ssPtr->log2litLengthSum - ZSTD_highbit32(ssPt in ZSTD_getLiteralPrice()
[all...]
H A Dcompress.c190 U32 const srcLog = MAX(ZSTD_HASHLOG_MIN, ZSTD_highbit32((U32)(rSize)-1) + 1); in ZSTD_adjustCParams()
576 llCodeTable[u] = (llv > 63) ? (BYTE)ZSTD_highbit32(llv) + LL_deltaCode : LL_Code[llv]; in ZSTD_seqToCodes()
577 ofCodeTable[u] = (BYTE)ZSTD_highbit32(sequences[u].offset); in ZSTD_seqToCodes()
578 mlCodeTable[u] = (mlv > 127) ? (BYTE)ZSTD_highbit32(mlv) + ML_deltaCode : ML_Code[mlv]; in ZSTD_seqToCodes()
1689 if ((4 * (int)(matchLength - bestLength)) > (int)(ZSTD_highbit32(curr - matchIndex + 1) - ZSTD_highbit32((U32)offsetPtr[0] + 1))) in ZSTD_insertBtAndFindBestMatch()
1959 int const gain1 = (int)(matchLength * 3 - ZSTD_highbit32((U32)offset + 1) + 1); in ZSTD_compressBlock_lazy_generic()
1966 int const gain2 = (int)(ml2 * 4 - ZSTD_highbit32((U32)offset2 + 1)); /* raw approx */ in ZSTD_compressBlock_lazy_generic()
1967 int const gain1 = (int)(matchLength * 4 - ZSTD_highbit32((U32)offset + 1) + 4); in ZSTD_compressBlock_lazy_generic()
1980 int const gain1 = (int)(matchLength * 4 - ZSTD_highbit32((U3 in ZSTD_compressBlock_lazy_generic()
[all...]
H A Dzstd_internal.h256 ZSTD_STATIC U32 ZSTD_highbit32(U32 val) { return 31 - __builtin_clz(val); } in ZSTD_highbit32() function
H A Ddecompress.c1255 if (ZSTD_highbit32(windowSize) > STREAM_ACCUMULATOR_MIN) { in ZSTD_decodeSequenceLong()
/kernel/linux/linux-6.6/lib/zstd/compress/
H A Dzstd_lazy.c198 if ( (4*(int)(matchLength-bestLength)) > (int)(ZSTD_highbit32(curr-matchIndex+1) - ZSTD_highbit32((U32)offsetPtr[0]+1)) ) { in ZSTD_DUBT_findBetterDictMatch()
330 if ( (4*(int)(matchLength-bestLength)) > (int)(ZSTD_highbit32(curr-matchIndex+1) - ZSTD_highbit32((U32)offsetPtr[0]+1)) ) in ZSTD_DUBT_findBestMatch()
1585 int const gain1 = (int)(matchLength*3 - ZSTD_highbit32((U32)STORED_TO_OFFBASE(offcode)) + 1); in ZSTD_compressBlock_lazy_generic()
1599 int const gain1 = (int)(matchLength*3 - ZSTD_highbit32((U32)STORED_TO_OFFBASE(offcode)) + 1); in ZSTD_compressBlock_lazy_generic()
1606 int const gain2 = (int)(ml2*4 - ZSTD_highbit32((U32)STORED_TO_OFFBASE(offset2))); /* raw approx */ in ZSTD_compressBlock_lazy_generic()
1607 int const gain1 = (int)(matchLength*4 - ZSTD_highbit32((U32)STORED_TO_OFFBASE(offcode)) + 4); in ZSTD_compressBlock_lazy_generic()
1621 int const gain1 = (int)(matchLength*4 - ZSTD_highbit32((U32)STORED_TO_OFFBASE(offcode)) + 1); in ZSTD_compressBlock_lazy_generic()
1635 int const gain1 = (int)(matchLength*4 - ZSTD_highbit32((U3 in ZSTD_compressBlock_lazy_generic()
[all...]
H A Dzstd_opt.c42 return (ZSTD_highbit32(stat+1) * BITCOST_MULTIPLIER); in ZSTD_bitWeight()
48 U32 const hb = ZSTD_highbit32(stat); in ZSTD_fracWeight()
113 return ZSTD_downscaleStats(table, lastEltIndex, ZSTD_highbit32(factor)); in ZSTD_scaleStats()
304 U32 const offCode = ZSTD_highbit32(STORED_TO_OFFBASE(offcode)); in ZSTD_getMatchPrice()
348 { U32 const offCode = ZSTD_highbit32(STORED_TO_OFFBASE(offsetCode)); in ZSTD_updateStats()
H A Dzstd_compress_internal.h468 return (litLength > 63) ? ZSTD_highbit32(litLength) + LL_deltaCode : LL_Code[litLength]; in ZSTD_LLcode()
485 return (mlBase > 127) ? ZSTD_highbit32(mlBase) + ML_deltaCode : ML_Code[mlBase]; in ZSTD_MLcode()
1282 U32 const hb = ZSTD_highbit32(newStat);
H A Dzstd_compress.c1234 return ZSTD_highbit32((U32)dictAndWindowSize - 1) + 1; in ZSTD_dictAndWindowLog()
1289 ZSTD_highbit32(tSize-1) + 1; in ZSTD_adjustCParams_internal()
2310 ofCodeTable[u] = (BYTE)ZSTD_highbit32(sequences[u].offBase); in ZSTD_seqToCodes()
4300 offcodeMax = ZSTD_highbit32(maxOffset); /* Calculate minimum offset code required to represent maxOffset */ in ZSTD_loadCEntropy()
4965 U32 const limitedSrcLog = limitedSrcSize > 1 ? ZSTD_highbit32(limitedSrcSize - 1) + 1 : 1; in ZSTD_compressBegin_usingCDict_internal()
/kernel/linux/linux-6.6/lib/zstd/common/
H A Dzstd_internal.h353 MEM_STATIC U32 ZSTD_highbit32(U32 val) /* compress, dictBuilder, decodeCorpus */ in ZSTD_highbit32() function
/kernel/linux/linux-6.6/lib/zstd/decompress/
H A Dzstd_decompress.c1699 *value = (int)ZSTD_highbit32((U32)dctx->maxWindowSize); in ZSTD_DCtx_getParameter()

Completed in 36 milliseconds