Home
last modified time | relevance | path

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

/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_field.cc93 void FieldGenerator::SetHasBitIndex(int32 has_bit_index) { in SetHasBitIndex() argument
94 if (!HasFieldPresence(descriptor_->file()) || has_bit_index == -1) { in SetHasBitIndex()
98 "_has_bits_[", has_bit_index / 32, "] |= 0x", in SetHasBitIndex()
99 strings::Hex(1u << (has_bit_index % 32), strings::ZERO_PAD_8), "u;"); in SetHasBitIndex()
101 "_has_bits_[", has_bit_index / 32, "] &= ~0x", in SetHasBitIndex()
102 strings::Hex(1u << (has_bit_index % 32), strings::ZERO_PAD_8), "u;"); in SetHasBitIndex()
Dcpp_message.cc89 int has_bit_index = has_bit_indices[field->index()]; in PrintPresenceCheck() local
90 if (*cached_has_bit_index != (has_bit_index / 32)) { in PrintPresenceCheck()
91 *cached_has_bit_index = (has_bit_index / 32); in PrintPresenceCheck()
95 StrCat(strings::Hex(1u << (has_bit_index % 32), strings::ZERO_PAD_8)); in PrintPresenceCheck()
795 int has_bit_index = has_bit_indices_[field->index()]; in GenerateSingularFieldHasBits() local
796 GOOGLE_CHECK_GE(has_bit_index, 0); in GenerateSingularFieldHasBits()
798 format.Set("has_array_index", has_bit_index / 32); in GenerateSingularFieldHasBits()
800 strings::Hex(1u << (has_bit_index % 32), strings::ZERO_PAD_8)); in GenerateSingularFieldHasBits()
880 int has_bit_index = has_bit_indices_[field->index()]; in GenerateFieldClear() local
881 GOOGLE_CHECK_GE(has_bit_index, 0); in GenerateFieldClear()
[all …]
Dcpp_field.h202 void SetHasBitIndex(int32 has_bit_index);
/external/protobuf/src/google/protobuf/
Dgenerated_message_table_driven_lite.h127 inline void SetBit(uint32* has_bits, uint32 has_bit_index) { in SetBit() argument
130 uint32 mask = static_cast<uint32>(1u) << (has_bit_index % 32); in SetBit()
131 has_bits[has_bit_index / 32u] |= mask; in SetBit()
136 uint32 has_bit_index, int64 offset) { in MutableField() argument
137 SetBit(has_bits, has_bit_index); in MutableField()
142 inline void SetField(MessageLite* msg, uint32* has_bits, uint32 has_bit_index, in SetField() argument
146 *MutableField<Type>(msg, has_bits, has_bit_index, offset) = value; in SetField()
228 uint32 has_bit_index, int64 offset, in HandleString() argument
244 s = MutableField<InlinedStringField>(msg, has_bits, has_bit_index, in HandleString()
266 msg, has_bits, has_bit_index, offset); in HandleString()
Dgenerated_message_reflection.cc1018 bool IsIndexInHasBitSet(const uint32* has_bit_set, uint32 has_bit_index) { in IsIndexInHasBitSet() argument
1019 GOOGLE_DCHECK_NE(has_bit_index, ~0u); in IsIndexInHasBitSet()
1020 return ((has_bit_set[has_bit_index / 32] >> (has_bit_index % 32)) & in IsIndexInHasBitSet()
/external/protobuf/src/google/protobuf/compiler/javanano/
Djavanano_enum_field.cc254 const Params& params, int has_bit_index) in AccessorEnumFieldGenerator() argument
258 SetBitOperationVariables("has", has_bit_index, &variables_); in AccessorEnumFieldGenerator()
Djavanano_enum_field.h74 const Params& params, int has_bit_index);
Djavanano_primitive_field.h76 const Params &params, int has_bit_index);
Djavanano_primitive_field.cc507 const Params& params, int has_bit_index) in AccessorPrimitiveFieldGenerator() argument
510 SetBitOperationVariables("has", has_bit_index, &variables_); in AccessorPrimitiveFieldGenerator()