35 #ifndef _BLAZE_MATH_INTRINSICS_SET_H_
36 #define _BLAZE_MATH_INTRINSICS_SET_H_
88 template<
typename T >
93 typedef sse_int16_t Type;
97 static inline Type
set( T value )
100 return _mm256_set1_epi16( value );
101 #elif BLAZE_SSE2_MODE
102 return _mm_set1_epi16( value );
123 template<
typename T >
128 typedef sse_int32_t Type;
132 static inline Type
set( T value )
135 return _mm512_set1_epi32( value );
136 #elif BLAZE_AVX2_MODE
137 return _mm256_set1_epi32( value );
138 #elif BLAZE_SSE2_MODE
139 return _mm_set1_epi32( value );
160 template<
typename T >
165 typedef sse_int64_t Type;
169 static inline Type
set( T value )
172 return _mm512_set1_epi64( value );
173 #elif BLAZE_AVX2_MODE
174 return _mm256_set1_epi64x( value );
175 #elif BLAZE_SSE2_MODE
176 return _mm_set1_epi64( value );
207 template<
typename T >
208 inline typename EnableIf< IsIntegral<T>, Set<T,sizeof(T)> >::Type::Type
226 return _mm512_set1_ps( value );
228 return _mm256_set1_ps( value );
230 return _mm_set1_ps( value );
248 return _mm512_set1_pd( value );
250 return _mm256_set1_pd( value );
251 #elif BLAZE_SSE2_MODE
252 return _mm_set1_pd( value );
270 return _mm512_set_ps( value.imag(), value.real(), value.imag(), value.real(),
271 value.imag(), value.real(), value.imag(), value.real(),
272 value.imag(), value.real(), value.imag(), value.real(),
273 value.imag(), value.real(), value.imag(), value.real() );
275 return _mm256_set_ps( value.imag(), value.real(), value.imag(), value.real(),
276 value.imag(), value.real(), value.imag(), value.real() );
278 return _mm_set_ps( value.imag(), value.real(), value.imag(), value.real() );
297 return _mm512_set_pd( value.imag(), value.real(), value.imag(), value.real(),
298 value.imag(), value.real(), value.imag(), value.real() );
300 return _mm256_set_pd( value.imag(), value.real(), value.imag(), value.real() );
301 #elif BLAZE_SSE2_MODE
302 return _mm_set_pd( value.imag(), value.real() );
Intrinsic type for 32-bit single precision complex values.
#define BLAZE_CONSTRAINT_MUST_BE_INTEGRAL_TYPE(T)
Constraint on the data type.In case the given data type T is not an integral data type...
Definition: Integral.h:78
Intrinsic type for 32-bit single precision floating point data values.
Intrinsic type for 64-bit double precision complex values.
Constraint on the data type.
Header file for the EnableIf class template.
Intrinsic type for 64-bit double precision floating point data values.
Header file for the basic intrinsic types.
Header file for run time assertion macros.
System settings for the SSE mode.
#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
EnableIf< IsIntegral< T >, Set< T, sizeof(T)> >::Type::Type set(T value)
Sets all values in the vector to the given integral value.
Definition: Set.h:209