Replace `ceil(log(..., 2))` with `frexp`

Lua 5.1 does not support passing a base; it would use the natural logarithm, thus the values would be slightly off.

Notes:

Edited by Lars Müller

Merge request reports

Loading