Home
last modified time | relevance | path

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

/external/swiftshader/third_party/subzero/pnacl-llvm/include/llvm/Bitcode/NaCl/
DNaClBitcodeHeader.h58 typedef uint16_t FixedSubfield; typedef
106 FixedSubfield Length; in GetDataSizeFromSerialized()
107 ReadFixedSubfield(&Length, Buf + sizeof(FixedSubfield)); in GetDataSizeFromSerialized()
128 FixedSubfield EncodeTypedID() const { return (ID << 4) | FType; } in EncodeTypedID()
130 void DecodeTypedID(FixedSubfield Subfield, Tag &ID, FieldType &FType) { in DecodeTypedID()
131 FixedSubfield PossibleID = Subfield >> 4; in DecodeTypedID()
133 FixedSubfield PossibleFType = Subfield & 0xF; in DecodeTypedID()
138 const static size_t kTagLenSize = 2 * sizeof(FixedSubfield);
139 static void WriteFixedSubfield(FixedSubfield Value, uint8_t *Buf) { in WriteFixedSubfield()
143 static void ReadFixedSubfield(FixedSubfield *Value, const uint8_t *Buf) { in ReadFixedSubfield()
/external/swiftshader/third_party/subzero/pnacl-llvm/
DNaClBitcodeHeader.cpp101 Len > std::numeric_limits<FixedSubfield>::max()) in Write()
105 WriteFixedSubfield(static_cast<FixedSubfield>(Len), in Write()
106 Buf + sizeof(FixedSubfield)); in Write()
118 FixedSubfield IdField; in Read()
120 FixedSubfield LengthField; in Read()
121 ReadFixedSubfield(&LengthField, Buf + sizeof(FixedSubfield)); in Read()