Searched refs:getIndexOfBit (Results 1 – 2 of 2) sorted by relevance
/system/core/libutils/tests/ |
D | BitSet_test.cpp | 141 EXPECT_EQ(b1.getIndexOfBit(1), 0); in TEST_F() 142 EXPECT_EQ(b1.getIndexOfBit(4), 1); in TEST_F() 144 EXPECT_EQ(b1.getIndexOfBit(1), 1); in TEST_F() 145 EXPECT_EQ(b1.getIndexOfBit(4), 2); in TEST_F() 263 EXPECT_EQ(b1.getIndexOfBit(10), 0); in TEST_F() 264 EXPECT_EQ(b1.getIndexOfBit(40), 1); in TEST_F() 266 EXPECT_EQ(b1.getIndexOfBit(10), 1); in TEST_F() 267 EXPECT_EQ(b1.getIndexOfBit(40), 2); in TEST_F()
|
/system/core/include/utils/ |
D | BitSet.h | 124 inline uint32_t getIndexOfBit(uint32_t n) const { in getIndexOfBit() function 125 return getIndexOfBit(value, n); in getIndexOfBit() 128 static inline uint32_t getIndexOfBit(uint32_t value, uint32_t n) { in getIndexOfBit() function 266 inline uint32_t getIndexOfBit(uint32_t n) const { return getIndexOfBit(value, n); } in getIndexOfBit() function 268 static inline uint32_t getIndexOfBit(uint64_t value, uint32_t n) { in getIndexOfBit() function
|