summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/i386/htonl.S
blob: f3732d16a42db8093c7caa47b28a202f74c9ec26 (plain)
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