fn ilog2i(i: u32) -> u32
Estimate the value of i * log2(i) without using floating point operations, implementation originally from oxipng.