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>
This commit is contained in:
satya priya 2019-11-25 15:10:08 +05:30 committed by Patrick Georgi
parent c9ece506e0
commit 5c44c4ac7d
1 changed files with 1 additions and 0 deletions

View File

@ -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); \