1 2 3 4 5 6 7 8 9 10 11 12 13
.text .global htonl .type htonl,@function .global ntohl .type ntohl,@function htonl: ntohl: movl 4(%esp),%eax xchgb %al,%ah rorl $16,%eax xchgb %al,%ah ret