Created
October 23, 2018 11:03
-
-
Save ztane/757c754e6e38a052502042d9604d32cb 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
int foo(int a, int b) { | |
if ((a-b)==0) { | |
return 1; | |
} | |
return 0; | |
} | |
int bar(int a, int b) { | |
if (a==b) { | |
return 1; | |
} | |
return 0; | |
} |
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
foo: | |
xorl %eax, %eax | |
cmpl %esi, %edi | |
sete %al | |
ret | |
bar: | |
xorl %eax, %eax | |
cmpl %esi, %edi | |
sete %al | |
ret |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment