|
|
@@ -324,12 +324,12 @@ inline Vector<int32_t, 4> operator~(const Vector<int32_t, 4>& a) { |
|
|
|
|
|
|
|
/** `a << b` */ |
|
|
|
inline Vector<int32_t, 4> operator<<(const Vector<int32_t, 4>& a, const int& b) { |
|
|
|
return Vector<int32_t, 4>(_mm_slli_epi32(a.v, b)); |
|
|
|
return Vector<int32_t, 4>(_mm_sll_epi32(a.v, _mm_cvtsi32_si128(b))); |
|
|
|
} |
|
|
|
|
|
|
|
/** `a >> b` */ |
|
|
|
inline Vector<int32_t, 4> operator>>(const Vector<int32_t, 4>& a, const int& b) { |
|
|
|
return Vector<int32_t, 4>(_mm_srli_epi32(a.v, b)); |
|
|
|
return Vector<int32_t, 4>(_mm_srl_epi32(a.v, _mm_cvtsi32_si128(b))); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|