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:
parent
c9ece506e0
commit
5c44c4ac7d
|
@ -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); \
|
||||
|
|
Loading…
Reference in New Issue