Searched refs:IsPowerOfTwo64 (Results 1 – 6 of 6) sorted by relevance
102 TEST(Bits, IsPowerOfTwo64) { in TEST() argument103 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()
84 DCHECK(base::bits::IsPowerOfTwo64(alignment)); in AlignedAlloc()
82 DCHECK(base::bits::IsPowerOfTwo64(x)); in WhichPowerOf2_64()
138 inline bool IsPowerOfTwo64(uint64_t value) { in IsPowerOfTwo64() function
1485 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()
330 if (base::bits::IsPowerOfTwo64(value_minus_one)) { in LeftShiftForReducedMultiply()