Lines Matching refs:bitPos
50 unsigned bitPos; member
173 bitC->bitPos = 0; in BIT_initCStream()
189 assert(nbBits + bitC->bitPos < sizeof(bitC->bitContainer) * 8); in BIT_addBits()
190 bitC->bitContainer |= (value & BIT_mask[nbBits]) << bitC->bitPos; in BIT_addBits()
191 bitC->bitPos += nbBits; in BIT_addBits()
201 assert(nbBits + bitC->bitPos < sizeof(bitC->bitContainer) * 8); in BIT_addBitsFast()
202 bitC->bitContainer |= value << bitC->bitPos; in BIT_addBitsFast()
203 bitC->bitPos += nbBits; in BIT_addBitsFast()
211 size_t const nbBytes = bitC->bitPos >> 3; in BIT_flushBitsFast()
212 assert(bitC->bitPos < sizeof(bitC->bitContainer) * 8); in BIT_flushBitsFast()
216 bitC->bitPos &= 7; in BIT_flushBitsFast()
227 size_t const nbBytes = bitC->bitPos >> 3; in BIT_flushBits()
228 assert(bitC->bitPos < sizeof(bitC->bitContainer) * 8); in BIT_flushBits()
233 bitC->bitPos &= 7; in BIT_flushBits()
245 return (bitC->ptr - bitC->startPtr) + (bitC->bitPos > 0); in BIT_closeCStream()