ATLAS Offline Software
Loading...
Searching...
No Matches
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

namespace  CxxUtils

Macros

#define CXXUTILS_PREFETCH_ADDRESS(ADDR)

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

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)
Value:
do {} while(0)

Definition at line 32 of file prefetch.h.