Home
last modified time | relevance | path

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

/external/v8/src/base/
Dbits-unittest.cc65 TEST(Bits, IsPowerOfTwo64) { in TEST() argument
66 EXPECT_FALSE(IsPowerOfTwo64(0U)); in TEST()
68 EXPECT_TRUE(IsPowerOfTwo64(V8_UINT64_C(1) << shift)); in TEST()
69 EXPECT_FALSE(IsPowerOfTwo64((V8_UINT64_C(1) << shift) + 5U)); in TEST()
70 EXPECT_FALSE(IsPowerOfTwo64(~(V8_UINT64_C(1) << shift))); in TEST()
73 EXPECT_FALSE(IsPowerOfTwo64((V8_UINT64_C(1) << shift) - 1U)); in TEST()
75 EXPECT_FALSE(IsPowerOfTwo64(V8_UINT64_C(0xffffffffffffffff))); in TEST()
Dbits.h83 inline bool IsPowerOfTwo64(uint64_t value) { in IsPowerOfTwo64() function
/external/v8/src/arm64/
Dmacro-assembler-arm64-inl.h1524 DCHECK(base::bits::IsPowerOfTwo64(unit_size)); in Claim()
1542 DCHECK(unit_size == 0 || base::bits::IsPowerOfTwo64(unit_size)); in ClaimBySMI()
1582 DCHECK(base::bits::IsPowerOfTwo64(unit_size)); in Drop()
1603 DCHECK(unit_size == 0 || base::bits::IsPowerOfTwo64(unit_size)); in DropBySMI()