summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-04-01 23:47:35 +0200
committerbunnei <bunneidev@gmail.com>2021-05-06 01:40:49 +0200
commit74120c5e3a721bb05840873e88cddad0e966f17d (patch)
tree57c4a845f1a756737a5b5b3a5cc2904a68d06968
parenthle: kernel: Add initial impl. of KSlabAllocated. (diff)
downloadyuzu-74120c5e3a721bb05840873e88cddad0e966f17d.tar
yuzu-74120c5e3a721bb05840873e88cddad0e966f17d.tar.gz
yuzu-74120c5e3a721bb05840873e88cddad0e966f17d.tar.bz2
yuzu-74120c5e3a721bb05840873e88cddad0e966f17d.tar.lz
yuzu-74120c5e3a721bb05840873e88cddad0e966f17d.tar.xz
yuzu-74120c5e3a721bb05840873e88cddad0e966f17d.tar.zst
yuzu-74120c5e3a721bb05840873e88cddad0e966f17d.zip
-rw-r--r--src/common/bit_util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/bit_util.h b/src/common/bit_util.h
index 64520ca4e..683f09158 100644
--- a/src/common/bit_util.h
+++ b/src/common/bit_util.h
@@ -44,4 +44,6 @@ template <typename T>
return static_cast<u32>(log2_f + static_cast<u64>((value ^ (1ULL << log2_f)) != 0ULL));
}
+#define BIT(n) (1U << (n))
+
} // namespace Common