reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
97 return LogValue{static_cast<uint8_t>(CTLog2<kValue>())};
include/llvm/Support/MathExtras.h 568 return 1 + CTLog2<kValue / 2>();
unittests/Support/MathExtrasTest.cpp208 EXPECT_EQ(CTLog2<1ULL << 1>(), 1U); 209 EXPECT_EQ(CTLog2<1ULL << 2>(), 2U); 210 EXPECT_EQ(CTLog2<1ULL << 3>(), 3U); 211 EXPECT_EQ(CTLog2<1ULL << 4>(), 4U); 212 EXPECT_EQ(CTLog2<1ULL << 5>(), 5U); 213 EXPECT_EQ(CTLog2<1ULL << 6>(), 6U); 214 EXPECT_EQ(CTLog2<1ULL << 7>(), 7U); 215 EXPECT_EQ(CTLog2<1ULL << 8>(), 8U); 216 EXPECT_EQ(CTLog2<1ULL << 9>(), 9U); 217 EXPECT_EQ(CTLog2<1ULL << 10>(), 10U); 218 EXPECT_EQ(CTLog2<1ULL << 11>(), 11U); 219 EXPECT_EQ(CTLog2<1ULL << 12>(), 12U); 220 EXPECT_EQ(CTLog2<1ULL << 13>(), 13U); 221 EXPECT_EQ(CTLog2<1ULL << 14>(), 14U); 222 EXPECT_EQ(CTLog2<1ULL << 15>(), 15U);