MU Library
cache.hpp File Reference
#include <cstdint>
Include dependency graph for cache.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 mu
 

Functions

uint64_t mu::readGlobal (const void *src)
 Read a value from global cache. More...
 
void mu::writeGlobal (void *dst, uint64_t value)
 Write a value to global cache. More...
 
void mu::memcpyGlobal (void *dst, const void *src, uint64_t size)
 Copy data to global cache. More...
 
void mu::flushCache (const void *addr, uint64_t size=64)
 Flush cache lines for a memory region. More...
 
void mu::flushCacheAll ()
 Flush all cache lines for current thread. More...
 
void mu::prefetch (const void *addr, uint64_t size=64)
 Prefetch a contiguous memory region into cache. More...
 
void mu::prefetchStride (const void *addr, uint64_t count, uint64_t offset=64)
 Prefetch multiple cache lines at regular stride intervals. More...
 
bool mu::prefetchLinkedList (const void *addr, uint64_t count, uint64_t ptrOffset)
 Prefetch cache lines by traversing a linked list. More...