Untested but something along the line of -
#define setBit(VALUE, BIT) ((VALUE) |= (1 << BIT))
#define clearBit(VALUE, BIT) ((VALUE) &= ~(1 << BIT))
Untested but something along the line of -
#define setBit(VALUE, BIT) ((VALUE) |= (1 << BIT))
#define clearBit(VALUE, BIT) ((VALUE) &= ~(1 << BIT))