35 #ifndef _BLAZE_MATH_INTRINSICS_STORE_H_
36 #define _BLAZE_MATH_INTRINSICS_STORE_H_
78 template<
typename T >
85 _mm256_store_si256( reinterpret_cast<__m256i*>( address ), value.value );
87 _mm_store_si128( reinterpret_cast<__m128i*>( address ), value.value );
89 *address = value.value;
107 template<
typename T >
114 _mm512_store_epi32( address, value.value );
115 #elif BLAZE_AVX2_MODE
116 _mm256_store_si256( reinterpret_cast<__m256i*>( address ), value.value );
117 #elif BLAZE_SSE2_MODE
118 _mm_store_si128( reinterpret_cast<__m128i*>( address ), value.value );
120 *address = value.value;
138 template<
typename T >
145 _mm512_store_epi64( address, value.value );
146 #elif BLAZE_AVX2_MODE
147 _mm256_store_si256( reinterpret_cast<__m256i*>( address ), value.value );
148 #elif BLAZE_SSE2_MODE
149 _mm_store_si128( reinterpret_cast<__m128i*>( address ), value.value );
151 *address = value.value;
174 _mm512_store_ps( address, value.value );
176 _mm256_store_ps( address, value.value );
178 _mm_store_ps( address, value.value );
180 *address = value.value;
203 _mm512_store_pd( address, value.value );
205 _mm256_store_pd( address, value.value );
206 #elif BLAZE_SSE2_MODE
207 _mm_store_pd( address, value.value );
209 *address = value.value;
233 _mm512_store_ps( reinterpret_cast<float*>( address ), value.value );
235 _mm256_store_ps( reinterpret_cast<float*>( address ), value.value );
237 _mm_store_ps( reinterpret_cast<float*>( address ), value.value );
239 *address = value.value;
263 _mm512_store_pd( reinterpret_cast<double*>( address ), value.value );
265 _mm256_store_pd( reinterpret_cast<double*>( address ), value.value );
266 #elif BLAZE_SSE2_MODE
267 _mm_store_pd( reinterpret_cast<double*>( address ), value.value );
269 *address = value.value;
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.
Intrinsic type for 64-bit integral data values.
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 16-bit integral data values.
Intrinsic type for 32-bit single precision floating point data values.
BLAZE_ALWAYS_INLINE EnableIf< And< IsIntegral< T >, HasSize< T, 2UL > > >::Type store(T *address, const sse_int16_t &value)
Aligned store of a vector of 2-byte integral values.
Definition: Store.h:80
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.
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.
Intrinsic type for 32-bit integral data values.
#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.
#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