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

Function bit_ceil

external/include/fstd/bit.h:237–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

updateEnvLightMethod · 0.85

Calls 1

bit_ceil_implFunction · 0.85

Tested by

no test coverage detected