zlacker

[parent] [thread] 0 comments
1. Mauran+(OP)[view] [source] 2019-11-11 19:32:33
> 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.

[go to top]