35 #ifndef _BLAZE_MATH_INTRINSICS_STOREA_H_
36 #define _BLAZE_MATH_INTRINSICS_STOREA_H_
76 template<
typename T >
83 _mm256_store_si256( reinterpret_cast<__m256i*>( address ), value.value );
85 _mm_store_si128( reinterpret_cast<__m128i*>( address ), value.value );
87 *address = value.value;
105 template<
typename T >
112 _mm512_store_epi32( address, value.value );
113 #elif BLAZE_AVX2_MODE
114 _mm256_store_si256( reinterpret_cast<__m256i*>( address ), value.value );
115 #elif BLAZE_SSE2_MODE
116 _mm_store_si128( reinterpret_cast<__m128i*>( address ), value.value );
118 *address = value.value;
136 template<
typename T >
143 _mm512_store_epi64( address, value.value );
144 #elif BLAZE_AVX2_MODE
145 _mm256_store_si256( reinterpret_cast<__m256i*>( address ), value.value );
146 #elif BLAZE_SSE2_MODE
147 _mm_store_si128( reinterpret_cast<__m128i*>( address ), value.value );
149 *address = value.value;
172 _mm512_store_ps( address, value.value );
174 _mm256_store_ps( address, value.value );
176 _mm_store_ps( address, value.value );
178 *address = value.value;
201 _mm512_store_pd( address, value.value );
203 _mm256_store_pd( address, value.value );
204 #elif BLAZE_SSE2_MODE
205 _mm_store_pd( address, value.value );
207 *address = value.value;
225 template<
typename T >
233 _mm256_store_si256( reinterpret_cast<__m256i*>( address ), value.value );
234 #elif BLAZE_SSE2_MODE
235 _mm_store_si128( reinterpret_cast<__m128i*>( address ), value.value );
237 *address = value.value;
255 template<
typename T >
263 _mm512_store_epi32( address, value.value );
264 #elif BLAZE_AVX2_MODE
265 _mm256_store_si256( reinterpret_cast<__m256i*>( address ), value.value );
266 #elif BLAZE_SSE2_MODE
267 _mm_store_si128( reinterpret_cast<__m128i*>( address ), value.value );
269 *address = value.value;
287 template<
typename T >
295 _mm512_store_epi64( address, value.value );
296 #elif BLAZE_AVX2_MODE
297 _mm256_store_si256( reinterpret_cast<__m256i*>( address ), value.value );
298 #elif BLAZE_SSE2_MODE
299 _mm_store_si128( reinterpret_cast<__m128i*>( address ), value.value );
301 *address = value.value;
325 _mm512_store_ps( reinterpret_cast<float*>( address ), value.value );
327 _mm256_store_ps( reinterpret_cast<float*>( address ), value.value );
329 _mm_store_ps( reinterpret_cast<float*>( address ), value.value );
331 *address = value.value;
355 _mm512_store_pd( reinterpret_cast<double*>( address ), value.value );
357 _mm256_store_pd( reinterpret_cast<double*>( address ), value.value );
358 #elif BLAZE_SSE2_MODE
359 _mm_store_pd( reinterpret_cast<double*>( address ), value.value );
361 *address = value.value;
Intrinsic type for 16-bit integral data values.
Header file for the IsIntegral type trait.
Header file for the And class template.
Intrinsic type for 64-bit double precision floating point 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
Header file for the EnableIf class template.
Header file for the basic intrinsic types.
Intrinsic type for 64-bit integral complex values.
Intrinsic type for 32-bit single precision floating point data values.
Header file for run time assertion macros.
Header file for the HasSize type trait.
Intrinsic type for 64-bit integral data values.
Intrinsic type for 32-bit integral complex values.
Intrinsic type for 64-bit double precision complex values.
BLAZE_ALWAYS_INLINE bool checkAlignment(const T *address)
Checks the alignment of the given address.
Definition: AlignmentCheck.h:68
Intrinsic type for 32-bit single precision complex values.
Intrinsic type for 16-bit integral complex values.
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
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
BLAZE_ALWAYS_INLINE EnableIf< And< IsIntegral< T >, HasSize< T, 2UL > > >::Type storea(T *address, const simd_int16_t &value)
Aligned store of a vector of 2-byte integral values.
Definition: Storea.h:78
Intrinsic type for 32-bit integral data values.