Home
last modified time | relevance | path

Searched refs:bit_left (Results 1 – 2 of 2) sorted by relevance

/external/pdfium/core/fxcrt/
Dcfx_bitstream.cpp42 uint32_t bit_left = nBits; in GetBits() local
46 if (bits_readable >= bit_left) { in GetBits()
47 result = (current_byte & (0xff >> bit_pos)) >> (bits_readable - bit_left); in GetBits()
48 m_BitPos += bit_left; in GetBits()
51 bit_left -= bits_readable; in GetBits()
52 result = (current_byte & ((1 << bits_readable) - 1)) << bit_left; in GetBits()
55 while (bit_left >= 8) { in GetBits()
56 bit_left -= 8; in GetBits()
57 result |= data[byte_pos++] << bit_left; in GetBits()
59 if (bit_left) in GetBits()
[all …]
/external/pdfium/core/fxcodec/flate/
Dflatemodule.cpp201 uint8_t bit_left = code_len_; in Decode() local
204 bit_left -= 8 - bit_pos; in Decode()
205 code = (src_span_[byte_pos++] & ((1 << (8 - bit_pos)) - 1)) << bit_left; in Decode()
207 if (bit_left < 8) { in Decode()
208 code |= src_span_[byte_pos] >> (8 - bit_left); in Decode()
210 bit_left -= 8; in Decode()
211 code |= src_span_[byte_pos++] << bit_left; in Decode()
212 if (bit_left) in Decode()
213 code |= src_span_[byte_pos] >> (8 - bit_left); in Decode()