Grok 10.0.3
Static Public Member Functions | Static Public Attributes | List of all members
hwy::SortConstants Struct Reference

#include <shared-inl.h>

Static Public Member Functions

static constexpr HWY_INLINE size_t BaseCaseNum (size_t N)
 
static constexpr HWY_INLINE size_t PartitionBufNum (size_t N)
 
static constexpr HWY_INLINE size_t LanesPerChunk (size_t sizeof_t, size_t N)
 
static constexpr HWY_INLINE size_t PivotBufNum (size_t sizeof_t, size_t N)
 
template<typename T >
static constexpr HWY_INLINE size_t BufNum (size_t N)
 
template<typename T >
static constexpr HWY_INLINE size_t BufBytes (size_t vector_size)
 

Static Public Attributes

static constexpr size_t kMaxCols = 16
 
static constexpr size_t kMaxRowsLog2 = 4
 
static constexpr size_t kMaxRows = size_t{1} << kMaxRowsLog2
 
static constexpr size_t kPartitionUnroll = 4
 

Member Function Documentation

◆ BaseCaseNum()

static constexpr HWY_INLINE size_t hwy::SortConstants::BaseCaseNum ( size_t  N)
inlinestaticconstexpr

References HWY_MIN, kMaxCols, kMaxRows, and hwy::HWY_NAMESPACE::N.

Referenced by BufNum().

◆ BufBytes()

template<typename T >
static constexpr HWY_INLINE size_t hwy::SortConstants::BufBytes ( size_t  vector_size)
inlinestaticconstexpr

◆ BufNum()

template<typename T >
static constexpr HWY_INLINE size_t hwy::SortConstants::BufNum ( size_t  N)
inlinestaticconstexpr

◆ LanesPerChunk()

static constexpr HWY_INLINE size_t hwy::SortConstants::LanesPerChunk ( size_t  sizeof_t,
size_t  N 
)
inlinestaticconstexpr

References HWY_MAX, and hwy::HWY_NAMESPACE::N.

Referenced by PivotBufNum().

◆ PartitionBufNum()

static constexpr HWY_INLINE size_t hwy::SortConstants::PartitionBufNum ( size_t  N)
inlinestaticconstexpr

References kPartitionUnroll, and hwy::HWY_NAMESPACE::N.

Referenced by BufNum().

◆ PivotBufNum()

static constexpr HWY_INLINE size_t hwy::SortConstants::PivotBufNum ( size_t  sizeof_t,
size_t  N 
)
inlinestaticconstexpr

References LanesPerChunk(), and hwy::HWY_NAMESPACE::N.

Referenced by BufNum().

Member Data Documentation

◆ kMaxCols

constexpr size_t hwy::SortConstants::kMaxCols = 16
staticconstexpr

Referenced by BaseCaseNum().

◆ kMaxRows

constexpr size_t hwy::SortConstants::kMaxRows = size_t{1} << kMaxRowsLog2
staticconstexpr

Referenced by BaseCaseNum().

◆ kMaxRowsLog2

constexpr size_t hwy::SortConstants::kMaxRowsLog2 = 4
staticconstexpr

◆ kPartitionUnroll

constexpr size_t hwy::SortConstants::kPartitionUnroll = 4
staticconstexpr

Referenced by PartitionBufNum().


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