| 235 | |
| 236 | template< class T, typename std::enable_if<std::is_unsigned<T>::value, int >::type = 0 > |
| 237 | constexpr T bit_ceil(T x) |
| 238 | { |
| 239 | return ( x <= 1u ) ? T{1} : bit_ceil_impl( x, std20::same_as<T, decltype(+x)>{} ); |
| 240 | } |
| 241 | |
| 242 | template< class T, typename std::enable_if<std::is_unsigned<T>::value, int >::type = 0 > |
| 243 | constexpr T bit_floor(T x) noexcept |
no test coverage detected