[PATCH] Fix compile on NetBSD-current for popcount

Joerg Sonnenberger joerg at britannica.bec.de
Fri Sep 4 20:07:20 CEST 2009


On Fri, Sep 04, 2009 at 07:33:53PM +0200, Marc Lehmann wrote:
> Ugh. I don't know why you continously drag in XSI, POSIX or "ffs and
> related functions" in this. This discussion is about popcount and popcount
> alone.

BTW, you might want to consider using ffs instead of ctz. It is available
for on most systems as part of XSI and ffs(x) - 1 == ctz(x) for x > 0.
For 0, ctz as builtin is undefined.

Joerg




More information about the rxvt-unicode mailing list