1 #if !defined( BITOPS_H )
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)))
9 #endif // !defined( BITOPS_H )