Home
last modified time | relevance | path

Searched refs:bitsConsumed (Results 1 – 2 of 2) sorted by relevance

/lib/zstd/
Dbitstream.h105 unsigned bitsConsumed; member
252 …bitD->bitsConsumed = lastByte ? 8 - BIT_highbit32(lastByte) : 0; /* ensures bitsConsumed is always… in BIT_initDStream()
276 bitD->bitsConsumed = lastByte ? 8 - BIT_highbit32(lastByte) : 0; in BIT_initDStream()
280 bitD->bitsConsumed += (U32)(sizeof(bitD->bitContainer) - srcSize) * 8; in BIT_initDStream()
302 …return ((bitD->bitContainer << (bitD->bitsConsumed & bitMask)) >> 1) >> ((bitMask - nbBits) & bitM… in BIT_lookBits()
310 …return (bitD->bitContainer << (bitD->bitsConsumed & bitMask)) >> (((bitMask + 1) - nbBits) & bitMa… in BIT_lookBitsFast()
313 ZSTD_STATIC void BIT_skipBits(BIT_DStream_t *bitD, U32 nbBits) { bitD->bitsConsumed += nbBits; } in BIT_skipBits()
343 …if (bitD->bitsConsumed > (sizeof(bitD->bitContainer) * 8)) /* should not happen => corruption dete… in BIT_reloadDStream()
347 bitD->ptr -= bitD->bitsConsumed >> 3; in BIT_reloadDStream()
348 bitD->bitsConsumed &= 7; in BIT_reloadDStream()
[all …]
Dhuf_decompress.c610 if (DStream->bitsConsumed < (sizeof(DStream->bitContainer) * 8)) { in HUF_decodeLastSymbolX4()
612 if (DStream->bitsConsumed > (sizeof(DStream->bitContainer) * 8)) in HUF_decodeLastSymbolX4()
614 DStream->bitsConsumed = (sizeof(DStream->bitContainer) * 8); in HUF_decodeLastSymbolX4()