Searched refs:IsPowerOfTwo32 (Results 1 - 25 of 62) sorted by relevance

123

/external/v8/test/unittests/base/
H A Dbits-unittest.cc88 TEST(Bits, IsPowerOfTwo32) {
89 EXPECT_FALSE(IsPowerOfTwo32(0U));
91 EXPECT_TRUE(IsPowerOfTwo32(1U << shift));
92 EXPECT_FALSE(IsPowerOfTwo32((1U << shift) + 5U));
93 EXPECT_FALSE(IsPowerOfTwo32(~(1U << shift)));
96 EXPECT_FALSE(IsPowerOfTwo32((1U << shift) - 1U));
98 EXPECT_FALSE(IsPowerOfTwo32(0xffffffff));
/external/v8/src/ic/
H A Dstub-cache.cc18 DCHECK(base::bits::IsPowerOfTwo32(kPrimaryTableSize));
19 DCHECK(base::bits::IsPowerOfTwo32(kSecondaryTableSize));
H A Dic-state.cc231 base::bits::IsPowerOfTwo32(fixed_right_arg_value) &&
/external/v8/src/base/
H A Dhashmap.h247 DCHECK(base::bits::IsPowerOfTwo32(capacity_));
266 DCHECK(base::bits::IsPowerOfTwo32(capacity));
H A Dbits.h159 inline bool IsPowerOfTwo32(uint32_t value) { function in namespace:v8::base::bits
/external/v8/src/interpreter/
H A Dconstant-array-builder.cc106 base::bits::IsPowerOfTwo32(static_cast<uint32_t>(array_index)));
H A Dbytecodes.cc137 DCHECK(base::bits::IsPowerOfTwo32(static_cast<uint32_t>(delta)));
/external/v8/src/compiler/mips64/
H A Dinstruction-selector-mips64.cc693 if (base::bits::IsPowerOfTwo32(value)) {
699 if (base::bits::IsPowerOfTwo32(value - 1)) {
705 if (base::bits::IsPowerOfTwo32(value + 1)) {
750 if (base::bits::IsPowerOfTwo32(value)) {
756 if (base::bits::IsPowerOfTwo32(value - 1)) {
763 if (base::bits::IsPowerOfTwo32(value + 1)) {
/external/v8/src/compiler/
H A Dmachine-operator-reducer.cc583 if (base::bits::IsPowerOfTwo32(Abs(divisor))) {
623 if (base::bits::IsPowerOfTwo32(divisor)) { // x / 2^n => x >> n
650 if (base::bits::IsPowerOfTwo32(divisor)) {
687 if (base::bits::IsPowerOfTwo32(divisor)) { // x % 2^n => x & 2^n-1
/external/v8/src/compiler/mips/
H A Dinstruction-selector-mips.cc531 if (base::bits::IsPowerOfTwo32(value)) {
537 if (base::bits::IsPowerOfTwo32(value - 1)) {
543 if (base::bits::IsPowerOfTwo32(value + 1)) {
/external/v8/src/
H A Dconversions-inl.h372 if (base::bits::IsPowerOfTwo32(radix)) {
/external/v8/src/crankshaft/mips64/
H A Dlithium-codegen-mips64.cc1028 DCHECK(divisor == kMinInt || base::bits::IsPowerOfTwo32(Abs(divisor)));
1364 if (base::bits::IsPowerOfTwo32(constant_abs)) {
1369 } else if (base::bits::IsPowerOfTwo32(constant_abs - 1)) {
1374 } else if (base::bits::IsPowerOfTwo32(constant_abs + 1)) {
1466 if (base::bits::IsPowerOfTwo32(constant_abs)) {
1471 } else if (base::bits::IsPowerOfTwo32(constant_abs - 1)) {
1476 } else if (base::bits::IsPowerOfTwo32(constant_abs + 1)) {
5054 if (base::bits::IsPowerOfTwo32(mask)) {
5055 DCHECK(tag == 0 || base::bits::IsPowerOfTwo32(tag));
/external/v8/src/crankshaft/arm64/
H A Dlithium-arm64.cc1814 (small_constant || (base::bits::IsPowerOfTwo32(constant_abs)) ||
1815 (!can_overflow && (base::bits::IsPowerOfTwo32(constant_abs + 1) ||
1816 base::bits::IsPowerOfTwo32(constant_abs - 1))))) {
1819 base::bits::IsPowerOfTwo32(constant_abs) && !small_constant;
1826 base::bits::IsPowerOfTwo32(constant_abs))) {
H A Dlithium-codegen-arm64.cc2137 if (base::bits::IsPowerOfTwo32(mask)) {
2489 DCHECK(divisor == kMinInt || base::bits::IsPowerOfTwo32(Abs(divisor)));
4066 if (base::bits::IsPowerOfTwo32(right_abs)) {
4099 if (base::bits::IsPowerOfTwo32(right - 1)) {
4102 } else if (base::bits::IsPowerOfTwo32(right + 1)) {
4110 if (base::bits::IsPowerOfTwo32(-right + 1)) {
4113 } else if (base::bits::IsPowerOfTwo32(-right - 1)) {
/external/v8/test/unittests/compiler/
H A Dmachine-operator-reducer-unittest.cc1027 if (base::bits::IsPowerOfTwo32(-divisor)) continue;
1034 if (base::bits::IsPowerOfTwo32(divisor)) continue;
1184 if (divisor == 0 || base::bits::IsPowerOfTwo32(Abs(divisor))) continue;
/external/v8/src/ia32/
H A Dmacro-assembler-ia32.cc1177 DCHECK(base::bits::IsPowerOfTwo32(kFrameAlignment));
2042 DCHECK(base::bits::IsPowerOfTwo32(kBitsPerByte));
2932 DCHECK(base::bits::IsPowerOfTwo32(frame_alignment));
3107 DCHECK(base::bits::IsPowerOfTwo32(frame_alignment));
/external/v8/src/x87/
H A Dmacro-assembler-x87.cc1122 DCHECK(base::bits::IsPowerOfTwo32(kFrameAlignment));
1983 DCHECK(base::bits::IsPowerOfTwo32(kBitsPerByte));
2790 DCHECK(base::bits::IsPowerOfTwo32(frame_alignment));
2954 DCHECK(base::bits::IsPowerOfTwo32(frame_alignment));
/external/v8/src/crankshaft/arm/
H A Dlithium-codegen-arm.cc1138 DCHECK(divisor == kMinInt || base::bits::IsPowerOfTwo32(Abs(divisor)));
1495 if (base::bits::IsPowerOfTwo32(constant_abs)) {
1500 } else if (base::bits::IsPowerOfTwo32(constant_abs - 1)) {
1505 } else if (base::bits::IsPowerOfTwo32(constant_abs + 1)) {
4880 if (base::bits::IsPowerOfTwo32(mask)) {
4881 DCHECK(tag == 0 || base::bits::IsPowerOfTwo32(tag));
/external/v8/src/crankshaft/mips/
H A Dlithium-codegen-mips.cc1038 DCHECK(divisor == kMinInt || base::bits::IsPowerOfTwo32(Abs(divisor)));
1364 if (base::bits::IsPowerOfTwo32(constant_abs)) {
1369 } else if (base::bits::IsPowerOfTwo32(constant_abs - 1)) {
1374 } else if (base::bits::IsPowerOfTwo32(constant_abs + 1)) {
4851 if (base::bits::IsPowerOfTwo32(mask)) {
4852 DCHECK(tag == 0 || base::bits::IsPowerOfTwo32(tag));
/external/v8/src/crankshaft/ppc/
H A Dlithium-codegen-ppc.cc1015 DCHECK(divisor == kMinInt || base::bits::IsPowerOfTwo32(Abs(divisor)));
1433 if (base::bits::IsPowerOfTwo32(constant_abs)) {
1438 } else if (base::bits::IsPowerOfTwo32(constant_abs - 1)) {
1444 } else if (base::bits::IsPowerOfTwo32(constant_abs + 1)) {
5143 if (base::bits::IsPowerOfTwo32(mask)) {
5144 DCHECK(tag == 0 || base::bits::IsPowerOfTwo32(tag));
/external/v8/src/crankshaft/s390/
H A Dlithium-codegen-s390.cc984 DCHECK(divisor == kMinInt || base::bits::IsPowerOfTwo32(Abs(divisor)));
1374 if (base::bits::IsPowerOfTwo32(constant_abs)) {
1379 } else if (base::bits::IsPowerOfTwo32(constant_abs - 1)) {
1385 } else if (base::bits::IsPowerOfTwo32(constant_abs + 1)) {
5050 if (base::bits::IsPowerOfTwo32(mask)) {
5051 DCHECK(tag == 0 || base::bits::IsPowerOfTwo32(tag));
/external/v8/src/compiler/arm/
H A Dinstruction-selector-arm.cc1102 if (base::bits::IsPowerOfTwo32(value - 1)) {
1109 if (value < kMaxInt && base::bits::IsPowerOfTwo32(value + 1)) {
/external/v8/src/arm/
H A Dmacro-assembler-arm.cc299 base::bits::IsPowerOfTwo32(src2.immediate() + 1)) {
1342 DCHECK(base::bits::IsPowerOfTwo32(frame_alignment));
3541 DCHECK(base::bits::IsPowerOfTwo32(frame_alignment));
3620 DCHECK(base::bits::IsPowerOfTwo32(frame_alignment));
/external/v8/src/regexp/mips/
H A Dregexp-macro-assembler-mips.cc1098 DCHECK(base::bits::IsPowerOfTwo32(stack_alignment));
/external/v8/src/regexp/mips64/
H A Dregexp-macro-assembler-mips64.cc1135 DCHECK(base::bits::IsPowerOfTwo32(stack_alignment));

Completed in 514 milliseconds

123