From 8620de6b2030bef35360d029354f672cde8978f1 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 15 Jan 2021 02:02:57 -0500 Subject: common/bit_util: Replace CLZ/CTZ operations with standardized ones Makes for less code that we need to maintain. --- src/video_core/cdma_pusher.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/video_core/cdma_pusher.cpp') diff --git a/src/video_core/cdma_pusher.cpp b/src/video_core/cdma_pusher.cpp index 94679d5d1..33b3c060b 100644 --- a/src/video_core/cdma_pusher.cpp +++ b/src/video_core/cdma_pusher.cpp @@ -18,10 +18,10 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // +#include #include "command_classes/host1x.h" #include "command_classes/nvdec.h" #include "command_classes/vic.h" -#include "common/bit_util.h" #include "video_core/cdma_pusher.h" #include "video_core/command_classes/nvdec_common.h" #include "video_core/engines/maxwell_3d.h" @@ -56,7 +56,7 @@ void CDmaPusher::Step() { for (const u32 value : values) { if (mask != 0) { - const u32 lbs = Common::CountTrailingZeroes32(mask); + const auto lbs = static_cast(std::countr_zero(mask)); mask &= ~(1U << lbs); ExecuteCommand(static_cast(offset + lbs), value); continue; -- cgit v1.2.3