clarify the purpose of this project
[nyanglibc.git] / inet / inet_mkadr.shared.s
bloba3fb4e43e1ed5476dd8be686143462a0571b2fdc
1 .text
2 #APP
3 memmove = __GI_memmove
4 memset = __GI_memset
5 memcpy = __GI_memcpy
6 #NO_APP
7 .p2align 4,,15
8 .globl __GI___inet_makeaddr
9 .hidden __GI___inet_makeaddr
10 .type __GI___inet_makeaddr, @function
11 __GI___inet_makeaddr:
12 cmpl $127, %edi
13 jbe .L7
14 cmpl $65535, %edi
15 jbe .L8
16 movl %edi, %eax
17 orl %esi, %eax
18 cmpl $16777215, %edi
19 ja .L3
20 sall $8, %edi
21 movzbl %sil, %eax
22 orl %edi, %eax
23 bswap %eax
24 ret
25 .p2align 4,,10
26 .p2align 3
27 .L8:
28 sall $16, %edi
29 movzwl %si, %eax
30 orl %edi, %eax
31 .L3:
32 bswap %eax
33 ret
34 .p2align 4,,10
35 .p2align 3
36 .L7:
37 movl %esi, %eax
38 sall $24, %edi
39 andl $16777215, %eax
40 orl %edi, %eax
41 bswap %eax
42 ret
43 .size __GI___inet_makeaddr, .-__GI___inet_makeaddr
44 .globl __inet_makeaddr
45 .set __inet_makeaddr,__GI___inet_makeaddr
46 .weak inet_makeaddr
47 .set inet_makeaddr,__inet_makeaddr