Go to the documentation of this file. 40 #define BIT(shift) (1UL << (shift)) 42 #define BIT_MASK_SHIFT(mask, shift) ((mask) << (shift)) 44 #define GET_BITS(x, m, n) ((((uint32)x) << (31 - (n))) >> ((31 - (n)) + (m))) 46 #define IS_POWER_OF_TWO(v) ((v) && !((v) & ((v) - 1)))