summaryrefslogtreecommitdiff
path: root/absl/crc
diff options
context:
space:
mode:
authorGravatar Saran Tunyasuvunakool <stunya@google.com>2023-02-07 08:35:38 -0800
committerGravatar Copybara-Service <copybara-worker@google.com>2023-02-07 08:36:23 -0800
commitf8fa267ec230b8577507b3798ac234999b72f348 (patch)
treec754e8052783b6a09661eb4eafbd03d70383400e /absl/crc
parent92fc445f7c0d8158c5f26abab9049fcfbcd0ccff (diff)
Don't assume that AVX implies PCLMULQDQ when using LLVM on Windows.
PiperOrigin-RevId: 507790741 Change-Id: I347357f9a2d698510f29b7d1b065ef73f9289292
Diffstat (limited to 'absl/crc')
-rw-r--r--absl/crc/internal/crc32_x86_arm_combined_simd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/crc/internal/crc32_x86_arm_combined_simd.h b/absl/crc/internal/crc32_x86_arm_combined_simd.h
index fb643986..39e53dd0 100644
--- a/absl/crc/internal/crc32_x86_arm_combined_simd.h
+++ b/absl/crc/internal/crc32_x86_arm_combined_simd.h
@@ -33,7 +33,7 @@
#include <x86intrin.h>
#define ABSL_CRC_INTERNAL_HAVE_X86_SIMD
-#elif defined(_MSC_VER) && defined(__AVX__)
+#elif defined(_MSC_VER) && !defined(__clang__) && defined(__AVX__)
// MSVC AVX (/arch:AVX) implies SSE 4.2 and PCLMULQDQ.
#include <intrin.h>