| 212 | |
| 213 | template< class T, typename std::enable_if<std::is_unsigned<T>::value, int >::type = 0 > |
| 214 | constexpr T bit_width(T x) noexcept |
| 215 | { |
| 216 | return static_cast<T>(std::numeric_limits<T>::digits - countl_zero(x) ); |
| 217 | } |
| 218 | |
| 219 | template< class T > |
| 220 | constexpr T bit_ceil_impl( T x, std::true_type /*case: same type*/) |
no test coverage detected