MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / bit_ceil_impl

Function bit_ceil_impl

external/include/fstd/bit.h:220–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

bit_ceilFunction · 0.85

Calls 1

bit_widthFunction · 0.85

Tested by

no test coverage detected