clarify the purpose of this project
[nyanglibc.git] / malloc / reallocarray.shared.s
blobec4c63824d38ce110b10c87963e4282836ad117b
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_reallocarray
9 .hidden __GI___libc_reallocarray
10 .type __GI___libc_reallocarray, @function
11 __GI___libc_reallocarray:
12 movq %rsi, %rax
13 mulq %rdx
14 movq %rax, %rsi
15 jo .L3
16 jmp realloc@PLT
17 .L3:
18 movq __libc_errno@gottpoff(%rip), %rax
19 movl $12, %fs:(%rax)
20 xorl %eax, %eax
21 ret
22 .size __GI___libc_reallocarray, .-__GI___libc_reallocarray
23 .globl __libc_reallocarray
24 .set __libc_reallocarray,__GI___libc_reallocarray
25 .weak reallocarray
26 .set reallocarray,__libc_reallocarray