diff --git a/include/simd/Vector.hpp b/include/simd/Vector.hpp index c8a9c6f7..4c497b9a 100644 --- a/include/simd/Vector.hpp +++ b/include/simd/Vector.hpp @@ -324,12 +324,12 @@ inline Vector operator~(const Vector& a) { /** `a << b` */ inline Vector operator<<(const Vector& a, const int& b) { - return Vector(_mm_slli_epi32(a.v, b)); + return Vector(_mm_sll_epi32(a.v, _mm_cvtsi32_si128(b))); } /** `a >> b` */ inline Vector operator>>(const Vector& a, const int& b) { - return Vector(_mm_srli_epi32(a.v, b)); + return Vector(_mm_srl_epi32(a.v, _mm_cvtsi32_si128(b))); } diff --git a/include/simd/common.hpp b/include/simd/common.hpp index aa687cfc..d5fda224 100644 --- a/include/simd/common.hpp +++ b/include/simd/common.hpp @@ -1,4 +1,4 @@ #pragma once #define SIMDE_ENABLE_NATIVE_ALIASES -#include +#include