diff options
author | satya priya <skakit@codeaurora.org> | 2019-11-25 15:10:08 +0530 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-11-28 10:51:49 +0000 |
commit | 5c44c4ac7d560b8f2a04317363952e8b84322e30 (patch) | |
tree | 5b7eee49803512e16296f3cce4da017fd365aa5c /payloads | |
parent | c9ece506e08ed1b215c9fd78bb25260db197b85f (diff) |
libpayload: Add BIT(x) macro definition
Add BIT(x) macro definition in libpayload.
Change-Id: I15ca2d3758d516cecf9edd60af47e7fdbd808c40
Signed-off-by: satya priya <skakit@codeaurora.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/37254
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'payloads')
-rw-r--r-- | payloads/libpayload/include/libpayload.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/payloads/libpayload/include/libpayload.h b/payloads/libpayload/include/libpayload.h index 0bd5db8257..934c368e5c 100644 --- a/payloads/libpayload/include/libpayload.h +++ b/payloads/libpayload/include/libpayload.h @@ -85,6 +85,7 @@ #define MAX(a, b) __CMP(a, b, >) #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) +#define BIT(x) (1ul << (x)) #define DIV_ROUND_UP(x, y) ({ \ typeof(x) _div_local_x = (x); \ |