On 25 April 2013 19:36, Martin Husemann <mar...@duskware.de> wrote: > But this still leaves two questions open: > > - why not use an unsigned return value for your homegrown version?
We follow gcc's API, which returns int for __builtin_popcountl. > - would it be preferable to use official/optimized versions if > available? We will -- assuming a reasonably recent gcc we will end up compiling this to __builtin_popcount() and friends. (We could maybe do with a bit more rationalisation in this area, though.) thanks -- PMM