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

Function prefetch_l1

include/rabitqlib/utils/memory.hpp:87–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85 }
86 return static_cast<T*>(ptr);
87}
88
89static inline void prefetch_l1(const void* addr) {
90#if defined(__SSE2__)
91 _mm_prefetch(addr, _MM_HINT_T0);
92#else
93 __builtin_prefetch(addr, 0, 3);
94#endif
95}
96

Callers 1

mem_prefetch_l1Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected