Lines Matching refs:bitfield
142 #define __mask(src, bitfield) \ argument
143 (((2 << (1 ? bitfield)) - 1) & ~((1 << (0 ? bitfield)) - 1))
144 #define mask(bitfield) __mask(bitfield) argument
146 #define __bitf(src, bitfield, x) \ argument
147 (((x) >> (src) << (0 ? bitfield)) & __mask(src, bitfield))
148 #define bitf(bitfield, x) __bitf(bitfield, x) argument
149 #define bitfs(bitfield, s) __bitf(bitfield, bitfield##_##s) argument
150 #define setbitf(state, reg, bitfield, x) \ argument
151 state->regs[reg] = (state->regs[reg] & ~mask(reg##_##bitfield)) \
152 | bitf(reg##_##bitfield, x)
154 #define __unbitf(src, bitfield, x) \ argument
155 ((x & __mask(src, bitfield)) >> (0 ? bitfield) << (src))
156 #define unbitf(bitfield, x) __unbitf(bitfield, x) argument