fix(tulip): fix some SIMD issues

This commit is contained in:
2026-11-22 15:12:19 +01:00
parent 3a27df500e
commit f98615fea4
4 changed files with 11 additions and 9 deletions
+3 -3
View File
@@ -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