summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/i386/htons.S
blob: 367d6d03ce52d8551e7e954fa085f4d1829b8ce6 (plain)
1
2
3
4
5
6
7
8
9
10
11
.text
.global htons
.type   htons,@function
.global ntohs
.type   ntohs,@function

htons:
ntohs:
        movzwl  4(%esp),%eax
        xchgb   %al,%ah
        ret