utils: add a bitfield size macro