| 162 | |
| 163 | template<typename T> |
| 164 | constexpr T RoundDown(T x, typename Identity<T>::type n) { |
| 165 | DCHECK(IsPowerOfTwo(n)); |
| 166 | return (x & -n); |
| 167 | } |
| 168 | |
| 169 | template<typename T> |
| 170 | constexpr T RoundUp(T x, typename std::remove_reference<T>::type n) WARN_UNUSED; |
no test coverage detected