Home
last modified time | relevance | path

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

/openthread-latest/tests/unit/
Dtest_serial_number.cpp149 VerifyOrQuit(CountBitsInMask<uint8_t>(0) == 0); in TestNumUtils()
150 VerifyOrQuit(CountBitsInMask<uint8_t>(1) == 1); in TestNumUtils()
151 VerifyOrQuit(CountBitsInMask<uint8_t>(2) == 1); in TestNumUtils()
152 VerifyOrQuit(CountBitsInMask<uint8_t>(3) == 2); in TestNumUtils()
153 VerifyOrQuit(CountBitsInMask<uint8_t>(4) == 1); in TestNumUtils()
154 VerifyOrQuit(CountBitsInMask<uint8_t>(7) == 3); in TestNumUtils()
155 VerifyOrQuit(CountBitsInMask<uint8_t>(11) == 3); in TestNumUtils()
156 VerifyOrQuit(CountBitsInMask<uint8_t>(15) == 4); in TestNumUtils()
157 VerifyOrQuit(CountBitsInMask<uint8_t>(0x11) == 2); in TestNumUtils()
158 VerifyOrQuit(CountBitsInMask<uint8_t>(0xef) == 7); in TestNumUtils()
[all …]
/openthread-latest/src/core/common/
Dnum_utils.hpp231 template <typename UintType> uint8_t CountBitsInMask(UintType aMask) in CountBitsInMask() function
/openthread-latest/src/core/thread/
Dmle_types.cpp154 count += CountBitsInMask(byte); in GetNumberOfAllocatedIds()