sd-boot: Move flags helpers to macro-fundamental.h

This commit is contained in:
Jan Janssen
2021-11-04 18:37:07 +01:00
parent 1224d57ba5
commit a8a7723ba9
2 changed files with 7 additions and 7 deletions
-7
View File
@@ -328,13 +328,6 @@ static inline int __coverity_check_and_return__(int condition) {
ans; \
})
#define UPDATE_FLAG(orig, flag, b) \
((b) ? ((orig) | (flag)) : ((orig) & ~(flag)))
#define SET_FLAG(v, flag, b) \
(v) = UPDATE_FLAG(v, flag, b)
#define FLAGS_SET(v, flags) \
((~(v) & (flags)) == 0)
#define SWAP_TWO(x, y) do { \
typeof(x) _t = (x); \
(x) = (y); \