Skip to content

Instantly share code, notes, and snippets.

@ttsugriy
Created December 19, 2016 06:47
Show Gist options
  • Save ttsugriy/eef013cc8dbdbd22abe5004a1a43948e to your computer and use it in GitHub Desktop.
Save ttsugriy/eef013cc8dbdbd22abe5004a1a43948e to your computer and use it in GitHub Desktop.
Vectorized element summation.
movdqa xmm1, xmm0
psrldq xmm1, 8
paddd xmm0, xmm1
movdqa xmm1, xmm0
psrldq xmm1, 4
paddd xmm0, xmm1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment