feat(tulip): implement some more SIMD
This commit is contained in:
@@ -17,7 +17,12 @@ struct traits<float, avx_isa> {
|
||||
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 broadcast(float value) noexcept { return _mm_set1_ps(value); }
|
||||
|
||||
static pack_type add(pack_type lhs, pack_type rhs) noexcept { return _mm_add_ps(lhs, rhs); }
|
||||
static pack_type sub(pack_type lhs, pack_type rhs) noexcept { return _mm_sub_ps(lhs, rhs); }
|
||||
static pack_type mul(pack_type lhs, pack_type rhs) noexcept { return _mm_mul_ps(lhs, rhs); }
|
||||
static pack_type div(pack_type lhs, pack_type rhs) noexcept { return _mm_div_ps(lhs, rhs); }
|
||||
};
|
||||
#endif // TULIP_AVX_SUPPORTED
|
||||
|
||||
|
||||
Reference in New Issue
Block a user