Home
last modified time | relevance | path

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

/nanopb-2.7.6/
Dpb_decode.c196 uint_fast8_t bitpos = 7; in pb_decode_varint32_eof() local
204 if (bitpos >= 32) in pb_decode_varint32_eof()
207 pb_byte_t sign_extension = (bitpos < 63) ? 0xFF : 0x01; in pb_decode_varint32_eof()
211 if (bitpos >= 64 || !valid_extension) in pb_decode_varint32_eof()
218 result |= (uint32_t)(byte & 0x7F) << bitpos; in pb_decode_varint32_eof()
220 bitpos = (uint_fast8_t)(bitpos + 7); in pb_decode_varint32_eof()
223 if (bitpos == 35 && (byte & 0x70) != 0) in pb_decode_varint32_eof()
243 uint_fast8_t bitpos = 0; in pb_decode_varint() local
248 if (bitpos >= 64) in pb_decode_varint()
254 result |= (uint64_t)(byte & 0x7F) << bitpos; in pb_decode_varint()
[all …]