35 #ifndef _BLAZE_SYSTEM_VECTORIZATION_H_
36 #define _BLAZE_SYSTEM_VECTORIZATION_H_
63 #if BLAZE_USE_VECTORIZATION && ( defined(__SSE__) || ( _M_IX86_FP > 0 ) )
64 # define BLAZE_SSE_MODE 1
66 # define BLAZE_SSE_MODE 0
80 #if BLAZE_USE_VECTORIZATION && ( defined(__SSE2__) || ( _M_IX86_FP > 1 ) )
81 # define BLAZE_SSE2_MODE 1
83 # define BLAZE_SSE2_MODE 0
97 #if BLAZE_USE_VECTORIZATION && defined(__SSE3__)
98 # define BLAZE_SSE3_MODE 1
100 # define BLAZE_SSE3_MODE 0
114 #if BLAZE_USE_VECTORIZATION && defined(__SSSE3__)
115 # define BLAZE_SSSE3_MODE 1
117 # define BLAZE_SSSE3_MODE 0
131 #if BLAZE_USE_VECTORIZATION && ( defined(__SSE4_2__) || defined(__SSE4_1__) )
132 # define BLAZE_SSE4_MODE 1
134 # define BLAZE_SSE4_MODE 0
148 #if BLAZE_USE_VECTORIZATION && defined(__AVX__)
149 # define BLAZE_AVX_MODE 1
151 # define BLAZE_AVX_MODE 0
165 #if BLAZE_USE_VECTORIZATION && defined(__AVX2__)
166 # define BLAZE_AVX2_MODE 1
168 # define BLAZE_AVX2_MODE 0
182 #if BLAZE_USE_VECTORIZATION && defined(__MIC__)
183 # define BLAZE_MIC_MODE 1
185 # define BLAZE_MIC_MODE 0
222 #if BLAZE_MIC_MODE || BLAZE_AVX_MODE || BLAZE_AVX2_MODE
223 # include <immintrin.h>
224 #elif BLAZE_SSE4_MODE
225 # include <smmintrin.h>
226 #elif BLAZE_SSSE3_MODE
227 # include <tmmintrin.h>
228 #elif BLAZE_SSE3_MODE
229 # include <pmmintrin.h>
230 #elif BLAZE_SSE2_MODE
231 # include <emmintrin.h>
233 # include <xmmintrin.h>
#define BLAZE_AVX2_MODE
Compilation switch for the AVX2 mode.This compilation switch enables/disables the AVX2 mode...
Definition: Vectorization.h:168
#define BLAZE_SSE3_MODE
Compilation switch for the SSE3 mode.This compilation switch enables/disables the SSE3 mode...
Definition: Vectorization.h:100
#define BLAZE_SSSE3_MODE
Compilation switch for the SSSE3 mode.This compilation switch enables/disables the SSSE3 mode...
Definition: Vectorization.h:117
#define BLAZE_SSE_MODE
Compilation switch for the SSE mode.This compilation switch enables/disables the SSE mode...
Definition: Vectorization.h:66
#define BLAZE_SSE4_MODE
Compilation switch for the SSE4 mode.This compilation switch enables/disables the SSE4 mode...
Definition: Vectorization.h:134
#define BLAZE_AVX_MODE
Compilation switch for the AVX mode.This compilation switch enables/disables the AVX mode...
Definition: Vectorization.h:151
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:83
#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