I usually use bitfields when there are a lot of items (for example st glyph could be a good case for them). In other cases you waste more memory with the access code that the space you save compacting the bits in the struct.
> I should check generated code, but usually a mov is faster than mov+and+mov > for setting a bit. > > On Jul 14, 2013, at 23:22, Markus Teich <markus.te...@stusta.mhn.de> wrote: > > > Since this is just uncommon syntax (at least I haven't seen it before) and > > it is just used in the declaration I would be ok with it, if an additional > > comment explains it. It's not a strong opinion though, just an idea. -- Roberto E. Vargas Caballero ---------------------------- k...@shike2.com http://www.shike2.com