Lines Matching refs:nchars
112 int nchars = len / BYTES_PER_CHAR; in speex_bits_read_from() local
113 if (nchars > bits->buf_size) in speex_bits_read_from()
118 char *tmp = (char*)speex_realloc(bits->chars, nchars); in speex_bits_read_from()
121 bits->buf_size=nchars; in speex_bits_read_from()
124 nchars=bits->buf_size; in speex_bits_read_from()
129 nchars=bits->buf_size; in speex_bits_read_from()
138 for (i=0;i<nchars;i++) in speex_bits_read_from()
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() local
151 SPEEX_MOVE(bits->chars, &bits->chars[bits->charPtr], nchars-bits->charPtr); in speex_bits_flush()
159 int nchars = nbytes/BYTES_PER_CHAR; in speex_bits_read_whole_bytes() local
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()
177 nchars=bits->buf_size; in speex_bits_read_whole_bytes()
183 for (i=0;i<nchars;i++) in speex_bits_read_whole_bytes()
185 bits->nbBits+=nchars<<LOG2_BITS_PER_CHAR; in speex_bits_read_whole_bytes()