Searched refs:RoundUpToPowerOfTwo32 (Results 1 – 7 of 7) sorted by relevance
116 TEST(Bits, RoundUpToPowerOfTwo32) { in TEST() argument118 EXPECT_EQ(1u << shift, RoundUpToPowerOfTwo32(1u << shift)); in TEST()120 EXPECT_EQ(0u, RoundUpToPowerOfTwo32(0)); in TEST()121 EXPECT_EQ(4u, RoundUpToPowerOfTwo32(3)); in TEST()122 EXPECT_EQ(0x80000000u, RoundUpToPowerOfTwo32(0x7fffffffu)); in TEST()126 TEST(BitsDeathTest, DISABLE_IN_RELEASE(RoundUpToPowerOfTwo32)) { in TEST() argument127 ASSERT_DEATH_IF_SUPPORTED({ RoundUpToPowerOfTwo32(0x80000001u); }, in TEST()
148 uint32_t RoundUpToPowerOfTwo32(uint32_t value);156 uint32_t result = RoundUpToPowerOfTwo32(value); in RoundDownToPowerOfTwo32()
15 uint32_t RoundUpToPowerOfTwo32(uint32_t value) { in RoundUpToPowerOfTwo32() function
697 page_size = base::bits::RoundUpToPowerOfTwo32(info.dwPageSize); in GetPageSize()
4727 base::bits::RoundUpToPowerOfTwo32(max_semi_space_size_); in ConfigureHeap()4729 base::bits::RoundUpToPowerOfTwo32(reserved_semispace_size_); in ConfigureHeap()
3105 int capacity = base::bits::RoundUpToPowerOfTwo32(at_least_space_for * 2); in ComputeCapacity()
18680 capacity = base::bits::RoundUpToPowerOfTwo32(Max(kMinCapacity, capacity)); in Allocate()