3 ms·
> But elsethread jepler has shown a solution off Hacker's Delight which which simply multiplies the index of the most significant bit with a magic constant. ..
by MauranKilom 7y ago
> But elsethread jepler has shown a solution off Hacker's Delight which which simply multiplies the index of the most significant bit with a magic constant.
...and then checks for and corrects the potential off-by-one thus incurred.