Lines Matching full:bitfield
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)
153 #define __unbitf(src, bitfield, x) \ argument
154 ((x & __mask(src, bitfield)) >> (0 ? bitfield) << (src))
155 #define unbitf(bitfield, x) __unbitf(bitfield, x) argument