Home
last modified time | relevance | path

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

/system/bt/gd/packet/parser/
Dsize.h30 bits_ = bits; in Size()
40 bits_ = bits; in Size()
46 bits_ = size.bits_; in Size()
70 return bits_ != 0; in has_bits()
78 return bits_; in bits()
83 return (bits_ + 7) / 8; in bytes()
87 return Size(bits_ + rhs);
99 auto ret = Size(bits_ + rhs.bits_);
108 bits_ += rhs;
120 bits_ += rhs.bits_;
[all …]
/system/core/init/
Dkeychords.cpp50 Keychords::Mask::Mask(size_t bit) : bits_((bit + sizeof(mask_t) - 1) / sizeof(mask_t), 0) {} in Mask()
54 if (idx >= bits_.size()) return; in SetBit()
56 bits_[idx] |= mask_t(1) << (bit % (kBitsPerByte * sizeof(mask_t))); in SetBit()
58 bits_[idx] &= ~(mask_t(1) << (bit % (kBitsPerByte * sizeof(mask_t)))); in SetBit()
64 return bits_[idx] & (mask_t(1) << (bit % (kBitsPerByte * sizeof(mask_t)))); in GetBit()
68 return bits_.size() * sizeof(mask_t); in bytesize()
72 return bits_.data(); in data()
76 return bits_.size() * sizeof(mask_t) * kBitsPerByte; in size()
81 if (idx >= bits_.size()) { in resize()
82 bits_.resize(idx + 1, 0); in resize()
[all …]
Dkeychords.h64 std::vector<mask_t> bits_; variable