Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
Prefetch.h File Reference

Go to the source code of this file.

Functions

template<typename T >
JPH_NAMESPACE_BEGIN void PrefetchL1 (const T *inAddress)
 Prefetch the given address to L1 cache. Can be used to avoid cache misses, but should be used with care as it can also cause cache pollution if used incorrectly.
 

Function Documentation

◆ PrefetchL1()

template<typename T >
JPH_NAMESPACE_BEGIN void PrefetchL1 ( const T * inAddress)
inline

Prefetch the given address to L1 cache. Can be used to avoid cache misses, but should be used with care as it can also cause cache pollution if used incorrectly.