From 74120c5e3a721bb05840873e88cddad0e966f17d Mon Sep 17 00:00:00 2001 From: bunnei Date: Thu, 1 Apr 2021 14:47:35 -0700 Subject: common: bit_util: Add BIT macro. --- src/common/bit_util.h | 2 ++ 1 file changed, 2 insertions(+) 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 return static_cast(log2_f + static_cast((value ^ (1ULL << log2_f)) != 0ULL)); } +#define BIT(n) (1U << (n)) + } // namespace Common -- cgit v1.2.3