Searched refs:IsPowerOfTwo64 (Results 1 – 3 of 3) sorted by relevance
65 TEST(Bits, IsPowerOfTwo64) { in TEST() argument66 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()
83 inline bool IsPowerOfTwo64(uint64_t value) { in IsPowerOfTwo64() function
1524 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()