diff options
| author | 2021-01-15 04:48:58 -0300 | |
|---|---|---|
| committer | 2021-01-15 04:48:58 -0300 | |
| commit | 5b9aedfc215e2f7227a8604d2d28fb462949d537 (patch) | |
| tree | ed1f105b1fef3fc9a5209c5106accaaee283ebf2 /src/video_core/command_classes | |
| parent | Merge pull request #5354 from ReinUsesLisp/remove-common-color (diff) | |
| parent | common/bit_util: Replace CLZ/CTZ operations with standardized ones (diff) | |
| download | yuzu-5b9aedfc215e2f7227a8604d2d28fb462949d537.tar.gz yuzu-5b9aedfc215e2f7227a8604d2d28fb462949d537.tar.xz yuzu-5b9aedfc215e2f7227a8604d2d28fb462949d537.zip | |
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')
| -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 @@ | |||
| 19 | // | 19 | // |
| 20 | 20 | ||
| 21 | #include <array> | 21 | #include <array> |
| 22 | #include "common/bit_util.h" | 22 | #include <bit> |
| 23 | #include "video_core/command_classes/codecs/h264.h" | 23 | #include "video_core/command_classes/codecs/h264.h" |
| 24 | #include "video_core/gpu.h" | 24 | #include "video_core/gpu.h" |
| 25 | #include "video_core/memory_manager.h" | 25 | #include "video_core/memory_manager.h" |
| @@ -266,7 +266,7 @@ void H264BitWriter::WriteExpGolombCodedInt(s32 value) { | |||
| 266 | } | 266 | } |
| 267 | 267 | ||
| 268 | void H264BitWriter::WriteExpGolombCodedUInt(u32 value) { | 268 | void H264BitWriter::WriteExpGolombCodedUInt(u32 value) { |
| 269 | const s32 size = 32 - Common::CountLeadingZeroes32(static_cast<s32>(value + 1)); | 269 | const s32 size = 32 - std::countl_zero(value + 1); |
| 270 | WriteBits(1, size); | 270 | WriteBits(1, size); |
| 271 | 271 | ||
| 272 | value -= (1U << (size - 1)) - 1; | 272 | value -= (1U << (size - 1)) - 1; |