Created
August 11, 2014 09:48
-
-
Save GRGSIBERIA/cdf20685a7d0f78f7b25 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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