mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-16 17:31:51 +03:00
add BUILD_AVX2 definition, enable non-AVX2 building selectively
This commit is contained in:
committed by
Konstantinos Margaritis
parent
d602a78f22
commit
71c59a95e9
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user