split up some headers + rename markdown_io to parser
[smdp.git] / include / bitops.h
1 #if !defined( BITOPS_H )
2 #define BITOPS_H
3
4 #define SET_BIT(var, pos)    ((var) |= (1<<(pos)))
5 #define CLEAR_BIT(var, pos)  ((var) &= (~(1<<(pos))))
6 #define TOGGLE_BIT(var, pos) ((var) ^= (1<<(pos)))
7 #define CHECK_BIT(var, pos)  ((var) &  (1<<(pos)))
8
9 #endif // !defined( BITOPS_H )