20 std::is_integral<T>::value,
"p2ceil_kernel input type must be integral");
21 return n | (n >> shift);
34 constexpr std::uint64_t
p2ceil(std::uint64_t n) {
66 constexpr std::uint32_t
p2ceil(std::uint32_t n) {
80 constexpr std::uint16_t
p2ceil(std::uint16_t n) {
91 constexpr std::uint8_t
p2ceil(std::uint8_t n) {
constexpr std::uint64_t p2ceil(std::uint64_t n)
Find the smallest power of 2 larger than n for a 64-bit integer.
constexpr T p2ceil_kernel(int shift, T n)
Implement the key operation in the p2ceil() function.
The top-level namespace for the JayBeams library.