summaryrefslogtreecommitdiff
path: root/include/compile_time_macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/compile_time_macros.h')
-rw-r--r--include/compile_time_macros.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/compile_time_macros.h b/include/compile_time_macros.h
index 1cc41f4d0e..3d21c8199d 100644
--- a/include/compile_time_macros.h
+++ b/include/compile_time_macros.h
@@ -29,4 +29,10 @@
#define member_size(type, member) sizeof(((type *)0)->member)
+/*
+ * Bit operation macros.
+ */
+#define BIT(nr) (1UL << (nr))
+#define BIT_ULL(nr) (1ULL << (nr))
+
#endif /* __CROS_EC_COMPILE_TIME_MACROS_H */