summaryrefslogtreecommitdiffstats
path: root/src/video_core/cdma_pusher.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2021-01-15 08:02:57 +0100
committerLioncash <mathew1800@gmail.com>2021-01-15 08:15:32 +0100
commit8620de6b2030bef35360d029354f672cde8978f1 (patch)
treeed1f105b1fef3fc9a5209c5106accaaee283ebf2 /src/video_core/cdma_pusher.cpp
parentMerge pull request #5354 from ReinUsesLisp/remove-common-color (diff)
downloadyuzu-8620de6b2030bef35360d029354f672cde8978f1.tar
yuzu-8620de6b2030bef35360d029354f672cde8978f1.tar.gz
yuzu-8620de6b2030bef35360d029354f672cde8978f1.tar.bz2
yuzu-8620de6b2030bef35360d029354f672cde8978f1.tar.lz
yuzu-8620de6b2030bef35360d029354f672cde8978f1.tar.xz
yuzu-8620de6b2030bef35360d029354f672cde8978f1.tar.zst
yuzu-8620de6b2030bef35360d029354f672cde8978f1.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/cdma_pusher.cpp4
1 files changed, 2 insertions, 2 deletions
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 <bit>
#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<u32>(std::countr_zero(mask));
mask &= ~(1U << lbs);
ExecuteCommand(static_cast<u32>(offset + lbs), value);
continue;