From 5c44c4ac7d560b8f2a04317363952e8b84322e30 Mon Sep 17 00:00:00 2001 From: satya priya Date: Mon, 25 Nov 2019 15:10:08 +0530 Subject: [PATCH] libpayload: Add BIT(x) macro definition Add BIT(x) macro definition in libpayload. Change-Id: I15ca2d3758d516cecf9edd60af47e7fdbd808c40 Signed-off-by: satya priya Reviewed-on: https://review.coreboot.org/c/coreboot/+/37254 Tested-by: build bot (Jenkins) Reviewed-by: Julius Werner --- payloads/libpayload/include/libpayload.h | 1 + 1 file changed, 1 insertion(+) 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); \