35 #ifndef _BLAZE_MATH_INTRINSICS_LOAD_H_
36 #define _BLAZE_MATH_INTRINSICS_LOAD_H_
77 template<
typename T >
78 BLAZE_ALWAYS_INLINE typename EnableIf< And< IsIntegral<T>, HasSize<T,2UL> >, sse_int16_t >::Type
84 return _mm256_load_si256( reinterpret_cast<const __m256i*>( address ) );
86 return _mm_load_si128( reinterpret_cast<const __m128i*>( address ) );
105 template<
typename T >
106 BLAZE_ALWAYS_INLINE typename EnableIf< And< IsIntegral<T>, HasSize<T,4UL> >, sse_int32_t >::Type
112 return _mm512_load_epi32( address );
113 #elif BLAZE_AVX2_MODE
114 return _mm256_load_si256( reinterpret_cast<const __m256i*>( address ) );
115 #elif BLAZE_SSE2_MODE
116 return _mm_load_si128( reinterpret_cast<const __m128i*>( address ) );
135 template<
typename T >
136 BLAZE_ALWAYS_INLINE typename EnableIf< And< IsIntegral<T>, HasSize<T,8UL> >, sse_int64_t >::Type
142 return _mm512_load_epi64( address );
143 #elif BLAZE_AVX2_MODE
144 return _mm256_load_si256( reinterpret_cast<const __m256i*>( address ) );
145 #elif BLAZE_SSE2_MODE
146 return _mm_load_si128( reinterpret_cast<const __m128i*>( address ) );
170 return _mm512_load_ps( address );
172 return _mm256_load_ps( address );
174 return _mm_load_ps( address );
198 return _mm512_load_pd( address );
200 return _mm256_load_pd( address );
201 #elif BLAZE_SSE2_MODE
202 return _mm_load_pd( address );
227 return _mm512_load_ps( reinterpret_cast<const float*>( address ) );
229 return _mm256_load_ps( reinterpret_cast<const float*>( address ) );
231 return _mm_load_ps( reinterpret_cast<const float*>( address ) );
256 return _mm512_load_pd( reinterpret_cast<const double*>( address ) );
258 return _mm256_load_pd( reinterpret_cast<const double*>( address ) );
259 #elif BLAZE_SSE2_MODE
260 return _mm_load_pd( reinterpret_cast<const double*>( address ) );
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.
BLAZE_ALWAYS_INLINE EnableIf< And< IsIntegral< T >, HasSize< T, 2UL > >, sse_int16_t >::Type load(const T *address)
Loads a vector of 2-byte integral values.
Definition: Load.h:79
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.
#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