| 1356 | __asm volatile("prefetcht0 %0" :: "m" (*(unsigned long *)x)); |
| 1357 | } |
| 1358 | static __inline void |
| 1359 | prefetch2cachelines(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) |