H A D | ch7006_priv.h | 141 #define __mask(src, bitfield) \ argument 142 (((2 << (1 ? bitfield)) - 1) & ~((1 << (0 ? bitfield)) - 1)) 143 #define mask(bitfield) __mask(bitfield) argument 145 #define __bitf(src, bitfield, x) \ argument 146 (((x) >> (src) << (0 ? bitfield)) & __mask(src, bitfield)) 147 #define bitf(bitfield, x) __bitf(bitfield, x) argument 148 #define bitfs(bitfield, s) __bitf(bitfield, bitfield##_##s) argument 149 #define setbitf(state, reg, bitfield, x) \ argument 150 state->regs[reg] = (state->regs[reg] & ~mask(reg##_##bitfield)) \ 151 | bitf(reg##_##bitfield, x) [all …]
|