common/macro.h: Add BIT macro
This commit is contained in:
parent
b0c196d4b9
commit
4de18eba93
@ -8,4 +8,6 @@
|
||||
|
||||
#define ARRAY_SIZE(X) (sizeof(X) / sizeof((X)[0]))
|
||||
|
||||
#define BIT(X) (1UL << (X))
|
||||
|
||||
#endif // _COMMON_MACRO_H
|
||||
|
Loading…
x
Reference in New Issue
Block a user