Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct foo {
- int a:2;
- };
- struct bar {
- unsigned int a:2;
- };
- int test(struct foo *foo, struct bar *bar)
- {
- if (foo->a == 0x3)
- return 1;
- if (bar->a == 0x3)
- return 2;
- return 0;
- }
- Disassembly of section .text:
- 00000000 <test>:
- 0: e5d10000 ldrb r0, [r1]
- 4: e2000003 and r0, r0, #3
- 8: e3500003 cmp r0, #3
- c: 03a00002 moveq r0, #2
- 10: 13a00000 movne r0, #0
- 14: e12fff1e bx lr
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement