]> wimlib.net Git - wimlib/blobdiff - include/wimlib/compiler.h
Add experimental support for Windows VSS
[wimlib] / include / wimlib / compiler.h
index 72c100a286fd9315cccebe5c76921c1faa815f6d..222f889bb7c308a7c37fe93e0bdc6e9b92ecaec3 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
 #  define STATIC_ASSERT(expr)  ((void)sizeof(char[1 - 2 * !(expr)]))
 #endif
 
+#define CONCAT_IMPL(s1, s2)    s1##s2
+
+/* CONCAT() - concatenate two tokens at preprocessing time.  */
+#define CONCAT(s1, s2)         CONCAT_IMPL(s1, s2)
+
 #endif /* _WIMLIB_COMPILER_H */