Searched refs:RoundUpToPowerOfTwo32 (Results 1 – 7 of 7) sorted by relevance
79 TEST(Bits, RoundUpToPowerOfTwo32) { in TEST() argument81 EXPECT_EQ(1u << shift, RoundUpToPowerOfTwo32(1u << shift)); in TEST()83 EXPECT_EQ(0u, RoundUpToPowerOfTwo32(0)); in TEST()84 EXPECT_EQ(4u, RoundUpToPowerOfTwo32(3)); in TEST()85 EXPECT_EQ(0x80000000u, RoundUpToPowerOfTwo32(0x7fffffffu)); in TEST()89 TEST(BitsDeathTest, DISABLE_IN_RELEASE(RoundUpToPowerOfTwo32)) { in TEST() argument90 ASSERT_DEATH_IF_SUPPORTED({ RoundUpToPowerOfTwo32(0x80000001u); }, in TEST()
93 uint32_t RoundUpToPowerOfTwo32(uint32_t value);101 uint32_t result = RoundUpToPowerOfTwo32(value); in RoundDownToPowerOfTwo32()
12 uint32_t RoundUpToPowerOfTwo32(uint32_t value) { in RoundUpToPowerOfTwo32() function
704 page_size = base::bits::RoundUpToPowerOfTwo32(info.dwPageSize); in GetPageSize()
4886 base::bits::RoundUpToPowerOfTwo32(max_semi_space_size_); in ConfigureHeap()4888 base::bits::RoundUpToPowerOfTwo32(reserved_semispace_size_); in ConfigureHeap()
3101 int capacity = base::bits::RoundUpToPowerOfTwo32(at_least_space_for * 2); in ComputeCapacity()
15392 capacity = base::bits::RoundUpToPowerOfTwo32(Max(kMinCapacity, capacity)); in Allocate()