diff options
author | Soby Mathew <soby.mathew@arm.com> | 2016-07-20 14:38:36 +0100 |
---|---|---|
committer | Soby Mathew <soby.mathew@arm.com> | 2016-08-09 17:33:57 +0100 |
commit | c45f627de4a17d4be6727cbf357e7fb54479a563 (patch) | |
tree | 8497a4acc24e3b0b7dd3be9ae6483b9e9a95113e /include/lib/utils.h | |
parent | 12ab697e8f91a67a439e6172621b905753d61f46 (diff) |
Move SIZE_FROM_LOG2_WORDS macro to utils.h
This patch moves the macro SIZE_FROM_LOG2_WORDS() defined in
`arch.h` to `utils.h` as it is utility macro.
Change-Id: Ia8171a226978f053a1ee4037f80142c0a4d21430
Diffstat (limited to 'include/lib/utils.h')
-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 0936cbb3..a234e3c9 100644 --- a/include/lib/utils.h +++ b/include/lib/utils.h @@ -38,6 +38,8 @@ #define IS_POWER_OF_TWO(x) \ (((x) & ((x) - 1)) == 0) +#define SIZE_FROM_LOG2_WORDS(n) (4 << (n)) + /* * 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. |