tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
bit_ceil.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  etl
 

Functions

template<etl::builtin_unsigned_integer UInt>
constexpr auto bit_ceil (UInt x) noexcept -> UInt
 Calculates the smallest integral power of two that is not smaller than x. If that value is not representable in UInt, the behavior is undefined. Call to this function is permitted in constant evaluation only if the undefined behavior does not occur.