Re: [dev] dwm bit fields conversion

From: Roberto E. Vargas Caballero <>
Date: Mon, 15 Jul 2013 09:37:42 +0200

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 <> 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
Received on Mon Jul 15 2013 - 09:37:42 CEST

This archive was generated by hypermail 2.3.0 : Mon Jul 15 2013 - 09:48:05 CEST