MCPcopy Create free account
hub / github.com/VectorDB-NTU/RaBitQ-Library / prefetch_l2

Function prefetch_l2

include/rabitqlib/utils/memory.hpp:95–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93 __builtin_prefetch(addr, 0, 3);
94#endif
95}
96
97static inline void prefetch_l2(const void* addr) {
98#if defined(__SSE2__)
99 _mm_prefetch((const char*)addr, _MM_HINT_T1);
100#else
101 __builtin_prefetch(addr, 0, 2);
102#endif
103}
104

Callers 1

mem_prefetch_l2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected