boost::compute::popcount
// In header: <boost/compute/functional/popcount.hpp> template<typename T> class popcount : public function< T(T)> { public: // public member functions popcount(); };
Returns the number of non-zero bits in x.
x
See the documentation for
popcount
popcount();