diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-12-05 14:28:59 +0900 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-01-13 04:34:24 +0900 |
commit | 152c8c11b7943c83ae07c9a51dc9433f85d85306 (patch) | |
tree | 96852bbcf1b07970bd3aa4f4e3c010094f5dc586 /include/lib | |
parent | 9eb4d4dd938a1ad86a5a0311e00beb3b5c1d5840 (diff) |
utils: move BIT(n) macro to utils.h
We are duplicating this macro define, and it is useful enough
to be placed in the common place.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'include/lib')
-rw-r--r-- | include/lib/utils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/lib/utils.h b/include/lib/utils.h index a234e3c9..f7af8f66 100644 --- a/include/lib/utils.h +++ b/include/lib/utils.h @@ -40,6 +40,8 @@ #define SIZE_FROM_LOG2_WORDS(n) (4 << (n)) +#define BIT(nr) (1UL << (nr)) + /* * The round_up() macro rounds up a value to the given boundary in a * type-agnostic yet type-safe manner. The boundary must be a power of two. |