Home
last modified time | relevance | path

Searched refs:CountLeadingZeros32 (Results 1 – 15 of 15) sorted by relevance

/external/v8/test/unittests/base/
Dbits-unittest.cc46 TEST(Bits, CountLeadingZeros32) { in TEST() argument
47 EXPECT_EQ(32u, CountLeadingZeros32(0)); in TEST()
48 EXPECT_EQ(31u, CountLeadingZeros32(1)); in TEST()
50 EXPECT_EQ(31u - shift, CountLeadingZeros32(1u << shift)); in TEST()
52 EXPECT_EQ(4u, CountLeadingZeros32(0x0f0f0f0f)); in TEST()
/external/v8/src/runtime/
Druntime-numbers.cc268 int x_log2 = 31 - base::bits::CountLeadingZeros32(x_scaled); in RUNTIME_FUNCTION()
272 int y_log2 = 31 - base::bits::CountLeadingZeros32(y_scaled); in RUNTIME_FUNCTION()
Druntime-maths.cc122 base::bits::CountLeadingZeros32(x)); in RUNTIME_FUNCTION()
/external/v8/src/base/
Dbits.h60 inline unsigned CountLeadingZeros32(uint32_t value) { in CountLeadingZeros32() function
/external/v8/src/compiler/mips/
Dinstruction-selector-mips.cc262 uint32_t mask_msb = base::bits::CountLeadingZeros32(mask); in VisitWord32And()
291 uint32_t msb = base::bits::CountLeadingZeros32(~mask); in VisitWord32And()
344 uint32_t mask_msb = base::bits::CountLeadingZeros32(mask); in VisitWord32Shl()
374 unsigned mask_msb = base::bits::CountLeadingZeros32(mask); in VisitWord32Shr()
/external/v8/src/compiler/mips64/
Dinstruction-selector-mips64.cc271 uint32_t mask_msb = base::bits::CountLeadingZeros32(mask); in VisitWord32And()
300 uint32_t msb = base::bits::CountLeadingZeros32(~mask); in VisitWord32And()
434 uint32_t mask_msb = base::bits::CountLeadingZeros32(mask); in VisitWord32Shl()
464 unsigned mask_msb = base::bits::CountLeadingZeros32(mask); in VisitWord32Shr()
/external/v8/src/compiler/arm/
Dinstruction-selector-arm.cc554 uint32_t msb = base::bits::CountLeadingZeros32(value); in VisitWord32And()
588 msb = base::bits::CountLeadingZeros32(~value); in VisitWord32And()
686 uint32_t msb = base::bits::CountLeadingZeros32(value); in VisitWord32Shr()
Dcode-generator-arm.cc1117 uint32_t last = base::bits::CountLeadingZeros32(saves_fp) - 1; in AssemblePrologue()
1153 uint32_t last = base::bits::CountLeadingZeros32(saves_fp) - 1; in AssembleReturn()
/external/v8/src/compiler/arm64/
Dinstruction-selector-arm64.cc623 uint32_t mask_msb = base::bits::CountLeadingZeros32(mask); in VisitWord32And()
737 uint32_t mask_msb = base::bits::CountLeadingZeros32(mask); in VisitWord32Shl()
820 unsigned mask_msb = base::bits::CountLeadingZeros32(mask); in VisitWord32Shr()
/external/v8/src/compiler/ppc/
Dinstruction-selector-ppc.cc448 int mask_msb = base::bits::CountLeadingZeros32(value); in IsContiguousMask32()
/external/v8/src/mips/
Dsimulator-mips.cc3538 alu_out = base::bits::CountLeadingZeros32(rs_u()); in DecodeTypeRegisterSPECIAL()
3763 alu_out = base::bits::CountLeadingZeros32(rs_u()); in DecodeTypeRegisterSPECIAL2()
/external/v8/src/mips64/
Dsimulator-mips64.cc3519 alu_out = base::bits::CountLeadingZeros32(static_cast<int32_t>(rs_u())); in DecodeTypeRegisterSPECIAL()
3832 alu_out = base::bits::CountLeadingZeros32(static_cast<uint32_t>(rs_u())); in DecodeTypeRegisterSPECIAL2()
/external/v8/src/ia32/
Dmacro-assembler-ia32.cc2381 unsigned nlz = base::bits::CountLeadingZeros32(src); in Move()
/external/v8/src/heap/
Dmark-compact.cc2983 base::bits::CountLeadingZeros32(current_cell & slot_mask); in IsSlotInBlackObject()
/external/v8/src/crankshaft/
Dhydrogen-instructions.cc4104 return H_CONSTANT_INT(base::bits::CountLeadingZeros32(i)); in New()