Lines Matching refs:BITS_PER_CHAR
149 int nchars = ((bits->nbBits+BITS_PER_CHAR-1)>>LOG2_BITS_PER_CHAR); in speex_bits_flush()
161 if (((bits->nbBits+BITS_PER_CHAR-1)>>LOG2_BITS_PER_CHAR)+nchars > bits->buf_size) in speex_bits_read_whole_bytes()
203 if (max_nchars > ((bits->nbBits+BITS_PER_CHAR-1)>>LOG2_BITS_PER_CHAR)) in speex_bits_write()
204 max_nchars = ((bits->nbBits+BITS_PER_CHAR-1)>>LOG2_BITS_PER_CHAR); in speex_bits_write()
225 bits->nbBits &= (BITS_PER_CHAR-1); in speex_bits_write_whole_bytes()
258 bits->chars[bits->charPtr] |= bit<<(BITS_PER_CHAR-1-bits->bitPtr); in speex_bits_pack()
261 if (bits->bitPtr==BITS_PER_CHAR) in speex_bits_pack()
293 d |= (bits->chars[bits->charPtr]>>(BITS_PER_CHAR-1 - bits->bitPtr))&1; in speex_bits_unpack_unsigned()
295 if (bits->bitPtr==BITS_PER_CHAR) in speex_bits_unpack_unsigned()
322 d |= (chars[charPtr]>>(BITS_PER_CHAR-1 - bitPtr))&1; in speex_bits_peek_unsigned()
324 if (bitPtr==BITS_PER_CHAR) in speex_bits_peek_unsigned()
340 return (bits->chars[bits->charPtr]>>(BITS_PER_CHAR-1 - bits->bitPtr))&1; in speex_bits_peek()
350 bits->bitPtr = (bits->bitPtr+n) & (BITS_PER_CHAR-1); /* modulo by BITS_PER_CHAR */ in speex_bits_advance()
363 return ((bits->nbBits+BITS_PER_CHAR-1)>>LOG2_BITS_PER_CHAR); in speex_bits_nbytes()