Home
last modified time | relevance | path

Searched refs:IsPowerOfTwo32 (Results 1 – 25 of 56) sorted by relevance

123

/external/v8/test/unittests/base/
Dbits-unittest.cc88 TEST(Bits, IsPowerOfTwo32) { in TEST() argument
89 EXPECT_FALSE(IsPowerOfTwo32(0U)); in TEST()
91 EXPECT_TRUE(IsPowerOfTwo32(1U << shift)); in TEST()
92 EXPECT_FALSE(IsPowerOfTwo32((1U << shift) + 5U)); in TEST()
93 EXPECT_FALSE(IsPowerOfTwo32(~(1U << shift))); in TEST()
96 EXPECT_FALSE(IsPowerOfTwo32((1U << shift) - 1U)); in TEST()
98 EXPECT_FALSE(IsPowerOfTwo32(0xffffffff)); in TEST()
/external/v8/src/ic/
Dstub-cache.cc18 DCHECK(base::bits::IsPowerOfTwo32(kPrimaryTableSize)); in Initialize()
19 DCHECK(base::bits::IsPowerOfTwo32(kSecondaryTableSize)); in Initialize()
Dic-state.cc233 base::bits::IsPowerOfTwo32(fixed_right_arg_value) && in Update()
/external/v8/src/
Dhashmap.h248 DCHECK(base::bits::IsPowerOfTwo32(capacity_)); in Probe()
268 DCHECK(base::bits::IsPowerOfTwo32(capacity)); in Initialize()
Dconversions-inl.h368 if (base::bits::IsPowerOfTwo32(radix)) { in InternalStringToInt()
Dassembler.cc1873 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); in DataAlign()
/external/v8/src/base/
Dbits.h132 inline bool IsPowerOfTwo32(uint32_t value) { in IsPowerOfTwo32() function
/external/v8/src/compiler/mips64/
Dinstruction-selector-mips64.cc616 if (base::bits::IsPowerOfTwo32(value)) { in VisitInt32Mul()
622 if (base::bits::IsPowerOfTwo32(value - 1)) { in VisitInt32Mul()
631 if (base::bits::IsPowerOfTwo32(value + 1)) { in VisitInt32Mul()
676 if (base::bits::IsPowerOfTwo32(value)) { in VisitInt64Mul()
682 if (base::bits::IsPowerOfTwo32(value - 1)) { in VisitInt64Mul()
691 if (base::bits::IsPowerOfTwo32(value + 1)) { in VisitInt64Mul()
/external/v8/src/compiler/
Dmachine-operator-reducer.cc527 if (base::bits::IsPowerOfTwo32(Abs(divisor))) { in ReduceInt32Div()
567 if (base::bits::IsPowerOfTwo32(divisor)) { // x / 2^n => x >> n in ReduceUint32Div()
594 if (base::bits::IsPowerOfTwo32(divisor)) { in ReduceInt32Mod()
631 if (base::bits::IsPowerOfTwo32(divisor)) { // x % 2^n => x & 2^n-1 in ReduceUint32Mod()
/external/v8/src/compiler/mips/
Dinstruction-selector-mips.cc428 if (base::bits::IsPowerOfTwo32(value)) { in VisitInt32Mul()
434 if (base::bits::IsPowerOfTwo32(value - 1)) { in VisitInt32Mul()
443 if (base::bits::IsPowerOfTwo32(value + 1)) { in VisitInt32Mul()
/external/v8/src/crankshaft/arm64/
Dlithium-arm64.cc1916 (small_constant || (base::bits::IsPowerOfTwo32(constant_abs)) || in DoMul()
1917 (!can_overflow && (base::bits::IsPowerOfTwo32(constant_abs + 1) || in DoMul()
1918 base::bits::IsPowerOfTwo32(constant_abs - 1))))) { in DoMul()
1921 base::bits::IsPowerOfTwo32(constant_abs) && !small_constant; in DoMul()
1928 base::bits::IsPowerOfTwo32(constant_abs))) { in DoMul()
Dlithium-codegen-arm64.cc2156 if (base::bits::IsPowerOfTwo32(mask)) { in DoCheckInstanceType()
2537 DCHECK(divisor == kMinInt || base::bits::IsPowerOfTwo32(Abs(divisor))); in DoDivByPowerOf2I()
4087 if (base::bits::IsPowerOfTwo32(right_abs)) { in DoMulConstIS()
4120 if (base::bits::IsPowerOfTwo32(right - 1)) { in DoMulConstIS()
4123 } else if (base::bits::IsPowerOfTwo32(right + 1)) { in DoMulConstIS()
4131 if (base::bits::IsPowerOfTwo32(-right + 1)) { in DoMulConstIS()
4134 } else if (base::bits::IsPowerOfTwo32(-right - 1)) { in DoMulConstIS()
/external/v8/test/unittests/compiler/
Dmachine-operator-reducer-unittest.cc1014 if (base::bits::IsPowerOfTwo32(-divisor)) continue; in TEST_F()
1021 if (base::bits::IsPowerOfTwo32(divisor)) continue; in TEST_F()
1171 if (divisor == 0 || base::bits::IsPowerOfTwo32(Abs(divisor))) continue; in TEST_F()
/external/v8/src/x87/
Dmacro-assembler-x87.cc930 DCHECK(base::bits::IsPowerOfTwo32(kFrameAlignment)); in EnterExitFrameEpilogue()
1751 DCHECK(base::bits::IsPowerOfTwo32(kBitsPerByte)); in BooleanBitTest()
2496 DCHECK(base::bits::IsPowerOfTwo32(frame_alignment)); in CheckStackAlignment()
2660 DCHECK(base::bits::IsPowerOfTwo32(frame_alignment)); in PrepareCallCFunction()
/external/v8/src/ia32/
Dmacro-assembler-ia32.cc961 DCHECK(base::bits::IsPowerOfTwo32(kFrameAlignment)); in EnterExitFrameEpilogue()
1785 DCHECK(base::bits::IsPowerOfTwo32(kBitsPerByte)); in BooleanBitTest()
2613 DCHECK(base::bits::IsPowerOfTwo32(frame_alignment)); in CheckStackAlignment()
2788 DCHECK(base::bits::IsPowerOfTwo32(frame_alignment)); in PrepareCallCFunction()
/external/v8/src/crankshaft/mips64/
Dlithium-codegen-mips64.cc1071 DCHECK(divisor == kMinInt || base::bits::IsPowerOfTwo32(Abs(divisor))); in DoDivByPowerOf2I()
1406 if (base::bits::IsPowerOfTwo32(constant_abs)) { in DoMulS()
1411 } else if (base::bits::IsPowerOfTwo32(constant_abs - 1)) { in DoMulS()
1417 } else if (base::bits::IsPowerOfTwo32(constant_abs + 1)) { in DoMulS()
1508 if (base::bits::IsPowerOfTwo32(constant_abs)) { in DoMulI()
1513 } else if (base::bits::IsPowerOfTwo32(constant_abs - 1)) { in DoMulI()
1519 } else if (base::bits::IsPowerOfTwo32(constant_abs + 1)) { in DoMulI()
5141 if (base::bits::IsPowerOfTwo32(mask)) { in DoCheckInstanceType()
5142 DCHECK(tag == 0 || base::bits::IsPowerOfTwo32(tag)); in DoCheckInstanceType()
/external/v8/src/arm/
Dmacro-assembler-arm.cc275 base::bits::IsPowerOfTwo32(src2.immediate() + 1)) { in And()
1136 DCHECK(base::bits::IsPowerOfTwo32(frame_alignment)); in EnterExitFrame()
3151 DCHECK(base::bits::IsPowerOfTwo32(frame_alignment)); in PrepareCallCFunction()
3230 DCHECK(base::bits::IsPowerOfTwo32(frame_alignment)); in CallCFunctionHelper()
/external/v8/src/compiler/arm/
Dinstruction-selector-arm.cc866 if (base::bits::IsPowerOfTwo32(value - 1)) { in VisitInt32Mul()
873 if (value < kMaxInt && base::bits::IsPowerOfTwo32(value + 1)) { in VisitInt32Mul()
/external/v8/src/crankshaft/arm/
Dlithium-codegen-arm.cc1180 DCHECK(divisor == kMinInt || base::bits::IsPowerOfTwo32(Abs(divisor))); in DoDivByPowerOf2I()
1537 if (base::bits::IsPowerOfTwo32(constant_abs)) { in DoMulI()
1542 } else if (base::bits::IsPowerOfTwo32(constant_abs - 1)) { in DoMulI()
1547 } else if (base::bits::IsPowerOfTwo32(constant_abs + 1)) { in DoMulI()
4934 if (base::bits::IsPowerOfTwo32(mask)) { in DoCheckInstanceType()
4935 DCHECK(tag == 0 || base::bits::IsPowerOfTwo32(tag)); in DoCheckInstanceType()
/external/v8/src/crankshaft/mips/
Dlithium-codegen-mips.cc1081 DCHECK(divisor == kMinInt || base::bits::IsPowerOfTwo32(Abs(divisor))); in DoDivByPowerOf2I()
1407 if (base::bits::IsPowerOfTwo32(constant_abs)) { in DoMulI()
1412 } else if (base::bits::IsPowerOfTwo32(constant_abs - 1)) { in DoMulI()
1418 } else if (base::bits::IsPowerOfTwo32(constant_abs + 1)) { in DoMulI()
4938 if (base::bits::IsPowerOfTwo32(mask)) { in DoCheckInstanceType()
4939 DCHECK(tag == 0 || base::bits::IsPowerOfTwo32(tag)); in DoCheckInstanceType()
/external/v8/src/crankshaft/ppc/
Dlithium-codegen-ppc.cc1055 DCHECK(divisor == kMinInt || base::bits::IsPowerOfTwo32(Abs(divisor))); in DoDivByPowerOf2I()
1466 if (base::bits::IsPowerOfTwo32(constant_abs)) { in DoMulI()
1471 } else if (base::bits::IsPowerOfTwo32(constant_abs - 1)) { in DoMulI()
1477 } else if (base::bits::IsPowerOfTwo32(constant_abs + 1)) { in DoMulI()
5210 if (base::bits::IsPowerOfTwo32(mask)) { in DoShiftI()
5211 DCHECK(tag == 0 || base::bits::IsPowerOfTwo32(tag)); in DoShiftI()
/external/v8/src/mips/
Dmacro-assembler-mips.cc4883 DCHECK(base::bits::IsPowerOfTwo32(frame_alignment)); in EnterExitFrame()
4901 DCHECK(base::bits::IsPowerOfTwo32(frame_alignment)); in EnterExitFrame()
4999 DCHECK(base::bits::IsPowerOfTwo32(frame_alignment)); in AssertStackIsAligned()
5322 DCHECK(base::bits::IsPowerOfTwo32(frame_alignment)); in PrepareCallCFunction()
5379 DCHECK(base::bits::IsPowerOfTwo32(frame_alignment)); in CallCFunctionHelper()
/external/v8/src/regexp/mips/
Dregexp-macro-assembler-mips.cc1087 DCHECK(base::bits::IsPowerOfTwo32(stack_alignment)); in CallCheckStackGuardState()
/external/v8/src/regexp/mips64/
Dregexp-macro-assembler-mips64.cc1127 DCHECK(base::bits::IsPowerOfTwo32(stack_alignment)); in CallCheckStackGuardState()
/external/v8/src/regexp/ppc/
Dregexp-macro-assembler-ppc.cc1099 DCHECK(base::bits::IsPowerOfTwo32(frame_alignment)); in CallCheckStackGuardState()

123