35 #ifndef _BLAZE_MATH_INTRINSICS_SET_H_
36 #define _BLAZE_MATH_INTRINSICS_SET_H_
71 template<
typename T >
72 BLAZE_ALWAYS_INLINE typename EnableIf< And< IsIntegral<T>, HasSize<T,2UL> >, sse_int16_t >::Type
76 return _mm256_set1_epi16( value );
78 return _mm_set1_epi16( value );
93 template<
typename T >
94 BLAZE_ALWAYS_INLINE typename EnableIf< And< IsIntegral<T>, HasSize<T,4UL> >, sse_int32_t >::Type
98 return _mm512_set1_epi32( value );
100 return _mm256_set1_epi32( value );
101 #elif BLAZE_SSE2_MODE
102 return _mm_set1_epi32( value );
117 template<
typename T >
118 BLAZE_ALWAYS_INLINE typename EnableIf< And< IsIntegral<T>, HasSize<T,8UL> >, sse_int64_t >::Type
122 return _mm512_set1_epi64( value );
123 #elif BLAZE_AVX2_MODE
124 return _mm256_set1_epi64x( value );
125 #elif BLAZE_SSE2_MODE
126 return _mm_set1_epi64( value );
144 return _mm512_set1_ps( value );
146 return _mm256_set1_ps( value );
148 return _mm_set1_ps( value );
166 return _mm512_set1_pd( value );
168 return _mm256_set1_pd( value );
169 #elif BLAZE_SSE2_MODE
170 return _mm_set1_pd( value );
188 return _mm512_set_ps( value.imag(), value.real(), value.imag(), value.real(),
189 value.imag(), value.real(), value.imag(), value.real(),
190 value.imag(), value.real(), value.imag(), value.real(),
191 value.imag(), value.real(), value.imag(), value.real() );
193 return _mm256_set_ps( value.imag(), value.real(), value.imag(), value.real(),
194 value.imag(), value.real(), value.imag(), value.real() );
196 return _mm_set_ps( value.imag(), value.real(), value.imag(), value.real() );
215 return _mm512_set_pd( value.imag(), value.real(), value.imag(), value.real(),
216 value.imag(), value.real(), value.imag(), value.real() );
218 return _mm256_set_pd( value.imag(), value.real(), value.imag(), value.real() );
219 #elif BLAZE_SSE2_MODE
220 return _mm_set_pd( value.imag(), value.real() );
Intrinsic type for 32-bit single precision complex values.
Header file for basic type definitions.
Header file for the IsIntegral type trait.
Header file for the And class template.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition: Inline.h:85
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.
Header file for the HasSize type trait.
BLAZE_ALWAYS_INLINE EnableIf< And< IsIntegral< T >, HasSize< T, 2UL > >, sse_int16_t >::Type set(T value)
Sets all values in the vector to the given 2-byte integral value.
Definition: Set.h:73
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
System settings for the inline keywords.