Symbol: ZSTD_highbit32
lib/zstd/common/bitstream.h
250
bitD->bitsConsumed = lastByte ? 8 - ZSTD_highbit32(lastByte) : 0; /* ensures bitsConsumed is always set */
lib/zstd/common/bitstream.h
278
bitD->bitsConsumed = lastByte ? 8 - ZSTD_highbit32(lastByte) : 0;
lib/zstd/common/entropy_common.c
165
nbBits = ZSTD_highbit32(remaining) + 1;
lib/zstd/common/entropy_common.c
288
{ U32 const tableLog = ZSTD_highbit32(weightTotal) + 1;
lib/zstd/common/entropy_common.c
294
U32 const verif = 1 << ZSTD_highbit32(rest);
lib/zstd/common/entropy_common.c
295
U32 const lastWeight = ZSTD_highbit32(rest) + 1;
lib/zstd/common/fse_decompress.c
155
tableDecode[u].nbBits = (BYTE) (tableLog - ZSTD_highbit32(nextState) );
lib/zstd/compress/fse_compress.c
196
{ U32 const maxBitsOut = tableLog - ZSTD_highbit32 ((U32)normalizedCounter[s]-1);
lib/zstd/compress/fse_compress.c
351
U32 minBitsSrc = ZSTD_highbit32((U32)(srcSize)) + 1;
lib/zstd/compress/fse_compress.c
352
U32 minBitsSymbols = ZSTD_highbit32(maxSymbolValue) + 2;
lib/zstd/compress/fse_compress.c
360
U32 maxBitsSrc = ZSTD_highbit32((U32)(srcSize - 1)) - minus;
lib/zstd/compress/huf_compress.c
1266
U32 minBitsSymbols = ZSTD_highbit32(symbolCardinality) + 1;
lib/zstd/compress/huf_compress.c
425
U32 nBitsToDecrease = ZSTD_highbit32((U32)totalCost) + 1;
lib/zstd/compress/huf_compress.c
523
#define RANK_POSITION_DISTINCT_COUNT_CUTOFF (RANK_POSITION_LOG_BUCKETS_BEGIN + ZSTD_highbit32(RANK_POSITION_LOG_BUCKETS_BEGIN) /* == 166 */)
lib/zstd/compress/huf_compress.c
531
: ZSTD_highbit32(count) + RANK_POSITION_LOG_BUCKETS_BEGIN;
lib/zstd/compress/huf_compress.c
898
size_t const dirtyBits = nbBits == 0 ? 0 : ZSTD_highbit32((U32)nbBits) + 1;
lib/zstd/compress/zstd_compress.c
1396
return ZSTD_highbit32((U32)dictAndWindowSize - 1) + 1;
lib/zstd/compress/zstd_compress.c
1494
ZSTD_highbit32(tSize-1) + 1;
lib/zstd/compress/zstd_compress.c
2619
U32 const ofCode = ZSTD_highbit32(sequences[u].offBase);
lib/zstd/compress/zstd_compress.c
5051
offcodeMax = ZSTD_highbit32(maxOffset); /* Calculate minimum offset code required to represent maxOffset */
lib/zstd/compress/zstd_compress.c
5736
U32 const limitedSrcLog = limitedSrcSize > 1 ? ZSTD_highbit32(limitedSrcSize - 1) + 1 : 1;
lib/zstd/compress/zstd_compress_internal.h
1434
U32 const hb = ZSTD_highbit32(newStat);
lib/zstd/compress/zstd_compress_internal.h
587
return (litLength > 63) ? ZSTD_highbit32(litLength) + LL_deltaCode : LL_Code[litLength];
lib/zstd/compress/zstd_compress_internal.h
604
return (mlBase > 127) ? ZSTD_highbit32(mlBase) + ML_deltaCode : ML_Code[mlBase];
lib/zstd/compress/zstd_lazy.c
1637
int const gain1 = (int)(matchLength*3 - ZSTD_highbit32((U32)offBase) + 1);
lib/zstd/compress/zstd_lazy.c
1651
int const gain1 = (int)(matchLength*3 - ZSTD_highbit32((U32)offBase) + 1);
lib/zstd/compress/zstd_lazy.c
1658
int const gain2 = (int)(ml2*4 - ZSTD_highbit32((U32)ofbCandidate)); /* raw approx */
lib/zstd/compress/zstd_lazy.c
1659
int const gain1 = (int)(matchLength*4 - ZSTD_highbit32((U32)offBase) + 4);
lib/zstd/compress/zstd_lazy.c
1673
int const gain1 = (int)(matchLength*4 - ZSTD_highbit32((U32)offBase) + 1);
lib/zstd/compress/zstd_lazy.c
1687
int const gain1 = (int)(matchLength*4 - ZSTD_highbit32((U32)offBase) + 1);
lib/zstd/compress/zstd_lazy.c
1694
int const gain2 = (int)(ml2*4 - ZSTD_highbit32((U32)ofbCandidate)); /* raw approx */
lib/zstd/compress/zstd_lazy.c
1695
int const gain1 = (int)(matchLength*4 - ZSTD_highbit32((U32)offBase) + 7);
lib/zstd/compress/zstd_lazy.c
2038
int const gain1 = (int)(matchLength*3 - ZSTD_highbit32((U32)offBase) + 1);
lib/zstd/compress/zstd_lazy.c
2046
int const gain2 = (int)(ml2*4 - ZSTD_highbit32((U32)ofbCandidate)); /* raw approx */
lib/zstd/compress/zstd_lazy.c
2047
int const gain1 = (int)(matchLength*4 - ZSTD_highbit32((U32)offBase) + 4);
lib/zstd/compress/zstd_lazy.c
2070
int const gain1 = (int)(matchLength*4 - ZSTD_highbit32((U32)offBase) + 1);
lib/zstd/compress/zstd_lazy.c
2078
int const gain2 = (int)(ml2*4 - ZSTD_highbit32((U32)ofbCandidate)); /* raw approx */
lib/zstd/compress/zstd_lazy.c
2079
int const gain1 = (int)(matchLength*4 - ZSTD_highbit32((U32)offBase) + 7);
lib/zstd/compress/zstd_lazy.c
210
if ( (4*(int)(matchLength-bestLength)) > (int)(ZSTD_highbit32(curr-matchIndex+1) - ZSTD_highbit32((U32)offsetPtr[0]+1)) ) {
lib/zstd/compress/zstd_lazy.c
343
if ( (4*(int)(matchLength-bestLength)) > (int)(ZSTD_highbit32(curr - matchIndex + 1) - ZSTD_highbit32((U32)*offBasePtr)) )
lib/zstd/compress/zstd_opt.c
131
return ZSTD_downscaleStats(table, lastEltIndex, ZSTD_highbit32(factor), base_1guaranteed);
lib/zstd/compress/zstd_opt.c
331
U32 const offCode = ZSTD_highbit32(offBase);
lib/zstd/compress/zstd_opt.c
376
{ U32 const offCode = ZSTD_highbit32(offBase);
lib/zstd/compress/zstd_opt.c
48
return (ZSTD_highbit32(stat+1) * BITCOST_MULTIPLIER);
lib/zstd/compress/zstd_opt.c
57
U32 const hb = ZSTD_highbit32(stat);
lib/zstd/decompress/huf_decompress.c
149
size_t const bitsConsumed = lastByte ? 8 - ZSTD_highbit32(lastByte) : 0;
lib/zstd/decompress/zstd_decompress.c
1804
*value = (int)ZSTD_highbit32((U32)dctx->maxWindowSize);
lib/zstd/decompress/zstd_decompress_block.c
2061
assert(ZSTD_highbit32((U32)maxOffbase) == STREAM_ACCUMULATOR_MIN);
lib/zstd/decompress/zstd_decompress_block.c
597
tableDecode[u].nbBits = (BYTE) (tableLog - ZSTD_highbit32(nextState) );