Home
last modified time | relevance | path

Searched refs:BIT_highbit32 (Results 1 – 16 of 16) sorted by relevance

/freebsd/sys/contrib/openzfs/module/zstd/lib/common/
H A Dentropy_common.c197 { U32 const tableLog = BIT_highbit32(weightTotal) + 1; in HUF_readStats()
203 U32 const verif = 1 << BIT_highbit32(rest); in HUF_readStats()
204 U32 const lastWeight = BIT_highbit32(rest) + 1; in HUF_readStats()
H A Dbitstream.h139 MEM_STATIC unsigned BIT_highbit32 (U32 val) in BIT_highbit32() function
283 …bitD->bitsConsumed = lastByte ? 8 - BIT_highbit32(lastByte) : 0; /* ensures bitsConsumed is alway… in BIT_initDStream()
311 bitD->bitsConsumed = lastByte ? 8 - BIT_highbit32(lastByte) : 0; in BIT_initDStream()
H A Dfse_decompress.c109 tableDecode[u].nbBits = (BYTE) (tableLog - BIT_highbit32(nextState) ); in FSE_buildDTable()
/freebsd/sys/contrib/zstd/lib/common/
H A Dentropy_common.c192 nbBits = BIT_highbit32(remaining) + 1; in FSE_readNCount_body()
315 { U32 const tableLog = BIT_highbit32(weightTotal) + 1; in HUF_readStats_body()
321 U32 const verif = 1 << BIT_highbit32(rest); in HUF_readStats_body()
322 U32 const lastWeight = BIT_highbit32(rest) + 1; in HUF_readStats_body()
H A Dbitstream.h140 MEM_STATIC unsigned BIT_highbit32 (U32 val) in BIT_highbit32() function
294 …bitD->bitsConsumed = lastByte ? 8 - BIT_highbit32(lastByte) : 0; /* ensures bitsConsumed is alway… in BIT_initDStream()
322 bitD->bitsConsumed = lastByte ? 8 - BIT_highbit32(lastByte) : 0; in BIT_initDStream()
H A Dfse_decompress.c169 tableDecode[u].nbBits = (BYTE) (tableLog - BIT_highbit32(nextState) ); in FSE_buildDTable_internal()
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dfse_compress.c149 U32 const maxBitsOut = tableLog - BIT_highbit32 (normalizedCounter[s]-1); in FSE_buildCTable_wksp()
318 U32 minBitsSrc = BIT_highbit32((U32)(srcSize)) + 1; in FSE_minTableLog()
319 U32 minBitsSymbols = BIT_highbit32(maxSymbolValue) + 2; in FSE_minTableLog()
327 U32 maxBitsSrc = BIT_highbit32((U32)(srcSize - 1)) - minus; in FSE_optimalTableLog_internal()
H A Dhuf_compress.c250 U32 nBitsToDecrease = BIT_highbit32((U32)totalCost) + 1; in HUF_setMaxHeight()
313 U32 r = BIT_highbit32(count[n] + 1); in HUF_sort()
320 U32 const r = BIT_highbit32(c+1) + 1; in HUF_sort()
/freebsd/sys/contrib/zstd/lib/compress/
H A Dfse_compress.c194 { U32 const maxBitsOut = tableLog - BIT_highbit32 ((U32)normalizedCounter[s]-1); in FSE_buildCTable_wksp()
358 U32 minBitsSrc = BIT_highbit32((U32)(srcSize)) + 1; in FSE_minTableLog()
359 U32 minBitsSymbols = BIT_highbit32(maxSymbolValue) + 2; in FSE_minTableLog()
367 U32 maxBitsSrc = BIT_highbit32((U32)(srcSize - 1)) - minus; in FSE_optimalTableLog_internal()
H A Dhuf_compress.c357 U32 nBitsToDecrease = BIT_highbit32((U32)totalCost) + 1; in HUF_setMaxHeight()
455 #define RANK_POSITION_DISTINCT_COUNT_CUTOFF RANK_POSITION_LOG_BUCKETS_BEGIN + BIT_highbit32(RANK_PO…
463 : BIT_highbit32(count) + RANK_POSITION_LOG_BUCKETS_BEGIN; in HUF_getIndex()
810 size_t const dirtyBits = nbBits == 0 ? 0 : BIT_highbit32((U32)nbBits) + 1; in HUF_addBits()
/freebsd/sys/contrib/zstd/lib/legacy/
H A Dzstd_v03.c353 MEM_STATIC unsigned BIT_highbit32 (U32 val) in BIT_highbit32() function
399 bitD->bitsConsumed = 8 - BIT_highbit32(contain32); in BIT_initDStream()
425 bitD->bitsConsumed = 8 - BIT_highbit32(contain32); in BIT_initDStream()
1153 tableDecode[i].nbBits = (BYTE) (tableLog - BIT_highbit32 ((U32)nextState) ); in FSE_buildDTable()
1596 tableLog = BIT_highbit32(weightTotal) + 1; in HUF_readStats()
1601 U32 verif = 1 << BIT_highbit32(rest); in HUF_readStats()
1602 U32 lastWeight = BIT_highbit32(rest) + 1; in HUF_readStats()
H A Dzstd_v02.c350 MEM_STATIC unsigned BIT_highbit32 (U32 val) in BIT_highbit32() function
396 bitD->bitsConsumed = 8 - BIT_highbit32(contain32); in BIT_initDStream()
422 bitD->bitsConsumed = 8 - BIT_highbit32(contain32); in BIT_initDStream()
1152 tableDecode[i].nbBits = (BYTE) (tableLog - BIT_highbit32 ((U32)nextState) ); in FSE_buildDTable()
1599 tableLog = BIT_highbit32(weightTotal) + 1; in HUF_readStats()
1604 U32 verif = 1 << BIT_highbit32(rest); in HUF_readStats()
1605 U32 lastWeight = BIT_highbit32(rest) + 1; in HUF_readStats()
H A Dzstd_v04.c624 MEM_STATIC unsigned BIT_highbit32 (U32 val) in BIT_highbit32() function
669 bitD->bitsConsumed = 8 - BIT_highbit32(contain32); in BIT_initDStream()
689 bitD->bitsConsumed = 8 - BIT_highbit32(contain32); in BIT_initDStream()
1130 tableDecode[i].nbBits = (BYTE) (tableLog - BIT_highbit32 ((U32)nextState) ); in FSE_buildDTable()
1749 tableLog = BIT_highbit32(weightTotal) + 1; in HUF_readStats()
1754 U32 verif = 1 << BIT_highbit32(rest); in HUF_readStats()
1755 U32 lastWeight = BIT_highbit32(rest) + 1; in HUF_readStats()
/freebsd/sys/contrib/openzfs/module/zstd/lib/decompress/
H A Dzstd_decompress_block.c421 tableDecode[u].nbBits = (BYTE) (tableLog - BIT_highbit32(nextState) ); in ZSTD_buildFSETable()
/freebsd/sys/contrib/zstd/lib/decompress/
H A Dhuf_decompress.c145 size_t const bitsConsumed = lastByte ? 8 - BIT_highbit32(lastByte) : 0; in HUF_initDStream()
H A Dzstd_decompress_block.c554 tableDecode[u].nbBits = (BYTE) (tableLog - BIT_highbit32(nextState) ); in ZSTD_buildFSETable_body()