]> wimlib.net Git - wimlib/blobdiff - include/wimlib/compiler.h
Split prefetch() into prefetchr() and prefetchw()
[wimlib] / include / wimlib / compiler.h
index 72c100a286fd9315cccebe5c76921c1faa815f6d..1ea66968b10b6cbad675bcb55d55e823f95088a8 100644 (file)
 #  define unlikely(expr)       (expr)
 #endif
 
-#ifndef prefetch
-#  define prefetch(addr)
+/* prefetchr() - prefetch into L1 cache for read  */
+#ifndef prefetchr
+#  define prefetchr(addr)
+#endif
+
+/* prefetchw() - prefetch into L1 cache for write  */
+#ifndef prefetchw
+#  define prefetchw(addr)
 #endif
 
 #ifndef _cold_attribute