HPC Magazine February 2014 - An Introduction to Performance Programming - part I.

Listing 11: An example of logical rotation using SSE instructions.


movdqa       %xmm6, %xmm8
movdqa       %xmm6, %xmm14
psllq        $1, %xmm8
psrlq        $63, %xmm14
por          %xmm14, %xmm8