Integer log, rounds towards -inf.
x so that (1 << x) >= i
FUTURE: Why is that in dplug:core?
See Implementation
Integer log, rounds towards -inf.