Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
ROOT::Internal::VecOps::RVecInlineStorageSize< T > Struct Template Reference

template<typename T>
struct ROOT::Internal::VecOps::RVecInlineStorageSize< T >

The size of the inline storage of an RVec.

Our policy is to allocate at least 8 elements (or more if they all fit into one cacheline) unless the size of the buffer with 8 elements would be over a certain maximum size.

Definition at line 514 of file RVec.hxx.

Static Public Attributes

static constexpr unsigned value

Static Private Attributes

static constexpr std::size_t cacheLineSize = R__HARDWARE_INTERFERENCE_SIZE
static constexpr unsigned elementsPerCacheLine = (cacheLineSize - sizeof(SmallVectorBase)) / sizeof(T)
static constexpr unsigned maxInlineByteSize = 1024

#include <ROOT/RVec.hxx>

Member Data Documentation

◆ cacheLineSize

template<typename T>
std::size_t ROOT::Internal::VecOps::RVecInlineStorageSize< T >::cacheLineSize = R__HARDWARE_INTERFERENCE_SIZE
staticconstexprprivate

Definition at line 516 of file RVec.hxx.

◆ elementsPerCacheLine

template<typename T>
unsigned ROOT::Internal::VecOps::RVecInlineStorageSize< T >::elementsPerCacheLine = (cacheLineSize - sizeof(SmallVectorBase)) / sizeof(T)
staticconstexprprivate

Definition at line 517 of file RVec.hxx.

◆ maxInlineByteSize

template<typename T>
unsigned ROOT::Internal::VecOps::RVecInlineStorageSize< T >::maxInlineByteSize = 1024
staticconstexprprivate

Definition at line 518 of file RVec.hxx.

◆ value

template<typename T>
unsigned ROOT::Internal::VecOps::RVecInlineStorageSize< T >::value
staticconstexpr
Initial value:
=
static constexpr unsigned maxInlineByteSize
Definition RVec.hxx:518
static constexpr unsigned elementsPerCacheLine
Definition RVec.hxx:517

Definition at line 521 of file RVec.hxx.


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