Functions to prefetch blocks of memory. More...
#include <cstdlib>Go to the source code of this file.
Namespaces | |
| namespace | CxxUtils |
Copy the elements of a sequence for which a predicate is true. | |
Defines | |
| #define | CXXUTILS_PREFETCH_ADDRESS(ADDR) do {} while(0) |
Enumerations | |
| enum | { CacheLineSize = 64 } |
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. | |
Functions to prefetch blocks of memory.
1.6.1