Home
last modified time | relevance | path

Searched refs:Log2Ceil (Results 1 – 3 of 3) sorted by relevance

/third_party/skia/third_party/externals/dawn/src/tests/unittests/
DMathTests.cpp80 TEST(Math, Log2Ceil) { in TEST() argument
82 ASSERT_EQ(Log2Ceil(1u), 0u); in TEST()
83 ASSERT_EQ(Log2Ceil(0xFFFFFFFFu), 32u); in TEST()
84 ASSERT_EQ(Log2Ceil(static_cast<uint64_t>(0xFFFFFFFFFFFFFFFF)), 64u); in TEST()
91 ASSERT_EQ(Log2Ceil(0x80000001u), 32u); in TEST()
92 ASSERT_EQ(Log2Ceil(0x80000000u), 31u); in TEST()
93 ASSERT_EQ(Log2Ceil(0x7FFFFFFFu), 31u); in TEST()
94 ASSERT_EQ(Log2Ceil(static_cast<uint64_t>(0x8000000000000001)), 64u); in TEST()
95 ASSERT_EQ(Log2Ceil(static_cast<uint64_t>(0x8000000000000000)), 63u); in TEST()
96 ASSERT_EQ(Log2Ceil(static_cast<uint64_t>(0x7FFFFFFFFFFFFFFF)), 63u); in TEST()
[all …]
/third_party/skia/third_party/externals/dawn/src/common/
DMath.h42 inline uint32_t Log2Ceil(uint32_t v) { in Log2Ceil() function
46 inline uint32_t Log2Ceil(uint64_t v) { in Log2Ceil() function
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DDeviceD3D12.cpp700 uint32_t allocatorIndex = descriptorCount == 0 ? 0 : Log2Ceil(descriptorCount) + 1; in GetViewStagingDescriptorAllocator()
708 uint32_t allocatorIndex = descriptorCount == 0 ? 0 : Log2Ceil(descriptorCount) + 1; in GetSamplerStagingDescriptorAllocator()