paper

A Non-Oblivious Reduction of Counting Ones to Multiplication

arXiv:1506.03473

Abstract

An algorithm counting the number of ones in a binary word is presented running in time where is the number of ones. The operations available include bit-wise logical operations and multiplication.