Home
last modified time | relevance | path

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

/external/zstd/lib/compress/
Dhuf_compress.c228 static U32 HUF_setMaxHeight(nodeElt* huffNode, U32 lastNonNull, U32 maxNbBits) in HUF_setMaxHeight() argument
232 if (largestBits <= maxNbBits) return largestBits; in HUF_setMaxHeight()
236 const U32 baseCost = 1 << (largestBits - maxNbBits); in HUF_setMaxHeight()
243 while (huffNode[n].nbBits > maxNbBits) { in HUF_setMaxHeight()
245 huffNode[n].nbBits = (BYTE)maxNbBits; in HUF_setMaxHeight()
249 assert(huffNode[n].nbBits <= maxNbBits); in HUF_setMaxHeight()
251 while (huffNode[n].nbBits == maxNbBits) --n; in HUF_setMaxHeight()
256 totalCost >>= (largestBits - maxNbBits); in HUF_setMaxHeight()
265 { U32 currentNbBits = maxNbBits; in HUF_setMaxHeight()
270 rankLast[maxNbBits-currentNbBits] = (U32)pos; in HUF_setMaxHeight()
[all …]
/external/zstd/lib/dictBuilder/
Dzdict.c765 { size_t maxNbBits = HUF_buildCTable (hufTable, countLit, 255, huffLog); in ZDICT_analyzeEntropy() local
766 if (HUF_isError(maxNbBits)) { in ZDICT_analyzeEntropy()
767 eSize = maxNbBits; in ZDICT_analyzeEntropy()
771 if (maxNbBits==8) { /* not compressible : will fail on HUF_writeCTable() */ in ZDICT_analyzeEntropy()
774 maxNbBits = HUF_buildCTable (hufTable, countLit, 255, huffLog); in ZDICT_analyzeEntropy()
775 assert(maxNbBits==9); in ZDICT_analyzeEntropy()
777 huffLog = (U32)maxNbBits; in ZDICT_analyzeEntropy()
/external/zstd/lib/common/
Dhuf.h193 …_CElt* CTable, const unsigned* count, unsigned maxSymbolValue, unsigned maxNbBits); /* @return :…
222 const unsigned* count, U32 maxSymbolValue, U32 maxNbBits,
/external/lz4/tests/
Dframetest.c1046 { U32 const maxNbBits = FUZ_highbit((U32)cSize); in fuzzerTests() local
1050 { U32 const nbBits = FUZ_rand(&randState) % maxNbBits; in fuzzerTests()
1057 { U32 const nbBitsCodes = FUZ_rand(&randState) % maxNbBits; in fuzzerTests()
Dfuzzer.c569 { U32 const maxNbBits = FUZ_highbit32((U32)compressedSize); in FUZ_test() local
573 { U32 const nbBits = FUZ_rand(&randState) % maxNbBits; in FUZ_test()
580 { U32 const nbBitsCodes = FUZ_rand(&randState) % maxNbBits; in FUZ_test()
/external/zstd/tests/
Dfuzzer.c3473 { U32 const maxNbBits = FUZ_highbit32((U32)(cSize-4)); in fuzzerTests() local
3477 { U32 const nbBits = FUZ_rand(&lseed) % maxNbBits; in fuzzerTests()
3484 { U32 const nbBitsCodes = FUZ_rand(&lseed) % maxNbBits; in fuzzerTests()