35 #ifndef _BLAZE_MATH_INTRINSICS_STREAM_H_
36 #define _BLAZE_MATH_INTRINSICS_STREAM_H_
92 template<
typename T >
97 typedef sse_int16_t Type;
106 _mm256_stream_si256( reinterpret_cast<__m256i*>( address ), value.value );
107 #elif BLAZE_SSE2_MODE
108 _mm_stream_si128( reinterpret_cast<__m128i*>( address ), value.value );
110 *address = value.value;
129 template<
typename T >
134 typedef sse_int32_t Type;
143 _mm512_store_epi32( address, value.value );
144 #elif BLAZE_AVX2_MODE
145 _mm256_stream_si256( reinterpret_cast<__m256i*>( address ), value.value );
146 #elif BLAZE_SSE2_MODE
147 _mm_stream_si128( reinterpret_cast<__m128i*>( address ), value.value );
149 *address = value.value;
168 template<
typename T >
173 typedef sse_int64_t Type;
182 _mm512_store_epi64( address, value.value );
183 #elif BLAZE_AVX2_MODE
184 _mm256_stream_si256( reinterpret_cast<__m256i*>( address ), value.value );
185 #elif BLAZE_SSE2_MODE
186 _mm_stream_si128( reinterpret_cast<__m128i*>( address ), value.value );
188 *address = value.value;
218 template<
typename T >
220 stream( T* address,
const typename Stream<T,
sizeof(T)>::Type& value )
240 _mm512_storenr_ps( address, value.value );
242 _mm256_stream_ps( address, value.value );
244 _mm_stream_ps( address, value.value );
246 *address = value.value;
265 _mm512_storenr_pd( address, value.value );
267 _mm256_stream_pd( address, value.value );
268 #elif BLAZE_SSE2_MODE
269 _mm_stream_pd( address, value.value );
271 *address = value.value;
291 _mm512_storenr_ps( reinterpret_cast<float*>( address ), value.value );
293 _mm256_stream_ps( reinterpret_cast<float*>( address ), value.value );
295 _mm_stream_ps( reinterpret_cast<float*>( address ), value.value );
297 *address = value.value;
317 _mm512_storenr_pd( reinterpret_cast<double*>( address ), value.value );
319 _mm256_stream_pd( reinterpret_cast<double*>( address ), value.value );
320 #elif BLAZE_SSE2_MODE
321 _mm_stream_pd( reinterpret_cast<double*>( address ), value.value );
323 *address = value.value;
Intrinsic type for 32-bit single precision complex values.
BLAZE_ALWAYS_INLINE EnableIf< IsIntegral< T > >::Type stream(T *address, const typename Stream< T, sizeof(T)>::Type &value)
Aligned, non-temporal store of a vector of integral values.
Definition: Stream.h:220
#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
#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.
BLAZE_ALWAYS_INLINE void stream(complex< double > *address, const sse_cdouble_t &value)
Aligned, non-temporal store of a vector of 'complex' values.
Definition: Stream.h:311
bool checkAlignment(const T *address)
Checks the alignment of the given.
Definition: AlignmentCheck.h:68
Header file for the alignment check function.
Header file for basic type definitions.
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