Skip to content

Instantly share code, notes, and snippets.

@GRGSIBERIA
Created August 11, 2014 09:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GRGSIBERIA/cdf20685a7d0f78f7b25 to your computer and use it in GitHub Desktop.
Save GRGSIBERIA/cdf20685a7d0f78f7b25 to your computer and use it in GitHub Desktop.
void Main()
{
int i = 4;
__asm
{
movd xmm0, [i]
shufps xmm0, xmm0, 0
xorps xmm1, xmm1
mov eax, 1
movd xmm1, eax
psllq xmm1, 32
shufps xmm1, xmm1, 84
shufps xmm2, xmm1, 80
addps xmm1, xmm2
shufps xmm2, xmm1, 64
addps xmm1, xmm2
addps xmm0, xmm1
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment