That we might expect compilers to boil this statement down to calloc(n, s) is astonishing. The subtilty compilers is amazing.
[In Rust the standard library provides count_ones() on integer types, and that's actually safely wrapping an intrinsic pop count feature]