clarify the purpose of this project
[nyanglibc.git] / libio / __fsetlocking.shared.s
blob5300d24f4472c48f9a81e72d9fac6132d545458d
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___fsetlocking
9 .hidden __GI___fsetlocking
10 .type __GI___fsetlocking, @function
11 __GI___fsetlocking:
12 movl (%rdi), %edx
13 xorl %eax, %eax
14 testb $-128, %dh
15 setne %al
16 addl $1, %eax
17 testl %esi, %esi
18 je .L1
19 andb $127, %dh
20 movl %edx, %ecx
21 orb $-128, %ch
22 cmpl $2, %esi
23 cmove %ecx, %edx
24 movl %edx, (%rdi)
25 .L1:
26 rep ret
27 .size __GI___fsetlocking, .-__GI___fsetlocking
28 .globl __fsetlocking
29 .set __fsetlocking,__GI___fsetlocking