scalu
scalu copied to clipboard
[FEATURE] Integer Logarithms (BSR)
Is your feature request related to a problem? Please describe. Add an integer logarithm operator, similar to Intel's bsr instruction. Adds a lot of utility for certain algorithms.
Describe the solution you'd like
An new operator implementing bsr
, probably log2
.
Describe alternatives you've considered
Some unused operator (?>
) would also be fine, though I'd like to avoid cryptic names.