BITS_SET
#define BITS_SET(val, bits) (((val) & (bits)) == (bits))
#undef BITS_SET
#define BITS_SET(val, lo, hi, new_val) \