clarify the purpose of this project
[nyanglibc.git] / inet / inet_lnaof.s
blob07f7d159cfc8c80e75a72e170efbedac1d0ea3ba
1 .text
2 .p2align 4,,15
3 .globl inet_lnaof
4 .type inet_lnaof, @function
5 inet_lnaof:
6 bswap %edi
7 testl %edi, %edi
8 js .L2
9 movl %edi, %eax
10 andl $16777215, %eax
11 ret
12 .p2align 4,,10
13 .p2align 3
14 .L2:
15 movl %edi, %edx
16 movzwl %di, %eax
17 movzbl %dil, %edi
18 andl $-1073741824, %edx
19 cmpl $-2147483648, %edx
20 cmovne %edi, %eax
21 ret
22 .size inet_lnaof, .-inet_lnaof