clarify the purpose of this project
[nyanglibc.git] / nptl / alloca_cutoff.s
blob7231b45aab0e63c103832f70448d460f88fee4ee
1 .text
2 .p2align 4,,15
3 .globl __libc_alloca_cutoff
4 .hidden __libc_alloca_cutoff
5 .type __libc_alloca_cutoff, @function
6 __libc_alloca_cutoff:
7 #APP
8 # 28 "alloca_cutoff.c" 1
9 movq %fs:1688,%rax
10 # 0 "" 2
11 #NO_APP
12 shrq $2, %rax
13 movl $65536, %edx
14 subq $1, %rax
15 cmpq $65535, %rax
16 ja .L2
17 #APP
18 # 28 "alloca_cutoff.c" 1
19 movq %fs:1688,%rdx
20 # 0 "" 2
21 #NO_APP
22 shrq $2, %rdx
23 movl $262144, %eax
24 testq %rdx, %rdx
25 cmove %rax, %rdx
26 .L2:
27 xorl %eax, %eax
28 cmpq %rdi, %rdx
29 setnb %al
30 ret
31 .size __libc_alloca_cutoff, .-__libc_alloca_cutoff