Closed AlexGuteniev closed 4 years ago
For Visual Studio:
_M_IX86_FP
__AVX__
__AVX2__
So libdivide could have something like:
#if defined(_MSC_VER) && defined(__AVX2__) #define LIBDIVIDE_AVX2
Maybe other compilers also expose compilation against specific instruction set via preprocessor
We already discussed in https://github.com/ridiculousfish/libdivide/issues/34 why we don't enable SSE2 by default.
For Visual Studio:
_M_IX86_FP
predefined macro (distinguish SSE2),__AVX__
,__AVX2__
, and others. See Predefined macrosSo libdivide could have something like:
Maybe other compilers also expose compilation against specific instruction set via preprocessor