Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int one(int a)
- {
- return !(a % 2);
- }
- int two(int a)
- {
- return !(a & 1);
- }
- void main(void)
- {
- }
- 00000000004004ed <one>:
- 4004ed: 55 push %rbp
- 4004ee: 48 89 e5 mov %rsp,%rbp
- 4004f1: 89 7d fc mov %edi,-0x4(%rbp)
- 4004f4: 8b 45 fc mov -0x4(%rbp),%eax
- 4004f7: 83 e0 01 and $0x1,%eax
- 4004fa: 85 c0 test %eax,%eax
- 4004fc: 0f 94 c0 sete %al
- 4004ff: 0f b6 c0 movzbl %al,%eax
- 400502: 5d pop %rbp
- 400503: c3 retq
- 0000000000400504 <two>:
- 400504: 55 push %rbp
- 400505: 48 89 e5 mov %rsp,%rbp
- 400508: 89 7d fc mov %edi,-0x4(%rbp)
- 40050b: 8b 45 fc mov -0x4(%rbp),%eax
- 40050e: 83 e0 01 and $0x1,%eax
- 400511: 85 c0 test %eax,%eax
- 400513: 0f 94 c0 sete %al
- 400516: 0f b6 c0 movzbl %al,%eax
- 400519: 5d pop %rbp
- 40051a: c3 retq
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement