Home
last modified time | relevance | path

Searched refs:ZSTD_highbit32 (Results 1 – 6 of 6) sorted by relevance

/Linux-v6.1/lib/zstd/compress/
Dzstd_lazy.c198 …if ( (4*(int)(matchLength-bestLength)) > (int)(ZSTD_highbit32(curr-matchIndex+1) - ZSTD_highbit32(… in ZSTD_DUBT_findBetterDictMatch()
330 …if ( (4*(int)(matchLength-bestLength)) > (int)(ZSTD_highbit32(curr-matchIndex+1) - ZSTD_highbit32(… in ZSTD_DUBT_findBestMatch()
990 int const gain1 = (int)(matchLength*3 - ZSTD_highbit32((U32)offset+1) + 1); in ZSTD_compressBlock_lazy_generic()
1004 int const gain1 = (int)(matchLength*3 - ZSTD_highbit32((U32)offset+1) + 1); in ZSTD_compressBlock_lazy_generic()
1011 int const gain2 = (int)(ml2*4 - ZSTD_highbit32((U32)offset2+1)); /* raw approx */ in ZSTD_compressBlock_lazy_generic()
1012 int const gain1 = (int)(matchLength*4 - ZSTD_highbit32((U32)offset+1) + 4); in ZSTD_compressBlock_lazy_generic()
1025 int const gain1 = (int)(matchLength*4 - ZSTD_highbit32((U32)offset+1) + 1); in ZSTD_compressBlock_lazy_generic()
1039 int const gain1 = (int)(matchLength*4 - ZSTD_highbit32((U32)offset+1) + 1); in ZSTD_compressBlock_lazy_generic()
1046 … int const gain2 = (int)(ml2*4 - ZSTD_highbit32((U32)offset2+1)); /* raw approx */ in ZSTD_compressBlock_lazy_generic()
1047 int const gain1 = (int)(matchLength*4 - ZSTD_highbit32((U32)offset+1) + 7); in ZSTD_compressBlock_lazy_generic()
[all …]
Dzstd_compress_internal.h375 return (litLength > 63) ? ZSTD_highbit32(litLength) + LL_deltaCode : LL_Code[litLength]; in ZSTD_LLcode()
392 return (mlBase > 127) ? ZSTD_highbit32(mlBase) + ML_deltaCode : ML_Code[mlBase]; in ZSTD_MLcode()
1071 U32 const hb = ZSTD_highbit32(newStat); in ZSTD_fWeight()
Dzstd_opt.c55 return (ZSTD_highbit32(stat+1) * BITCOST_MULTIPLIER); in ZSTD_bitWeight()
61 U32 const hb = ZSTD_highbit32(stat); in ZSTD_fracWeight()
275 U32 const offCode = ZSTD_highbit32(offset+1); in ZSTD_getMatchPrice()
319 { U32 const offCode = ZSTD_highbit32(offsetCode+1); in ZSTD_updateStats()
Dzstd_compress.c1117 return ZSTD_highbit32((U32)dictAndWindowSize - 1) + 1; in ZSTD_dictAndWindowLog()
1172 ZSTD_highbit32(tSize-1) + 1; in ZSTD_adjustCParams_internal()
2077 ofCodeTable[u] = (BYTE)ZSTD_highbit32(sequences[u].offset); in ZSTD_seqToCodes()
3217 …offcodeMax = ZSTD_highbit32(maxOffset); /* Calculate minimum offset code required to represent max… in ZSTD_loadCEntropy()
3872 U32 const limitedSrcLog = limitedSrcSize > 1 ? ZSTD_highbit32(limitedSrcSize - 1) + 1 : 1; in ZSTD_compressBegin_usingCDict_advanced()
/Linux-v6.1/lib/zstd/common/
Dzstd_internal.h403 MEM_STATIC U32 ZSTD_highbit32(U32 val) /* compress, dictBuilder, decodeCorpus */ in ZSTD_highbit32() function
/Linux-v6.1/lib/zstd/decompress/
Dzstd_decompress.c1634 *value = (int)ZSTD_highbit32((U32)dctx->maxWindowSize); in ZSTD_DCtx_getParameter()