is_valid_mask
static inline bool is_valid_mask(int mask, int req, int opt)
#define is_valid_mask(x) is_power_of_two(1LU + (x) + low_bit_mask(x))