Prefer std::log2
over custom implementation
#2950
Merged
std::log2
over custom implementation
#2950