Lines Matching refs:bitsConsumed
105 unsigned bitsConsumed; member
252 …bitD->bitsConsumed = lastByte ? 8 - BIT_highbit32(lastByte) : 0; /* ensures bitsConsumed is always… in BIT_initDStream()
271 bitD->bitsConsumed = lastByte ? 8 - BIT_highbit32(lastByte) : 0; in BIT_initDStream()
275 bitD->bitsConsumed += (U32)(sizeof(bitD->bitContainer) - srcSize) * 8; in BIT_initDStream()
297 …return ((bitD->bitContainer << (bitD->bitsConsumed & bitMask)) >> 1) >> ((bitMask - nbBits) & bitM… in BIT_lookBits()
305 …return (bitD->bitContainer << (bitD->bitsConsumed & bitMask)) >> (((bitMask + 1) - nbBits) & bitMa… in BIT_lookBitsFast()
308 ZSTD_STATIC void BIT_skipBits(BIT_DStream_t *bitD, U32 nbBits) { bitD->bitsConsumed += nbBits; } in BIT_skipBits()
338 …if (bitD->bitsConsumed > (sizeof(bitD->bitContainer) * 8)) /* should not happen => corruption dete… in BIT_reloadDStream()
342 bitD->ptr -= bitD->bitsConsumed >> 3; in BIT_reloadDStream()
343 bitD->bitsConsumed &= 7; in BIT_reloadDStream()
348 if (bitD->bitsConsumed < sizeof(bitD->bitContainer) * 8) in BIT_reloadDStream()
353 U32 nbBytes = bitD->bitsConsumed >> 3; in BIT_reloadDStream()
360 bitD->bitsConsumed -= nbBytes * 8; in BIT_reloadDStream()
371 …return ((DStream->ptr == DStream->start) && (DStream->bitsConsumed == sizeof(DStream->bitContainer… in BIT_endOfDStream()