Moved integer_log2 from detail to integer