Lines Matching refs:num
64 /* sets the bit at position pos of num to 1 if val == 1 */
65 #define SETBIT_CMN(num, pos, val) (num |= (val << pos))
67 #define SETBIT(num, pos, val, len) (SETBIT_CMN(num, pos, val))
69 #define SETBIT(num, pos, val, len) \
70 (SETBIT_CMN(num, (COMPUTE_BIT_POS(len, pos)), val))
73 /* sets the bit at position pos of num to 0 */
74 #define UNSETBIT_CMN(num, pos) (num &= (~(1 << pos)))
76 #define UNSETBIT(num, pos, len) (UNSETBIT_CMN(num, pos))
78 #define UNSETBIT(num, pos, len) \
79 (UNSETBIT_CMN(num, (COMPUTE_BIT_POS(len, pos))))