ref: 6e44f3442f1aaf7ef3a201e365529d25c9cecc6c
dir: /src/plan9/popcount.c/
#include "platform.h" int sl_popcount(unsigned int w) { w -= (w >> 1) & 0x55555555U; w = (w & 0x33333333U) + ((w >> 2) & 0x33333333U); w = (w + (w >> 4)) & 0x0F0F0F0FU; w = (w * 0x01010101U) >> 24; return w; }