On 23 March 2015 at 15:47, Bruno Jesus 00cpxxx@gmail.com wrote:
Is there any precedent need for this in wine? Is there an accepted solution for it? Internet searching shows different ways like bit counting with shift, using cpu instructions or internal compiler functions.
We have e.g. count_bits() in dlls/wined3d/util.c, but you'll probably want to use __builtin_popcount() on gcc.