Lines Matching refs:LOG2_BITS_PER_CHAR
78 bits->nbBits=buf_size<<LOG2_BITS_PER_CHAR; in speex_bits_set_bit_buffer()
141 bits->nbBits=nchars<<LOG2_BITS_PER_CHAR; in speex_bits_read_from()
149 int nchars = ((bits->nbBits+BITS_PER_CHAR-1)>>LOG2_BITS_PER_CHAR); in speex_bits_flush()
152 bits->nbBits -= bits->charPtr<<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()
166 char *tmp = (char*)speex_realloc(bits->chars, (bits->nbBits>>LOG2_BITS_PER_CHAR)+nchars+1); in speex_bits_read_whole_bytes()
169 bits->buf_size=(bits->nbBits>>LOG2_BITS_PER_CHAR)+nchars+1; in speex_bits_read_whole_bytes()
172 nchars=bits->buf_size-(bits->nbBits>>LOG2_BITS_PER_CHAR)-1; in speex_bits_read_whole_bytes()
182 pos=bits->nbBits>>LOG2_BITS_PER_CHAR; in speex_bits_read_whole_bytes()
185 bits->nbBits+=nchars<<LOG2_BITS_PER_CHAR; 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()
215 if (max_nchars > ((bits->nbBits)>>LOG2_BITS_PER_CHAR)) in speex_bits_write_whole_bytes()
216 max_nchars = ((bits->nbBits)>>LOG2_BITS_PER_CHAR); in speex_bits_write_whole_bytes()
233 if (bits->charPtr+((nbBits+bits->bitPtr)>>LOG2_BITS_PER_CHAR) >= bits->buf_size) in speex_bits_pack()
286 if ((bits->charPtr<<LOG2_BITS_PER_CHAR)+bits->bitPtr+nbBits>bits->nbBits) in speex_bits_unpack_unsigned()
311 if ((bits->charPtr<<LOG2_BITS_PER_CHAR)+bits->bitPtr+nbBits>bits->nbBits) in speex_bits_peek_unsigned()
336 if ((bits->charPtr<<LOG2_BITS_PER_CHAR)+bits->bitPtr+1>bits->nbBits) in speex_bits_peek()
345 if (((bits->charPtr<<LOG2_BITS_PER_CHAR)+bits->bitPtr+n>bits->nbBits) || bits->overflow){ in speex_bits_advance()
349 bits->charPtr += (bits->bitPtr+n) >> LOG2_BITS_PER_CHAR; /* divide by BITS_PER_CHAR */ in speex_bits_advance()
358 return bits->nbBits-((bits->charPtr<<LOG2_BITS_PER_CHAR)+bits->bitPtr); in speex_bits_remaining()
363 return ((bits->nbBits+BITS_PER_CHAR-1)>>LOG2_BITS_PER_CHAR); in speex_bits_nbytes()