add BUILD_AVX2 definition, enable non-AVX2 building selectively

This commit is contained in:
Konstantinos Margaritis
2021-02-15 13:46:30 +02:00
committed by Konstantinos Margaritis
parent c078d355b6
commit 814045201f
5 changed files with 87 additions and 70 deletions

View File

@@ -48,12 +48,12 @@
#define HAVE_SIMD_128_BITS
#endif
#if defined(__AVX__)
#if defined(__AVX__) && defined(BUILD_AVX2)
#define HAVE_AVX
#define HAVE_SIMD_256_BITS
#endif
#if defined(__AVX2__)
#if defined(__AVX2__) && defined(BUILD_AVX2)
#define HAVE_AVX2
#define HAVE_SIMD_256_BITS
#endif