stdgpu/bit.h File Reference

stdgpu/bit.h File Reference#

stdgpu: stdgpu/bit.h File Reference
stdgpu Latest
Efficient STL-like Data Structures on the GPU
bit.h File Reference

Go to the source code of this file.

Functions

template<typename To , typename From , STDGPU_DETAIL_OVERLOAD_IF(sizeof(To)==sizeof(From) &&std::is_trivially_copyable_v< To > && std::is_trivially_copyable_v< From >) >
STDGPU_HOST_DEVICE To stdgpu::bit_cast (const From &object) noexcept
 
template<typename T , STDGPU_DETAIL_OVERLOAD_IF(std::is_unsigned_v< T >) >
STDGPU_HOST_DEVICEstdgpu::bit_ceil (const T number) noexcept
 
template<typename T , STDGPU_DETAIL_OVERLOAD_IF(std::is_unsigned_v< T >) >
STDGPU_HOST_DEVICEstdgpu::bit_floor (const T number) noexcept
 
template<typename T , STDGPU_DETAIL_OVERLOAD_IF(std::is_unsigned_v< T >) >
STDGPU_HOST_DEVICEstdgpu::bit_mod (const T number, const T divider) noexcept
 
template<typename T , STDGPU_DETAIL_OVERLOAD_IF(std::is_unsigned_v< T >) >
STDGPU_HOST_DEVICEstdgpu::bit_width (const T number) noexcept
 
template<typename T , STDGPU_DETAIL_OVERLOAD_IF(std::is_unsigned_v< T >) >
STDGPU_HOST_DEVICE bool stdgpu::has_single_bit (const T number) noexcept
 
template<typename T , STDGPU_DETAIL_OVERLOAD_IF(std::is_unsigned_v< T >) >
STDGPU_HOST_DEVICE int stdgpu::popcount (const T number) noexcept