ATLAS Offline Software
Namespaces | Macros | Enumerations | Functions
prefetch.h File Reference

Functions to prefetch blocks of memory. More...

#include <cstdlib>
Include dependency graph for prefetch.h:

Go to the source code of this file.

Namespaces

 CxxUtils
 

Macros

#define CXXUTILS_PREFETCH_ADDRESS(ADDR)   do {} while(0)
 

Enumerations

enum  { CxxUtils::CacheLineSize = 64 }
 While it is possible to determine cache line size at run time (e.g. More...
 

Functions

void CxxUtils::prefetchOne (const void *address)
 Generic prefetch method. More...
 
template<size_t N>
void CxxUtils::prefetchN (const void *ptr)
 Prefetch an N-byte block of memory. More...
 
template<typename T >
void CxxUtils::prefetchObj (const T *ptr)
 Generic prefetch of the object of specific types (sizes). More...
 
template<typename Iter >
void CxxUtils::prefetchNext (Iter iter, Iter endIter)
 Prefetch next object in sequence. More...
 
template<typename Iter >
void CxxUtils::prefetchTwo (Iter iter, Iter endIter)
 Prefetch two objects. More...
 

Detailed Description

Functions to prefetch blocks of memory.

Author
scott snyder snyde.nosp@m.r@bn.nosp@m.l.gov, after code from A. Salnikov
Date
Dec, 2013

Definition in file prefetch.h.

Macro Definition Documentation

◆ CXXUTILS_PREFETCH_ADDRESS

#define CXXUTILS_PREFETCH_ADDRESS (   ADDR)    do {} while(0)

Definition at line 33 of file prefetch.h.