bit_width — stdgpu Latest documentation (original) (raw)
| bit_cast bit_ceil bit_floor bit_mod bit_width has_single_bit popcount | ◆ bit_width() template<typename T , STDGPU_DETAIL_OVERLOAD_IF(std::is_unsigned_v< T >) > STDGPU_HOST_DEVICE T stdgpu::bit_width ( const T number) noexcept Computes the smallest number of bits to represent the given number. Parameters [in]numberA number ReturnsThe smallest number of bits to represent the given number Postconditionresult >= 0 result <= numeric_limits::digits |
|---|