Home
last modified time | relevance | path

Searched refs:NextPowerOfTwo (Results 1 – 4 of 4) sorted by relevance

/third_party/skia/third_party/externals/dawn/src/tests/unittests/
DMathTests.cpp125 TEST(Math, NextPowerOfTwo) { in TEST() argument
127 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()
/third_party/skia/third_party/externals/dawn/src/dawn_native/
DBuddyMemoryAllocator.cpp54 allocationSize = NextPowerOfTwo(allocationSize); in Allocate()
/third_party/skia/third_party/externals/dawn/src/common/
DMath.h50 uint64_t NextPowerOfTwo(uint64_t n);
DMath.cpp74 uint64_t NextPowerOfTwo(uint64_t n) { in NextPowerOfTwo() function