Removed ei_pload1, use posix_memalign to allocate aligned memory,

and make Product ok when only one side is vectorizable (and the product
is still vectorized)
This commit is contained in:
Gael Guennebaud
2008-05-02 13:30:12 +00:00
parent e19f9bc523
commit 102e029dad
4 changed files with 73 additions and 35 deletions

View File

@@ -90,10 +90,6 @@ inline __m128 ei_pload(const float* from) { return _mm_load_ps(from); }
inline __m128d ei_pload(const double* from) { return _mm_load_pd(from); }
inline __m128i ei_pload(const int* from) { return _mm_load_si128(reinterpret_cast<const __m128i*>(from)); }
inline __m128 ei_pload1(const float* from) { return _mm_load1_ps(from); }
inline __m128d ei_pload1(const double* from) { return _mm_load1_pd(from); }
inline __m128i ei_pload1(const int* from) { return _mm_set1_epi32(*from); }
inline __m128 ei_pset1(const float& from) { return _mm_set1_ps(from); }
inline __m128d ei_pset1(const double& from) { return _mm_set1_pd(from); }
inline __m128i ei_pset1(const int& from) { return _mm_set1_epi32(from); }