in reply to Re: Most Significant Set Bit
in thread Most Significant Set Bit
Unfortunately the log function isn't inexpensive
True, but you can halve the expense for large numbers of evaluations by storing log(2), which is just a constant.
🦛
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Most Significant Set Bit
by Danny (Chaplain) on Mar 15, 2024 at 23:20 UTC | |
by ikegami (Patriarch) on Mar 18, 2024 at 15:05 UTC |