| 218 | |
| 219 | template< class T > |
| 220 | constexpr T bit_ceil_impl( T x, std::true_type /*case: same type*/) |
| 221 | { |
| 222 | return T{1} << bit_width( T{x - 1} ); |
| 223 | } |
| 224 | |
| 225 | template< class T > |
| 226 | constexpr T bit_ceil_impl( T x, std::false_type /*case: integral promotion*/ ) |