Skip to content

Instantly share code, notes, and snippets.

Created January 11, 2020 22:16
What would you like to do?
movq (%rdi), %rax # load from the input
xorl %ecx, %ecx
movabsq $-6076574518398440533, %rdx # imm = 0xABABABABABABABAB
cmpq %rdx, %rax # Check with a garbage value
cmovel %ecx, %eax # return it in %rax
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment