Function ADS::selectInWord

Function Documentation

constexpr int ADS::selectInWord(Word x, int k)

the place of the k-th 1 of x, counting from 0 and from the least significant bit

Pre:

k < sidewaysSum( x )