MCPcopy Create free account
hub / github.com/F-Stack/f-stack / prefetch2cachelines

Function prefetch2cachelines

freebsd/net/iflib.c:1358–1365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1356 __asm volatile("prefetcht0 %0" :: "m" (*(unsigned long *)x));
1357}
1358static __inline void
1359prefetch2cachelines(void *x)
1360{
1361 __asm volatile("prefetcht0 %0" :: "m" (*(unsigned long *)x));
1362#if (CACHE_LINE_SIZE < 128)
1363 __asm volatile("prefetcht0 %0" :: "m" (*(((unsigned long *)x)+CACHE_LINE_SIZE/(sizeof(unsigned long)))));
1364#endif
1365}
1366#else
1367#define prefetch(x)
1368#define prefetch2cachelines(x)

Callers 1

_ring_peek_oneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected