Skip to content

Instantly share code, notes, and snippets.

@Alcaro
Created August 26, 2016 12:48
Show Gist options
  • Save Alcaro/fc93052744d4cf740d64006c61dcf898 to your computer and use it in GitHub Desktop.
Save Alcaro/fc93052744d4cf740d64006c61dcf898 to your computer and use it in GitHub Desktop.
Compiled with https://gcc.godbolt.org/ x86-64 gcc 4.8.2, flags -Os
void q(volatile __int128 * a)
{
*a=0;
}
q(__int128 volatile*):
mov QWORD PTR [rdi], 0
mov QWORD PTR [rdi+8], 0
ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment