Home
last modified time | relevance | path

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

/openthread-latest/src/core/common/
Dbit_set.hpp73 bool Has(uint16_t aIndex) const { return (mMask[aIndex / 8] & BitMaskFor(aIndex)) != 0; } in Has()
83 void Add(uint16_t aIndex) { mMask[aIndex / 8] |= BitMaskFor(aIndex); } in Add()
93 void Remove(uint16_t aIndex) { mMask[aIndex / 8] &= ~BitMaskFor(aIndex); } in Remove()
129 static uint8_t BitMaskFor(uint16_t aIndex) { return (0x80 >> (aIndex & 7)); } in BitMaskFor() function in ot::BitSet