35 #ifndef _BLAZE_SYSTEM_VECTORIZATION_H_
36 #define _BLAZE_SYSTEM_VECTORIZATION_H_
64 #if BLAZE_USE_VECTORIZATION && ( defined(__SSE__) || ( _M_IX86_FP > 0 ) )
65 # define BLAZE_SSE_MODE 1
67 # define BLAZE_SSE_MODE 0
81 #if BLAZE_USE_VECTORIZATION && ( defined(__SSE2__) || ( _M_IX86_FP > 1 ) )
82 # define BLAZE_SSE2_MODE 1
84 # define BLAZE_SSE2_MODE 0
98 #if BLAZE_USE_VECTORIZATION && defined(__SSE3__)
99 # define BLAZE_SSE3_MODE 1
101 # define BLAZE_SSE3_MODE 0
115 #if BLAZE_USE_VECTORIZATION && defined(__SSSE3__)
116 # define BLAZE_SSSE3_MODE 1
118 # define BLAZE_SSSE3_MODE 0
132 #if BLAZE_USE_VECTORIZATION && ( defined(__SSE4_2__) || defined(__SSE4_1__) )
133 # define BLAZE_SSE4_MODE 1
135 # define BLAZE_SSE4_MODE 0
149 #if BLAZE_USE_VECTORIZATION && defined(__AVX__)
150 # define BLAZE_AVX_MODE 1
152 # define BLAZE_AVX_MODE 0
166 #if BLAZE_USE_VECTORIZATION && defined(__AVX2__)
167 # define BLAZE_AVX2_MODE 1
169 # define BLAZE_AVX2_MODE 0
183 #if BLAZE_USE_VECTORIZATION && defined(__MIC__)
184 # define BLAZE_MIC_MODE 1
186 # define BLAZE_MIC_MODE 0
223 #if BLAZE_MIC_MODE || BLAZE_AVX_MODE || BLAZE_AVX2_MODE
224 # include <immintrin.h>
225 #elif BLAZE_SSE4_MODE
226 # include <smmintrin.h>
227 #elif BLAZE_SSSE3_MODE
228 # include <tmmintrin.h>
229 #elif BLAZE_SSE3_MODE
230 # include <pmmintrin.h>
231 #elif BLAZE_SSE2_MODE
232 # include <emmintrin.h>
234 # include <xmmintrin.h>
#define BLAZE_AVX2_MODE
Compilation switch for the AVX2 mode.This compilation switch enables/disables the AVX2 mode...
Definition: Vectorization.h:169
#define BLAZE_SSE3_MODE
Compilation switch for the SSE3 mode.This compilation switch enables/disables the SSE3 mode...
Definition: Vectorization.h:101
#define BLAZE_SSSE3_MODE
Compilation switch for the SSSE3 mode.This compilation switch enables/disables the SSSE3 mode...
Definition: Vectorization.h:118
#define BLAZE_SSE_MODE
Compilation switch for the SSE mode.This compilation switch enables/disables the SSE mode...
Definition: Vectorization.h:67
#define BLAZE_SSE4_MODE
Compilation switch for the SSE4 mode.This compilation switch enables/disables the SSE4 mode...
Definition: Vectorization.h:135
#define BLAZE_AVX_MODE
Compilation switch for the AVX mode.This compilation switch enables/disables the AVX mode...
Definition: Vectorization.h:152
Configuration of the vectorization policy of the Blaze library.
#define BLAZE_SSE2_MODE
Compilation switch for the SSE2 mode.This compilation switch enables/disables the SSE2 mode...
Definition: Vectorization.h:84
#define BLAZE_STATIC_ASSERT(expr)
Compile time assertion macro.In case of an invalid compile time expression, a compilation error is cr...
Definition: StaticAssert.h:143