16 #include "iLBC_define.h"
17 #include "constants.h"
42 int bitno_rest = bitno_total-bitno_firstpart;
44 *firstpart = *index>>(bitno_rest);
45 *rest = *index-(*firstpart<<(bitno_rest));
60 *index = *index<<bitno_rest;
69 unsigned char **bitstream,
107 if (bitno <= posLeft) {
108 **bitstream |= (
unsigned char)(index<<(posLeft-bitno));
112 **bitstream |= (
unsigned char)(index>>(bitno-posLeft));
115 index-=((index>>(bitno-posLeft))<<(bitno-posLeft));
127 unsigned char **bitstream,
162 if (BitsLeft>=bitno) {
163 *index+=((((**bitstream)<<(*pos)) & 0xFF)>>(8-bitno));
170 *index+=((((**bitstream)<<(*pos)) & 0xFF)>>
174 *index+=(((int)(((**bitstream)<<(*pos)) & 0xFF))<<