Searched refs:ScanReverse (Results 1 – 3 of 3) sorted by relevance
295 TEST(MathUtilTest, ScanReverse) in TEST() argument297 EXPECT_EQ(0ul, gl::ScanReverse(1u)); in TEST()298 EXPECT_EQ(16ul, gl::ScanReverse(static_cast<uint64_t>(0x00010030ull))); in TEST()299 EXPECT_EQ(31ul, gl::ScanReverse(static_cast<uint64_t>(0x80000000ull))); in TEST()301 EXPECT_EQ(32ul, gl::ScanReverse(static_cast<uint64_t>(0x100000000ull))); in TEST()302 EXPECT_EQ(48ul, gl::ScanReverse(static_cast<uint64_t>(0x0001080000000000ull))); in TEST()303 EXPECT_EQ(63ul, gl::ScanReverse(static_cast<uint64_t>(0x8000000000000000ull))); in TEST()
1134 inline unsigned long ScanReverse(uint32_t bits) in ScanReverse() function1143 inline unsigned long ScanReverse(uint64_t bits) in ScanReverse() function1185 inline unsigned long ScanReverse(uint32_t bits) in ScanReverse() function1191 inline unsigned long ScanReverse(uint64_t bits) in ScanReverse() function1220 inline unsigned long ScanReverse(uint8_t bits) in ScanReverse() function1222 return ScanReverse(static_cast<uint32_t>(bits)); in ScanReverse()1225 inline unsigned long ScanReverse(uint16_t bits) in ScanReverse() function1227 return ScanReverse(static_cast<uint32_t>(bits)); in ScanReverse()1256 return static_cast<int>(ScanReverse(bits)); in FindMSB()
394 return static_cast<ParamT>(gl::ScanReverse(mBits)); in last()