clarify the purpose of this project
[nyanglibc.git] / libio / __fsetlocking.s
blob18846bc9c04b4d5751680360d28cb0354eccef42
1 .text
2 .p2align 4,,15
3 .globl __fsetlocking
4 .hidden __fsetlocking
5 .type __fsetlocking, @function
6 __fsetlocking:
7 movl (%rdi), %edx
8 xorl %eax, %eax
9 testb $-128, %dh
10 setne %al
11 addl $1, %eax
12 testl %esi, %esi
13 je .L1
14 andb $127, %dh
15 movl %edx, %ecx
16 orb $-128, %ch
17 cmpl $2, %esi
18 cmove %ecx, %edx
19 movl %edx, (%rdi)
20 .L1:
21 rep ret
22 .size __fsetlocking, .-__fsetlocking