Removed __ilog2 since it's no longer needed and conflicts with the