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
@@ -14,10 +14,10 @@ struct traits<float, avx_isa> {
static constexpr std::size_t width = 4;
static pack_type load(const float* ptr) noexcept { return _mm128_loadu_ps(ptr); }
static void store(float* ptr, pack_type value) noexcept { _mm128_storeu_ps(ptr, value); }
static pack_type load(const float* ptr) noexcept { return _mm_loadu_ps(ptr); }
static void store(float* ptr, pack_type value) noexcept { _mm_storeu_ps(ptr, value); }
static pack_type add(pack_type lhs, pack_type rhs) noexcept { return _mm128_add_ps(lhs, rhs); }
static pack_type add(pack_type lhs, pack_type rhs) noexcept { return _mm_add_ps(lhs, rhs); }
};
#endif // TULIP_AVX_SUPPORTED