Advertisement
Guest User

Untitled

a guest
Aug 29th, 2015
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. int one(int a)
  2. {
  3. return !(a % 2);
  4. }
  5.  
  6. int two(int a)
  7. {
  8. return !(a & 1);
  9. }
  10.  
  11.  
  12. void main(void)
  13. {
  14. }
  15.  
  16.  
  17. 00000000004004ed <one>:
  18. 4004ed: 55 push %rbp
  19. 4004ee: 48 89 e5 mov %rsp,%rbp
  20. 4004f1: 89 7d fc mov %edi,-0x4(%rbp)
  21. 4004f4: 8b 45 fc mov -0x4(%rbp),%eax
  22. 4004f7: 83 e0 01 and $0x1,%eax
  23. 4004fa: 85 c0 test %eax,%eax
  24. 4004fc: 0f 94 c0 sete %al
  25. 4004ff: 0f b6 c0 movzbl %al,%eax
  26. 400502: 5d pop %rbp
  27. 400503: c3 retq
  28.  
  29. 0000000000400504 <two>:
  30. 400504: 55 push %rbp
  31. 400505: 48 89 e5 mov %rsp,%rbp
  32. 400508: 89 7d fc mov %edi,-0x4(%rbp)
  33. 40050b: 8b 45 fc mov -0x4(%rbp),%eax
  34. 40050e: 83 e0 01 and $0x1,%eax
  35. 400511: 85 c0 test %eax,%eax
  36. 400513: 0f 94 c0 sete %al
  37. 400516: 0f b6 c0 movzbl %al,%eax
  38. 400519: 5d pop %rbp
  39. 40051a: c3 retq
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement