Home
last modified time | relevance | path

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

/arkcompiler/runtime_core/libpandabase/utils/
Dleb128.h27 constexpr size_t PAYLOAD_WIDTH = 7; variable
40 constexpr size_t N = (BITWIDTH + PAYLOAD_WIDTH - 1) / PAYLOAD_WIDTH; in DecodeUnsigned()
45 size_t shift = i * PAYLOAD_WIDTH; in DecodeUnsigned()
104 constexpr size_t N = (BITWIDTH + PAYLOAD_WIDTH - 1) / PAYLOAD_WIDTH; in DecodeSigned()
109 size_t shift = i * PAYLOAD_WIDTH; in DecodeSigned()
118 uint8_t masked = (signed_extended ^ (signed_extended >> PAYLOAD_WIDTH)) | 1; in DecodeSigned()
120 if (shift > PAYLOAD_WIDTH) { in DecodeSigned()
121 shift -= PAYLOAD_WIDTH; in DecodeSigned()
137 data >>= PAYLOAD_WIDTH; in EncodeUnsigned()
143 data >>= PAYLOAD_WIDTH; in EncodeUnsigned()
[all …]