Function ADS::nextSameWeight

Function Documentation

constexpr Word ADS::nextSameWeight(Word x)

the next larger word with as many 1 bits as x

Pre:

x != 0 and the result fits in 64 bits