Searched refs:nbBits (Results 1 – 7 of 7) sorted by relevance
/lib/zstd/ |
D | bitstream.h | 79 ZSTD_STATIC void BIT_addBits(BIT_CStream_t *bitC, size_t value, unsigned nbBits); 119 ZSTD_STATIC size_t BIT_readBits(BIT_DStream_t *bitD, unsigned nbBits); 136 ZSTD_STATIC void BIT_addBitsFast(BIT_CStream_t *bitC, size_t value, unsigned nbBits); 142 ZSTD_STATIC size_t BIT_readBitsFast(BIT_DStream_t *bitD, unsigned nbBits); 177 ZSTD_STATIC void BIT_addBits(BIT_CStream_t *bitC, size_t value, unsigned nbBits) in BIT_addBits() argument 179 bitC->bitContainer |= (value & BIT_mask[nbBits]) << bitC->bitPos; in BIT_addBits() 180 bitC->bitPos += nbBits; in BIT_addBits() 185 ZSTD_STATIC void BIT_addBitsFast(BIT_CStream_t *bitC, size_t value, unsigned nbBits) in BIT_addBitsFast() argument 188 bitC->bitPos += nbBits; in BIT_addBitsFast() 289 …ize_t bitContainer, U32 const start, U32 const nbBits) { return (bitContainer >> start) & BIT_mask… in BIT_getMiddleBits() argument [all …]
|
D | entropy_common.c | 64 int nbBits; in FSE_readNCount() local 75 nbBits = (bitStream & 0xF) + FSE_MIN_TABLELOG; /* extract tableLog */ in FSE_readNCount() 76 if (nbBits > FSE_TABLELOG_ABSOLUTE_MAX) in FSE_readNCount() 80 *tableLogPtr = nbBits; in FSE_readNCount() 81 remaining = (1 << nbBits) + 1; in FSE_readNCount() 82 threshold = 1 << nbBits; in FSE_readNCount() 83 nbBits++; in FSE_readNCount() 123 bitCount += nbBits - 1; in FSE_readNCount() 128 bitCount += nbBits; in FSE_readNCount() 136 nbBits--; in FSE_readNCount()
|
D | huf_compress.c | 146 BYTE nbBits; member 180 huffWeight[n] = bitsToWeight[CTable[n].nbBits]; in HUF_writeCTable_wksp() 248 CTable[n].nbBits = (BYTE)(tableLog + 1 - w); in HUF_readCTable_wksp() 259 nbPerRank[CTable[n].nbBits]++; in HUF_readCTable_wksp() 276 CTable[n].val = valPerRank[CTable[n].nbBits]++; in HUF_readCTable_wksp() 287 BYTE nbBits; member 292 const U32 largestBits = huffNode[lastNonNull].nbBits; in HUF_setMaxHeight() 302 while (huffNode[n].nbBits > maxNbBits) { in HUF_setMaxHeight() 303 totalCost += baseCost - (1 << (largestBits - huffNode[n].nbBits)); in HUF_setMaxHeight() 304 huffNode[n].nbBits = (BYTE)maxNbBits; in HUF_setMaxHeight() [all …]
|
D | fse.h | 266 size_t FSE_buildCTable_raw(FSE_CTable *ct, unsigned nbBits); 278 size_t FSE_buildDTable_raw(FSE_DTable *dt, unsigned nbBits); 478 unsigned char nbBits; member 499 U32 const nbBits = DInfo.nbBits; in FSE_updateState() local 500 size_t const lowBits = BIT_readBits(bitD, nbBits); in FSE_updateState() 507 U32 const nbBits = DInfo.nbBits; in FSE_decodeSymbol() local 509 size_t const lowBits = BIT_readBits(bitD, nbBits); in FSE_decodeSymbol() 520 U32 const nbBits = DInfo.nbBits; in FSE_decodeSymbolFast() local 522 size_t const lowBits = BIT_readBitsFast(bitD, nbBits); in FSE_decodeSymbolFast()
|
D | fse_decompress.c | 152 tableDecode[u].nbBits = (BYTE)(tableLog - BIT_highbit32((U32)nextState)); in FSE_buildDTable_wksp() 153 tableDecode[u].newState = (U16)((nextState << tableDecode[u].nbBits) - tableSize); in FSE_buildDTable_wksp() 175 cell->nbBits = 0; in FSE_buildDTable_rle() 180 size_t FSE_buildDTable_raw(FSE_DTable *dt, unsigned nbBits) in FSE_buildDTable_raw() argument 186 const unsigned tableSize = 1 << nbBits; in FSE_buildDTable_raw() 192 if (nbBits < 1) in FSE_buildDTable_raw() 196 DTableH->tableLog = (U16)nbBits; in FSE_buildDTable_raw() 201 dinfo[s].nbBits = (BYTE)nbBits; in FSE_buildDTable_raw()
|
D | huf_decompress.c | 87 BYTE nbBits; member 148 D.nbBits = (BYTE)(tableLog + 1 - w); in HUF_readDTableX2_wksp() 162 BIT_skipBits(Dstream, dt[val].nbBits); in HUF_decodeSymbolX2() 383 BYTE nbBits; member 407 DElt.nbBits = (BYTE)(consumed); in HUF_fillDTableX4Level2() 419 const U32 nbBits = nbBitsBaseline - weight; in HUF_fillDTableX4Level2() local 420 const U32 length = 1 << (sizeLog - nbBits); in HUF_fillDTableX4Level2() 426 DElt.nbBits = (BYTE)(nbBits + consumed); in HUF_fillDTableX4Level2() 454 const U32 nbBits = nbBitsBaseline - weight; in HUF_fillDTableX4() local 456 const U32 length = 1 << (targetLog - nbBits); in HUF_fillDTableX4() [all …]
|
D | fse_compress.c | 209 int nbBits; in FSE_writeNCount_generic() local 227 nbBits = tableLog + 1; in FSE_writeNCount_generic() 269 bitCount += nbBits; in FSE_writeNCount_generic() 275 nbBits--, threshold >>= 1; in FSE_writeNCount_generic() 666 size_t FSE_buildCTable_raw(FSE_CTable *ct, unsigned nbBits) in FSE_buildCTable_raw() argument 668 const unsigned tableSize = 1 << nbBits; in FSE_buildCTable_raw() 678 if (nbBits < 1) in FSE_buildCTable_raw() 682 tableU16[-2] = (U16)nbBits; in FSE_buildCTable_raw() 691 const U32 deltaNbBits = (nbBits << 16) - (1 << nbBits); in FSE_buildCTable_raw()
|