fix simd<double,2>

This commit is contained in:
Joachim Schöberl 2017-11-27 10:26:38 +01:00
parent 25ba2f7a54
commit 17c35f0640

View File

@ -311,7 +311,7 @@ using std::fabs;
template<typename T, typename std::enable_if<std::is_convertible<T, std::function<double(int)>>::value, int>::type = 0>
SIMD (const T & func)
{
data = _mm_set_pd(func(3), func(2), func(1), func(0));
data = _mm_set_pd(func(1), func(0));
}
// only called if T is arithmetic (integral or floating point types)