summaryrefslogtreecommitdiff
path: root/absl
diff options
context:
space:
mode:
authorGravatar Derek Mauro <dmauro@google.com>2023-11-28 09:36:00 -0800
committerGravatar Copybara-Service <copybara-worker@google.com>2023-11-28 09:36:47 -0800
commit8028a87c96df0fff5ab58daeec30c43ce6fb0d20 (patch)
tree5344475c30f1f255b3a442179496f21f3451af10 /absl
parent0c09fd0ff0d502c30831ff2ccf59894e36d2b60a (diff)
Avoid #pragma intrinsic(_mm_prefetch) on Arm64EC (and other platforms
without SSE) Closes #1575 PiperOrigin-RevId: 586009018 Change-Id: Icc34c1201268303dde96bfbb067506b861754b3a
Diffstat (limited to 'absl')
-rw-r--r--absl/base/prefetch.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/absl/base/prefetch.h b/absl/base/prefetch.h
index 98b3bf96..eb40a445 100644
--- a/absl/base/prefetch.h
+++ b/absl/base/prefetch.h
@@ -31,11 +31,12 @@
#include <xmmintrin.h>
#endif
-#if defined(_MSC_VER) && _MSC_VER >= 1900 && \
- (defined(_M_X64) || defined(_M_IX86))
+#if defined(_MSC_VER)
#include <intrin.h>
+#if defined(ABSL_INTERNAL_HAVE_SSE)
#pragma intrinsic(_mm_prefetch)
#endif
+#endif
namespace absl {
ABSL_NAMESPACE_BEGIN