Home
last modified time | relevance | path

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

/external/v8/src/base/
Dbits-unittest.cc79 TEST(Bits, RoundUpToPowerOfTwo32) { in TEST() argument
81 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() argument
90 ASSERT_DEATH_IF_SUPPORTED({ RoundUpToPowerOfTwo32(0x80000001u); }, in TEST()
Dbits.h93 uint32_t RoundUpToPowerOfTwo32(uint32_t value);
101 uint32_t result = RoundUpToPowerOfTwo32(value); in RoundDownToPowerOfTwo32()
Dbits.cc12 uint32_t RoundUpToPowerOfTwo32(uint32_t value) { in RoundUpToPowerOfTwo32() function
/external/v8/src/base/platform/
Dplatform-win32.cc704 page_size = base::bits::RoundUpToPowerOfTwo32(info.dwPageSize); in GetPageSize()
/external/v8/src/heap/
Dheap.cc4886 base::bits::RoundUpToPowerOfTwo32(max_semi_space_size_); in ConfigureHeap()
4888 base::bits::RoundUpToPowerOfTwo32(reserved_semispace_size_); in ConfigureHeap()
/external/v8/src/
Dobjects-inl.h3101 int capacity = base::bits::RoundUpToPowerOfTwo32(at_least_space_for * 2); in ComputeCapacity()
Dobjects.cc15392 capacity = base::bits::RoundUpToPowerOfTwo32(Max(kMinCapacity, capacity)); in Allocate()