Remove open-coded ilog2() implementations