1/* SPDX-License-Identifier: BSD-2-Clause */
2/*
3 * Copyright (c) 2015, Linaro Limited
4 */
5
6#include <asm.S>
7
8	.section .note.GNU-stack,"",%progbits
9
10/*
11 * __value_in_regs lldiv_t __aeabi_ldivmod( long long n, long long d)
12 */
13FUNC __aeabi_ldivmod , :
14	push	{ip, lr}
15UNWIND(	.save {ip, lr})
16	push	{r0-r3}
17UNWIND(	.save {r0-r3})
18	mov	r0, sp
19	bl	__l_divmod
20	pop	{r0-r3}
21	pop	{ip, pc}
22END_FUNC __aeabi_ldivmod
23
24/*
25 * __value_in_regs ulldiv_t __aeabi_uldivmod(
26 *		unsigned long long n, unsigned long long d)
27 */
28FUNC __aeabi_uldivmod , :
29	push	{ip, lr}
30UNWIND(	.save {ip, lr})
31	push	{r0-r3}
32UNWIND(	.save {r0-r3})
33	mov	r0, sp
34	bl	__ul_divmod
35	pop	{r0-r3}
36	pop	{ip, pc}
37END_FUNC __aeabi_uldivmod
38