xref: /optee_os/lib/libutils/isoc/arch/arm/arm32_aeabi_divmod_a32.S (revision 827be46c173f31c57006af70ca3a15a5b1a7fba3)
1/* SPDX-License-Identifier: BSD-2-Clause */
2/*
3 * Copyright (c) 2014, STMicroelectronics International N.V.
4 */
5
6#include <asm.S>
7
8/*
9 * signed ret_idivmod_values(signed quot, signed rem);
10 * return quotient and remaining the EABI way (regs r0,r1)
11 */
12FUNC ret_idivmod_values , :
13UNWIND(	.fnstart)
14        bx lr
15UNWIND(	.fnend)
16END_FUNC ret_idivmod_values
17
18/*
19 * unsigned ret_uidivmod_values(unsigned quot, unsigned rem);
20 * return quotient and remaining the EABI way (regs r0,r1)
21 */
22FUNC ret_uidivmod_values , :
23UNWIND(	.fnstart)
24        bx      lr
25UNWIND(	.fnend)
26END_FUNC ret_uidivmod_values
27