diff options
author | Derek Mauro <dmauro@google.com> | 2022-12-11 16:43:28 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-12-11 16:44:18 -0800 |
commit | ff5644bb34333d2ad7f1abf421d57bda155398e7 (patch) | |
tree | e2fc6335996cb5d96d871e67c0411c8c104233d4 /absl/crc/internal/crc_x86_arm_combined.cc | |
parent | 0b8e676c1b83b157786b4766362fd647b5c59e0d (diff) |
Allow Cord to store chunked checksums
PiperOrigin-RevId: 494587777
Change-Id: I41504edca6fcf750d52602fa84a33bc7fe5fbb48
Diffstat (limited to 'absl/crc/internal/crc_x86_arm_combined.cc')
-rw-r--r-- | absl/crc/internal/crc_x86_arm_combined.cc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/absl/crc/internal/crc_x86_arm_combined.cc b/absl/crc/internal/crc_x86_arm_combined.cc index 2112f609..f6e6aacb 100644 --- a/absl/crc/internal/crc_x86_arm_combined.cc +++ b/absl/crc/internal/crc_x86_arm_combined.cc @@ -29,13 +29,8 @@ #include "absl/memory/memory.h" #include "absl/numeric/bits.h" -#if defined(__aarch64__) && defined(__LITTLE_ENDIAN__) && \ - defined(__ARM_FEATURE_CRC32) && defined(__ARM_NEON) -#define ABSL_INTERNAL_CAN_USE_SIMD_CRC32C -#elif defined(__SSE4_2__) && defined(__PCLMUL__) -#define ABSL_INTERNAL_CAN_USE_SIMD_CRC32C -#elif defined(_MSC_VER) && defined(__AVX__) -// MSVC AVX support (/arch:AVX) implies SSE 4.2 and PCLMUL support. +#if defined(ABSL_CRC_INTERNAL_HAVE_ARM_SIMD) || \ + defined(ABSL_CRC_INTERNAL_HAVE_X86_SIMD) #define ABSL_INTERNAL_CAN_USE_SIMD_CRC32C #endif |