Lines Matching refs:bitPtr
80 bits->bitPtr=0;
98 bits->bitPtr=0;
105 bits->bitPtr=0;
143 bits->bitPtr=0;
192 int charPtr, bitPtr, nbBits;
195 bitPtr=bits->bitPtr;
199 bits->bitPtr=bitPtr;
220 if (bits->bitPtr>0)
233 if (bits->charPtr+((nbBits+bits->bitPtr)>>LOG2_BITS_PER_CHAR) >= bits->buf_size)
258 bits->chars[bits->charPtr] |= bit<<(BITS_PER_CHAR-1-bits->bitPtr);
259 bits->bitPtr++;
261 if (bits->bitPtr==BITS_PER_CHAR)
263 bits->bitPtr=0;
286 if ((bits->charPtr<<LOG2_BITS_PER_CHAR)+bits->bitPtr+nbBits>bits->nbBits)
293 d |= (bits->chars[bits->charPtr]>>(BITS_PER_CHAR-1 - bits->bitPtr))&1;
294 bits->bitPtr++;
295 if (bits->bitPtr==BITS_PER_CHAR)
297 bits->bitPtr=0;
308 int bitPtr, charPtr;
311 if ((bits->charPtr<<LOG2_BITS_PER_CHAR)+bits->bitPtr+nbBits>bits->nbBits)
316 bitPtr=bits->bitPtr;
322 d |= (chars[charPtr]>>(BITS_PER_CHAR-1 - bitPtr))&1;
323 bitPtr++;
324 if (bitPtr==BITS_PER_CHAR)
326 bitPtr=0;
336 if ((bits->charPtr<<LOG2_BITS_PER_CHAR)+bits->bitPtr+1>bits->nbBits)
340 return (bits->chars[bits->charPtr]>>(BITS_PER_CHAR-1 - bits->bitPtr))&1;
345 if (((bits->charPtr<<LOG2_BITS_PER_CHAR)+bits->bitPtr+n>bits->nbBits) || bits->overflow){
349 bits->charPtr += (bits->bitPtr+n) >> LOG2_BITS_PER_CHAR; /* divide by BITS_PER_CHAR */
350 bits->bitPtr = (bits->bitPtr+n) & (BITS_PER_CHAR-1); /* modulo by BITS_PER_CHAR */
358 return bits->nbBits-((bits->charPtr<<LOG2_BITS_PER_CHAR)+bits->bitPtr);
368 if (bits->bitPtr)
370 while (bits->bitPtr)