fix(tulip): fix some SIMD issues
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user