Home
last modified time | relevance | path

Searched refs:CountPopulation32 (Results 1 – 16 of 16) sorted by relevance

/external/v8/test/unittests/base/
Dbits-unittest.cc21 TEST(Bits, CountPopulation32) { in TEST() argument
22 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()
/external/v8/src/base/
Dbits.h22 inline unsigned CountPopulation32(uint32_t value) { in CountPopulation32() function
41 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()
/external/v8/src/
Dbit-vector.cc50 count += base::bits::CountPopulation32(static_cast<uint32_t>(data)); in Count()
/external/v8/src/compiler/mips/
Dinstruction-selector-mips.cc261 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()
Dcode-generator-mips.cc1484 int count = base::bits::CountPopulation32(saves_fpu); in AssemblePrologue()
1496 int count = base::bits::CountPopulation32(saves); in AssemblePrologue()
/external/v8/src/compiler/mips64/
Dinstruction-selector-mips64.cc270 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()
Dcode-generator-mips64.cc1721 int count = base::bits::CountPopulation32(saves_fpu); in AssemblePrologue()
1733 int count = base::bits::CountPopulation32(saves); in AssemblePrologue()
/external/v8/src/compiler/arm64/
Dinstruction-selector-arm64.cc622 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()
/external/v8/src/compiler/arm/
Dcode-generator-arm.cc1119 DCHECK_EQ((last - first + 1), base::bits::CountPopulation32(saves_fp)); in AssemblePrologue()
1132 base::bits::CountPopulation32(saves)); in AssemblePrologue()
Dinstruction-selector-arm.cc553 uint32_t width = base::bits::CountPopulation32(value); in VisitWord32And()
685 uint32_t width = base::bits::CountPopulation32(value); in VisitWord32Shr()
/external/v8/src/compiler/ppc/
Dcode-generator-ppc.cc1601 base::bits::CountPopulation32(double_saves)); in AssemblePrologue()
1616 DCHECK(num_saves == base::bits::CountPopulation32(saves)); in AssemblePrologue()
Dinstruction-selector-ppc.cc447 int mask_width = base::bits::CountPopulation32(value); in IsContiguousMask32()
/external/v8/src/compiler/x64/
Dcode-generator-x64.cc1846 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()
/external/v8/test/unittests/compiler/arm64/
Dinstruction-selector-arm64-unittest.cc949 if (base::bits::CountPopulation32(imm) == 1) continue; in TEST_F()
1031 if (base::bits::CountPopulation32(imm) == 1) continue; in TEST_F()
/external/v8/src/ia32/
Dmacro-assembler-ia32.cc2380 unsigned cnt = base::bits::CountPopulation32(src); in Move()
/external/v8/src/x64/
Dmacro-assembler-x64.cc2582 unsigned pop = base::bits::CountPopulation32(src); in Move()