Lines Matching refs:bitsConsumed
84 unsigned bitsConsumed; member
269 …bitD->bitsConsumed = lastByte ? 8 - BIT_highbit32(lastByte) : 0; /* ensures bitsConsumed is alway… in BIT_initDStream()
297 bitD->bitsConsumed = lastByte ? 8 - BIT_highbit32(lastByte) : 0; in BIT_initDStream()
300 bitD->bitsConsumed += (U32)(sizeof(bitD->bitContainer) - srcSize)*8; in BIT_initDStream()
337 …MiddleBits(bitD->bitContainer, (sizeof(bitD->bitContainer)*8) - bitD->bitsConsumed - nbBits, nbBit… in BIT_lookBits()
341 …return ((bitD->bitContainer << (bitD->bitsConsumed & regMask)) >> 1) >> ((regMask-nbBits) & regMas… in BIT_lookBits()
351 … return (bitD->bitContainer << (bitD->bitsConsumed & regMask)) >> (((regMask+1)-nbBits) & regMask); in BIT_lookBitsFast()
356 bitD->bitsConsumed += nbBits; in BIT_skipBits()
390 assert(bitD->bitsConsumed <= sizeof(bitD->bitContainer)*8); in BIT_reloadDStreamFast()
391 bitD->ptr -= bitD->bitsConsumed >> 3; in BIT_reloadDStreamFast()
392 bitD->bitsConsumed &= 7; in BIT_reloadDStreamFast()
404 …if (bitD->bitsConsumed > (sizeof(bitD->bitContainer)*8)) /* overflow detected, like end of stream… in BIT_reloadDStream()
411 if (bitD->bitsConsumed < sizeof(bitD->bitContainer)*8) return BIT_DStream_endOfBuffer; in BIT_reloadDStream()
415 { U32 nbBytes = bitD->bitsConsumed >> 3; in BIT_reloadDStream()
422 bitD->bitsConsumed -= nbBytes*8; in BIT_reloadDStream()
433 …return ((DStream->ptr == DStream->start) && (DStream->bitsConsumed == sizeof(DStream->bitContainer… in BIT_endOfDStream()