rocPRIM
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
detail::onesweep_lookback_state Struct Reference

Public Types

enum  prefix_flag : underlying_type { EMPTY = 0, PARTIAL = 1u << (state_bits - 2), COMPLETE = 2u << (state_bits - 2) }
 
using underlying_type = uint32_t
 

Public Member Functions

ROCPRIM_DEVICE ROCPRIM_INLINE onesweep_lookback_state (underlying_type state)
 
ROCPRIM_DEVICE ROCPRIM_INLINE onesweep_lookback_state (prefix_flag status, underlying_type value)
 
ROCPRIM_DEVICE ROCPRIM_INLINE underlying_type value () const
 
ROCPRIM_DEVICE ROCPRIM_INLINE prefix_flag status () const
 
ROCPRIM_DEVICE ROCPRIM_INLINE void store (onesweep_lookback_state *ptr) const
 

Static Public Member Functions

ROCPRIM_DEVICE static ROCPRIM_INLINE onesweep_lookback_state load (onesweep_lookback_state *ptr)
 

Public Attributes

underlying_type state
 

Static Public Attributes

static constexpr unsigned int state_bits = 8u * sizeof(underlying_type)
 
static constexpr underlying_type status_mask = 3u << (state_bits - 2)
 
static constexpr underlying_type value_mask = ~status_mask
 

The documentation for this struct was generated from the following file: