Bit operations
include/math/bit_ops.h View source View on GitHubFunctions
Section titled “Functions”popcount
Section titled “popcount”size_t popcount(size_t n); next_pow2
Section titled “next_pow2”size_t next_pow2(size_t x); prev_pow2
Section titled “prev_pow2”size_t prev_pow2(size_t x);