clarify the purpose of this project
[nyanglibc.git] / nptl / alloca_cutoff.shared.s
blobf4669bf91e7db8ef40569ba4f1a5f36d1d1126d3
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___libc_alloca_cutoff
9 .hidden __GI___libc_alloca_cutoff
10 .type __GI___libc_alloca_cutoff, @function
11 __GI___libc_alloca_cutoff:
12 #APP
13 # 28 "alloca_cutoff.c" 1
14 movq %fs:1688,%rax
15 # 0 "" 2
16 #NO_APP
17 shrq $2, %rax
18 movl $65536, %edx
19 subq $1, %rax
20 cmpq $65535, %rax
21 ja .L2
22 #APP
23 # 28 "alloca_cutoff.c" 1
24 movq %fs:1688,%rdx
25 # 0 "" 2
26 #NO_APP
27 shrq $2, %rdx
28 movl $262144, %eax
29 testq %rdx, %rdx
30 cmove %rax, %rdx
31 .L2:
32 xorl %eax, %eax
33 cmpq %rdi, %rdx
34 setnb %al
35 ret
36 .size __GI___libc_alloca_cutoff, .-__GI___libc_alloca_cutoff
37 .globl __libc_alloca_cutoff
38 .set __libc_alloca_cutoff,__GI___libc_alloca_cutoff