I need to shift values in a simd register and replace from left or right. Basically I have an array like {4,5,4,5} in SSE or {4,5,4,5,4,5,4,5} in AVX and need to convert them to {5,4,5,4} or {5,4,5,4,5,4,5,4}. I need the solution to work with both SSE and AVX instruction sets.
Rotate shift in AVX and SSE
Para obter mais informações sobre otimizações de compiladores, consulte Aviso sobre otimizações.



