Home
last modified time | relevance | path

Searched refs:nbBits (Results 1 – 9 of 9) sorted by relevance

/openbmc/linux/lib/zstd/common/
H A Dbitstream.h188 assert(nbBits < BIT_MASK_SIZE); in BIT_addBits()
191 bitC->bitPos += nbBits; in BIT_addBits()
200 assert((value>>nbBits) == 0); in BIT_addBitsFast()
203 bitC->bitPos += nbBits; in BIT_addBitsFast()
315 assert(nbBits < BIT_MASK_SIZE); in BIT_getMiddleBits()
330 assert(nbBits < BIT_MASK_SIZE); in BIT_getLowerBits()
359 assert(nbBits >= 1); in BIT_lookBitsFast()
365 bitD->bitsConsumed += nbBits; in BIT_skipBits()
375 BIT_skipBits(bitD, nbBits); in BIT_readBits()
384 assert(nbBits >= 1); in BIT_readBitsFast()
[all …]
H A Dentropy_common.c65 int nbBits; in FSE_readNCount_body() local
89 nbBits = (bitStream & 0xF) + FSE_MIN_TABLELOG; /* extract tableLog */ in FSE_readNCount_body()
90 if (nbBits > FSE_TABLELOG_ABSOLUTE_MAX) return ERROR(tableLog_tooLarge); in FSE_readNCount_body()
93 *tableLogPtr = nbBits; in FSE_readNCount_body()
94 remaining = (1<<nbBits)+1; in FSE_readNCount_body()
95 threshold = 1<<nbBits; in FSE_readNCount_body()
96 nbBits++; in FSE_readNCount_body()
154 bitCount += nbBits-1; in FSE_readNCount_body()
158 bitCount += nbBits; in FSE_readNCount_body()
181 nbBits = BIT_highbit32(remaining) + 1; in FSE_readNCount_body()
[all …]
H A Dfse.h327 size_t FSE_buildCTable_raw (FSE_CTable* ct, unsigned nbBits);
347 size_t FSE_buildDTable_raw (FSE_DTable* dt, unsigned nbBits);
597 unsigned char nbBits; member
618 U32 const nbBits = DInfo.nbBits; in FSE_updateState() local
619 size_t const lowBits = BIT_readBits(bitD, nbBits); in FSE_updateState()
626 U32 const nbBits = DInfo.nbBits; in FSE_decodeSymbol() local
628 size_t const lowBits = BIT_readBits(bitD, nbBits); in FSE_decodeSymbol()
639 U32 const nbBits = DInfo.nbBits; in FSE_decodeSymbolFast() local
641 size_t const lowBits = BIT_readBitsFast(bitD, nbBits); in FSE_decodeSymbolFast()
H A Dfse_decompress.c169 tableDecode[u].nbBits = (BYTE) (tableLog - BIT_highbit32(nextState) ); in FSE_buildDTable_internal()
170 tableDecode[u].newState = (U16) ( (nextState << tableDecode[u].nbBits) - tableSize); in FSE_buildDTable_internal()
199 cell->nbBits = 0; in FSE_buildDTable_rle()
205 size_t FSE_buildDTable_raw (FSE_DTable* dt, unsigned nbBits) in FSE_buildDTable_raw() argument
211 const unsigned tableSize = 1 << nbBits; in FSE_buildDTable_raw()
217 if (nbBits < 1) return ERROR(GENERIC); /* min size */ in FSE_buildDTable_raw()
220 DTableH->tableLog = (U16)nbBits; in FSE_buildDTable_raw()
225 dinfo[s].nbBits = (BYTE)nbBits; in FSE_buildDTable_raw()
/openbmc/linux/lib/zstd/compress/
H A Dhuf_compress.c151 *elt = nbBits; in HUF_setNbBits()
157 if (nbBits > 0) { in HUF_setValue()
158 assert((value >> nbBits) == 0); in HUF_setValue()
282 BYTE nbBits; member
634 huffNode[nodeRoot].nbBits = 0; in HUF_buildTree()
636 huffNode[n].nbBits = huffNode[ huffNode[n].parent ].nbBits + 1; in HUF_buildTree()
638 huffNode[n].nbBits = huffNode[ huffNode[n].parent ].nbBits + 1; in HUF_buildTree()
710 size_t nbBits = 0; in HUF_estimateCompressedSize() local
715 return nbBits >> 3; in HUF_estimateCompressedSize()
807 size_t const dirtyBits = nbBits == 0 ? 0 : BIT_highbit32((U32)nbBits) + 1; in HUF_addBits()
[all …]
H A Dfse_compress.c240 int nbBits; in FSE_writeNCount_generic() local
257 nbBits = tableLog+1; in FSE_writeNCount_generic()
297 bitCount += nbBits; in FSE_writeNCount_generic()
301 while (remaining<threshold) { nbBits--; threshold>>=1; } in FSE_writeNCount_generic()
537 size_t FSE_buildCTable_raw (FSE_CTable* ct, unsigned nbBits) in FSE_buildCTable_raw() argument
539 const unsigned tableSize = 1 << nbBits; in FSE_buildCTable_raw()
549 if (nbBits < 1) return ERROR(GENERIC); /* min size */ in FSE_buildCTable_raw()
552 tableU16[-2] = (U16) nbBits; in FSE_buildCTable_raw()
560 { const U32 deltaNbBits = (nbBits << 16) - (1 << nbBits); in FSE_buildCTable_raw()
/openbmc/linux/lib/zstd/decompress/
H A Dhuf_decompress.c286 D4 = (symbol << 8) + nbBits; in HUF_DEltX1_set4()
288 D4 = symbol + (nbBits << 8); in HUF_DEltX1_set4()
425 D.nbBits = nbBits; in HUF_readDTableX1_wksp_bmi2()
434 D.nbBits = nbBits; in HUF_readDTableX1_wksp_bmi2()
481 BIT_skipBits(Dstream, dt[val].nbBits); in HUF_decodeSymbolX1()
875 U32 nbBits, U32 tableLog, in HUF_fillDTableX2ForWeight() argument
1001 U32 const nbBits = nbBitsBaseline - w; in HUF_fillDTableX2() local
1003 if (targetLog-nbBits >= minBits) { in HUF_fillDTableX2()
1007 int minWeight = nbBits + scaleLog; in HUF_fillDTableX2()
1026 nbBits, targetLog, in HUF_fillDTableX2()
[all …]
H A Dzstd_decompress_internal.h70 BYTE nbBits; member
H A Dzstd_decompress_block.c431 cell->nbBits = 0; in ZSTD_buildSeqTable_rle()
554 tableDecode[u].nbBits = (BYTE) (tableLog - BIT_highbit32(nextState) ); in ZSTD_buildFSETable_body()
555 tableDecode[u].nextState = (U16) ( (nextState << tableDecode[u].nbBits) - tableSize); in ZSTD_buildFSETable_body()
620 U8 const nbBits = nbAdditionalBits[symbol]; in ZSTD_buildSeqTable() local
621 ZSTD_buildSeqTable_rle(DTableSpace, baseline, nbBits); in ZSTD_buildSeqTable()
1150 …D_updateFseStateWithDInfo(ZSTD_fseState* DStatePtr, BIT_DStream_t* bitD, U16 nextState, U32 nbBits) in ZSTD_updateFseStateWithDInfo() argument
1152 size_t const lowBits = BIT_readBits(bitD, nbBits); in ZSTD_updateFseStateWithDInfo()
1186 U32 const llnbBits = llDInfo->nbBits;
1187 U32 const mlnbBits = mlDInfo->nbBits;
1188 U32 const ofnbBits = ofDInfo->nbBits;