Fixing ilog2 functions for efficiency and support for more than 32-bit values
As it stands, the functions ilog2
are implemented by a custom function using a limited range iterative algorithm.
This presents limitation in the possible address space (artificially limited to 32bits by this function) and efficiency of the tool.
I propose a boundless implementation using the Python standard library.