fix(tulip): fix some SIMD issues
This commit is contained in:
@@ -26,10 +26,10 @@ struct traits<double, avx2_isa> {
|
||||
|
||||
static constexpr std::size_t width = 4;
|
||||
|
||||
static pack_type load(const double* ptr) noexcept { return _mm256d_loadu_ps(ptr); }
|
||||
static void store(double* ptr, pack_type value) noexcept { _mm256d_storeu_ps(ptr, value); }
|
||||
static pack_type load(const double* ptr) noexcept { return _mm256_loadu_pd(ptr); }
|
||||
static void store(double* ptr, pack_type value) noexcept { _mm256_storeu_pd(ptr, value); }
|
||||
|
||||
static pack_type add(pack_type lhs, pack_type rhs) noexcept { return _mm256d_add_ps(lhs, rhs); }
|
||||
static pack_type add(pack_type lhs, pack_type rhs) noexcept { return _mm256_add_pd(lhs, rhs); }
|
||||
};
|
||||
#endif // TULIP_AVX2_SUPPORTED
|
||||
|
||||
|
||||
Reference in New Issue
Block a user