Searched refs:CountPopulation32 (Results 1 – 16 of 16) sorted by relevance
21 TEST(Bits, CountPopulation32) { in TEST() argument22 EXPECT_EQ(0u, CountPopulation32(0)); in TEST()23 EXPECT_EQ(1u, CountPopulation32(1)); in TEST()24 EXPECT_EQ(8u, CountPopulation32(0x11111111)); in TEST()25 EXPECT_EQ(16u, CountPopulation32(0xf0f0f0f0)); in TEST()26 EXPECT_EQ(24u, CountPopulation32(0xfff0f0ff)); in TEST()27 EXPECT_EQ(32u, CountPopulation32(0xffffffff)); in TEST()
22 inline unsigned CountPopulation32(uint32_t value) { in CountPopulation32() function41 return CountPopulation32(static_cast<uint32_t>(value)) + in CountPopulation64()42 CountPopulation32(static_cast<uint32_t>(value >> 32)); in CountPopulation64()49 return CountPopulation32(value); in CountPopulation()73 return CountPopulation32(~value); in CountLeadingZeros32()
50 count += base::bits::CountPopulation32(static_cast<uint32_t>(data)); in Count()
261 uint32_t mask_width = base::bits::CountPopulation32(mask); in VisitWord32And()290 uint32_t shift = base::bits::CountPopulation32(~mask); in VisitWord32And()343 uint32_t mask_width = base::bits::CountPopulation32(mask); in VisitWord32Shl()373 unsigned mask_width = base::bits::CountPopulation32(mask); in VisitWord32Shr()
1484 int count = base::bits::CountPopulation32(saves_fpu); in AssemblePrologue()1496 int count = base::bits::CountPopulation32(saves); in AssemblePrologue()
270 uint32_t mask_width = base::bits::CountPopulation32(mask); in VisitWord32And()299 uint32_t shift = base::bits::CountPopulation32(~mask); in VisitWord32And()433 uint32_t mask_width = base::bits::CountPopulation32(mask); in VisitWord32Shl()463 unsigned mask_width = base::bits::CountPopulation32(mask); in VisitWord32Shr()
1721 int count = base::bits::CountPopulation32(saves_fpu); in AssemblePrologue()1733 int count = base::bits::CountPopulation32(saves); in AssemblePrologue()
622 uint32_t mask_width = base::bits::CountPopulation32(mask); in VisitWord32And()736 uint32_t mask_width = base::bits::CountPopulation32(mask); in VisitWord32Shl()819 unsigned mask_width = base::bits::CountPopulation32(mask); in VisitWord32Shr()1872 (base::bits::CountPopulation32(m.right().Value()) == 1)) { in VisitBranch()
1119 DCHECK_EQ((last - first + 1), base::bits::CountPopulation32(saves_fp)); in AssemblePrologue()1132 base::bits::CountPopulation32(saves)); in AssemblePrologue()
553 uint32_t width = base::bits::CountPopulation32(value); in VisitWord32And()685 uint32_t width = base::bits::CountPopulation32(value); in VisitWord32Shr()
1601 base::bits::CountPopulation32(double_saves)); in AssemblePrologue()1616 DCHECK(num_saves == base::bits::CountPopulation32(saves)); in AssemblePrologue()
447 int mask_width = base::bits::CountPopulation32(value); in IsContiguousMask32()
1846 const uint32_t saves_fp_count = base::bits::CountPopulation32(saves_fp); in AssemblePrologue()1886 const uint32_t saves_fp_count = base::bits::CountPopulation32(saves_fp); in AssembleReturn()
949 if (base::bits::CountPopulation32(imm) == 1) continue; in TEST_F()1031 if (base::bits::CountPopulation32(imm) == 1) continue; in TEST_F()
2380 unsigned cnt = base::bits::CountPopulation32(src); in Move()
2582 unsigned pop = base::bits::CountPopulation32(src); in Move()