Home | History | Annotate | Download | only in Support

Lines Matching refs:Value

22 /// Utility function to encode a SLEB128 value to an output stream.
23 inline void encodeSLEB128(int64_t Value, raw_ostream &OS) {
26 uint8_t Byte = Value & 0x7f;
28 Value >>= 7;
29 More = !((((Value == 0 ) && ((Byte & 0x40) == 0)) ||
30 ((Value == -1) && ((Byte & 0x40) != 0))));
37 /// Utility function to encode a ULEB128 value to an output stream.
38 inline void encodeULEB128(uint64_t Value, raw_ostream &OS,
41 uint8_t Byte = Value & 0x7f;
42 Value >>= 7;
43 if (Value != 0 || Padding != 0)
46 } while (Value != 0);
56 /// Utility function to encode a ULEB128 value to a buffer. Returns
57 /// the length in bytes of the encoded value.
58 inline unsigned encodeULEB128(uint64_t Value, uint8_t *p,
62 uint8_t Byte = Value & 0x7f;
63 Value >>= 7;
64 if (Value != 0 || Padding != 0)
67 } while (Value != 0);
79 /// Utility function to decode a ULEB128 value.
82 uint64_t Value = 0;
85 Value += uint64_t(*p & 0x7f) << Shift;
90 return Value;
93 /// Utility function to decode a SLEB128 value.
96 int64_t Value = 0;
101 Value |= ((Byte & 0x7f) << Shift);
106 Value |= (-1ULL) << Shift;
109 return Value;
113 /// Utility function to get the size of the ULEB128-encoded value.
114 extern unsigned getULEB128Size(uint64_t Value);
116 /// Utility function to get the size of the SLEB128-encoded value.
117 extern unsigned getSLEB128Size(int64_t Value);