mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-06-08 03:13:52 +00:00
Tint: Fixed MSVC 32-bit build.
This commit is contained in:
committed by
Branimir Karadžić
parent
36ddff3264
commit
a059eb2967
2
3rdparty/dawn/src/tint/utils/math/math.h
vendored
2
3rdparty/dawn/src/tint/utils/math/math.h
vendored
@@ -57,7 +57,7 @@ inline constexpr bool IsPowerOfTwo(T value) {
|
||||
inline constexpr uint32_t Log2(uint64_t value) {
|
||||
#if defined(__clang__) || defined(__GNUC__)
|
||||
return 63 - static_cast<uint32_t>(__builtin_clzll(value));
|
||||
#elif defined(_MSC_VER) && !defined(__clang__) && __cplusplus >= 202002L // MSVC and C++20+
|
||||
#elif 0 //defined(_MSC_VER) && !defined(__clang__) && __cplusplus >= 202002L // MSVC and C++20+
|
||||
// note: std::is_constant_evaluated() added in C++20
|
||||
// required here as _BitScanReverse64 is not constexpr
|
||||
if (!std::is_constant_evaluated()) {
|
||||
|
||||
Reference in New Issue
Block a user