clarify the purpose of this project
[nyanglibc.git] / malloc / reallocarray.s
blob9fb4701bbc7c953230dc94c1546d91287e72f083
1 .text
2 .p2align 4,,15
3 .globl __libc_reallocarray
4 .hidden __libc_reallocarray
5 .type __libc_reallocarray, @function
6 __libc_reallocarray:
7 movq %rsi, %rax
8 mulq %rdx
9 movq %rax, %rsi
10 jo .L3
11 jmp realloc@PLT
12 .L3:
13 movq __libc_errno@gottpoff(%rip), %rax
14 movl $12, %fs:(%rax)
15 xorl %eax, %eax
16 ret
17 .size __libc_reallocarray, .-__libc_reallocarray
18 .weak reallocarray
19 .set reallocarray,__libc_reallocarray