Home
last modified time | relevance | path

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

/lib/zstd/common/
A Dentropy_common.c165 nbBits = ZSTD_highbit32(remaining) + 1; in FSE_readNCount_body()
288 { U32 const tableLog = ZSTD_highbit32(weightTotal) + 1; in HUF_readStats_body()
294 U32 const verif = 1 << ZSTD_highbit32(rest); in HUF_readStats_body()
295 U32 const lastWeight = ZSTD_highbit32(rest) + 1; in HUF_readStats_body()
A Dbits.h119 MEM_STATIC unsigned ZSTD_highbit32(U32 val) /* compress, dictBuilder, decodeCorpus */ in ZSTD_highbit32() function
A Dbitstream.h250 …bitD->bitsConsumed = lastByte ? 8 - ZSTD_highbit32(lastByte) : 0; /* ensures bitsConsumed is alwa… in BIT_initDStream()
278 bitD->bitsConsumed = lastByte ? 8 - ZSTD_highbit32(lastByte) : 0; in BIT_initDStream()
A Dfse_decompress.c155 tableDecode[u].nbBits = (BYTE) (tableLog - ZSTD_highbit32(nextState) ); in FSE_buildDTable_internal()
/lib/zstd/compress/
A Dzstd_lazy.c210 …if ( (4*(int)(matchLength-bestLength)) > (int)(ZSTD_highbit32(curr-matchIndex+1) - ZSTD_highbit32(… in ZSTD_DUBT_findBetterDictMatch()
343 …if ( (4*(int)(matchLength-bestLength)) > (int)(ZSTD_highbit32(curr - matchIndex + 1) - ZSTD_highbi… in ZSTD_DUBT_findBestMatch()
1637 int const gain1 = (int)(matchLength*3 - ZSTD_highbit32((U32)offBase) + 1); in ZSTD_compressBlock_lazy_generic()
1651 int const gain1 = (int)(matchLength*3 - ZSTD_highbit32((U32)offBase) + 1); in ZSTD_compressBlock_lazy_generic()
1659 int const gain1 = (int)(matchLength*4 - ZSTD_highbit32((U32)offBase) + 4); in ZSTD_compressBlock_lazy_generic()
1673 int const gain1 = (int)(matchLength*4 - ZSTD_highbit32((U32)offBase) + 1); in ZSTD_compressBlock_lazy_generic()
1687 int const gain1 = (int)(matchLength*4 - ZSTD_highbit32((U32)offBase) + 1); in ZSTD_compressBlock_lazy_generic()
1695 int const gain1 = (int)(matchLength*4 - ZSTD_highbit32((U32)offBase) + 7); in ZSTD_compressBlock_lazy_generic()
2038 int const gain1 = (int)(matchLength*3 - ZSTD_highbit32((U32)offBase) + 1); in ZSTD_compressBlock_lazy_extDict_generic()
2047 int const gain1 = (int)(matchLength*4 - ZSTD_highbit32((U32)offBase) + 4); in ZSTD_compressBlock_lazy_extDict_generic()
[all …]
A Dfse_compress.c196 { U32 const maxBitsOut = tableLog - ZSTD_highbit32 ((U32)normalizedCounter[s]-1); in FSE_buildCTable_wksp()
351 U32 minBitsSrc = ZSTD_highbit32((U32)(srcSize)) + 1; in FSE_minTableLog()
352 U32 minBitsSymbols = ZSTD_highbit32(maxSymbolValue) + 2; in FSE_minTableLog()
360 U32 maxBitsSrc = ZSTD_highbit32((U32)(srcSize - 1)) - minus; in FSE_optimalTableLog_internal()
A Dhuf_compress.c425 U32 nBitsToDecrease = ZSTD_highbit32((U32)totalCost) + 1; in HUF_setMaxHeight()
523 #define RANK_POSITION_DISTINCT_COUNT_CUTOFF (RANK_POSITION_LOG_BUCKETS_BEGIN + ZSTD_highbit32(RANK_…
531 : ZSTD_highbit32(count) + RANK_POSITION_LOG_BUCKETS_BEGIN; in HUF_getIndex()
898 size_t const dirtyBits = nbBits == 0 ? 0 : ZSTD_highbit32((U32)nbBits) + 1; in HUF_addBits()
1266 U32 minBitsSymbols = ZSTD_highbit32(symbolCardinality) + 1; in HUF_minTableLog()
A Dzstd_opt.c48 return (ZSTD_highbit32(stat+1) * BITCOST_MULTIPLIER); in ZSTD_bitWeight()
57 U32 const hb = ZSTD_highbit32(stat); in ZSTD_fracWeight()
131 return ZSTD_downscaleStats(table, lastEltIndex, ZSTD_highbit32(factor), base_1guaranteed); in ZSTD_scaleStats()
331 U32 const offCode = ZSTD_highbit32(offBase); in ZSTD_getMatchPrice()
376 { U32 const offCode = ZSTD_highbit32(offBase); in ZSTD_updateStats()
A Dzstd_compress_internal.h587 return (litLength > 63) ? ZSTD_highbit32(litLength) + LL_deltaCode : LL_Code[litLength]; in ZSTD_LLcode()
604 return (mlBase > 127) ? ZSTD_highbit32(mlBase) + ML_deltaCode : ML_Code[mlBase]; in ZSTD_MLcode()
1434 U32 const hb = ZSTD_highbit32(newStat); in ZSTD_fWeight()
A Dzstd_compress.c1396 return ZSTD_highbit32((U32)dictAndWindowSize - 1) + 1; in ZSTD_dictAndWindowLog()
1494 ZSTD_highbit32(tSize-1) + 1; in ZSTD_adjustCParams_internal()
2619 U32 const ofCode = ZSTD_highbit32(sequences[u].offBase); in ZSTD_seqToCodes()
5051 …offcodeMax = ZSTD_highbit32(maxOffset); /* Calculate minimum offset code required to represent max… in ZSTD_loadCEntropy()
5736 U32 const limitedSrcLog = limitedSrcSize > 1 ? ZSTD_highbit32(limitedSrcSize - 1) + 1 : 1; in ZSTD_compressBegin_usingCDict_internal()
/lib/zstd/decompress/
A Dzstd_decompress_block.c597 tableDecode[u].nbBits = (BYTE) (tableLog - ZSTD_highbit32(nextState) ); in ZSTD_buildFSETable_body()
2061 assert(ZSTD_highbit32((U32)maxOffbase) == STREAM_ACCUMULATOR_MIN); in ZSTD_maxShortOffset()
A Dhuf_decompress.c149 size_t const bitsConsumed = lastByte ? 8 - ZSTD_highbit32(lastByte) : 0; in HUF_initFastDStream()
A Dzstd_decompress.c1804 *value = (int)ZSTD_highbit32((U32)dctx->maxWindowSize); in ZSTD_DCtx_getParameter()

Completed in 60 milliseconds