Lines Matching defs:len
48 #define COMPUTE_BIT_POS(len, pos) \
49 (((len - pos - 1) & 0xf8) | (pos & 0x7))
54 * unsigned integer of length len. len will be equal to either 16 or 32
58 #define EXTRACTBIT(val, pos, len) (EXTRACTBIT_CMN(val, pos))
60 #define EXTRACTBIT(val, pos, len) \
61 (EXTRACTBIT_CMN(val, (COMPUTE_BIT_POS(len, 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))
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))))