35 #ifndef _BLAZE_MATH_INTRINSICS_STORE_H_
36 #define _BLAZE_MATH_INTRINSICS_STORE_H_
91 template<
typename T >
96 typedef sse_int16_t Type;
100 static inline void store( T* address,
const Type& value )
105 _mm256_store_si256( reinterpret_cast<__m256i*>( address ), value.value );
106 #elif BLAZE_SSE2_MODE
107 _mm_store_si128( reinterpret_cast<__m128i*>( address ), value.value );
109 *address = value.value;
128 template<
typename T >
133 typedef sse_int32_t Type;
137 static inline void store( T* address,
const Type& value )
142 _mm512_store_epi32( address, value.value );
143 #elif BLAZE_AVX2_MODE
144 _mm256_store_si256( reinterpret_cast<__m256i*>( address ), value.value );
145 #elif BLAZE_SSE2_MODE
146 _mm_store_si128( reinterpret_cast<__m128i*>( address ), value.value );
148 *address = value.value;
167 template<
typename T >
172 typedef sse_int64_t Type;
176 static inline void store( T* address,
const Type& value )
181 _mm512_store_epi64( address, value.value );
182 #elif BLAZE_AVX2_MODE
183 _mm256_store_si256( reinterpret_cast<__m256i*>( address ), value.value );
184 #elif BLAZE_SSE2_MODE
185 _mm_store_si128( reinterpret_cast<__m128i*>( address ), value.value );
187 *address = value.value;
221 template<
typename T >
222 inline typename EnableIf< IsIntegral<T> >::Type
223 store( T* address,
const typename Store<T,
sizeof(T)>::Type& value )
247 _mm512_store_ps( address, value.value );
249 _mm256_store_ps( address, value.value );
251 _mm_store_ps( address, value.value );
253 *address = value.value;
276 _mm512_store_pd( address, value.value );
278 _mm256_store_pd( address, value.value );
279 #elif BLAZE_SSE2_MODE
280 _mm_store_pd( address, value.value );
282 *address = value.value;
306 _mm512_store_ps( reinterpret_cast<float*>( address ), value.value );
308 _mm256_store_ps( reinterpret_cast<float*>( address ), value.value );
310 _mm_store_ps( reinterpret_cast<float*>( address ), value.value );
312 *address = value.value;
336 _mm512_store_pd( reinterpret_cast<double*>( address ), value.value );
338 _mm256_store_pd( reinterpret_cast<double*>( address ), value.value );
339 #elif BLAZE_SSE2_MODE
340 _mm_store_pd( reinterpret_cast<double*>( address ), value.value );
342 *address = value.value;
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.
bool checkAlignment(const T *address)
Checks the alignment of the given.
Definition: AlignmentCheck.h:68
Header file for the alignment check function.
System settings for the SSE mode.
Header file for the complex data type.
#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
#define BLAZE_INTERNAL_ASSERT(expr, msg)
Run time assertion macro for internal checks.In case of an invalid run time expression, the program execution is terminated. The BLAZE_INTERNAL_ASSERT macro can be disabled by setting the BLAZE_USER_ASSERTION flag to zero or by defining NDEBUG during the compilation.
Definition: Assert.h:101
void store(float *address, const sse_float_t &value)
Aligned store of a vector of 'float' values.
Definition: Store.h:242