Searched refs:NextPowerOfTwo (Results 1 – 4 of 4) sorted by relevance
125 TEST(Math, NextPowerOfTwo) { in TEST() argument127 ASSERT_EQ(NextPowerOfTwo(0), 1ull); in TEST()128 ASSERT_EQ(NextPowerOfTwo(0x7FFFFFFFFFFFFFFF), 0x8000000000000000); in TEST()131 ASSERT_EQ(NextPowerOfTwo(31), 32ull); in TEST()132 ASSERT_EQ(NextPowerOfTwo(33), 64ull); in TEST()134 ASSERT_EQ(NextPowerOfTwo(32), 32ull); in TEST()
54 allocationSize = NextPowerOfTwo(allocationSize); in Allocate()
50 uint64_t NextPowerOfTwo(uint64_t n);
74 uint64_t NextPowerOfTwo(uint64_t n) { in NextPowerOfTwo() function