summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_internal_defs.h
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2013-01-11 16:40:24 +0000
committerDmitry Vyukov <dvyukov@google.com>2013-01-11 16:40:24 +0000
commitb1bd208bfa496391085056b1709542b80dcfb21e (patch)
tree43dd4a9ec2d9002bd8d25923e6f25b2157148088 /lib/sanitizer_common/sanitizer_internal_defs.h
parentf99b94e19022f473b8de15a793801fd5deb5ba7e (diff)
downloadcompiler-rt-b1bd208bfa496391085056b1709542b80dcfb21e.tar.gz
compiler-rt-b1bd208bfa496391085056b1709542b80dcfb21e.tar.bz2
compiler-rt-b1bd208bfa496391085056b1709542b80dcfb21e.tar.xz
asan: add memory prefetch to quarantine recycle
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172216 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_internal_defs.h')
-rw-r--r--lib/sanitizer_common/sanitizer_internal_defs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sanitizer_common/sanitizer_internal_defs.h b/lib/sanitizer_common/sanitizer_internal_defs.h
index 2e56fac4..bd9e4620 100644
--- a/lib/sanitizer_common/sanitizer_internal_defs.h
+++ b/lib/sanitizer_common/sanitizer_internal_defs.h
@@ -38,6 +38,7 @@ using namespace __sanitizer; // NOLINT
# define UNLIKELY(x) (x)
# define UNUSED
# define USED
+# define PREFETCH(x) /* _mm_prefetch(x, _MM_HINT_NTA) */
#else // _MSC_VER
# define ALWAYS_INLINE __attribute__((always_inline))
# define ALIAS(x) __attribute__((alias(x)))
@@ -51,6 +52,7 @@ using namespace __sanitizer; // NOLINT
# define UNLIKELY(x) __builtin_expect(!!(x), 0)
# define UNUSED __attribute__((unused))
# define USED __attribute__((used))
+# define PREFETCH(x) __builtin_prefetch(x)
#endif // _MSC_VER
#if defined(_WIN32)