unistd.h: use long in read() and write() prototypes
[neatlibc.git] / x86_64 / bits.s
blobab41af7272ce4823fd1b13cc462286df1d1e1a4f
1 format ELF64
3 public htonl
4 public ntohl
5 htonl:
6 ntohl:
7 mov eax, edi
8 xchg al, ah
9 ror eax, 16
10 xchg al, ah
11 ret
13 public htons
14 public ntohs
15 htons:
16 ntohs:
17 mov eax, edi
18 ror ax, 8
19 ret