Home
last modified time | relevance | path

Searched refs:IsPowerOfTwo64 (Results 1 – 6 of 6) sorted by relevance

/external/v8/test/unittests/base/
Dbits-unittest.cc102 TEST(Bits, IsPowerOfTwo64) { in TEST() argument
103 EXPECT_FALSE(IsPowerOfTwo64(0U)); in TEST()
105 EXPECT_TRUE(IsPowerOfTwo64(V8_UINT64_C(1) << shift)); in TEST()
106 EXPECT_FALSE(IsPowerOfTwo64((V8_UINT64_C(1) << shift) + 5U)); in TEST()
107 EXPECT_FALSE(IsPowerOfTwo64(~(V8_UINT64_C(1) << shift))); in TEST()
110 EXPECT_FALSE(IsPowerOfTwo64((V8_UINT64_C(1) << shift) - 1U)); in TEST()
112 EXPECT_FALSE(IsPowerOfTwo64(V8_UINT64_C(0xffffffffffffffff))); in TEST()
/external/v8/src/
Dallocation.cc84 DCHECK(base::bits::IsPowerOfTwo64(alignment)); in AlignedAlloc()
Dutils.h82 DCHECK(base::bits::IsPowerOfTwo64(x)); in WhichPowerOf2_64()
/external/v8/src/base/
Dbits.h138 inline bool IsPowerOfTwo64(uint64_t value) { in IsPowerOfTwo64() function
/external/v8/src/arm64/
Dmacro-assembler-arm64-inl.h1485 DCHECK(base::bits::IsPowerOfTwo64(unit_size)); in Claim()
1504 DCHECK(unit_size == 0 || base::bits::IsPowerOfTwo64(unit_size)); in ClaimBySMI()
1545 DCHECK(base::bits::IsPowerOfTwo64(unit_size)); in Drop()
1567 DCHECK(unit_size == 0 || base::bits::IsPowerOfTwo64(unit_size)); in DropBySMI()
/external/v8/src/compiler/arm64/
Dinstruction-selector-arm64.cc330 if (base::bits::IsPowerOfTwo64(value_minus_one)) { in LeftShiftForReducedMultiply()