bitops: Optimize hweight() by making use of compile-time evaluation