fix_avx_usage.patch 410 B

1234567891011
  1. --- a/snappy.cc
  2. +++ b/snappy.cc
  3. @@ -60,7 +60,7 @@
  4. #endif
  5. #endif // !defined(SNAPPY_HAVE_NEON_CRC32)
  6. -#if SNAPPY_HAVE_BMI2 || SNAPPY_HAVE_X86_CRC32
  7. +#if SNAPPY_HAVE_BMI2 || SNAPPY_HAVE_X86_CRC32 || (defined(__x86_64__) && defined(__AVX__))
  8. // Please do not replace with <x86intrin.h>. or with headers that assume more
  9. // advanced SSE versions without checking with all the OWNERS.
  10. #include <immintrin.h>