The struct Log2 is replaced with the constexpr function templates log2Floor() and log2Ceil().