Counting Ones Without Broadword Operations
arXiv:1511.05210
Abstract
A lower time bound for counting the number of ones in a binary input word of length is presented, where is the number of ones. The operations available are increment, decrement, bit-wise logical operations, and assignment. The only constant available is zero. An almost matching upper bound is also obtained.