This just adds a convenience wrapper for (1 << x) expressions.
Using (1UL << x) should be save for both 32 and 64 bit systems.

Signed-off-by: Benedikt Niedermayr <benedikt.niederm...@siemens.com>
---
 include/utils.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/utils.h b/include/utils.h
index f924b93a4c26..17bda308bf61 100644
--- a/include/utils.h
+++ b/include/utils.h
@@ -67,3 +67,5 @@ VOID PrintC(const UINT8 color, const CHAR16 *fmt, ...);
 #else
 #define INFO(fmt, ...) do { } while (0)
 #endif
+
+#define BIT(x) (1UL << (x))
-- 
2.34.1

-- 
You received this message because you are subscribed to the Google Groups "EFI 
Boot Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to efibootguard-dev+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/efibootguard-dev/20241120114312.295473-2-benedikt.niedermayr%40siemens.com.

Reply via email to