Lines Matching refs:bit_left
144 int bit_pos = m_InPos % 8, bit_left = m_CodeLen;
147 bit_left -= 8 - bit_pos;
148 code = (m_pInput[byte_pos++] & ((1 << (8 - bit_pos)) - 1)) << bit_left;
150 if (bit_left < 8) {
151 code |= m_pInput[byte_pos] >> (8 - bit_left);
153 bit_left -= 8;
154 code |= m_pInput[byte_pos++] << bit_left;
155 if (bit_left) {
156 code |= m_pInput[byte_pos] >> (8 - bit_left);