Function ADS::select

Function Documentation

inline int ADS::select(Word x, int r)

the place of the 1 of rank r of x, from 0

Pre:

r < the number of 1 bits of x