diff options
| author | Rodrigo Locatti <reinuseslisp@airmail.cc> | 2021-01-15 04:48:58 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-15 04:48:58 -0300 |
| commit | 5b9aedfc215e2f7227a8604d2d28fb462949d537 (patch) | |
| tree | ed1f105b1fef3fc9a5209c5106accaaee283ebf2 /src/video_core/command_classes/codecs | |
| parent | c8bf0caca0a3b923edcf199824903c9576c6df5c (diff) | |
| parent | 8620de6b2030bef35360d029354f672cde8978f1 (diff) | |
Merge pull request #5356 from lioncash/clz
common/bit_util: Replace CLZ/CTZ operations with standardized ones
Diffstat (limited to 'src/video_core/command_classes/codecs')
| -rw-r--r-- | src/video_core/command_classes/codecs/h264.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/command_classes/codecs/h264.cpp b/src/video_core/command_classes/codecs/h264.cpp index 65bbeac78..fea6aed98 100644 --- a/src/video_core/command_classes/codecs/h264.cpp +++ b/src/video_core/command_classes/codecs/h264.cpp @@ -19,7 +19,7 @@ // #include <array> -#include "common/bit_util.h" +#include <bit> #include "video_core/command_classes/codecs/h264.h" #include "video_core/gpu.h" #include "video_core/memory_manager.h" @@ -266,7 +266,7 @@ void H264BitWriter::WriteExpGolombCodedInt(s32 value) { } void H264BitWriter::WriteExpGolombCodedUInt(u32 value) { - const s32 size = 32 - Common::CountLeadingZeroes32(static_cast<s32>(value + 1)); + const s32 size = 32 - std::countl_zero(value + 1); WriteBits(1, size); value -= (1U << (size - 1)) - 1; |
