summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/memory/page_heap.h
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/core/hle/kernel/memory/page_heap.h
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/core/hle/kernel/memory/page_heap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/memory/page_heap.h b/src/core/hle/kernel/memory/page_heap.h
index 22b0de860..131093284 100644
--- a/src/core/hle/kernel/memory/page_heap.h
+++ b/src/core/hle/kernel/memory/page_heap.h
@@ -8,11 +8,11 @@
#pragma once
#include <array>
+#include <bit>
#include <vector>
#include "common/alignment.h"
#include "common/assert.h"
-#include "common/bit_util.h"
#include "common/common_funcs.h"
#include "common/common_types.h"
#include "core/hle/kernel/memory/memory_types.h"
@@ -105,7 +105,7 @@ private:
ASSERT(depth == 0);
return -1;
}
- offset = offset * 64 + Common::CountTrailingZeroes64(v);
+ offset = offset * 64 + static_cast<u32>(std::countr_zero(v));
++depth;
} while (depth < static_cast<s32>(used_depths));