popcount
size_t popcount(size_t n);
next_pow2
size_t next_pow2(size_t x);
prev_pow2
size_t prev_pow2(size_t x);