Searched refs:IsPowerOfTwo (Results 1 – 6 of 6) sorted by relevance
40 HWTEST(MathHelpers, IsPowerOfTwo, testing::ext::TestSize.Level0)42 EXPECT_TRUE(IsPowerOfTwo(1));43 EXPECT_TRUE(IsPowerOfTwo(2));44 EXPECT_TRUE(IsPowerOfTwo(4));45 EXPECT_TRUE(IsPowerOfTwo(64));46 EXPECT_TRUE(IsPowerOfTwo(1024));47 EXPECT_TRUE(IsPowerOfTwo(2048));48 EXPECT_FALSE(IsPowerOfTwo(3));49 EXPECT_FALSE(IsPowerOfTwo(63));50 EXPECT_FALSE(IsPowerOfTwo(65));[all …]
55 constexpr bool IsPowerOfTwo(T value) in IsPowerOfTwo() function149 ASSERT(IsPowerOfTwo(table_size));
194 static_assert(panda::helpers::math::IsPowerOfTwo(DEFAULT_FIELD_CACHE_SIZE));195 static_assert(panda::helpers::math::IsPowerOfTwo(DEFAULT_METHOD_CACHE_SIZE));196 static_assert(panda::helpers::math::IsPowerOfTwo(DEFAULT_CLASS_CACHE_SIZE));
32 static_assert(panda::helpers::math::IsPowerOfTwo(RING_BUFFER_SIZE));
28 ASSERT_PRINT(helpers::math::IsPowerOfTwo(capacity), "capacity must be pow of '2'"); in Create()
91 …ASSERT_PRINT(helpers::math::IsPowerOfTwo(static_cast<uint32_t>(entriesCount)), "the size must be p… in Create()