Home
last modified time | relevance | path

Searched refs:RoundUpToPowerOfTwo32 (Results 1 – 7 of 7) sorted by relevance

/external/v8/test/unittests/base/
Dbits-unittest.cc116 TEST(Bits, RoundUpToPowerOfTwo32) { in TEST() argument
118 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() argument
127 ASSERT_DEATH_IF_SUPPORTED({ RoundUpToPowerOfTwo32(0x80000001u); }, in TEST()
/external/v8/src/base/
Dbits.h148 uint32_t RoundUpToPowerOfTwo32(uint32_t value);
156 uint32_t result = RoundUpToPowerOfTwo32(value); in RoundDownToPowerOfTwo32()
Dbits.cc15 uint32_t RoundUpToPowerOfTwo32(uint32_t value) { in RoundUpToPowerOfTwo32() function
/external/v8/src/base/platform/
Dplatform-win32.cc697 page_size = base::bits::RoundUpToPowerOfTwo32(info.dwPageSize); in GetPageSize()
/external/v8/src/heap/
Dheap.cc4727 base::bits::RoundUpToPowerOfTwo32(max_semi_space_size_); in ConfigureHeap()
4729 base::bits::RoundUpToPowerOfTwo32(reserved_semispace_size_); in ConfigureHeap()
/external/v8/src/
Dobjects-inl.h3105 int capacity = base::bits::RoundUpToPowerOfTwo32(at_least_space_for * 2); in ComputeCapacity()
Dobjects.cc18680 capacity = base::bits::RoundUpToPowerOfTwo32(Max(kMinCapacity, capacity)); in Allocate()