mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 10:49:14 +00:00
Fix MSVC builder failure with NextPowerOfTwo.
Define behavior of n=0 when compiling on MSVC. BUG=dawn:27 Change-Id: If9d454833f5b3d8f0183eba2bc5a54f9ca6e56a2 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/9440 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
9d2ccaf65c
commit
506ce9bba4
@@ -28,7 +28,7 @@ uint32_t Log2(uint32_t value);
|
||||
uint32_t Log2(uint64_t value);
|
||||
bool IsPowerOfTwo(size_t n);
|
||||
|
||||
uint64_t NextPowerOfTwo(uint64_t x);
|
||||
uint64_t NextPowerOfTwo(uint64_t n);
|
||||
bool IsPtrAligned(const void* ptr, size_t alignment);
|
||||
void* AlignVoidPtr(void* ptr, size_t alignment);
|
||||
bool IsAligned(uint32_t value, size_t alignment);
|
||||
|
||||
Reference in New Issue
Block a user