X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=include%2Fwimlib%2Fcompiler.h;h=1ea66968b10b6cbad675bcb55d55e823f95088a8;hp=72c100a286fd9315cccebe5c76921c1faa815f6d;hb=de58d5f57732df8129fbfd71d46ae5968ac59646;hpb=2fed42ae0eee69e6352425c29ca2b12af99f8992 diff --git a/include/wimlib/compiler.h b/include/wimlib/compiler.h index 72c100a2..1ea66968 100644 --- a/include/wimlib/compiler.h +++ b/include/wimlib/compiler.h @@ -38,8 +38,14 @@ # 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