reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
704 const BitWord Mask = maskLeadingOnes<BitWord>(BitDistance);
include/llvm/Support/MathExtras.h 264 return maskLeadingOnes<T>(CHAR_BIT * sizeof(T) - N);
unittests/Support/MathExtrasTest.cpp69 EXPECT_EQ(0U, maskLeadingOnes<uint8_t>(0)); 71 EXPECT_EQ(0U, maskLeadingOnes<uint16_t>(0)); 73 EXPECT_EQ(0U, maskLeadingOnes<uint32_t>(0)); 75 EXPECT_EQ(0U, maskLeadingOnes<uint64_t>(0)); 79 EXPECT_EQ(0xC0000000U, maskLeadingOnes<uint32_t>(2U)); 82 EXPECT_EQ(0xFFE00000U, maskLeadingOnes<uint32_t>(11U)); 85 EXPECT_EQ(0xFFFFFFFFU, maskLeadingOnes<uint32_t>(32U)); 87 EXPECT_EQ(0xFFFFFFFFFFFFFFFFULL, maskLeadingOnes<uint64_t>(64U)); 90 EXPECT_EQ(0xFFFFFFFFFFFF0000ULL, maskLeadingOnes<uint64_t>(48U));utils/TableGen/CodeGenDAGPatterns.h
152 W &= maskLeadingOnes<WordType>(WordWidth-SkipBits);